OLD | NEW |
1 library googleapis_beta.deploymentmanager.v2beta1.test; | 1 library googleapis_beta.deploymentmanager.v2beta1.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 25 matching lines...) Expand all Loading... |
36 if (buildCounterDeployment < 3) { | 36 if (buildCounterDeployment < 3) { |
37 unittest.expect(o.description, unittest.equals('foo')); | 37 unittest.expect(o.description, unittest.equals('foo')); |
38 unittest.expect(o.id, unittest.equals('foo')); | 38 unittest.expect(o.id, unittest.equals('foo')); |
39 unittest.expect(o.manifest, unittest.equals('foo')); | 39 unittest.expect(o.manifest, unittest.equals('foo')); |
40 unittest.expect(o.name, unittest.equals('foo')); | 40 unittest.expect(o.name, unittest.equals('foo')); |
41 unittest.expect(o.targetConfig, unittest.equals('foo')); | 41 unittest.expect(o.targetConfig, unittest.equals('foo')); |
42 } | 42 } |
43 buildCounterDeployment--; | 43 buildCounterDeployment--; |
44 } | 44 } |
45 | 45 |
46 buildUnnamed1549() { | 46 buildUnnamed1616() { |
47 var o = new core.List<api.Deployment>(); | 47 var o = new core.List<api.Deployment>(); |
48 o.add(buildDeployment()); | 48 o.add(buildDeployment()); |
49 o.add(buildDeployment()); | 49 o.add(buildDeployment()); |
50 return o; | 50 return o; |
51 } | 51 } |
52 | 52 |
53 checkUnnamed1549(core.List<api.Deployment> o) { | 53 checkUnnamed1616(core.List<api.Deployment> o) { |
54 unittest.expect(o, unittest.hasLength(2)); | 54 unittest.expect(o, unittest.hasLength(2)); |
55 checkDeployment(o[0]); | 55 checkDeployment(o[0]); |
56 checkDeployment(o[1]); | 56 checkDeployment(o[1]); |
57 } | 57 } |
58 | 58 |
59 core.int buildCounterDeploymentsListResponse = 0; | 59 core.int buildCounterDeploymentsListResponse = 0; |
60 buildDeploymentsListResponse() { | 60 buildDeploymentsListResponse() { |
61 var o = new api.DeploymentsListResponse(); | 61 var o = new api.DeploymentsListResponse(); |
62 buildCounterDeploymentsListResponse++; | 62 buildCounterDeploymentsListResponse++; |
63 if (buildCounterDeploymentsListResponse < 3) { | 63 if (buildCounterDeploymentsListResponse < 3) { |
64 o.deployments = buildUnnamed1549(); | 64 o.deployments = buildUnnamed1616(); |
65 o.nextPageToken = "foo"; | 65 o.nextPageToken = "foo"; |
66 } | 66 } |
67 buildCounterDeploymentsListResponse--; | 67 buildCounterDeploymentsListResponse--; |
68 return o; | 68 return o; |
69 } | 69 } |
70 | 70 |
71 checkDeploymentsListResponse(api.DeploymentsListResponse o) { | 71 checkDeploymentsListResponse(api.DeploymentsListResponse o) { |
72 buildCounterDeploymentsListResponse++; | 72 buildCounterDeploymentsListResponse++; |
73 if (buildCounterDeploymentsListResponse < 3) { | 73 if (buildCounterDeploymentsListResponse < 3) { |
74 checkUnnamed1549(o.deployments); | 74 checkUnnamed1616(o.deployments); |
75 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 75 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
76 } | 76 } |
77 buildCounterDeploymentsListResponse--; | 77 buildCounterDeploymentsListResponse--; |
78 } | 78 } |
79 | 79 |
80 core.int buildCounterManifest = 0; | 80 core.int buildCounterManifest = 0; |
81 buildManifest() { | 81 buildManifest() { |
82 var o = new api.Manifest(); | 82 var o = new api.Manifest(); |
83 buildCounterManifest++; | 83 buildCounterManifest++; |
84 if (buildCounterManifest < 3) { | 84 if (buildCounterManifest < 3) { |
(...skipping 12 matching lines...) Expand all Loading... |
97 if (buildCounterManifest < 3) { | 97 if (buildCounterManifest < 3) { |
98 unittest.expect(o.config, unittest.equals('foo')); | 98 unittest.expect(o.config, unittest.equals('foo')); |
99 unittest.expect(o.evaluatedConfig, unittest.equals('foo')); | 99 unittest.expect(o.evaluatedConfig, unittest.equals('foo')); |
100 unittest.expect(o.id, unittest.equals('foo')); | 100 unittest.expect(o.id, unittest.equals('foo')); |
101 unittest.expect(o.name, unittest.equals('foo')); | 101 unittest.expect(o.name, unittest.equals('foo')); |
102 unittest.expect(o.selfLink, unittest.equals('foo')); | 102 unittest.expect(o.selfLink, unittest.equals('foo')); |
103 } | 103 } |
104 buildCounterManifest--; | 104 buildCounterManifest--; |
105 } | 105 } |
106 | 106 |
107 buildUnnamed1550() { | 107 buildUnnamed1617() { |
108 var o = new core.List<api.Manifest>(); | 108 var o = new core.List<api.Manifest>(); |
109 o.add(buildManifest()); | 109 o.add(buildManifest()); |
110 o.add(buildManifest()); | 110 o.add(buildManifest()); |
111 return o; | 111 return o; |
112 } | 112 } |
113 | 113 |
114 checkUnnamed1550(core.List<api.Manifest> o) { | 114 checkUnnamed1617(core.List<api.Manifest> o) { |
115 unittest.expect(o, unittest.hasLength(2)); | 115 unittest.expect(o, unittest.hasLength(2)); |
116 checkManifest(o[0]); | 116 checkManifest(o[0]); |
117 checkManifest(o[1]); | 117 checkManifest(o[1]); |
118 } | 118 } |
119 | 119 |
120 core.int buildCounterManifestsListResponse = 0; | 120 core.int buildCounterManifestsListResponse = 0; |
121 buildManifestsListResponse() { | 121 buildManifestsListResponse() { |
122 var o = new api.ManifestsListResponse(); | 122 var o = new api.ManifestsListResponse(); |
123 buildCounterManifestsListResponse++; | 123 buildCounterManifestsListResponse++; |
124 if (buildCounterManifestsListResponse < 3) { | 124 if (buildCounterManifestsListResponse < 3) { |
125 o.manifests = buildUnnamed1550(); | 125 o.manifests = buildUnnamed1617(); |
126 o.nextPageToken = "foo"; | 126 o.nextPageToken = "foo"; |
127 } | 127 } |
128 buildCounterManifestsListResponse--; | 128 buildCounterManifestsListResponse--; |
129 return o; | 129 return o; |
130 } | 130 } |
131 | 131 |
132 checkManifestsListResponse(api.ManifestsListResponse o) { | 132 checkManifestsListResponse(api.ManifestsListResponse o) { |
133 buildCounterManifestsListResponse++; | 133 buildCounterManifestsListResponse++; |
134 if (buildCounterManifestsListResponse < 3) { | 134 if (buildCounterManifestsListResponse < 3) { |
135 checkUnnamed1550(o.manifests); | 135 checkUnnamed1617(o.manifests); |
136 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 136 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
137 } | 137 } |
138 buildCounterManifestsListResponse--; | 138 buildCounterManifestsListResponse--; |
139 } | 139 } |
140 | 140 |
141 core.int buildCounterOperationErrorErrors = 0; | 141 core.int buildCounterOperationErrorErrors = 0; |
142 buildOperationErrorErrors() { | 142 buildOperationErrorErrors() { |
143 var o = new api.OperationErrorErrors(); | 143 var o = new api.OperationErrorErrors(); |
144 buildCounterOperationErrorErrors++; | 144 buildCounterOperationErrorErrors++; |
145 if (buildCounterOperationErrorErrors < 3) { | 145 if (buildCounterOperationErrorErrors < 3) { |
146 o.code = "foo"; | 146 o.code = "foo"; |
147 o.location = "foo"; | 147 o.location = "foo"; |
148 o.message = "foo"; | 148 o.message = "foo"; |
149 } | 149 } |
150 buildCounterOperationErrorErrors--; | 150 buildCounterOperationErrorErrors--; |
151 return o; | 151 return o; |
152 } | 152 } |
153 | 153 |
154 checkOperationErrorErrors(api.OperationErrorErrors o) { | 154 checkOperationErrorErrors(api.OperationErrorErrors o) { |
155 buildCounterOperationErrorErrors++; | 155 buildCounterOperationErrorErrors++; |
156 if (buildCounterOperationErrorErrors < 3) { | 156 if (buildCounterOperationErrorErrors < 3) { |
157 unittest.expect(o.code, unittest.equals('foo')); | 157 unittest.expect(o.code, unittest.equals('foo')); |
158 unittest.expect(o.location, unittest.equals('foo')); | 158 unittest.expect(o.location, unittest.equals('foo')); |
159 unittest.expect(o.message, unittest.equals('foo')); | 159 unittest.expect(o.message, unittest.equals('foo')); |
160 } | 160 } |
161 buildCounterOperationErrorErrors--; | 161 buildCounterOperationErrorErrors--; |
162 } | 162 } |
163 | 163 |
164 buildUnnamed1551() { | 164 buildUnnamed1618() { |
165 var o = new core.List<api.OperationErrorErrors>(); | 165 var o = new core.List<api.OperationErrorErrors>(); |
166 o.add(buildOperationErrorErrors()); | 166 o.add(buildOperationErrorErrors()); |
167 o.add(buildOperationErrorErrors()); | 167 o.add(buildOperationErrorErrors()); |
168 return o; | 168 return o; |
169 } | 169 } |
170 | 170 |
171 checkUnnamed1551(core.List<api.OperationErrorErrors> o) { | 171 checkUnnamed1618(core.List<api.OperationErrorErrors> o) { |
172 unittest.expect(o, unittest.hasLength(2)); | 172 unittest.expect(o, unittest.hasLength(2)); |
173 checkOperationErrorErrors(o[0]); | 173 checkOperationErrorErrors(o[0]); |
174 checkOperationErrorErrors(o[1]); | 174 checkOperationErrorErrors(o[1]); |
175 } | 175 } |
176 | 176 |
177 core.int buildCounterOperationError = 0; | 177 core.int buildCounterOperationError = 0; |
178 buildOperationError() { | 178 buildOperationError() { |
179 var o = new api.OperationError(); | 179 var o = new api.OperationError(); |
180 buildCounterOperationError++; | 180 buildCounterOperationError++; |
181 if (buildCounterOperationError < 3) { | 181 if (buildCounterOperationError < 3) { |
182 o.errors = buildUnnamed1551(); | 182 o.errors = buildUnnamed1618(); |
183 } | 183 } |
184 buildCounterOperationError--; | 184 buildCounterOperationError--; |
185 return o; | 185 return o; |
186 } | 186 } |
187 | 187 |
188 checkOperationError(api.OperationError o) { | 188 checkOperationError(api.OperationError o) { |
189 buildCounterOperationError++; | 189 buildCounterOperationError++; |
190 if (buildCounterOperationError < 3) { | 190 if (buildCounterOperationError < 3) { |
191 checkUnnamed1551(o.errors); | 191 checkUnnamed1618(o.errors); |
192 } | 192 } |
193 buildCounterOperationError--; | 193 buildCounterOperationError--; |
194 } | 194 } |
195 | 195 |
196 core.int buildCounterOperationWarningsData = 0; | 196 core.int buildCounterOperationWarningsData = 0; |
197 buildOperationWarningsData() { | 197 buildOperationWarningsData() { |
198 var o = new api.OperationWarningsData(); | 198 var o = new api.OperationWarningsData(); |
199 buildCounterOperationWarningsData++; | 199 buildCounterOperationWarningsData++; |
200 if (buildCounterOperationWarningsData < 3) { | 200 if (buildCounterOperationWarningsData < 3) { |
201 o.key = "foo"; | 201 o.key = "foo"; |
202 o.value = "foo"; | 202 o.value = "foo"; |
203 } | 203 } |
204 buildCounterOperationWarningsData--; | 204 buildCounterOperationWarningsData--; |
205 return o; | 205 return o; |
206 } | 206 } |
207 | 207 |
208 checkOperationWarningsData(api.OperationWarningsData o) { | 208 checkOperationWarningsData(api.OperationWarningsData o) { |
209 buildCounterOperationWarningsData++; | 209 buildCounterOperationWarningsData++; |
210 if (buildCounterOperationWarningsData < 3) { | 210 if (buildCounterOperationWarningsData < 3) { |
211 unittest.expect(o.key, unittest.equals('foo')); | 211 unittest.expect(o.key, unittest.equals('foo')); |
212 unittest.expect(o.value, unittest.equals('foo')); | 212 unittest.expect(o.value, unittest.equals('foo')); |
213 } | 213 } |
214 buildCounterOperationWarningsData--; | 214 buildCounterOperationWarningsData--; |
215 } | 215 } |
216 | 216 |
217 buildUnnamed1552() { | 217 buildUnnamed1619() { |
218 var o = new core.List<api.OperationWarningsData>(); | 218 var o = new core.List<api.OperationWarningsData>(); |
219 o.add(buildOperationWarningsData()); | 219 o.add(buildOperationWarningsData()); |
220 o.add(buildOperationWarningsData()); | 220 o.add(buildOperationWarningsData()); |
221 return o; | 221 return o; |
222 } | 222 } |
223 | 223 |
224 checkUnnamed1552(core.List<api.OperationWarningsData> o) { | 224 checkUnnamed1619(core.List<api.OperationWarningsData> o) { |
225 unittest.expect(o, unittest.hasLength(2)); | 225 unittest.expect(o, unittest.hasLength(2)); |
226 checkOperationWarningsData(o[0]); | 226 checkOperationWarningsData(o[0]); |
227 checkOperationWarningsData(o[1]); | 227 checkOperationWarningsData(o[1]); |
228 } | 228 } |
229 | 229 |
230 core.int buildCounterOperationWarnings = 0; | 230 core.int buildCounterOperationWarnings = 0; |
231 buildOperationWarnings() { | 231 buildOperationWarnings() { |
232 var o = new api.OperationWarnings(); | 232 var o = new api.OperationWarnings(); |
233 buildCounterOperationWarnings++; | 233 buildCounterOperationWarnings++; |
234 if (buildCounterOperationWarnings < 3) { | 234 if (buildCounterOperationWarnings < 3) { |
235 o.code = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 235 o.code = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
236 o.data = buildUnnamed1552(); | 236 o.data = buildUnnamed1619(); |
237 o.message = "foo"; | 237 o.message = "foo"; |
238 } | 238 } |
239 buildCounterOperationWarnings--; | 239 buildCounterOperationWarnings--; |
240 return o; | 240 return o; |
241 } | 241 } |
242 | 242 |
243 checkOperationWarnings(api.OperationWarnings o) { | 243 checkOperationWarnings(api.OperationWarnings o) { |
244 buildCounterOperationWarnings++; | 244 buildCounterOperationWarnings++; |
245 if (buildCounterOperationWarnings < 3) { | 245 if (buildCounterOperationWarnings < 3) { |
246 var casted1 = (o.code) as core.Map; unittest.expect(casted1, unittest.hasLen
gth(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.
expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"
], unittest.equals('foo')); | 246 var casted1 = (o.code) as core.Map; unittest.expect(casted1, unittest.hasLen
gth(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.
expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"
], unittest.equals('foo')); |
247 checkUnnamed1552(o.data); | 247 checkUnnamed1619(o.data); |
248 unittest.expect(o.message, unittest.equals('foo')); | 248 unittest.expect(o.message, unittest.equals('foo')); |
249 } | 249 } |
250 buildCounterOperationWarnings--; | 250 buildCounterOperationWarnings--; |
251 } | 251 } |
252 | 252 |
253 buildUnnamed1553() { | 253 buildUnnamed1620() { |
254 var o = new core.List<api.OperationWarnings>(); | 254 var o = new core.List<api.OperationWarnings>(); |
255 o.add(buildOperationWarnings()); | 255 o.add(buildOperationWarnings()); |
256 o.add(buildOperationWarnings()); | 256 o.add(buildOperationWarnings()); |
257 return o; | 257 return o; |
258 } | 258 } |
259 | 259 |
260 checkUnnamed1553(core.List<api.OperationWarnings> o) { | 260 checkUnnamed1620(core.List<api.OperationWarnings> o) { |
261 unittest.expect(o, unittest.hasLength(2)); | 261 unittest.expect(o, unittest.hasLength(2)); |
262 checkOperationWarnings(o[0]); | 262 checkOperationWarnings(o[0]); |
263 checkOperationWarnings(o[1]); | 263 checkOperationWarnings(o[1]); |
264 } | 264 } |
265 | 265 |
266 core.int buildCounterOperation = 0; | 266 core.int buildCounterOperation = 0; |
267 buildOperation() { | 267 buildOperation() { |
268 var o = new api.Operation(); | 268 var o = new api.Operation(); |
269 buildCounterOperation++; | 269 buildCounterOperation++; |
270 if (buildCounterOperation < 3) { | 270 if (buildCounterOperation < 3) { |
271 o.creationTimestamp = "foo"; | 271 o.creationTimestamp = "foo"; |
272 o.endTime = "foo"; | 272 o.endTime = "foo"; |
273 o.error = buildOperationError(); | 273 o.error = buildOperationError(); |
274 o.httpErrorMessage = "foo"; | 274 o.httpErrorMessage = "foo"; |
275 o.httpErrorStatusCode = 42; | 275 o.httpErrorStatusCode = 42; |
276 o.id = "foo"; | 276 o.id = "foo"; |
277 o.insertTime = "foo"; | 277 o.insertTime = "foo"; |
278 o.name = "foo"; | 278 o.name = "foo"; |
279 o.operationType = "foo"; | 279 o.operationType = "foo"; |
280 o.progress = 42; | 280 o.progress = 42; |
281 o.selfLink = "foo"; | 281 o.selfLink = "foo"; |
282 o.startTime = "foo"; | 282 o.startTime = "foo"; |
283 o.status = "foo"; | 283 o.status = "foo"; |
284 o.statusMessage = "foo"; | 284 o.statusMessage = "foo"; |
285 o.targetId = "foo"; | 285 o.targetId = "foo"; |
286 o.targetLink = "foo"; | 286 o.targetLink = "foo"; |
287 o.user = "foo"; | 287 o.user = "foo"; |
288 o.warnings = buildUnnamed1553(); | 288 o.warnings = buildUnnamed1620(); |
289 } | 289 } |
290 buildCounterOperation--; | 290 buildCounterOperation--; |
291 return o; | 291 return o; |
292 } | 292 } |
293 | 293 |
294 checkOperation(api.Operation o) { | 294 checkOperation(api.Operation o) { |
295 buildCounterOperation++; | 295 buildCounterOperation++; |
296 if (buildCounterOperation < 3) { | 296 if (buildCounterOperation < 3) { |
297 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 297 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
298 unittest.expect(o.endTime, unittest.equals('foo')); | 298 unittest.expect(o.endTime, unittest.equals('foo')); |
299 checkOperationError(o.error); | 299 checkOperationError(o.error); |
300 unittest.expect(o.httpErrorMessage, unittest.equals('foo')); | 300 unittest.expect(o.httpErrorMessage, unittest.equals('foo')); |
301 unittest.expect(o.httpErrorStatusCode, unittest.equals(42)); | 301 unittest.expect(o.httpErrorStatusCode, unittest.equals(42)); |
302 unittest.expect(o.id, unittest.equals('foo')); | 302 unittest.expect(o.id, unittest.equals('foo')); |
303 unittest.expect(o.insertTime, unittest.equals('foo')); | 303 unittest.expect(o.insertTime, unittest.equals('foo')); |
304 unittest.expect(o.name, unittest.equals('foo')); | 304 unittest.expect(o.name, unittest.equals('foo')); |
305 unittest.expect(o.operationType, unittest.equals('foo')); | 305 unittest.expect(o.operationType, unittest.equals('foo')); |
306 unittest.expect(o.progress, unittest.equals(42)); | 306 unittest.expect(o.progress, unittest.equals(42)); |
307 unittest.expect(o.selfLink, unittest.equals('foo')); | 307 unittest.expect(o.selfLink, unittest.equals('foo')); |
308 unittest.expect(o.startTime, unittest.equals('foo')); | 308 unittest.expect(o.startTime, unittest.equals('foo')); |
309 unittest.expect(o.status, unittest.equals('foo')); | 309 unittest.expect(o.status, unittest.equals('foo')); |
310 unittest.expect(o.statusMessage, unittest.equals('foo')); | 310 unittest.expect(o.statusMessage, unittest.equals('foo')); |
311 unittest.expect(o.targetId, unittest.equals('foo')); | 311 unittest.expect(o.targetId, unittest.equals('foo')); |
312 unittest.expect(o.targetLink, unittest.equals('foo')); | 312 unittest.expect(o.targetLink, unittest.equals('foo')); |
313 unittest.expect(o.user, unittest.equals('foo')); | 313 unittest.expect(o.user, unittest.equals('foo')); |
314 checkUnnamed1553(o.warnings); | 314 checkUnnamed1620(o.warnings); |
315 } | 315 } |
316 buildCounterOperation--; | 316 buildCounterOperation--; |
317 } | 317 } |
318 | 318 |
319 buildUnnamed1554() { | 319 buildUnnamed1621() { |
320 var o = new core.List<api.Operation>(); | 320 var o = new core.List<api.Operation>(); |
321 o.add(buildOperation()); | 321 o.add(buildOperation()); |
322 o.add(buildOperation()); | 322 o.add(buildOperation()); |
323 return o; | 323 return o; |
324 } | 324 } |
325 | 325 |
326 checkUnnamed1554(core.List<api.Operation> o) { | 326 checkUnnamed1621(core.List<api.Operation> o) { |
327 unittest.expect(o, unittest.hasLength(2)); | 327 unittest.expect(o, unittest.hasLength(2)); |
328 checkOperation(o[0]); | 328 checkOperation(o[0]); |
329 checkOperation(o[1]); | 329 checkOperation(o[1]); |
330 } | 330 } |
331 | 331 |
332 core.int buildCounterOperationsListResponse = 0; | 332 core.int buildCounterOperationsListResponse = 0; |
333 buildOperationsListResponse() { | 333 buildOperationsListResponse() { |
334 var o = new api.OperationsListResponse(); | 334 var o = new api.OperationsListResponse(); |
335 buildCounterOperationsListResponse++; | 335 buildCounterOperationsListResponse++; |
336 if (buildCounterOperationsListResponse < 3) { | 336 if (buildCounterOperationsListResponse < 3) { |
337 o.nextPageToken = "foo"; | 337 o.nextPageToken = "foo"; |
338 o.operations = buildUnnamed1554(); | 338 o.operations = buildUnnamed1621(); |
339 } | 339 } |
340 buildCounterOperationsListResponse--; | 340 buildCounterOperationsListResponse--; |
341 return o; | 341 return o; |
342 } | 342 } |
343 | 343 |
344 checkOperationsListResponse(api.OperationsListResponse o) { | 344 checkOperationsListResponse(api.OperationsListResponse o) { |
345 buildCounterOperationsListResponse++; | 345 buildCounterOperationsListResponse++; |
346 if (buildCounterOperationsListResponse < 3) { | 346 if (buildCounterOperationsListResponse < 3) { |
347 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 347 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
348 checkUnnamed1554(o.operations); | 348 checkUnnamed1621(o.operations); |
349 } | 349 } |
350 buildCounterOperationsListResponse--; | 350 buildCounterOperationsListResponse--; |
351 } | 351 } |
352 | 352 |
353 buildUnnamed1555() { | 353 buildUnnamed1622() { |
354 var o = new core.List<core.String>(); | 354 var o = new core.List<core.String>(); |
355 o.add("foo"); | 355 o.add("foo"); |
356 o.add("foo"); | 356 o.add("foo"); |
357 return o; | 357 return o; |
358 } | 358 } |
359 | 359 |
360 checkUnnamed1555(core.List<core.String> o) { | 360 checkUnnamed1622(core.List<core.String> o) { |
361 unittest.expect(o, unittest.hasLength(2)); | 361 unittest.expect(o, unittest.hasLength(2)); |
362 unittest.expect(o[0], unittest.equals('foo')); | 362 unittest.expect(o[0], unittest.equals('foo')); |
363 unittest.expect(o[1], unittest.equals('foo')); | 363 unittest.expect(o[1], unittest.equals('foo')); |
364 } | 364 } |
365 | 365 |
366 core.int buildCounterResource = 0; | 366 core.int buildCounterResource = 0; |
367 buildResource() { | 367 buildResource() { |
368 var o = new api.Resource(); | 368 var o = new api.Resource(); |
369 buildCounterResource++; | 369 buildCounterResource++; |
370 if (buildCounterResource < 3) { | 370 if (buildCounterResource < 3) { |
371 o.errors = buildUnnamed1555(); | 371 o.errors = buildUnnamed1622(); |
372 o.id = "foo"; | 372 o.id = "foo"; |
373 o.intent = "foo"; | 373 o.intent = "foo"; |
374 o.manifest = "foo"; | 374 o.manifest = "foo"; |
375 o.name = "foo"; | 375 o.name = "foo"; |
376 o.state = "foo"; | 376 o.state = "foo"; |
377 o.type = "foo"; | 377 o.type = "foo"; |
378 o.url = "foo"; | 378 o.url = "foo"; |
379 } | 379 } |
380 buildCounterResource--; | 380 buildCounterResource--; |
381 return o; | 381 return o; |
382 } | 382 } |
383 | 383 |
384 checkResource(api.Resource o) { | 384 checkResource(api.Resource o) { |
385 buildCounterResource++; | 385 buildCounterResource++; |
386 if (buildCounterResource < 3) { | 386 if (buildCounterResource < 3) { |
387 checkUnnamed1555(o.errors); | 387 checkUnnamed1622(o.errors); |
388 unittest.expect(o.id, unittest.equals('foo')); | 388 unittest.expect(o.id, unittest.equals('foo')); |
389 unittest.expect(o.intent, unittest.equals('foo')); | 389 unittest.expect(o.intent, unittest.equals('foo')); |
390 unittest.expect(o.manifest, unittest.equals('foo')); | 390 unittest.expect(o.manifest, unittest.equals('foo')); |
391 unittest.expect(o.name, unittest.equals('foo')); | 391 unittest.expect(o.name, unittest.equals('foo')); |
392 unittest.expect(o.state, unittest.equals('foo')); | 392 unittest.expect(o.state, unittest.equals('foo')); |
393 unittest.expect(o.type, unittest.equals('foo')); | 393 unittest.expect(o.type, unittest.equals('foo')); |
394 unittest.expect(o.url, unittest.equals('foo')); | 394 unittest.expect(o.url, unittest.equals('foo')); |
395 } | 395 } |
396 buildCounterResource--; | 396 buildCounterResource--; |
397 } | 397 } |
398 | 398 |
399 buildUnnamed1556() { | 399 buildUnnamed1623() { |
400 var o = new core.List<api.Resource>(); | 400 var o = new core.List<api.Resource>(); |
401 o.add(buildResource()); | 401 o.add(buildResource()); |
402 o.add(buildResource()); | 402 o.add(buildResource()); |
403 return o; | 403 return o; |
404 } | 404 } |
405 | 405 |
406 checkUnnamed1556(core.List<api.Resource> o) { | 406 checkUnnamed1623(core.List<api.Resource> o) { |
407 unittest.expect(o, unittest.hasLength(2)); | 407 unittest.expect(o, unittest.hasLength(2)); |
408 checkResource(o[0]); | 408 checkResource(o[0]); |
409 checkResource(o[1]); | 409 checkResource(o[1]); |
410 } | 410 } |
411 | 411 |
412 core.int buildCounterResourcesListResponse = 0; | 412 core.int buildCounterResourcesListResponse = 0; |
413 buildResourcesListResponse() { | 413 buildResourcesListResponse() { |
414 var o = new api.ResourcesListResponse(); | 414 var o = new api.ResourcesListResponse(); |
415 buildCounterResourcesListResponse++; | 415 buildCounterResourcesListResponse++; |
416 if (buildCounterResourcesListResponse < 3) { | 416 if (buildCounterResourcesListResponse < 3) { |
417 o.nextPageToken = "foo"; | 417 o.nextPageToken = "foo"; |
418 o.resources = buildUnnamed1556(); | 418 o.resources = buildUnnamed1623(); |
419 } | 419 } |
420 buildCounterResourcesListResponse--; | 420 buildCounterResourcesListResponse--; |
421 return o; | 421 return o; |
422 } | 422 } |
423 | 423 |
424 checkResourcesListResponse(api.ResourcesListResponse o) { | 424 checkResourcesListResponse(api.ResourcesListResponse o) { |
425 buildCounterResourcesListResponse++; | 425 buildCounterResourcesListResponse++; |
426 if (buildCounterResourcesListResponse < 3) { | 426 if (buildCounterResourcesListResponse < 3) { |
427 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 427 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
428 checkUnnamed1556(o.resources); | 428 checkUnnamed1623(o.resources); |
429 } | 429 } |
430 buildCounterResourcesListResponse--; | 430 buildCounterResourcesListResponse--; |
431 } | 431 } |
432 | 432 |
433 core.int buildCounterType = 0; | 433 core.int buildCounterType = 0; |
434 buildType() { | 434 buildType() { |
435 var o = new api.Type(); | 435 var o = new api.Type(); |
436 buildCounterType++; | 436 buildCounterType++; |
437 if (buildCounterType < 3) { | 437 if (buildCounterType < 3) { |
438 o.name = "foo"; | 438 o.name = "foo"; |
439 } | 439 } |
440 buildCounterType--; | 440 buildCounterType--; |
441 return o; | 441 return o; |
442 } | 442 } |
443 | 443 |
444 checkType(api.Type o) { | 444 checkType(api.Type o) { |
445 buildCounterType++; | 445 buildCounterType++; |
446 if (buildCounterType < 3) { | 446 if (buildCounterType < 3) { |
447 unittest.expect(o.name, unittest.equals('foo')); | 447 unittest.expect(o.name, unittest.equals('foo')); |
448 } | 448 } |
449 buildCounterType--; | 449 buildCounterType--; |
450 } | 450 } |
451 | 451 |
452 buildUnnamed1557() { | 452 buildUnnamed1624() { |
453 var o = new core.List<api.Type>(); | 453 var o = new core.List<api.Type>(); |
454 o.add(buildType()); | 454 o.add(buildType()); |
455 o.add(buildType()); | 455 o.add(buildType()); |
456 return o; | 456 return o; |
457 } | 457 } |
458 | 458 |
459 checkUnnamed1557(core.List<api.Type> o) { | 459 checkUnnamed1624(core.List<api.Type> o) { |
460 unittest.expect(o, unittest.hasLength(2)); | 460 unittest.expect(o, unittest.hasLength(2)); |
461 checkType(o[0]); | 461 checkType(o[0]); |
462 checkType(o[1]); | 462 checkType(o[1]); |
463 } | 463 } |
464 | 464 |
465 core.int buildCounterTypesListResponse = 0; | 465 core.int buildCounterTypesListResponse = 0; |
466 buildTypesListResponse() { | 466 buildTypesListResponse() { |
467 var o = new api.TypesListResponse(); | 467 var o = new api.TypesListResponse(); |
468 buildCounterTypesListResponse++; | 468 buildCounterTypesListResponse++; |
469 if (buildCounterTypesListResponse < 3) { | 469 if (buildCounterTypesListResponse < 3) { |
470 o.types = buildUnnamed1557(); | 470 o.types = buildUnnamed1624(); |
471 } | 471 } |
472 buildCounterTypesListResponse--; | 472 buildCounterTypesListResponse--; |
473 return o; | 473 return o; |
474 } | 474 } |
475 | 475 |
476 checkTypesListResponse(api.TypesListResponse o) { | 476 checkTypesListResponse(api.TypesListResponse o) { |
477 buildCounterTypesListResponse++; | 477 buildCounterTypesListResponse++; |
478 if (buildCounterTypesListResponse < 3) { | 478 if (buildCounterTypesListResponse < 3) { |
479 checkUnnamed1557(o.types); | 479 checkUnnamed1624(o.types); |
480 } | 480 } |
481 buildCounterTypesListResponse--; | 481 buildCounterTypesListResponse--; |
482 } | 482 } |
483 | 483 |
484 | 484 |
485 main() { | 485 main() { |
486 unittest.group("obj-schema-Deployment", () { | 486 unittest.group("obj-schema-Deployment", () { |
487 unittest.test("to-json--from-json", () { | 487 unittest.test("to-json--from-json", () { |
488 var o = buildDeployment(); | 488 var o = buildDeployment(); |
489 var od = new api.Deployment.fromJson(o.toJson()); | 489 var od = new api.Deployment.fromJson(o.toJson()); |
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1119 res.list(arg_project, maxResults: arg_maxResults, pageToken: arg_pageToken
).then(unittest.expectAsync(((api.TypesListResponse response) { | 1119 res.list(arg_project, maxResults: arg_maxResults, pageToken: arg_pageToken
).then(unittest.expectAsync(((api.TypesListResponse response) { |
1120 checkTypesListResponse(response); | 1120 checkTypesListResponse(response); |
1121 }))); | 1121 }))); |
1122 }); | 1122 }); |
1123 | 1123 |
1124 }); | 1124 }); |
1125 | 1125 |
1126 | 1126 |
1127 } | 1127 } |
1128 | 1128 |
OLD | NEW |