OLD | NEW |
1 library googleapis.deploymentmanager.v2.test; | 1 library googleapis.deploymentmanager.v2.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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 } | 63 } |
64 | 64 |
65 checkConfigFile(api.ConfigFile o) { | 65 checkConfigFile(api.ConfigFile o) { |
66 buildCounterConfigFile++; | 66 buildCounterConfigFile++; |
67 if (buildCounterConfigFile < 3) { | 67 if (buildCounterConfigFile < 3) { |
68 unittest.expect(o.content, unittest.equals('foo')); | 68 unittest.expect(o.content, unittest.equals('foo')); |
69 } | 69 } |
70 buildCounterConfigFile--; | 70 buildCounterConfigFile--; |
71 } | 71 } |
72 | 72 |
73 buildUnnamed1014() { | 73 buildUnnamed2233() { |
74 var o = new core.List<api.DeploymentLabelEntry>(); | 74 var o = new core.List<api.DeploymentLabelEntry>(); |
75 o.add(buildDeploymentLabelEntry()); | 75 o.add(buildDeploymentLabelEntry()); |
76 o.add(buildDeploymentLabelEntry()); | 76 o.add(buildDeploymentLabelEntry()); |
77 return o; | 77 return o; |
78 } | 78 } |
79 | 79 |
80 checkUnnamed1014(core.List<api.DeploymentLabelEntry> o) { | 80 checkUnnamed2233(core.List<api.DeploymentLabelEntry> o) { |
81 unittest.expect(o, unittest.hasLength(2)); | 81 unittest.expect(o, unittest.hasLength(2)); |
82 checkDeploymentLabelEntry(o[0]); | 82 checkDeploymentLabelEntry(o[0]); |
83 checkDeploymentLabelEntry(o[1]); | 83 checkDeploymentLabelEntry(o[1]); |
84 } | 84 } |
85 | 85 |
86 core.int buildCounterDeployment = 0; | 86 core.int buildCounterDeployment = 0; |
87 buildDeployment() { | 87 buildDeployment() { |
88 var o = new api.Deployment(); | 88 var o = new api.Deployment(); |
89 buildCounterDeployment++; | 89 buildCounterDeployment++; |
90 if (buildCounterDeployment < 3) { | 90 if (buildCounterDeployment < 3) { |
91 o.description = "foo"; | 91 o.description = "foo"; |
92 o.fingerprint = "foo"; | 92 o.fingerprint = "foo"; |
93 o.id = "foo"; | 93 o.id = "foo"; |
94 o.insertTime = "foo"; | 94 o.insertTime = "foo"; |
95 o.labels = buildUnnamed1014(); | 95 o.labels = buildUnnamed2233(); |
96 o.manifest = "foo"; | 96 o.manifest = "foo"; |
97 o.name = "foo"; | 97 o.name = "foo"; |
98 o.operation = buildOperation(); | 98 o.operation = buildOperation(); |
99 o.selfLink = "foo"; | 99 o.selfLink = "foo"; |
100 o.target = buildTargetConfiguration(); | 100 o.target = buildTargetConfiguration(); |
101 o.update = buildDeploymentUpdate(); | 101 o.update = buildDeploymentUpdate(); |
102 } | 102 } |
103 buildCounterDeployment--; | 103 buildCounterDeployment--; |
104 return o; | 104 return o; |
105 } | 105 } |
106 | 106 |
107 checkDeployment(api.Deployment o) { | 107 checkDeployment(api.Deployment o) { |
108 buildCounterDeployment++; | 108 buildCounterDeployment++; |
109 if (buildCounterDeployment < 3) { | 109 if (buildCounterDeployment < 3) { |
110 unittest.expect(o.description, unittest.equals('foo')); | 110 unittest.expect(o.description, unittest.equals('foo')); |
111 unittest.expect(o.fingerprint, unittest.equals('foo')); | 111 unittest.expect(o.fingerprint, unittest.equals('foo')); |
112 unittest.expect(o.id, unittest.equals('foo')); | 112 unittest.expect(o.id, unittest.equals('foo')); |
113 unittest.expect(o.insertTime, unittest.equals('foo')); | 113 unittest.expect(o.insertTime, unittest.equals('foo')); |
114 checkUnnamed1014(o.labels); | 114 checkUnnamed2233(o.labels); |
115 unittest.expect(o.manifest, unittest.equals('foo')); | 115 unittest.expect(o.manifest, unittest.equals('foo')); |
116 unittest.expect(o.name, unittest.equals('foo')); | 116 unittest.expect(o.name, unittest.equals('foo')); |
117 checkOperation(o.operation); | 117 checkOperation(o.operation); |
118 unittest.expect(o.selfLink, unittest.equals('foo')); | 118 unittest.expect(o.selfLink, unittest.equals('foo')); |
119 checkTargetConfiguration(o.target); | 119 checkTargetConfiguration(o.target); |
120 checkDeploymentUpdate(o.update); | 120 checkDeploymentUpdate(o.update); |
121 } | 121 } |
122 buildCounterDeployment--; | 122 buildCounterDeployment--; |
123 } | 123 } |
124 | 124 |
(...skipping 11 matching lines...) Expand all Loading... |
136 | 136 |
137 checkDeploymentLabelEntry(api.DeploymentLabelEntry o) { | 137 checkDeploymentLabelEntry(api.DeploymentLabelEntry o) { |
138 buildCounterDeploymentLabelEntry++; | 138 buildCounterDeploymentLabelEntry++; |
139 if (buildCounterDeploymentLabelEntry < 3) { | 139 if (buildCounterDeploymentLabelEntry < 3) { |
140 unittest.expect(o.key, unittest.equals('foo')); | 140 unittest.expect(o.key, unittest.equals('foo')); |
141 unittest.expect(o.value, unittest.equals('foo')); | 141 unittest.expect(o.value, unittest.equals('foo')); |
142 } | 142 } |
143 buildCounterDeploymentLabelEntry--; | 143 buildCounterDeploymentLabelEntry--; |
144 } | 144 } |
145 | 145 |
146 buildUnnamed1015() { | 146 buildUnnamed2234() { |
147 var o = new core.List<api.DeploymentUpdateLabelEntry>(); | 147 var o = new core.List<api.DeploymentUpdateLabelEntry>(); |
148 o.add(buildDeploymentUpdateLabelEntry()); | 148 o.add(buildDeploymentUpdateLabelEntry()); |
149 o.add(buildDeploymentUpdateLabelEntry()); | 149 o.add(buildDeploymentUpdateLabelEntry()); |
150 return o; | 150 return o; |
151 } | 151 } |
152 | 152 |
153 checkUnnamed1015(core.List<api.DeploymentUpdateLabelEntry> o) { | 153 checkUnnamed2234(core.List<api.DeploymentUpdateLabelEntry> o) { |
154 unittest.expect(o, unittest.hasLength(2)); | 154 unittest.expect(o, unittest.hasLength(2)); |
155 checkDeploymentUpdateLabelEntry(o[0]); | 155 checkDeploymentUpdateLabelEntry(o[0]); |
156 checkDeploymentUpdateLabelEntry(o[1]); | 156 checkDeploymentUpdateLabelEntry(o[1]); |
157 } | 157 } |
158 | 158 |
159 core.int buildCounterDeploymentUpdate = 0; | 159 core.int buildCounterDeploymentUpdate = 0; |
160 buildDeploymentUpdate() { | 160 buildDeploymentUpdate() { |
161 var o = new api.DeploymentUpdate(); | 161 var o = new api.DeploymentUpdate(); |
162 buildCounterDeploymentUpdate++; | 162 buildCounterDeploymentUpdate++; |
163 if (buildCounterDeploymentUpdate < 3) { | 163 if (buildCounterDeploymentUpdate < 3) { |
164 o.labels = buildUnnamed1015(); | 164 o.labels = buildUnnamed2234(); |
165 o.manifest = "foo"; | 165 o.manifest = "foo"; |
166 } | 166 } |
167 buildCounterDeploymentUpdate--; | 167 buildCounterDeploymentUpdate--; |
168 return o; | 168 return o; |
169 } | 169 } |
170 | 170 |
171 checkDeploymentUpdate(api.DeploymentUpdate o) { | 171 checkDeploymentUpdate(api.DeploymentUpdate o) { |
172 buildCounterDeploymentUpdate++; | 172 buildCounterDeploymentUpdate++; |
173 if (buildCounterDeploymentUpdate < 3) { | 173 if (buildCounterDeploymentUpdate < 3) { |
174 checkUnnamed1015(o.labels); | 174 checkUnnamed2234(o.labels); |
175 unittest.expect(o.manifest, unittest.equals('foo')); | 175 unittest.expect(o.manifest, unittest.equals('foo')); |
176 } | 176 } |
177 buildCounterDeploymentUpdate--; | 177 buildCounterDeploymentUpdate--; |
178 } | 178 } |
179 | 179 |
180 core.int buildCounterDeploymentUpdateLabelEntry = 0; | 180 core.int buildCounterDeploymentUpdateLabelEntry = 0; |
181 buildDeploymentUpdateLabelEntry() { | 181 buildDeploymentUpdateLabelEntry() { |
182 var o = new api.DeploymentUpdateLabelEntry(); | 182 var o = new api.DeploymentUpdateLabelEntry(); |
183 buildCounterDeploymentUpdateLabelEntry++; | 183 buildCounterDeploymentUpdateLabelEntry++; |
184 if (buildCounterDeploymentUpdateLabelEntry < 3) { | 184 if (buildCounterDeploymentUpdateLabelEntry < 3) { |
(...skipping 25 matching lines...) Expand all Loading... |
210 } | 210 } |
211 | 211 |
212 checkDeploymentsCancelPreviewRequest(api.DeploymentsCancelPreviewRequest o) { | 212 checkDeploymentsCancelPreviewRequest(api.DeploymentsCancelPreviewRequest o) { |
213 buildCounterDeploymentsCancelPreviewRequest++; | 213 buildCounterDeploymentsCancelPreviewRequest++; |
214 if (buildCounterDeploymentsCancelPreviewRequest < 3) { | 214 if (buildCounterDeploymentsCancelPreviewRequest < 3) { |
215 unittest.expect(o.fingerprint, unittest.equals('foo')); | 215 unittest.expect(o.fingerprint, unittest.equals('foo')); |
216 } | 216 } |
217 buildCounterDeploymentsCancelPreviewRequest--; | 217 buildCounterDeploymentsCancelPreviewRequest--; |
218 } | 218 } |
219 | 219 |
220 buildUnnamed1016() { | 220 buildUnnamed2235() { |
221 var o = new core.List<api.Deployment>(); | 221 var o = new core.List<api.Deployment>(); |
222 o.add(buildDeployment()); | 222 o.add(buildDeployment()); |
223 o.add(buildDeployment()); | 223 o.add(buildDeployment()); |
224 return o; | 224 return o; |
225 } | 225 } |
226 | 226 |
227 checkUnnamed1016(core.List<api.Deployment> o) { | 227 checkUnnamed2235(core.List<api.Deployment> o) { |
228 unittest.expect(o, unittest.hasLength(2)); | 228 unittest.expect(o, unittest.hasLength(2)); |
229 checkDeployment(o[0]); | 229 checkDeployment(o[0]); |
230 checkDeployment(o[1]); | 230 checkDeployment(o[1]); |
231 } | 231 } |
232 | 232 |
233 core.int buildCounterDeploymentsListResponse = 0; | 233 core.int buildCounterDeploymentsListResponse = 0; |
234 buildDeploymentsListResponse() { | 234 buildDeploymentsListResponse() { |
235 var o = new api.DeploymentsListResponse(); | 235 var o = new api.DeploymentsListResponse(); |
236 buildCounterDeploymentsListResponse++; | 236 buildCounterDeploymentsListResponse++; |
237 if (buildCounterDeploymentsListResponse < 3) { | 237 if (buildCounterDeploymentsListResponse < 3) { |
238 o.deployments = buildUnnamed1016(); | 238 o.deployments = buildUnnamed2235(); |
239 o.nextPageToken = "foo"; | 239 o.nextPageToken = "foo"; |
240 } | 240 } |
241 buildCounterDeploymentsListResponse--; | 241 buildCounterDeploymentsListResponse--; |
242 return o; | 242 return o; |
243 } | 243 } |
244 | 244 |
245 checkDeploymentsListResponse(api.DeploymentsListResponse o) { | 245 checkDeploymentsListResponse(api.DeploymentsListResponse o) { |
246 buildCounterDeploymentsListResponse++; | 246 buildCounterDeploymentsListResponse++; |
247 if (buildCounterDeploymentsListResponse < 3) { | 247 if (buildCounterDeploymentsListResponse < 3) { |
248 checkUnnamed1016(o.deployments); | 248 checkUnnamed2235(o.deployments); |
249 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 249 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
250 } | 250 } |
251 buildCounterDeploymentsListResponse--; | 251 buildCounterDeploymentsListResponse--; |
252 } | 252 } |
253 | 253 |
254 core.int buildCounterDeploymentsStopRequest = 0; | 254 core.int buildCounterDeploymentsStopRequest = 0; |
255 buildDeploymentsStopRequest() { | 255 buildDeploymentsStopRequest() { |
256 var o = new api.DeploymentsStopRequest(); | 256 var o = new api.DeploymentsStopRequest(); |
257 buildCounterDeploymentsStopRequest++; | 257 buildCounterDeploymentsStopRequest++; |
258 if (buildCounterDeploymentsStopRequest < 3) { | 258 if (buildCounterDeploymentsStopRequest < 3) { |
(...skipping 25 matching lines...) Expand all Loading... |
284 | 284 |
285 checkImportFile(api.ImportFile o) { | 285 checkImportFile(api.ImportFile o) { |
286 buildCounterImportFile++; | 286 buildCounterImportFile++; |
287 if (buildCounterImportFile < 3) { | 287 if (buildCounterImportFile < 3) { |
288 unittest.expect(o.content, unittest.equals('foo')); | 288 unittest.expect(o.content, unittest.equals('foo')); |
289 unittest.expect(o.name, unittest.equals('foo')); | 289 unittest.expect(o.name, unittest.equals('foo')); |
290 } | 290 } |
291 buildCounterImportFile--; | 291 buildCounterImportFile--; |
292 } | 292 } |
293 | 293 |
294 buildUnnamed1017() { | 294 buildUnnamed2236() { |
295 var o = new core.List<api.ImportFile>(); | 295 var o = new core.List<api.ImportFile>(); |
296 o.add(buildImportFile()); | 296 o.add(buildImportFile()); |
297 o.add(buildImportFile()); | 297 o.add(buildImportFile()); |
298 return o; | 298 return o; |
299 } | 299 } |
300 | 300 |
301 checkUnnamed1017(core.List<api.ImportFile> o) { | 301 checkUnnamed2236(core.List<api.ImportFile> o) { |
302 unittest.expect(o, unittest.hasLength(2)); | 302 unittest.expect(o, unittest.hasLength(2)); |
303 checkImportFile(o[0]); | 303 checkImportFile(o[0]); |
304 checkImportFile(o[1]); | 304 checkImportFile(o[1]); |
305 } | 305 } |
306 | 306 |
307 core.int buildCounterManifest = 0; | 307 core.int buildCounterManifest = 0; |
308 buildManifest() { | 308 buildManifest() { |
309 var o = new api.Manifest(); | 309 var o = new api.Manifest(); |
310 buildCounterManifest++; | 310 buildCounterManifest++; |
311 if (buildCounterManifest < 3) { | 311 if (buildCounterManifest < 3) { |
312 o.config = buildConfigFile(); | 312 o.config = buildConfigFile(); |
313 o.expandedConfig = "foo"; | 313 o.expandedConfig = "foo"; |
314 o.id = "foo"; | 314 o.id = "foo"; |
315 o.imports = buildUnnamed1017(); | 315 o.imports = buildUnnamed2236(); |
316 o.insertTime = "foo"; | 316 o.insertTime = "foo"; |
317 o.layout = "foo"; | 317 o.layout = "foo"; |
318 o.name = "foo"; | 318 o.name = "foo"; |
319 o.selfLink = "foo"; | 319 o.selfLink = "foo"; |
320 } | 320 } |
321 buildCounterManifest--; | 321 buildCounterManifest--; |
322 return o; | 322 return o; |
323 } | 323 } |
324 | 324 |
325 checkManifest(api.Manifest o) { | 325 checkManifest(api.Manifest o) { |
326 buildCounterManifest++; | 326 buildCounterManifest++; |
327 if (buildCounterManifest < 3) { | 327 if (buildCounterManifest < 3) { |
328 checkConfigFile(o.config); | 328 checkConfigFile(o.config); |
329 unittest.expect(o.expandedConfig, unittest.equals('foo')); | 329 unittest.expect(o.expandedConfig, unittest.equals('foo')); |
330 unittest.expect(o.id, unittest.equals('foo')); | 330 unittest.expect(o.id, unittest.equals('foo')); |
331 checkUnnamed1017(o.imports); | 331 checkUnnamed2236(o.imports); |
332 unittest.expect(o.insertTime, unittest.equals('foo')); | 332 unittest.expect(o.insertTime, unittest.equals('foo')); |
333 unittest.expect(o.layout, unittest.equals('foo')); | 333 unittest.expect(o.layout, unittest.equals('foo')); |
334 unittest.expect(o.name, unittest.equals('foo')); | 334 unittest.expect(o.name, unittest.equals('foo')); |
335 unittest.expect(o.selfLink, unittest.equals('foo')); | 335 unittest.expect(o.selfLink, unittest.equals('foo')); |
336 } | 336 } |
337 buildCounterManifest--; | 337 buildCounterManifest--; |
338 } | 338 } |
339 | 339 |
340 buildUnnamed1018() { | 340 buildUnnamed2237() { |
341 var o = new core.List<api.Manifest>(); | 341 var o = new core.List<api.Manifest>(); |
342 o.add(buildManifest()); | 342 o.add(buildManifest()); |
343 o.add(buildManifest()); | 343 o.add(buildManifest()); |
344 return o; | 344 return o; |
345 } | 345 } |
346 | 346 |
347 checkUnnamed1018(core.List<api.Manifest> o) { | 347 checkUnnamed2237(core.List<api.Manifest> o) { |
348 unittest.expect(o, unittest.hasLength(2)); | 348 unittest.expect(o, unittest.hasLength(2)); |
349 checkManifest(o[0]); | 349 checkManifest(o[0]); |
350 checkManifest(o[1]); | 350 checkManifest(o[1]); |
351 } | 351 } |
352 | 352 |
353 core.int buildCounterManifestsListResponse = 0; | 353 core.int buildCounterManifestsListResponse = 0; |
354 buildManifestsListResponse() { | 354 buildManifestsListResponse() { |
355 var o = new api.ManifestsListResponse(); | 355 var o = new api.ManifestsListResponse(); |
356 buildCounterManifestsListResponse++; | 356 buildCounterManifestsListResponse++; |
357 if (buildCounterManifestsListResponse < 3) { | 357 if (buildCounterManifestsListResponse < 3) { |
358 o.manifests = buildUnnamed1018(); | 358 o.manifests = buildUnnamed2237(); |
359 o.nextPageToken = "foo"; | 359 o.nextPageToken = "foo"; |
360 } | 360 } |
361 buildCounterManifestsListResponse--; | 361 buildCounterManifestsListResponse--; |
362 return o; | 362 return o; |
363 } | 363 } |
364 | 364 |
365 checkManifestsListResponse(api.ManifestsListResponse o) { | 365 checkManifestsListResponse(api.ManifestsListResponse o) { |
366 buildCounterManifestsListResponse++; | 366 buildCounterManifestsListResponse++; |
367 if (buildCounterManifestsListResponse < 3) { | 367 if (buildCounterManifestsListResponse < 3) { |
368 checkUnnamed1018(o.manifests); | 368 checkUnnamed2237(o.manifests); |
369 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 369 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
370 } | 370 } |
371 buildCounterManifestsListResponse--; | 371 buildCounterManifestsListResponse--; |
372 } | 372 } |
373 | 373 |
374 core.int buildCounterOperationErrorErrors = 0; | 374 core.int buildCounterOperationErrorErrors = 0; |
375 buildOperationErrorErrors() { | 375 buildOperationErrorErrors() { |
376 var o = new api.OperationErrorErrors(); | 376 var o = new api.OperationErrorErrors(); |
377 buildCounterOperationErrorErrors++; | 377 buildCounterOperationErrorErrors++; |
378 if (buildCounterOperationErrorErrors < 3) { | 378 if (buildCounterOperationErrorErrors < 3) { |
379 o.code = "foo"; | 379 o.code = "foo"; |
380 o.location = "foo"; | 380 o.location = "foo"; |
381 o.message = "foo"; | 381 o.message = "foo"; |
382 } | 382 } |
383 buildCounterOperationErrorErrors--; | 383 buildCounterOperationErrorErrors--; |
384 return o; | 384 return o; |
385 } | 385 } |
386 | 386 |
387 checkOperationErrorErrors(api.OperationErrorErrors o) { | 387 checkOperationErrorErrors(api.OperationErrorErrors o) { |
388 buildCounterOperationErrorErrors++; | 388 buildCounterOperationErrorErrors++; |
389 if (buildCounterOperationErrorErrors < 3) { | 389 if (buildCounterOperationErrorErrors < 3) { |
390 unittest.expect(o.code, unittest.equals('foo')); | 390 unittest.expect(o.code, unittest.equals('foo')); |
391 unittest.expect(o.location, unittest.equals('foo')); | 391 unittest.expect(o.location, unittest.equals('foo')); |
392 unittest.expect(o.message, unittest.equals('foo')); | 392 unittest.expect(o.message, unittest.equals('foo')); |
393 } | 393 } |
394 buildCounterOperationErrorErrors--; | 394 buildCounterOperationErrorErrors--; |
395 } | 395 } |
396 | 396 |
397 buildUnnamed1019() { | 397 buildUnnamed2238() { |
398 var o = new core.List<api.OperationErrorErrors>(); | 398 var o = new core.List<api.OperationErrorErrors>(); |
399 o.add(buildOperationErrorErrors()); | 399 o.add(buildOperationErrorErrors()); |
400 o.add(buildOperationErrorErrors()); | 400 o.add(buildOperationErrorErrors()); |
401 return o; | 401 return o; |
402 } | 402 } |
403 | 403 |
404 checkUnnamed1019(core.List<api.OperationErrorErrors> o) { | 404 checkUnnamed2238(core.List<api.OperationErrorErrors> o) { |
405 unittest.expect(o, unittest.hasLength(2)); | 405 unittest.expect(o, unittest.hasLength(2)); |
406 checkOperationErrorErrors(o[0]); | 406 checkOperationErrorErrors(o[0]); |
407 checkOperationErrorErrors(o[1]); | 407 checkOperationErrorErrors(o[1]); |
408 } | 408 } |
409 | 409 |
410 core.int buildCounterOperationError = 0; | 410 core.int buildCounterOperationError = 0; |
411 buildOperationError() { | 411 buildOperationError() { |
412 var o = new api.OperationError(); | 412 var o = new api.OperationError(); |
413 buildCounterOperationError++; | 413 buildCounterOperationError++; |
414 if (buildCounterOperationError < 3) { | 414 if (buildCounterOperationError < 3) { |
415 o.errors = buildUnnamed1019(); | 415 o.errors = buildUnnamed2238(); |
416 } | 416 } |
417 buildCounterOperationError--; | 417 buildCounterOperationError--; |
418 return o; | 418 return o; |
419 } | 419 } |
420 | 420 |
421 checkOperationError(api.OperationError o) { | 421 checkOperationError(api.OperationError o) { |
422 buildCounterOperationError++; | 422 buildCounterOperationError++; |
423 if (buildCounterOperationError < 3) { | 423 if (buildCounterOperationError < 3) { |
424 checkUnnamed1019(o.errors); | 424 checkUnnamed2238(o.errors); |
425 } | 425 } |
426 buildCounterOperationError--; | 426 buildCounterOperationError--; |
427 } | 427 } |
428 | 428 |
429 core.int buildCounterOperationWarningsData = 0; | 429 core.int buildCounterOperationWarningsData = 0; |
430 buildOperationWarningsData() { | 430 buildOperationWarningsData() { |
431 var o = new api.OperationWarningsData(); | 431 var o = new api.OperationWarningsData(); |
432 buildCounterOperationWarningsData++; | 432 buildCounterOperationWarningsData++; |
433 if (buildCounterOperationWarningsData < 3) { | 433 if (buildCounterOperationWarningsData < 3) { |
434 o.key = "foo"; | 434 o.key = "foo"; |
435 o.value = "foo"; | 435 o.value = "foo"; |
436 } | 436 } |
437 buildCounterOperationWarningsData--; | 437 buildCounterOperationWarningsData--; |
438 return o; | 438 return o; |
439 } | 439 } |
440 | 440 |
441 checkOperationWarningsData(api.OperationWarningsData o) { | 441 checkOperationWarningsData(api.OperationWarningsData o) { |
442 buildCounterOperationWarningsData++; | 442 buildCounterOperationWarningsData++; |
443 if (buildCounterOperationWarningsData < 3) { | 443 if (buildCounterOperationWarningsData < 3) { |
444 unittest.expect(o.key, unittest.equals('foo')); | 444 unittest.expect(o.key, unittest.equals('foo')); |
445 unittest.expect(o.value, unittest.equals('foo')); | 445 unittest.expect(o.value, unittest.equals('foo')); |
446 } | 446 } |
447 buildCounterOperationWarningsData--; | 447 buildCounterOperationWarningsData--; |
448 } | 448 } |
449 | 449 |
450 buildUnnamed1020() { | 450 buildUnnamed2239() { |
451 var o = new core.List<api.OperationWarningsData>(); | 451 var o = new core.List<api.OperationWarningsData>(); |
452 o.add(buildOperationWarningsData()); | 452 o.add(buildOperationWarningsData()); |
453 o.add(buildOperationWarningsData()); | 453 o.add(buildOperationWarningsData()); |
454 return o; | 454 return o; |
455 } | 455 } |
456 | 456 |
457 checkUnnamed1020(core.List<api.OperationWarningsData> o) { | 457 checkUnnamed2239(core.List<api.OperationWarningsData> o) { |
458 unittest.expect(o, unittest.hasLength(2)); | 458 unittest.expect(o, unittest.hasLength(2)); |
459 checkOperationWarningsData(o[0]); | 459 checkOperationWarningsData(o[0]); |
460 checkOperationWarningsData(o[1]); | 460 checkOperationWarningsData(o[1]); |
461 } | 461 } |
462 | 462 |
463 core.int buildCounterOperationWarnings = 0; | 463 core.int buildCounterOperationWarnings = 0; |
464 buildOperationWarnings() { | 464 buildOperationWarnings() { |
465 var o = new api.OperationWarnings(); | 465 var o = new api.OperationWarnings(); |
466 buildCounterOperationWarnings++; | 466 buildCounterOperationWarnings++; |
467 if (buildCounterOperationWarnings < 3) { | 467 if (buildCounterOperationWarnings < 3) { |
468 o.code = "foo"; | 468 o.code = "foo"; |
469 o.data = buildUnnamed1020(); | 469 o.data = buildUnnamed2239(); |
470 o.message = "foo"; | 470 o.message = "foo"; |
471 } | 471 } |
472 buildCounterOperationWarnings--; | 472 buildCounterOperationWarnings--; |
473 return o; | 473 return o; |
474 } | 474 } |
475 | 475 |
476 checkOperationWarnings(api.OperationWarnings o) { | 476 checkOperationWarnings(api.OperationWarnings o) { |
477 buildCounterOperationWarnings++; | 477 buildCounterOperationWarnings++; |
478 if (buildCounterOperationWarnings < 3) { | 478 if (buildCounterOperationWarnings < 3) { |
479 unittest.expect(o.code, unittest.equals('foo')); | 479 unittest.expect(o.code, unittest.equals('foo')); |
480 checkUnnamed1020(o.data); | 480 checkUnnamed2239(o.data); |
481 unittest.expect(o.message, unittest.equals('foo')); | 481 unittest.expect(o.message, unittest.equals('foo')); |
482 } | 482 } |
483 buildCounterOperationWarnings--; | 483 buildCounterOperationWarnings--; |
484 } | 484 } |
485 | 485 |
486 buildUnnamed1021() { | 486 buildUnnamed2240() { |
487 var o = new core.List<api.OperationWarnings>(); | 487 var o = new core.List<api.OperationWarnings>(); |
488 o.add(buildOperationWarnings()); | 488 o.add(buildOperationWarnings()); |
489 o.add(buildOperationWarnings()); | 489 o.add(buildOperationWarnings()); |
490 return o; | 490 return o; |
491 } | 491 } |
492 | 492 |
493 checkUnnamed1021(core.List<api.OperationWarnings> o) { | 493 checkUnnamed2240(core.List<api.OperationWarnings> o) { |
494 unittest.expect(o, unittest.hasLength(2)); | 494 unittest.expect(o, unittest.hasLength(2)); |
495 checkOperationWarnings(o[0]); | 495 checkOperationWarnings(o[0]); |
496 checkOperationWarnings(o[1]); | 496 checkOperationWarnings(o[1]); |
497 } | 497 } |
498 | 498 |
499 core.int buildCounterOperation = 0; | 499 core.int buildCounterOperation = 0; |
500 buildOperation() { | 500 buildOperation() { |
501 var o = new api.Operation(); | 501 var o = new api.Operation(); |
502 buildCounterOperation++; | 502 buildCounterOperation++; |
503 if (buildCounterOperation < 3) { | 503 if (buildCounterOperation < 3) { |
(...skipping 11 matching lines...) Expand all Loading... |
515 o.operationType = "foo"; | 515 o.operationType = "foo"; |
516 o.progress = 42; | 516 o.progress = 42; |
517 o.region = "foo"; | 517 o.region = "foo"; |
518 o.selfLink = "foo"; | 518 o.selfLink = "foo"; |
519 o.startTime = "foo"; | 519 o.startTime = "foo"; |
520 o.status = "foo"; | 520 o.status = "foo"; |
521 o.statusMessage = "foo"; | 521 o.statusMessage = "foo"; |
522 o.targetId = "foo"; | 522 o.targetId = "foo"; |
523 o.targetLink = "foo"; | 523 o.targetLink = "foo"; |
524 o.user = "foo"; | 524 o.user = "foo"; |
525 o.warnings = buildUnnamed1021(); | 525 o.warnings = buildUnnamed2240(); |
526 o.zone = "foo"; | 526 o.zone = "foo"; |
527 } | 527 } |
528 buildCounterOperation--; | 528 buildCounterOperation--; |
529 return o; | 529 return o; |
530 } | 530 } |
531 | 531 |
532 checkOperation(api.Operation o) { | 532 checkOperation(api.Operation o) { |
533 buildCounterOperation++; | 533 buildCounterOperation++; |
534 if (buildCounterOperation < 3) { | 534 if (buildCounterOperation < 3) { |
535 unittest.expect(o.clientOperationId, unittest.equals('foo')); | 535 unittest.expect(o.clientOperationId, unittest.equals('foo')); |
(...skipping 10 matching lines...) Expand all Loading... |
546 unittest.expect(o.operationType, unittest.equals('foo')); | 546 unittest.expect(o.operationType, unittest.equals('foo')); |
547 unittest.expect(o.progress, unittest.equals(42)); | 547 unittest.expect(o.progress, unittest.equals(42)); |
548 unittest.expect(o.region, unittest.equals('foo')); | 548 unittest.expect(o.region, unittest.equals('foo')); |
549 unittest.expect(o.selfLink, unittest.equals('foo')); | 549 unittest.expect(o.selfLink, unittest.equals('foo')); |
550 unittest.expect(o.startTime, unittest.equals('foo')); | 550 unittest.expect(o.startTime, unittest.equals('foo')); |
551 unittest.expect(o.status, unittest.equals('foo')); | 551 unittest.expect(o.status, unittest.equals('foo')); |
552 unittest.expect(o.statusMessage, unittest.equals('foo')); | 552 unittest.expect(o.statusMessage, unittest.equals('foo')); |
553 unittest.expect(o.targetId, unittest.equals('foo')); | 553 unittest.expect(o.targetId, unittest.equals('foo')); |
554 unittest.expect(o.targetLink, unittest.equals('foo')); | 554 unittest.expect(o.targetLink, unittest.equals('foo')); |
555 unittest.expect(o.user, unittest.equals('foo')); | 555 unittest.expect(o.user, unittest.equals('foo')); |
556 checkUnnamed1021(o.warnings); | 556 checkUnnamed2240(o.warnings); |
557 unittest.expect(o.zone, unittest.equals('foo')); | 557 unittest.expect(o.zone, unittest.equals('foo')); |
558 } | 558 } |
559 buildCounterOperation--; | 559 buildCounterOperation--; |
560 } | 560 } |
561 | 561 |
562 buildUnnamed1022() { | 562 buildUnnamed2241() { |
563 var o = new core.List<api.Operation>(); | 563 var o = new core.List<api.Operation>(); |
564 o.add(buildOperation()); | 564 o.add(buildOperation()); |
565 o.add(buildOperation()); | 565 o.add(buildOperation()); |
566 return o; | 566 return o; |
567 } | 567 } |
568 | 568 |
569 checkUnnamed1022(core.List<api.Operation> o) { | 569 checkUnnamed2241(core.List<api.Operation> o) { |
570 unittest.expect(o, unittest.hasLength(2)); | 570 unittest.expect(o, unittest.hasLength(2)); |
571 checkOperation(o[0]); | 571 checkOperation(o[0]); |
572 checkOperation(o[1]); | 572 checkOperation(o[1]); |
573 } | 573 } |
574 | 574 |
575 core.int buildCounterOperationsListResponse = 0; | 575 core.int buildCounterOperationsListResponse = 0; |
576 buildOperationsListResponse() { | 576 buildOperationsListResponse() { |
577 var o = new api.OperationsListResponse(); | 577 var o = new api.OperationsListResponse(); |
578 buildCounterOperationsListResponse++; | 578 buildCounterOperationsListResponse++; |
579 if (buildCounterOperationsListResponse < 3) { | 579 if (buildCounterOperationsListResponse < 3) { |
580 o.nextPageToken = "foo"; | 580 o.nextPageToken = "foo"; |
581 o.operations = buildUnnamed1022(); | 581 o.operations = buildUnnamed2241(); |
582 } | 582 } |
583 buildCounterOperationsListResponse--; | 583 buildCounterOperationsListResponse--; |
584 return o; | 584 return o; |
585 } | 585 } |
586 | 586 |
587 checkOperationsListResponse(api.OperationsListResponse o) { | 587 checkOperationsListResponse(api.OperationsListResponse o) { |
588 buildCounterOperationsListResponse++; | 588 buildCounterOperationsListResponse++; |
589 if (buildCounterOperationsListResponse < 3) { | 589 if (buildCounterOperationsListResponse < 3) { |
590 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 590 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
591 checkUnnamed1022(o.operations); | 591 checkUnnamed2241(o.operations); |
592 } | 592 } |
593 buildCounterOperationsListResponse--; | 593 buildCounterOperationsListResponse--; |
594 } | 594 } |
595 | 595 |
596 core.int buildCounterResourceWarningsData = 0; | 596 core.int buildCounterResourceWarningsData = 0; |
597 buildResourceWarningsData() { | 597 buildResourceWarningsData() { |
598 var o = new api.ResourceWarningsData(); | 598 var o = new api.ResourceWarningsData(); |
599 buildCounterResourceWarningsData++; | 599 buildCounterResourceWarningsData++; |
600 if (buildCounterResourceWarningsData < 3) { | 600 if (buildCounterResourceWarningsData < 3) { |
601 o.key = "foo"; | 601 o.key = "foo"; |
602 o.value = "foo"; | 602 o.value = "foo"; |
603 } | 603 } |
604 buildCounterResourceWarningsData--; | 604 buildCounterResourceWarningsData--; |
605 return o; | 605 return o; |
606 } | 606 } |
607 | 607 |
608 checkResourceWarningsData(api.ResourceWarningsData o) { | 608 checkResourceWarningsData(api.ResourceWarningsData o) { |
609 buildCounterResourceWarningsData++; | 609 buildCounterResourceWarningsData++; |
610 if (buildCounterResourceWarningsData < 3) { | 610 if (buildCounterResourceWarningsData < 3) { |
611 unittest.expect(o.key, unittest.equals('foo')); | 611 unittest.expect(o.key, unittest.equals('foo')); |
612 unittest.expect(o.value, unittest.equals('foo')); | 612 unittest.expect(o.value, unittest.equals('foo')); |
613 } | 613 } |
614 buildCounterResourceWarningsData--; | 614 buildCounterResourceWarningsData--; |
615 } | 615 } |
616 | 616 |
617 buildUnnamed1023() { | 617 buildUnnamed2242() { |
618 var o = new core.List<api.ResourceWarningsData>(); | 618 var o = new core.List<api.ResourceWarningsData>(); |
619 o.add(buildResourceWarningsData()); | 619 o.add(buildResourceWarningsData()); |
620 o.add(buildResourceWarningsData()); | 620 o.add(buildResourceWarningsData()); |
621 return o; | 621 return o; |
622 } | 622 } |
623 | 623 |
624 checkUnnamed1023(core.List<api.ResourceWarningsData> o) { | 624 checkUnnamed2242(core.List<api.ResourceWarningsData> o) { |
625 unittest.expect(o, unittest.hasLength(2)); | 625 unittest.expect(o, unittest.hasLength(2)); |
626 checkResourceWarningsData(o[0]); | 626 checkResourceWarningsData(o[0]); |
627 checkResourceWarningsData(o[1]); | 627 checkResourceWarningsData(o[1]); |
628 } | 628 } |
629 | 629 |
630 core.int buildCounterResourceWarnings = 0; | 630 core.int buildCounterResourceWarnings = 0; |
631 buildResourceWarnings() { | 631 buildResourceWarnings() { |
632 var o = new api.ResourceWarnings(); | 632 var o = new api.ResourceWarnings(); |
633 buildCounterResourceWarnings++; | 633 buildCounterResourceWarnings++; |
634 if (buildCounterResourceWarnings < 3) { | 634 if (buildCounterResourceWarnings < 3) { |
635 o.code = "foo"; | 635 o.code = "foo"; |
636 o.data = buildUnnamed1023(); | 636 o.data = buildUnnamed2242(); |
637 o.message = "foo"; | 637 o.message = "foo"; |
638 } | 638 } |
639 buildCounterResourceWarnings--; | 639 buildCounterResourceWarnings--; |
640 return o; | 640 return o; |
641 } | 641 } |
642 | 642 |
643 checkResourceWarnings(api.ResourceWarnings o) { | 643 checkResourceWarnings(api.ResourceWarnings o) { |
644 buildCounterResourceWarnings++; | 644 buildCounterResourceWarnings++; |
645 if (buildCounterResourceWarnings < 3) { | 645 if (buildCounterResourceWarnings < 3) { |
646 unittest.expect(o.code, unittest.equals('foo')); | 646 unittest.expect(o.code, unittest.equals('foo')); |
647 checkUnnamed1023(o.data); | 647 checkUnnamed2242(o.data); |
648 unittest.expect(o.message, unittest.equals('foo')); | 648 unittest.expect(o.message, unittest.equals('foo')); |
649 } | 649 } |
650 buildCounterResourceWarnings--; | 650 buildCounterResourceWarnings--; |
651 } | 651 } |
652 | 652 |
653 buildUnnamed1024() { | 653 buildUnnamed2243() { |
654 var o = new core.List<api.ResourceWarnings>(); | 654 var o = new core.List<api.ResourceWarnings>(); |
655 o.add(buildResourceWarnings()); | 655 o.add(buildResourceWarnings()); |
656 o.add(buildResourceWarnings()); | 656 o.add(buildResourceWarnings()); |
657 return o; | 657 return o; |
658 } | 658 } |
659 | 659 |
660 checkUnnamed1024(core.List<api.ResourceWarnings> o) { | 660 checkUnnamed2243(core.List<api.ResourceWarnings> o) { |
661 unittest.expect(o, unittest.hasLength(2)); | 661 unittest.expect(o, unittest.hasLength(2)); |
662 checkResourceWarnings(o[0]); | 662 checkResourceWarnings(o[0]); |
663 checkResourceWarnings(o[1]); | 663 checkResourceWarnings(o[1]); |
664 } | 664 } |
665 | 665 |
666 core.int buildCounterResource = 0; | 666 core.int buildCounterResource = 0; |
667 buildResource() { | 667 buildResource() { |
668 var o = new api.Resource(); | 668 var o = new api.Resource(); |
669 buildCounterResource++; | 669 buildCounterResource++; |
670 if (buildCounterResource < 3) { | 670 if (buildCounterResource < 3) { |
671 o.finalProperties = "foo"; | 671 o.finalProperties = "foo"; |
672 o.id = "foo"; | 672 o.id = "foo"; |
673 o.insertTime = "foo"; | 673 o.insertTime = "foo"; |
674 o.manifest = "foo"; | 674 o.manifest = "foo"; |
675 o.name = "foo"; | 675 o.name = "foo"; |
676 o.properties = "foo"; | 676 o.properties = "foo"; |
677 o.type = "foo"; | 677 o.type = "foo"; |
678 o.update = buildResourceUpdate(); | 678 o.update = buildResourceUpdate(); |
679 o.updateTime = "foo"; | 679 o.updateTime = "foo"; |
680 o.url = "foo"; | 680 o.url = "foo"; |
681 o.warnings = buildUnnamed1024(); | 681 o.warnings = buildUnnamed2243(); |
682 } | 682 } |
683 buildCounterResource--; | 683 buildCounterResource--; |
684 return o; | 684 return o; |
685 } | 685 } |
686 | 686 |
687 checkResource(api.Resource o) { | 687 checkResource(api.Resource o) { |
688 buildCounterResource++; | 688 buildCounterResource++; |
689 if (buildCounterResource < 3) { | 689 if (buildCounterResource < 3) { |
690 unittest.expect(o.finalProperties, unittest.equals('foo')); | 690 unittest.expect(o.finalProperties, unittest.equals('foo')); |
691 unittest.expect(o.id, unittest.equals('foo')); | 691 unittest.expect(o.id, unittest.equals('foo')); |
692 unittest.expect(o.insertTime, unittest.equals('foo')); | 692 unittest.expect(o.insertTime, unittest.equals('foo')); |
693 unittest.expect(o.manifest, unittest.equals('foo')); | 693 unittest.expect(o.manifest, unittest.equals('foo')); |
694 unittest.expect(o.name, unittest.equals('foo')); | 694 unittest.expect(o.name, unittest.equals('foo')); |
695 unittest.expect(o.properties, unittest.equals('foo')); | 695 unittest.expect(o.properties, unittest.equals('foo')); |
696 unittest.expect(o.type, unittest.equals('foo')); | 696 unittest.expect(o.type, unittest.equals('foo')); |
697 checkResourceUpdate(o.update); | 697 checkResourceUpdate(o.update); |
698 unittest.expect(o.updateTime, unittest.equals('foo')); | 698 unittest.expect(o.updateTime, unittest.equals('foo')); |
699 unittest.expect(o.url, unittest.equals('foo')); | 699 unittest.expect(o.url, unittest.equals('foo')); |
700 checkUnnamed1024(o.warnings); | 700 checkUnnamed2243(o.warnings); |
701 } | 701 } |
702 buildCounterResource--; | 702 buildCounterResource--; |
703 } | 703 } |
704 | 704 |
705 core.int buildCounterResourceUpdateErrorErrors = 0; | 705 core.int buildCounterResourceUpdateErrorErrors = 0; |
706 buildResourceUpdateErrorErrors() { | 706 buildResourceUpdateErrorErrors() { |
707 var o = new api.ResourceUpdateErrorErrors(); | 707 var o = new api.ResourceUpdateErrorErrors(); |
708 buildCounterResourceUpdateErrorErrors++; | 708 buildCounterResourceUpdateErrorErrors++; |
709 if (buildCounterResourceUpdateErrorErrors < 3) { | 709 if (buildCounterResourceUpdateErrorErrors < 3) { |
710 o.code = "foo"; | 710 o.code = "foo"; |
711 o.location = "foo"; | 711 o.location = "foo"; |
712 o.message = "foo"; | 712 o.message = "foo"; |
713 } | 713 } |
714 buildCounterResourceUpdateErrorErrors--; | 714 buildCounterResourceUpdateErrorErrors--; |
715 return o; | 715 return o; |
716 } | 716 } |
717 | 717 |
718 checkResourceUpdateErrorErrors(api.ResourceUpdateErrorErrors o) { | 718 checkResourceUpdateErrorErrors(api.ResourceUpdateErrorErrors o) { |
719 buildCounterResourceUpdateErrorErrors++; | 719 buildCounterResourceUpdateErrorErrors++; |
720 if (buildCounterResourceUpdateErrorErrors < 3) { | 720 if (buildCounterResourceUpdateErrorErrors < 3) { |
721 unittest.expect(o.code, unittest.equals('foo')); | 721 unittest.expect(o.code, unittest.equals('foo')); |
722 unittest.expect(o.location, unittest.equals('foo')); | 722 unittest.expect(o.location, unittest.equals('foo')); |
723 unittest.expect(o.message, unittest.equals('foo')); | 723 unittest.expect(o.message, unittest.equals('foo')); |
724 } | 724 } |
725 buildCounterResourceUpdateErrorErrors--; | 725 buildCounterResourceUpdateErrorErrors--; |
726 } | 726 } |
727 | 727 |
728 buildUnnamed1025() { | 728 buildUnnamed2244() { |
729 var o = new core.List<api.ResourceUpdateErrorErrors>(); | 729 var o = new core.List<api.ResourceUpdateErrorErrors>(); |
730 o.add(buildResourceUpdateErrorErrors()); | 730 o.add(buildResourceUpdateErrorErrors()); |
731 o.add(buildResourceUpdateErrorErrors()); | 731 o.add(buildResourceUpdateErrorErrors()); |
732 return o; | 732 return o; |
733 } | 733 } |
734 | 734 |
735 checkUnnamed1025(core.List<api.ResourceUpdateErrorErrors> o) { | 735 checkUnnamed2244(core.List<api.ResourceUpdateErrorErrors> o) { |
736 unittest.expect(o, unittest.hasLength(2)); | 736 unittest.expect(o, unittest.hasLength(2)); |
737 checkResourceUpdateErrorErrors(o[0]); | 737 checkResourceUpdateErrorErrors(o[0]); |
738 checkResourceUpdateErrorErrors(o[1]); | 738 checkResourceUpdateErrorErrors(o[1]); |
739 } | 739 } |
740 | 740 |
741 core.int buildCounterResourceUpdateError = 0; | 741 core.int buildCounterResourceUpdateError = 0; |
742 buildResourceUpdateError() { | 742 buildResourceUpdateError() { |
743 var o = new api.ResourceUpdateError(); | 743 var o = new api.ResourceUpdateError(); |
744 buildCounterResourceUpdateError++; | 744 buildCounterResourceUpdateError++; |
745 if (buildCounterResourceUpdateError < 3) { | 745 if (buildCounterResourceUpdateError < 3) { |
746 o.errors = buildUnnamed1025(); | 746 o.errors = buildUnnamed2244(); |
747 } | 747 } |
748 buildCounterResourceUpdateError--; | 748 buildCounterResourceUpdateError--; |
749 return o; | 749 return o; |
750 } | 750 } |
751 | 751 |
752 checkResourceUpdateError(api.ResourceUpdateError o) { | 752 checkResourceUpdateError(api.ResourceUpdateError o) { |
753 buildCounterResourceUpdateError++; | 753 buildCounterResourceUpdateError++; |
754 if (buildCounterResourceUpdateError < 3) { | 754 if (buildCounterResourceUpdateError < 3) { |
755 checkUnnamed1025(o.errors); | 755 checkUnnamed2244(o.errors); |
756 } | 756 } |
757 buildCounterResourceUpdateError--; | 757 buildCounterResourceUpdateError--; |
758 } | 758 } |
759 | 759 |
760 core.int buildCounterResourceUpdateWarningsData = 0; | 760 core.int buildCounterResourceUpdateWarningsData = 0; |
761 buildResourceUpdateWarningsData() { | 761 buildResourceUpdateWarningsData() { |
762 var o = new api.ResourceUpdateWarningsData(); | 762 var o = new api.ResourceUpdateWarningsData(); |
763 buildCounterResourceUpdateWarningsData++; | 763 buildCounterResourceUpdateWarningsData++; |
764 if (buildCounterResourceUpdateWarningsData < 3) { | 764 if (buildCounterResourceUpdateWarningsData < 3) { |
765 o.key = "foo"; | 765 o.key = "foo"; |
766 o.value = "foo"; | 766 o.value = "foo"; |
767 } | 767 } |
768 buildCounterResourceUpdateWarningsData--; | 768 buildCounterResourceUpdateWarningsData--; |
769 return o; | 769 return o; |
770 } | 770 } |
771 | 771 |
772 checkResourceUpdateWarningsData(api.ResourceUpdateWarningsData o) { | 772 checkResourceUpdateWarningsData(api.ResourceUpdateWarningsData o) { |
773 buildCounterResourceUpdateWarningsData++; | 773 buildCounterResourceUpdateWarningsData++; |
774 if (buildCounterResourceUpdateWarningsData < 3) { | 774 if (buildCounterResourceUpdateWarningsData < 3) { |
775 unittest.expect(o.key, unittest.equals('foo')); | 775 unittest.expect(o.key, unittest.equals('foo')); |
776 unittest.expect(o.value, unittest.equals('foo')); | 776 unittest.expect(o.value, unittest.equals('foo')); |
777 } | 777 } |
778 buildCounterResourceUpdateWarningsData--; | 778 buildCounterResourceUpdateWarningsData--; |
779 } | 779 } |
780 | 780 |
781 buildUnnamed1026() { | 781 buildUnnamed2245() { |
782 var o = new core.List<api.ResourceUpdateWarningsData>(); | 782 var o = new core.List<api.ResourceUpdateWarningsData>(); |
783 o.add(buildResourceUpdateWarningsData()); | 783 o.add(buildResourceUpdateWarningsData()); |
784 o.add(buildResourceUpdateWarningsData()); | 784 o.add(buildResourceUpdateWarningsData()); |
785 return o; | 785 return o; |
786 } | 786 } |
787 | 787 |
788 checkUnnamed1026(core.List<api.ResourceUpdateWarningsData> o) { | 788 checkUnnamed2245(core.List<api.ResourceUpdateWarningsData> o) { |
789 unittest.expect(o, unittest.hasLength(2)); | 789 unittest.expect(o, unittest.hasLength(2)); |
790 checkResourceUpdateWarningsData(o[0]); | 790 checkResourceUpdateWarningsData(o[0]); |
791 checkResourceUpdateWarningsData(o[1]); | 791 checkResourceUpdateWarningsData(o[1]); |
792 } | 792 } |
793 | 793 |
794 core.int buildCounterResourceUpdateWarnings = 0; | 794 core.int buildCounterResourceUpdateWarnings = 0; |
795 buildResourceUpdateWarnings() { | 795 buildResourceUpdateWarnings() { |
796 var o = new api.ResourceUpdateWarnings(); | 796 var o = new api.ResourceUpdateWarnings(); |
797 buildCounterResourceUpdateWarnings++; | 797 buildCounterResourceUpdateWarnings++; |
798 if (buildCounterResourceUpdateWarnings < 3) { | 798 if (buildCounterResourceUpdateWarnings < 3) { |
799 o.code = "foo"; | 799 o.code = "foo"; |
800 o.data = buildUnnamed1026(); | 800 o.data = buildUnnamed2245(); |
801 o.message = "foo"; | 801 o.message = "foo"; |
802 } | 802 } |
803 buildCounterResourceUpdateWarnings--; | 803 buildCounterResourceUpdateWarnings--; |
804 return o; | 804 return o; |
805 } | 805 } |
806 | 806 |
807 checkResourceUpdateWarnings(api.ResourceUpdateWarnings o) { | 807 checkResourceUpdateWarnings(api.ResourceUpdateWarnings o) { |
808 buildCounterResourceUpdateWarnings++; | 808 buildCounterResourceUpdateWarnings++; |
809 if (buildCounterResourceUpdateWarnings < 3) { | 809 if (buildCounterResourceUpdateWarnings < 3) { |
810 unittest.expect(o.code, unittest.equals('foo')); | 810 unittest.expect(o.code, unittest.equals('foo')); |
811 checkUnnamed1026(o.data); | 811 checkUnnamed2245(o.data); |
812 unittest.expect(o.message, unittest.equals('foo')); | 812 unittest.expect(o.message, unittest.equals('foo')); |
813 } | 813 } |
814 buildCounterResourceUpdateWarnings--; | 814 buildCounterResourceUpdateWarnings--; |
815 } | 815 } |
816 | 816 |
817 buildUnnamed1027() { | 817 buildUnnamed2246() { |
818 var o = new core.List<api.ResourceUpdateWarnings>(); | 818 var o = new core.List<api.ResourceUpdateWarnings>(); |
819 o.add(buildResourceUpdateWarnings()); | 819 o.add(buildResourceUpdateWarnings()); |
820 o.add(buildResourceUpdateWarnings()); | 820 o.add(buildResourceUpdateWarnings()); |
821 return o; | 821 return o; |
822 } | 822 } |
823 | 823 |
824 checkUnnamed1027(core.List<api.ResourceUpdateWarnings> o) { | 824 checkUnnamed2246(core.List<api.ResourceUpdateWarnings> o) { |
825 unittest.expect(o, unittest.hasLength(2)); | 825 unittest.expect(o, unittest.hasLength(2)); |
826 checkResourceUpdateWarnings(o[0]); | 826 checkResourceUpdateWarnings(o[0]); |
827 checkResourceUpdateWarnings(o[1]); | 827 checkResourceUpdateWarnings(o[1]); |
828 } | 828 } |
829 | 829 |
830 core.int buildCounterResourceUpdate = 0; | 830 core.int buildCounterResourceUpdate = 0; |
831 buildResourceUpdate() { | 831 buildResourceUpdate() { |
832 var o = new api.ResourceUpdate(); | 832 var o = new api.ResourceUpdate(); |
833 buildCounterResourceUpdate++; | 833 buildCounterResourceUpdate++; |
834 if (buildCounterResourceUpdate < 3) { | 834 if (buildCounterResourceUpdate < 3) { |
835 o.error = buildResourceUpdateError(); | 835 o.error = buildResourceUpdateError(); |
836 o.finalProperties = "foo"; | 836 o.finalProperties = "foo"; |
837 o.intent = "foo"; | 837 o.intent = "foo"; |
838 o.manifest = "foo"; | 838 o.manifest = "foo"; |
839 o.properties = "foo"; | 839 o.properties = "foo"; |
840 o.state = "foo"; | 840 o.state = "foo"; |
841 o.warnings = buildUnnamed1027(); | 841 o.warnings = buildUnnamed2246(); |
842 } | 842 } |
843 buildCounterResourceUpdate--; | 843 buildCounterResourceUpdate--; |
844 return o; | 844 return o; |
845 } | 845 } |
846 | 846 |
847 checkResourceUpdate(api.ResourceUpdate o) { | 847 checkResourceUpdate(api.ResourceUpdate o) { |
848 buildCounterResourceUpdate++; | 848 buildCounterResourceUpdate++; |
849 if (buildCounterResourceUpdate < 3) { | 849 if (buildCounterResourceUpdate < 3) { |
850 checkResourceUpdateError(o.error); | 850 checkResourceUpdateError(o.error); |
851 unittest.expect(o.finalProperties, unittest.equals('foo')); | 851 unittest.expect(o.finalProperties, unittest.equals('foo')); |
852 unittest.expect(o.intent, unittest.equals('foo')); | 852 unittest.expect(o.intent, unittest.equals('foo')); |
853 unittest.expect(o.manifest, unittest.equals('foo')); | 853 unittest.expect(o.manifest, unittest.equals('foo')); |
854 unittest.expect(o.properties, unittest.equals('foo')); | 854 unittest.expect(o.properties, unittest.equals('foo')); |
855 unittest.expect(o.state, unittest.equals('foo')); | 855 unittest.expect(o.state, unittest.equals('foo')); |
856 checkUnnamed1027(o.warnings); | 856 checkUnnamed2246(o.warnings); |
857 } | 857 } |
858 buildCounterResourceUpdate--; | 858 buildCounterResourceUpdate--; |
859 } | 859 } |
860 | 860 |
861 buildUnnamed1028() { | 861 buildUnnamed2247() { |
862 var o = new core.List<api.Resource>(); | 862 var o = new core.List<api.Resource>(); |
863 o.add(buildResource()); | 863 o.add(buildResource()); |
864 o.add(buildResource()); | 864 o.add(buildResource()); |
865 return o; | 865 return o; |
866 } | 866 } |
867 | 867 |
868 checkUnnamed1028(core.List<api.Resource> o) { | 868 checkUnnamed2247(core.List<api.Resource> o) { |
869 unittest.expect(o, unittest.hasLength(2)); | 869 unittest.expect(o, unittest.hasLength(2)); |
870 checkResource(o[0]); | 870 checkResource(o[0]); |
871 checkResource(o[1]); | 871 checkResource(o[1]); |
872 } | 872 } |
873 | 873 |
874 core.int buildCounterResourcesListResponse = 0; | 874 core.int buildCounterResourcesListResponse = 0; |
875 buildResourcesListResponse() { | 875 buildResourcesListResponse() { |
876 var o = new api.ResourcesListResponse(); | 876 var o = new api.ResourcesListResponse(); |
877 buildCounterResourcesListResponse++; | 877 buildCounterResourcesListResponse++; |
878 if (buildCounterResourcesListResponse < 3) { | 878 if (buildCounterResourcesListResponse < 3) { |
879 o.nextPageToken = "foo"; | 879 o.nextPageToken = "foo"; |
880 o.resources = buildUnnamed1028(); | 880 o.resources = buildUnnamed2247(); |
881 } | 881 } |
882 buildCounterResourcesListResponse--; | 882 buildCounterResourcesListResponse--; |
883 return o; | 883 return o; |
884 } | 884 } |
885 | 885 |
886 checkResourcesListResponse(api.ResourcesListResponse o) { | 886 checkResourcesListResponse(api.ResourcesListResponse o) { |
887 buildCounterResourcesListResponse++; | 887 buildCounterResourcesListResponse++; |
888 if (buildCounterResourcesListResponse < 3) { | 888 if (buildCounterResourcesListResponse < 3) { |
889 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 889 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
890 checkUnnamed1028(o.resources); | 890 checkUnnamed2247(o.resources); |
891 } | 891 } |
892 buildCounterResourcesListResponse--; | 892 buildCounterResourcesListResponse--; |
893 } | 893 } |
894 | 894 |
895 buildUnnamed1029() { | 895 buildUnnamed2248() { |
896 var o = new core.List<api.ImportFile>(); | 896 var o = new core.List<api.ImportFile>(); |
897 o.add(buildImportFile()); | 897 o.add(buildImportFile()); |
898 o.add(buildImportFile()); | 898 o.add(buildImportFile()); |
899 return o; | 899 return o; |
900 } | 900 } |
901 | 901 |
902 checkUnnamed1029(core.List<api.ImportFile> o) { | 902 checkUnnamed2248(core.List<api.ImportFile> o) { |
903 unittest.expect(o, unittest.hasLength(2)); | 903 unittest.expect(o, unittest.hasLength(2)); |
904 checkImportFile(o[0]); | 904 checkImportFile(o[0]); |
905 checkImportFile(o[1]); | 905 checkImportFile(o[1]); |
906 } | 906 } |
907 | 907 |
908 core.int buildCounterTargetConfiguration = 0; | 908 core.int buildCounterTargetConfiguration = 0; |
909 buildTargetConfiguration() { | 909 buildTargetConfiguration() { |
910 var o = new api.TargetConfiguration(); | 910 var o = new api.TargetConfiguration(); |
911 buildCounterTargetConfiguration++; | 911 buildCounterTargetConfiguration++; |
912 if (buildCounterTargetConfiguration < 3) { | 912 if (buildCounterTargetConfiguration < 3) { |
913 o.config = buildConfigFile(); | 913 o.config = buildConfigFile(); |
914 o.imports = buildUnnamed1029(); | 914 o.imports = buildUnnamed2248(); |
915 } | 915 } |
916 buildCounterTargetConfiguration--; | 916 buildCounterTargetConfiguration--; |
917 return o; | 917 return o; |
918 } | 918 } |
919 | 919 |
920 checkTargetConfiguration(api.TargetConfiguration o) { | 920 checkTargetConfiguration(api.TargetConfiguration o) { |
921 buildCounterTargetConfiguration++; | 921 buildCounterTargetConfiguration++; |
922 if (buildCounterTargetConfiguration < 3) { | 922 if (buildCounterTargetConfiguration < 3) { |
923 checkConfigFile(o.config); | 923 checkConfigFile(o.config); |
924 checkUnnamed1029(o.imports); | 924 checkUnnamed2248(o.imports); |
925 } | 925 } |
926 buildCounterTargetConfiguration--; | 926 buildCounterTargetConfiguration--; |
927 } | 927 } |
928 | 928 |
929 core.int buildCounterType = 0; | 929 core.int buildCounterType = 0; |
930 buildType() { | 930 buildType() { |
931 var o = new api.Type(); | 931 var o = new api.Type(); |
932 buildCounterType++; | 932 buildCounterType++; |
933 if (buildCounterType < 3) { | 933 if (buildCounterType < 3) { |
934 o.id = "foo"; | 934 o.id = "foo"; |
935 o.insertTime = "foo"; | 935 o.insertTime = "foo"; |
936 o.name = "foo"; | 936 o.name = "foo"; |
937 o.selfLink = "foo"; | 937 o.selfLink = "foo"; |
938 } | 938 } |
939 buildCounterType--; | 939 buildCounterType--; |
940 return o; | 940 return o; |
941 } | 941 } |
942 | 942 |
943 checkType(api.Type o) { | 943 checkType(api.Type o) { |
944 buildCounterType++; | 944 buildCounterType++; |
945 if (buildCounterType < 3) { | 945 if (buildCounterType < 3) { |
946 unittest.expect(o.id, unittest.equals('foo')); | 946 unittest.expect(o.id, unittest.equals('foo')); |
947 unittest.expect(o.insertTime, unittest.equals('foo')); | 947 unittest.expect(o.insertTime, unittest.equals('foo')); |
948 unittest.expect(o.name, unittest.equals('foo')); | 948 unittest.expect(o.name, unittest.equals('foo')); |
949 unittest.expect(o.selfLink, unittest.equals('foo')); | 949 unittest.expect(o.selfLink, unittest.equals('foo')); |
950 } | 950 } |
951 buildCounterType--; | 951 buildCounterType--; |
952 } | 952 } |
953 | 953 |
954 buildUnnamed1030() { | 954 buildUnnamed2249() { |
955 var o = new core.List<api.Type>(); | 955 var o = new core.List<api.Type>(); |
956 o.add(buildType()); | 956 o.add(buildType()); |
957 o.add(buildType()); | 957 o.add(buildType()); |
958 return o; | 958 return o; |
959 } | 959 } |
960 | 960 |
961 checkUnnamed1030(core.List<api.Type> o) { | 961 checkUnnamed2249(core.List<api.Type> o) { |
962 unittest.expect(o, unittest.hasLength(2)); | 962 unittest.expect(o, unittest.hasLength(2)); |
963 checkType(o[0]); | 963 checkType(o[0]); |
964 checkType(o[1]); | 964 checkType(o[1]); |
965 } | 965 } |
966 | 966 |
967 core.int buildCounterTypesListResponse = 0; | 967 core.int buildCounterTypesListResponse = 0; |
968 buildTypesListResponse() { | 968 buildTypesListResponse() { |
969 var o = new api.TypesListResponse(); | 969 var o = new api.TypesListResponse(); |
970 buildCounterTypesListResponse++; | 970 buildCounterTypesListResponse++; |
971 if (buildCounterTypesListResponse < 3) { | 971 if (buildCounterTypesListResponse < 3) { |
972 o.nextPageToken = "foo"; | 972 o.nextPageToken = "foo"; |
973 o.types = buildUnnamed1030(); | 973 o.types = buildUnnamed2249(); |
974 } | 974 } |
975 buildCounterTypesListResponse--; | 975 buildCounterTypesListResponse--; |
976 return o; | 976 return o; |
977 } | 977 } |
978 | 978 |
979 checkTypesListResponse(api.TypesListResponse o) { | 979 checkTypesListResponse(api.TypesListResponse o) { |
980 buildCounterTypesListResponse++; | 980 buildCounterTypesListResponse++; |
981 if (buildCounterTypesListResponse < 3) { | 981 if (buildCounterTypesListResponse < 3) { |
982 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 982 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
983 checkUnnamed1030(o.types); | 983 checkUnnamed2249(o.types); |
984 } | 984 } |
985 buildCounterTypesListResponse--; | 985 buildCounterTypesListResponse--; |
986 } | 986 } |
987 | 987 |
988 | 988 |
989 main() { | 989 main() { |
990 unittest.group("obj-schema-ConfigFile", () { | 990 unittest.group("obj-schema-ConfigFile", () { |
991 unittest.test("to-json--from-json", () { | 991 unittest.test("to-json--from-json", () { |
992 var o = buildConfigFile(); | 992 var o = buildConfigFile(); |
993 var od = new api.ConfigFile.fromJson(o.toJson()); | 993 var od = new api.ConfigFile.fromJson(o.toJson()); |
(...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1970 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.TypesListResponse response
) { | 1970 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.TypesListResponse response
) { |
1971 checkTypesListResponse(response); | 1971 checkTypesListResponse(response); |
1972 }))); | 1972 }))); |
1973 }); | 1973 }); |
1974 | 1974 |
1975 }); | 1975 }); |
1976 | 1976 |
1977 | 1977 |
1978 } | 1978 } |
1979 | 1979 |
OLD | NEW |