OLD | NEW |
1 library googleapis.dataproc.v1.test; | 1 library googleapis.dataproc.v1.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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 return o; | 82 return o; |
83 } | 83 } |
84 | 84 |
85 checkCancelJobRequest(api.CancelJobRequest o) { | 85 checkCancelJobRequest(api.CancelJobRequest o) { |
86 buildCounterCancelJobRequest++; | 86 buildCounterCancelJobRequest++; |
87 if (buildCounterCancelJobRequest < 3) { | 87 if (buildCounterCancelJobRequest < 3) { |
88 } | 88 } |
89 buildCounterCancelJobRequest--; | 89 buildCounterCancelJobRequest--; |
90 } | 90 } |
91 | 91 |
92 buildUnnamed445() { | 92 buildUnnamed466() { |
93 var o = new core.Map<core.String, core.String>(); | 93 var o = new core.Map<core.String, core.String>(); |
94 o["x"] = "foo"; | 94 o["x"] = "foo"; |
95 o["y"] = "foo"; | 95 o["y"] = "foo"; |
96 return o; | 96 return o; |
97 } | 97 } |
98 | 98 |
99 checkUnnamed445(core.Map<core.String, core.String> o) { | 99 checkUnnamed466(core.Map<core.String, core.String> o) { |
100 unittest.expect(o, unittest.hasLength(2)); | 100 unittest.expect(o, unittest.hasLength(2)); |
101 unittest.expect(o["x"], unittest.equals('foo')); | 101 unittest.expect(o["x"], unittest.equals('foo')); |
102 unittest.expect(o["y"], unittest.equals('foo')); | 102 unittest.expect(o["y"], unittest.equals('foo')); |
103 } | 103 } |
104 | 104 |
105 buildUnnamed446() { | 105 buildUnnamed467() { |
106 var o = new core.List<api.ClusterStatus>(); | 106 var o = new core.List<api.ClusterStatus>(); |
107 o.add(buildClusterStatus()); | 107 o.add(buildClusterStatus()); |
108 o.add(buildClusterStatus()); | 108 o.add(buildClusterStatus()); |
109 return o; | 109 return o; |
110 } | 110 } |
111 | 111 |
112 checkUnnamed446(core.List<api.ClusterStatus> o) { | 112 checkUnnamed467(core.List<api.ClusterStatus> o) { |
113 unittest.expect(o, unittest.hasLength(2)); | 113 unittest.expect(o, unittest.hasLength(2)); |
114 checkClusterStatus(o[0]); | 114 checkClusterStatus(o[0]); |
115 checkClusterStatus(o[1]); | 115 checkClusterStatus(o[1]); |
116 } | 116 } |
117 | 117 |
118 core.int buildCounterCluster = 0; | 118 core.int buildCounterCluster = 0; |
119 buildCluster() { | 119 buildCluster() { |
120 var o = new api.Cluster(); | 120 var o = new api.Cluster(); |
121 buildCounterCluster++; | 121 buildCounterCluster++; |
122 if (buildCounterCluster < 3) { | 122 if (buildCounterCluster < 3) { |
123 o.clusterName = "foo"; | 123 o.clusterName = "foo"; |
124 o.clusterUuid = "foo"; | 124 o.clusterUuid = "foo"; |
125 o.config = buildClusterConfig(); | 125 o.config = buildClusterConfig(); |
126 o.labels = buildUnnamed445(); | 126 o.labels = buildUnnamed466(); |
127 o.metrics = buildClusterMetrics(); | 127 o.metrics = buildClusterMetrics(); |
128 o.projectId = "foo"; | 128 o.projectId = "foo"; |
129 o.status = buildClusterStatus(); | 129 o.status = buildClusterStatus(); |
130 o.statusHistory = buildUnnamed446(); | 130 o.statusHistory = buildUnnamed467(); |
131 } | 131 } |
132 buildCounterCluster--; | 132 buildCounterCluster--; |
133 return o; | 133 return o; |
134 } | 134 } |
135 | 135 |
136 checkCluster(api.Cluster o) { | 136 checkCluster(api.Cluster o) { |
137 buildCounterCluster++; | 137 buildCounterCluster++; |
138 if (buildCounterCluster < 3) { | 138 if (buildCounterCluster < 3) { |
139 unittest.expect(o.clusterName, unittest.equals('foo')); | 139 unittest.expect(o.clusterName, unittest.equals('foo')); |
140 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 140 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
141 checkClusterConfig(o.config); | 141 checkClusterConfig(o.config); |
142 checkUnnamed445(o.labels); | 142 checkUnnamed466(o.labels); |
143 checkClusterMetrics(o.metrics); | 143 checkClusterMetrics(o.metrics); |
144 unittest.expect(o.projectId, unittest.equals('foo')); | 144 unittest.expect(o.projectId, unittest.equals('foo')); |
145 checkClusterStatus(o.status); | 145 checkClusterStatus(o.status); |
146 checkUnnamed446(o.statusHistory); | 146 checkUnnamed467(o.statusHistory); |
147 } | 147 } |
148 buildCounterCluster--; | 148 buildCounterCluster--; |
149 } | 149 } |
150 | 150 |
151 buildUnnamed447() { | 151 buildUnnamed468() { |
152 var o = new core.List<api.NodeInitializationAction>(); | 152 var o = new core.List<api.NodeInitializationAction>(); |
153 o.add(buildNodeInitializationAction()); | 153 o.add(buildNodeInitializationAction()); |
154 o.add(buildNodeInitializationAction()); | 154 o.add(buildNodeInitializationAction()); |
155 return o; | 155 return o; |
156 } | 156 } |
157 | 157 |
158 checkUnnamed447(core.List<api.NodeInitializationAction> o) { | 158 checkUnnamed468(core.List<api.NodeInitializationAction> o) { |
159 unittest.expect(o, unittest.hasLength(2)); | 159 unittest.expect(o, unittest.hasLength(2)); |
160 checkNodeInitializationAction(o[0]); | 160 checkNodeInitializationAction(o[0]); |
161 checkNodeInitializationAction(o[1]); | 161 checkNodeInitializationAction(o[1]); |
162 } | 162 } |
163 | 163 |
164 core.int buildCounterClusterConfig = 0; | 164 core.int buildCounterClusterConfig = 0; |
165 buildClusterConfig() { | 165 buildClusterConfig() { |
166 var o = new api.ClusterConfig(); | 166 var o = new api.ClusterConfig(); |
167 buildCounterClusterConfig++; | 167 buildCounterClusterConfig++; |
168 if (buildCounterClusterConfig < 3) { | 168 if (buildCounterClusterConfig < 3) { |
169 o.configBucket = "foo"; | 169 o.configBucket = "foo"; |
170 o.gceClusterConfig = buildGceClusterConfig(); | 170 o.gceClusterConfig = buildGceClusterConfig(); |
171 o.initializationActions = buildUnnamed447(); | 171 o.initializationActions = buildUnnamed468(); |
172 o.masterConfig = buildInstanceGroupConfig(); | 172 o.masterConfig = buildInstanceGroupConfig(); |
173 o.secondaryWorkerConfig = buildInstanceGroupConfig(); | 173 o.secondaryWorkerConfig = buildInstanceGroupConfig(); |
174 o.softwareConfig = buildSoftwareConfig(); | 174 o.softwareConfig = buildSoftwareConfig(); |
175 o.workerConfig = buildInstanceGroupConfig(); | 175 o.workerConfig = buildInstanceGroupConfig(); |
176 } | 176 } |
177 buildCounterClusterConfig--; | 177 buildCounterClusterConfig--; |
178 return o; | 178 return o; |
179 } | 179 } |
180 | 180 |
181 checkClusterConfig(api.ClusterConfig o) { | 181 checkClusterConfig(api.ClusterConfig o) { |
182 buildCounterClusterConfig++; | 182 buildCounterClusterConfig++; |
183 if (buildCounterClusterConfig < 3) { | 183 if (buildCounterClusterConfig < 3) { |
184 unittest.expect(o.configBucket, unittest.equals('foo')); | 184 unittest.expect(o.configBucket, unittest.equals('foo')); |
185 checkGceClusterConfig(o.gceClusterConfig); | 185 checkGceClusterConfig(o.gceClusterConfig); |
186 checkUnnamed447(o.initializationActions); | 186 checkUnnamed468(o.initializationActions); |
187 checkInstanceGroupConfig(o.masterConfig); | 187 checkInstanceGroupConfig(o.masterConfig); |
188 checkInstanceGroupConfig(o.secondaryWorkerConfig); | 188 checkInstanceGroupConfig(o.secondaryWorkerConfig); |
189 checkSoftwareConfig(o.softwareConfig); | 189 checkSoftwareConfig(o.softwareConfig); |
190 checkInstanceGroupConfig(o.workerConfig); | 190 checkInstanceGroupConfig(o.workerConfig); |
191 } | 191 } |
192 buildCounterClusterConfig--; | 192 buildCounterClusterConfig--; |
193 } | 193 } |
194 | 194 |
195 buildUnnamed448() { | 195 buildUnnamed469() { |
196 var o = new core.Map<core.String, core.String>(); | 196 var o = new core.Map<core.String, core.String>(); |
197 o["x"] = "foo"; | 197 o["x"] = "foo"; |
198 o["y"] = "foo"; | 198 o["y"] = "foo"; |
199 return o; | 199 return o; |
200 } | 200 } |
201 | 201 |
202 checkUnnamed448(core.Map<core.String, core.String> o) { | 202 checkUnnamed469(core.Map<core.String, core.String> o) { |
203 unittest.expect(o, unittest.hasLength(2)); | 203 unittest.expect(o, unittest.hasLength(2)); |
204 unittest.expect(o["x"], unittest.equals('foo')); | 204 unittest.expect(o["x"], unittest.equals('foo')); |
205 unittest.expect(o["y"], unittest.equals('foo')); | 205 unittest.expect(o["y"], unittest.equals('foo')); |
206 } | 206 } |
207 | 207 |
208 buildUnnamed449() { | 208 buildUnnamed470() { |
209 var o = new core.Map<core.String, core.String>(); | 209 var o = new core.Map<core.String, core.String>(); |
210 o["x"] = "foo"; | 210 o["x"] = "foo"; |
211 o["y"] = "foo"; | 211 o["y"] = "foo"; |
212 return o; | 212 return o; |
213 } | 213 } |
214 | 214 |
215 checkUnnamed449(core.Map<core.String, core.String> o) { | 215 checkUnnamed470(core.Map<core.String, core.String> o) { |
216 unittest.expect(o, unittest.hasLength(2)); | 216 unittest.expect(o, unittest.hasLength(2)); |
217 unittest.expect(o["x"], unittest.equals('foo')); | 217 unittest.expect(o["x"], unittest.equals('foo')); |
218 unittest.expect(o["y"], unittest.equals('foo')); | 218 unittest.expect(o["y"], unittest.equals('foo')); |
219 } | 219 } |
220 | 220 |
221 core.int buildCounterClusterMetrics = 0; | 221 core.int buildCounterClusterMetrics = 0; |
222 buildClusterMetrics() { | 222 buildClusterMetrics() { |
223 var o = new api.ClusterMetrics(); | 223 var o = new api.ClusterMetrics(); |
224 buildCounterClusterMetrics++; | 224 buildCounterClusterMetrics++; |
225 if (buildCounterClusterMetrics < 3) { | 225 if (buildCounterClusterMetrics < 3) { |
226 o.hdfsMetrics = buildUnnamed448(); | 226 o.hdfsMetrics = buildUnnamed469(); |
227 o.yarnMetrics = buildUnnamed449(); | 227 o.yarnMetrics = buildUnnamed470(); |
228 } | 228 } |
229 buildCounterClusterMetrics--; | 229 buildCounterClusterMetrics--; |
230 return o; | 230 return o; |
231 } | 231 } |
232 | 232 |
233 checkClusterMetrics(api.ClusterMetrics o) { | 233 checkClusterMetrics(api.ClusterMetrics o) { |
234 buildCounterClusterMetrics++; | 234 buildCounterClusterMetrics++; |
235 if (buildCounterClusterMetrics < 3) { | 235 if (buildCounterClusterMetrics < 3) { |
236 checkUnnamed448(o.hdfsMetrics); | 236 checkUnnamed469(o.hdfsMetrics); |
237 checkUnnamed449(o.yarnMetrics); | 237 checkUnnamed470(o.yarnMetrics); |
238 } | 238 } |
239 buildCounterClusterMetrics--; | 239 buildCounterClusterMetrics--; |
240 } | 240 } |
241 | 241 |
242 buildUnnamed450() { | 242 buildUnnamed471() { |
243 var o = new core.Map<core.String, core.String>(); | 243 var o = new core.Map<core.String, core.String>(); |
244 o["x"] = "foo"; | 244 o["x"] = "foo"; |
245 o["y"] = "foo"; | 245 o["y"] = "foo"; |
246 return o; | 246 return o; |
247 } | 247 } |
248 | 248 |
249 checkUnnamed450(core.Map<core.String, core.String> o) { | 249 checkUnnamed471(core.Map<core.String, core.String> o) { |
250 unittest.expect(o, unittest.hasLength(2)); | 250 unittest.expect(o, unittest.hasLength(2)); |
251 unittest.expect(o["x"], unittest.equals('foo')); | 251 unittest.expect(o["x"], unittest.equals('foo')); |
252 unittest.expect(o["y"], unittest.equals('foo')); | 252 unittest.expect(o["y"], unittest.equals('foo')); |
253 } | 253 } |
254 | 254 |
255 buildUnnamed451() { | 255 buildUnnamed472() { |
256 var o = new core.List<api.ClusterOperationStatus>(); | 256 var o = new core.List<api.ClusterOperationStatus>(); |
257 o.add(buildClusterOperationStatus()); | 257 o.add(buildClusterOperationStatus()); |
258 o.add(buildClusterOperationStatus()); | 258 o.add(buildClusterOperationStatus()); |
259 return o; | 259 return o; |
260 } | 260 } |
261 | 261 |
262 checkUnnamed451(core.List<api.ClusterOperationStatus> o) { | 262 checkUnnamed472(core.List<api.ClusterOperationStatus> o) { |
263 unittest.expect(o, unittest.hasLength(2)); | 263 unittest.expect(o, unittest.hasLength(2)); |
264 checkClusterOperationStatus(o[0]); | 264 checkClusterOperationStatus(o[0]); |
265 checkClusterOperationStatus(o[1]); | 265 checkClusterOperationStatus(o[1]); |
266 } | 266 } |
267 | 267 |
268 buildUnnamed452() { | 268 buildUnnamed473() { |
269 var o = new core.List<core.String>(); | 269 var o = new core.List<core.String>(); |
270 o.add("foo"); | 270 o.add("foo"); |
271 o.add("foo"); | 271 o.add("foo"); |
272 return o; | 272 return o; |
273 } | 273 } |
274 | 274 |
275 checkUnnamed452(core.List<core.String> o) { | 275 checkUnnamed473(core.List<core.String> o) { |
276 unittest.expect(o, unittest.hasLength(2)); | 276 unittest.expect(o, unittest.hasLength(2)); |
277 unittest.expect(o[0], unittest.equals('foo')); | 277 unittest.expect(o[0], unittest.equals('foo')); |
278 unittest.expect(o[1], unittest.equals('foo')); | 278 unittest.expect(o[1], unittest.equals('foo')); |
279 } | 279 } |
280 | 280 |
281 core.int buildCounterClusterOperationMetadata = 0; | 281 core.int buildCounterClusterOperationMetadata = 0; |
282 buildClusterOperationMetadata() { | 282 buildClusterOperationMetadata() { |
283 var o = new api.ClusterOperationMetadata(); | 283 var o = new api.ClusterOperationMetadata(); |
284 buildCounterClusterOperationMetadata++; | 284 buildCounterClusterOperationMetadata++; |
285 if (buildCounterClusterOperationMetadata < 3) { | 285 if (buildCounterClusterOperationMetadata < 3) { |
286 o.clusterName = "foo"; | 286 o.clusterName = "foo"; |
287 o.clusterUuid = "foo"; | 287 o.clusterUuid = "foo"; |
288 o.description = "foo"; | 288 o.description = "foo"; |
289 o.labels = buildUnnamed450(); | 289 o.labels = buildUnnamed471(); |
290 o.operationType = "foo"; | 290 o.operationType = "foo"; |
291 o.status = buildClusterOperationStatus(); | 291 o.status = buildClusterOperationStatus(); |
292 o.statusHistory = buildUnnamed451(); | 292 o.statusHistory = buildUnnamed472(); |
293 o.warnings = buildUnnamed452(); | 293 o.warnings = buildUnnamed473(); |
294 } | 294 } |
295 buildCounterClusterOperationMetadata--; | 295 buildCounterClusterOperationMetadata--; |
296 return o; | 296 return o; |
297 } | 297 } |
298 | 298 |
299 checkClusterOperationMetadata(api.ClusterOperationMetadata o) { | 299 checkClusterOperationMetadata(api.ClusterOperationMetadata o) { |
300 buildCounterClusterOperationMetadata++; | 300 buildCounterClusterOperationMetadata++; |
301 if (buildCounterClusterOperationMetadata < 3) { | 301 if (buildCounterClusterOperationMetadata < 3) { |
302 unittest.expect(o.clusterName, unittest.equals('foo')); | 302 unittest.expect(o.clusterName, unittest.equals('foo')); |
303 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 303 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
304 unittest.expect(o.description, unittest.equals('foo')); | 304 unittest.expect(o.description, unittest.equals('foo')); |
305 checkUnnamed450(o.labels); | 305 checkUnnamed471(o.labels); |
306 unittest.expect(o.operationType, unittest.equals('foo')); | 306 unittest.expect(o.operationType, unittest.equals('foo')); |
307 checkClusterOperationStatus(o.status); | 307 checkClusterOperationStatus(o.status); |
308 checkUnnamed451(o.statusHistory); | 308 checkUnnamed472(o.statusHistory); |
309 checkUnnamed452(o.warnings); | 309 checkUnnamed473(o.warnings); |
310 } | 310 } |
311 buildCounterClusterOperationMetadata--; | 311 buildCounterClusterOperationMetadata--; |
312 } | 312 } |
313 | 313 |
314 core.int buildCounterClusterOperationStatus = 0; | 314 core.int buildCounterClusterOperationStatus = 0; |
315 buildClusterOperationStatus() { | 315 buildClusterOperationStatus() { |
316 var o = new api.ClusterOperationStatus(); | 316 var o = new api.ClusterOperationStatus(); |
317 buildCounterClusterOperationStatus++; | 317 buildCounterClusterOperationStatus++; |
318 if (buildCounterClusterOperationStatus < 3) { | 318 if (buildCounterClusterOperationStatus < 3) { |
319 o.details = "foo"; | 319 o.details = "foo"; |
(...skipping 17 matching lines...) Expand all Loading... |
337 } | 337 } |
338 | 338 |
339 core.int buildCounterClusterStatus = 0; | 339 core.int buildCounterClusterStatus = 0; |
340 buildClusterStatus() { | 340 buildClusterStatus() { |
341 var o = new api.ClusterStatus(); | 341 var o = new api.ClusterStatus(); |
342 buildCounterClusterStatus++; | 342 buildCounterClusterStatus++; |
343 if (buildCounterClusterStatus < 3) { | 343 if (buildCounterClusterStatus < 3) { |
344 o.detail = "foo"; | 344 o.detail = "foo"; |
345 o.state = "foo"; | 345 o.state = "foo"; |
346 o.stateStartTime = "foo"; | 346 o.stateStartTime = "foo"; |
| 347 o.substate = "foo"; |
347 } | 348 } |
348 buildCounterClusterStatus--; | 349 buildCounterClusterStatus--; |
349 return o; | 350 return o; |
350 } | 351 } |
351 | 352 |
352 checkClusterStatus(api.ClusterStatus o) { | 353 checkClusterStatus(api.ClusterStatus o) { |
353 buildCounterClusterStatus++; | 354 buildCounterClusterStatus++; |
354 if (buildCounterClusterStatus < 3) { | 355 if (buildCounterClusterStatus < 3) { |
355 unittest.expect(o.detail, unittest.equals('foo')); | 356 unittest.expect(o.detail, unittest.equals('foo')); |
356 unittest.expect(o.state, unittest.equals('foo')); | 357 unittest.expect(o.state, unittest.equals('foo')); |
357 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 358 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
| 359 unittest.expect(o.substate, unittest.equals('foo')); |
358 } | 360 } |
359 buildCounterClusterStatus--; | 361 buildCounterClusterStatus--; |
360 } | 362 } |
361 | 363 |
362 core.int buildCounterDiagnoseClusterOutputLocation = 0; | 364 core.int buildCounterDiagnoseClusterOutputLocation = 0; |
363 buildDiagnoseClusterOutputLocation() { | 365 buildDiagnoseClusterOutputLocation() { |
364 var o = new api.DiagnoseClusterOutputLocation(); | 366 var o = new api.DiagnoseClusterOutputLocation(); |
365 buildCounterDiagnoseClusterOutputLocation++; | 367 buildCounterDiagnoseClusterOutputLocation++; |
366 if (buildCounterDiagnoseClusterOutputLocation < 3) { | 368 if (buildCounterDiagnoseClusterOutputLocation < 3) { |
367 o.outputUri = "foo"; | 369 o.outputUri = "foo"; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 return o; | 447 return o; |
446 } | 448 } |
447 | 449 |
448 checkEmpty(api.Empty o) { | 450 checkEmpty(api.Empty o) { |
449 buildCounterEmpty++; | 451 buildCounterEmpty++; |
450 if (buildCounterEmpty < 3) { | 452 if (buildCounterEmpty < 3) { |
451 } | 453 } |
452 buildCounterEmpty--; | 454 buildCounterEmpty--; |
453 } | 455 } |
454 | 456 |
455 buildUnnamed453() { | 457 buildUnnamed474() { |
456 var o = new core.Map<core.String, core.String>(); | 458 var o = new core.Map<core.String, core.String>(); |
457 o["x"] = "foo"; | 459 o["x"] = "foo"; |
458 o["y"] = "foo"; | 460 o["y"] = "foo"; |
459 return o; | 461 return o; |
460 } | 462 } |
461 | 463 |
462 checkUnnamed453(core.Map<core.String, core.String> o) { | 464 checkUnnamed474(core.Map<core.String, core.String> o) { |
463 unittest.expect(o, unittest.hasLength(2)); | 465 unittest.expect(o, unittest.hasLength(2)); |
464 unittest.expect(o["x"], unittest.equals('foo')); | 466 unittest.expect(o["x"], unittest.equals('foo')); |
465 unittest.expect(o["y"], unittest.equals('foo')); | 467 unittest.expect(o["y"], unittest.equals('foo')); |
466 } | 468 } |
467 | 469 |
468 buildUnnamed454() { | 470 buildUnnamed475() { |
469 var o = new core.List<core.String>(); | 471 var o = new core.List<core.String>(); |
470 o.add("foo"); | 472 o.add("foo"); |
471 o.add("foo"); | 473 o.add("foo"); |
472 return o; | 474 return o; |
473 } | 475 } |
474 | 476 |
475 checkUnnamed454(core.List<core.String> o) { | 477 checkUnnamed475(core.List<core.String> o) { |
476 unittest.expect(o, unittest.hasLength(2)); | 478 unittest.expect(o, unittest.hasLength(2)); |
477 unittest.expect(o[0], unittest.equals('foo')); | 479 unittest.expect(o[0], unittest.equals('foo')); |
478 unittest.expect(o[1], unittest.equals('foo')); | 480 unittest.expect(o[1], unittest.equals('foo')); |
479 } | 481 } |
480 | 482 |
481 buildUnnamed455() { | 483 buildUnnamed476() { |
482 var o = new core.List<core.String>(); | 484 var o = new core.List<core.String>(); |
483 o.add("foo"); | 485 o.add("foo"); |
484 o.add("foo"); | 486 o.add("foo"); |
485 return o; | 487 return o; |
486 } | 488 } |
487 | 489 |
488 checkUnnamed455(core.List<core.String> o) { | 490 checkUnnamed476(core.List<core.String> o) { |
489 unittest.expect(o, unittest.hasLength(2)); | 491 unittest.expect(o, unittest.hasLength(2)); |
490 unittest.expect(o[0], unittest.equals('foo')); | 492 unittest.expect(o[0], unittest.equals('foo')); |
491 unittest.expect(o[1], unittest.equals('foo')); | 493 unittest.expect(o[1], unittest.equals('foo')); |
492 } | 494 } |
493 | 495 |
494 core.int buildCounterGceClusterConfig = 0; | 496 core.int buildCounterGceClusterConfig = 0; |
495 buildGceClusterConfig() { | 497 buildGceClusterConfig() { |
496 var o = new api.GceClusterConfig(); | 498 var o = new api.GceClusterConfig(); |
497 buildCounterGceClusterConfig++; | 499 buildCounterGceClusterConfig++; |
498 if (buildCounterGceClusterConfig < 3) { | 500 if (buildCounterGceClusterConfig < 3) { |
499 o.internalIpOnly = true; | 501 o.internalIpOnly = true; |
500 o.metadata = buildUnnamed453(); | 502 o.metadata = buildUnnamed474(); |
501 o.networkUri = "foo"; | 503 o.networkUri = "foo"; |
502 o.serviceAccount = "foo"; | 504 o.serviceAccount = "foo"; |
503 o.serviceAccountScopes = buildUnnamed454(); | 505 o.serviceAccountScopes = buildUnnamed475(); |
504 o.subnetworkUri = "foo"; | 506 o.subnetworkUri = "foo"; |
505 o.tags = buildUnnamed455(); | 507 o.tags = buildUnnamed476(); |
506 o.zoneUri = "foo"; | 508 o.zoneUri = "foo"; |
507 } | 509 } |
508 buildCounterGceClusterConfig--; | 510 buildCounterGceClusterConfig--; |
509 return o; | 511 return o; |
510 } | 512 } |
511 | 513 |
512 checkGceClusterConfig(api.GceClusterConfig o) { | 514 checkGceClusterConfig(api.GceClusterConfig o) { |
513 buildCounterGceClusterConfig++; | 515 buildCounterGceClusterConfig++; |
514 if (buildCounterGceClusterConfig < 3) { | 516 if (buildCounterGceClusterConfig < 3) { |
515 unittest.expect(o.internalIpOnly, unittest.isTrue); | 517 unittest.expect(o.internalIpOnly, unittest.isTrue); |
516 checkUnnamed453(o.metadata); | 518 checkUnnamed474(o.metadata); |
517 unittest.expect(o.networkUri, unittest.equals('foo')); | 519 unittest.expect(o.networkUri, unittest.equals('foo')); |
518 unittest.expect(o.serviceAccount, unittest.equals('foo')); | 520 unittest.expect(o.serviceAccount, unittest.equals('foo')); |
519 checkUnnamed454(o.serviceAccountScopes); | 521 checkUnnamed475(o.serviceAccountScopes); |
520 unittest.expect(o.subnetworkUri, unittest.equals('foo')); | 522 unittest.expect(o.subnetworkUri, unittest.equals('foo')); |
521 checkUnnamed455(o.tags); | 523 checkUnnamed476(o.tags); |
522 unittest.expect(o.zoneUri, unittest.equals('foo')); | 524 unittest.expect(o.zoneUri, unittest.equals('foo')); |
523 } | 525 } |
524 buildCounterGceClusterConfig--; | 526 buildCounterGceClusterConfig--; |
525 } | 527 } |
526 | 528 |
527 buildUnnamed456() { | 529 buildUnnamed477() { |
528 var o = new core.List<core.String>(); | 530 var o = new core.List<core.String>(); |
529 o.add("foo"); | 531 o.add("foo"); |
530 o.add("foo"); | 532 o.add("foo"); |
531 return o; | 533 return o; |
532 } | 534 } |
533 | 535 |
534 checkUnnamed456(core.List<core.String> o) { | 536 checkUnnamed477(core.List<core.String> o) { |
535 unittest.expect(o, unittest.hasLength(2)); | 537 unittest.expect(o, unittest.hasLength(2)); |
536 unittest.expect(o[0], unittest.equals('foo')); | 538 unittest.expect(o[0], unittest.equals('foo')); |
537 unittest.expect(o[1], unittest.equals('foo')); | 539 unittest.expect(o[1], unittest.equals('foo')); |
538 } | 540 } |
539 | 541 |
540 buildUnnamed457() { | 542 buildUnnamed478() { |
541 var o = new core.List<core.String>(); | 543 var o = new core.List<core.String>(); |
542 o.add("foo"); | 544 o.add("foo"); |
543 o.add("foo"); | 545 o.add("foo"); |
544 return o; | 546 return o; |
545 } | 547 } |
546 | 548 |
547 checkUnnamed457(core.List<core.String> o) { | 549 checkUnnamed478(core.List<core.String> o) { |
548 unittest.expect(o, unittest.hasLength(2)); | 550 unittest.expect(o, unittest.hasLength(2)); |
549 unittest.expect(o[0], unittest.equals('foo')); | 551 unittest.expect(o[0], unittest.equals('foo')); |
550 unittest.expect(o[1], unittest.equals('foo')); | 552 unittest.expect(o[1], unittest.equals('foo')); |
551 } | 553 } |
552 | 554 |
553 buildUnnamed458() { | 555 buildUnnamed479() { |
554 var o = new core.List<core.String>(); | 556 var o = new core.List<core.String>(); |
555 o.add("foo"); | 557 o.add("foo"); |
556 o.add("foo"); | 558 o.add("foo"); |
557 return o; | 559 return o; |
558 } | 560 } |
559 | 561 |
560 checkUnnamed458(core.List<core.String> o) { | 562 checkUnnamed479(core.List<core.String> o) { |
561 unittest.expect(o, unittest.hasLength(2)); | 563 unittest.expect(o, unittest.hasLength(2)); |
562 unittest.expect(o[0], unittest.equals('foo')); | 564 unittest.expect(o[0], unittest.equals('foo')); |
563 unittest.expect(o[1], unittest.equals('foo')); | 565 unittest.expect(o[1], unittest.equals('foo')); |
564 } | 566 } |
565 | 567 |
566 buildUnnamed459() { | 568 buildUnnamed480() { |
567 var o = new core.List<core.String>(); | 569 var o = new core.List<core.String>(); |
568 o.add("foo"); | 570 o.add("foo"); |
569 o.add("foo"); | 571 o.add("foo"); |
570 return o; | 572 return o; |
571 } | 573 } |
572 | 574 |
573 checkUnnamed459(core.List<core.String> o) { | 575 checkUnnamed480(core.List<core.String> o) { |
574 unittest.expect(o, unittest.hasLength(2)); | 576 unittest.expect(o, unittest.hasLength(2)); |
575 unittest.expect(o[0], unittest.equals('foo')); | 577 unittest.expect(o[0], unittest.equals('foo')); |
576 unittest.expect(o[1], unittest.equals('foo')); | 578 unittest.expect(o[1], unittest.equals('foo')); |
577 } | 579 } |
578 | 580 |
579 buildUnnamed460() { | 581 buildUnnamed481() { |
580 var o = new core.Map<core.String, core.String>(); | 582 var o = new core.Map<core.String, core.String>(); |
581 o["x"] = "foo"; | 583 o["x"] = "foo"; |
582 o["y"] = "foo"; | 584 o["y"] = "foo"; |
583 return o; | 585 return o; |
584 } | 586 } |
585 | 587 |
586 checkUnnamed460(core.Map<core.String, core.String> o) { | 588 checkUnnamed481(core.Map<core.String, core.String> o) { |
587 unittest.expect(o, unittest.hasLength(2)); | 589 unittest.expect(o, unittest.hasLength(2)); |
588 unittest.expect(o["x"], unittest.equals('foo')); | 590 unittest.expect(o["x"], unittest.equals('foo')); |
589 unittest.expect(o["y"], unittest.equals('foo')); | 591 unittest.expect(o["y"], unittest.equals('foo')); |
590 } | 592 } |
591 | 593 |
592 core.int buildCounterHadoopJob = 0; | 594 core.int buildCounterHadoopJob = 0; |
593 buildHadoopJob() { | 595 buildHadoopJob() { |
594 var o = new api.HadoopJob(); | 596 var o = new api.HadoopJob(); |
595 buildCounterHadoopJob++; | 597 buildCounterHadoopJob++; |
596 if (buildCounterHadoopJob < 3) { | 598 if (buildCounterHadoopJob < 3) { |
597 o.archiveUris = buildUnnamed456(); | 599 o.archiveUris = buildUnnamed477(); |
598 o.args = buildUnnamed457(); | 600 o.args = buildUnnamed478(); |
599 o.fileUris = buildUnnamed458(); | 601 o.fileUris = buildUnnamed479(); |
600 o.jarFileUris = buildUnnamed459(); | 602 o.jarFileUris = buildUnnamed480(); |
601 o.loggingConfig = buildLoggingConfig(); | 603 o.loggingConfig = buildLoggingConfig(); |
602 o.mainClass = "foo"; | 604 o.mainClass = "foo"; |
603 o.mainJarFileUri = "foo"; | 605 o.mainJarFileUri = "foo"; |
604 o.properties = buildUnnamed460(); | 606 o.properties = buildUnnamed481(); |
605 } | 607 } |
606 buildCounterHadoopJob--; | 608 buildCounterHadoopJob--; |
607 return o; | 609 return o; |
608 } | 610 } |
609 | 611 |
610 checkHadoopJob(api.HadoopJob o) { | 612 checkHadoopJob(api.HadoopJob o) { |
611 buildCounterHadoopJob++; | 613 buildCounterHadoopJob++; |
612 if (buildCounterHadoopJob < 3) { | 614 if (buildCounterHadoopJob < 3) { |
613 checkUnnamed456(o.archiveUris); | 615 checkUnnamed477(o.archiveUris); |
614 checkUnnamed457(o.args); | 616 checkUnnamed478(o.args); |
615 checkUnnamed458(o.fileUris); | 617 checkUnnamed479(o.fileUris); |
616 checkUnnamed459(o.jarFileUris); | 618 checkUnnamed480(o.jarFileUris); |
617 checkLoggingConfig(o.loggingConfig); | 619 checkLoggingConfig(o.loggingConfig); |
618 unittest.expect(o.mainClass, unittest.equals('foo')); | 620 unittest.expect(o.mainClass, unittest.equals('foo')); |
619 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 621 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
620 checkUnnamed460(o.properties); | 622 checkUnnamed481(o.properties); |
621 } | 623 } |
622 buildCounterHadoopJob--; | 624 buildCounterHadoopJob--; |
623 } | 625 } |
624 | 626 |
625 buildUnnamed461() { | 627 buildUnnamed482() { |
626 var o = new core.List<core.String>(); | 628 var o = new core.List<core.String>(); |
627 o.add("foo"); | 629 o.add("foo"); |
628 o.add("foo"); | 630 o.add("foo"); |
629 return o; | 631 return o; |
630 } | 632 } |
631 | 633 |
632 checkUnnamed461(core.List<core.String> o) { | 634 checkUnnamed482(core.List<core.String> o) { |
633 unittest.expect(o, unittest.hasLength(2)); | 635 unittest.expect(o, unittest.hasLength(2)); |
634 unittest.expect(o[0], unittest.equals('foo')); | 636 unittest.expect(o[0], unittest.equals('foo')); |
635 unittest.expect(o[1], unittest.equals('foo')); | 637 unittest.expect(o[1], unittest.equals('foo')); |
636 } | 638 } |
637 | 639 |
638 buildUnnamed462() { | 640 buildUnnamed483() { |
639 var o = new core.Map<core.String, core.String>(); | 641 var o = new core.Map<core.String, core.String>(); |
640 o["x"] = "foo"; | 642 o["x"] = "foo"; |
641 o["y"] = "foo"; | 643 o["y"] = "foo"; |
642 return o; | 644 return o; |
643 } | 645 } |
644 | 646 |
645 checkUnnamed462(core.Map<core.String, core.String> o) { | 647 checkUnnamed483(core.Map<core.String, core.String> o) { |
646 unittest.expect(o, unittest.hasLength(2)); | 648 unittest.expect(o, unittest.hasLength(2)); |
647 unittest.expect(o["x"], unittest.equals('foo')); | 649 unittest.expect(o["x"], unittest.equals('foo')); |
648 unittest.expect(o["y"], unittest.equals('foo')); | 650 unittest.expect(o["y"], unittest.equals('foo')); |
649 } | 651 } |
650 | 652 |
651 buildUnnamed463() { | 653 buildUnnamed484() { |
652 var o = new core.Map<core.String, core.String>(); | 654 var o = new core.Map<core.String, core.String>(); |
653 o["x"] = "foo"; | 655 o["x"] = "foo"; |
654 o["y"] = "foo"; | 656 o["y"] = "foo"; |
655 return o; | 657 return o; |
656 } | 658 } |
657 | 659 |
658 checkUnnamed463(core.Map<core.String, core.String> o) { | 660 checkUnnamed484(core.Map<core.String, core.String> o) { |
659 unittest.expect(o, unittest.hasLength(2)); | 661 unittest.expect(o, unittest.hasLength(2)); |
660 unittest.expect(o["x"], unittest.equals('foo')); | 662 unittest.expect(o["x"], unittest.equals('foo')); |
661 unittest.expect(o["y"], unittest.equals('foo')); | 663 unittest.expect(o["y"], unittest.equals('foo')); |
662 } | 664 } |
663 | 665 |
664 core.int buildCounterHiveJob = 0; | 666 core.int buildCounterHiveJob = 0; |
665 buildHiveJob() { | 667 buildHiveJob() { |
666 var o = new api.HiveJob(); | 668 var o = new api.HiveJob(); |
667 buildCounterHiveJob++; | 669 buildCounterHiveJob++; |
668 if (buildCounterHiveJob < 3) { | 670 if (buildCounterHiveJob < 3) { |
669 o.continueOnFailure = true; | 671 o.continueOnFailure = true; |
670 o.jarFileUris = buildUnnamed461(); | 672 o.jarFileUris = buildUnnamed482(); |
671 o.properties = buildUnnamed462(); | 673 o.properties = buildUnnamed483(); |
672 o.queryFileUri = "foo"; | 674 o.queryFileUri = "foo"; |
673 o.queryList = buildQueryList(); | 675 o.queryList = buildQueryList(); |
674 o.scriptVariables = buildUnnamed463(); | 676 o.scriptVariables = buildUnnamed484(); |
675 } | 677 } |
676 buildCounterHiveJob--; | 678 buildCounterHiveJob--; |
677 return o; | 679 return o; |
678 } | 680 } |
679 | 681 |
680 checkHiveJob(api.HiveJob o) { | 682 checkHiveJob(api.HiveJob o) { |
681 buildCounterHiveJob++; | 683 buildCounterHiveJob++; |
682 if (buildCounterHiveJob < 3) { | 684 if (buildCounterHiveJob < 3) { |
683 unittest.expect(o.continueOnFailure, unittest.isTrue); | 685 unittest.expect(o.continueOnFailure, unittest.isTrue); |
684 checkUnnamed461(o.jarFileUris); | 686 checkUnnamed482(o.jarFileUris); |
685 checkUnnamed462(o.properties); | 687 checkUnnamed483(o.properties); |
686 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 688 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
687 checkQueryList(o.queryList); | 689 checkQueryList(o.queryList); |
688 checkUnnamed463(o.scriptVariables); | 690 checkUnnamed484(o.scriptVariables); |
689 } | 691 } |
690 buildCounterHiveJob--; | 692 buildCounterHiveJob--; |
691 } | 693 } |
692 | 694 |
693 buildUnnamed464() { | 695 buildUnnamed485() { |
694 var o = new core.List<api.AcceleratorConfig>(); | 696 var o = new core.List<api.AcceleratorConfig>(); |
695 o.add(buildAcceleratorConfig()); | 697 o.add(buildAcceleratorConfig()); |
696 o.add(buildAcceleratorConfig()); | 698 o.add(buildAcceleratorConfig()); |
697 return o; | 699 return o; |
698 } | 700 } |
699 | 701 |
700 checkUnnamed464(core.List<api.AcceleratorConfig> o) { | 702 checkUnnamed485(core.List<api.AcceleratorConfig> o) { |
701 unittest.expect(o, unittest.hasLength(2)); | 703 unittest.expect(o, unittest.hasLength(2)); |
702 checkAcceleratorConfig(o[0]); | 704 checkAcceleratorConfig(o[0]); |
703 checkAcceleratorConfig(o[1]); | 705 checkAcceleratorConfig(o[1]); |
704 } | 706 } |
705 | 707 |
706 buildUnnamed465() { | 708 buildUnnamed486() { |
707 var o = new core.List<core.String>(); | 709 var o = new core.List<core.String>(); |
708 o.add("foo"); | 710 o.add("foo"); |
709 o.add("foo"); | 711 o.add("foo"); |
710 return o; | 712 return o; |
711 } | 713 } |
712 | 714 |
713 checkUnnamed465(core.List<core.String> o) { | 715 checkUnnamed486(core.List<core.String> o) { |
714 unittest.expect(o, unittest.hasLength(2)); | 716 unittest.expect(o, unittest.hasLength(2)); |
715 unittest.expect(o[0], unittest.equals('foo')); | 717 unittest.expect(o[0], unittest.equals('foo')); |
716 unittest.expect(o[1], unittest.equals('foo')); | 718 unittest.expect(o[1], unittest.equals('foo')); |
717 } | 719 } |
718 | 720 |
719 core.int buildCounterInstanceGroupConfig = 0; | 721 core.int buildCounterInstanceGroupConfig = 0; |
720 buildInstanceGroupConfig() { | 722 buildInstanceGroupConfig() { |
721 var o = new api.InstanceGroupConfig(); | 723 var o = new api.InstanceGroupConfig(); |
722 buildCounterInstanceGroupConfig++; | 724 buildCounterInstanceGroupConfig++; |
723 if (buildCounterInstanceGroupConfig < 3) { | 725 if (buildCounterInstanceGroupConfig < 3) { |
724 o.accelerators = buildUnnamed464(); | 726 o.accelerators = buildUnnamed485(); |
725 o.diskConfig = buildDiskConfig(); | 727 o.diskConfig = buildDiskConfig(); |
726 o.imageUri = "foo"; | 728 o.imageUri = "foo"; |
727 o.instanceNames = buildUnnamed465(); | 729 o.instanceNames = buildUnnamed486(); |
728 o.isPreemptible = true; | 730 o.isPreemptible = true; |
729 o.machineTypeUri = "foo"; | 731 o.machineTypeUri = "foo"; |
730 o.managedGroupConfig = buildManagedGroupConfig(); | 732 o.managedGroupConfig = buildManagedGroupConfig(); |
731 o.numInstances = 42; | 733 o.numInstances = 42; |
732 } | 734 } |
733 buildCounterInstanceGroupConfig--; | 735 buildCounterInstanceGroupConfig--; |
734 return o; | 736 return o; |
735 } | 737 } |
736 | 738 |
737 checkInstanceGroupConfig(api.InstanceGroupConfig o) { | 739 checkInstanceGroupConfig(api.InstanceGroupConfig o) { |
738 buildCounterInstanceGroupConfig++; | 740 buildCounterInstanceGroupConfig++; |
739 if (buildCounterInstanceGroupConfig < 3) { | 741 if (buildCounterInstanceGroupConfig < 3) { |
740 checkUnnamed464(o.accelerators); | 742 checkUnnamed485(o.accelerators); |
741 checkDiskConfig(o.diskConfig); | 743 checkDiskConfig(o.diskConfig); |
742 unittest.expect(o.imageUri, unittest.equals('foo')); | 744 unittest.expect(o.imageUri, unittest.equals('foo')); |
743 checkUnnamed465(o.instanceNames); | 745 checkUnnamed486(o.instanceNames); |
744 unittest.expect(o.isPreemptible, unittest.isTrue); | 746 unittest.expect(o.isPreemptible, unittest.isTrue); |
745 unittest.expect(o.machineTypeUri, unittest.equals('foo')); | 747 unittest.expect(o.machineTypeUri, unittest.equals('foo')); |
746 checkManagedGroupConfig(o.managedGroupConfig); | 748 checkManagedGroupConfig(o.managedGroupConfig); |
747 unittest.expect(o.numInstances, unittest.equals(42)); | 749 unittest.expect(o.numInstances, unittest.equals(42)); |
748 } | 750 } |
749 buildCounterInstanceGroupConfig--; | 751 buildCounterInstanceGroupConfig--; |
750 } | 752 } |
751 | 753 |
752 buildUnnamed466() { | 754 buildUnnamed487() { |
753 var o = new core.Map<core.String, core.String>(); | 755 var o = new core.Map<core.String, core.String>(); |
754 o["x"] = "foo"; | 756 o["x"] = "foo"; |
755 o["y"] = "foo"; | 757 o["y"] = "foo"; |
756 return o; | 758 return o; |
757 } | 759 } |
758 | 760 |
759 checkUnnamed466(core.Map<core.String, core.String> o) { | 761 checkUnnamed487(core.Map<core.String, core.String> o) { |
760 unittest.expect(o, unittest.hasLength(2)); | 762 unittest.expect(o, unittest.hasLength(2)); |
761 unittest.expect(o["x"], unittest.equals('foo')); | 763 unittest.expect(o["x"], unittest.equals('foo')); |
762 unittest.expect(o["y"], unittest.equals('foo')); | 764 unittest.expect(o["y"], unittest.equals('foo')); |
763 } | 765 } |
764 | 766 |
765 buildUnnamed467() { | 767 buildUnnamed488() { |
766 var o = new core.List<api.JobStatus>(); | 768 var o = new core.List<api.JobStatus>(); |
767 o.add(buildJobStatus()); | 769 o.add(buildJobStatus()); |
768 o.add(buildJobStatus()); | 770 o.add(buildJobStatus()); |
769 return o; | 771 return o; |
770 } | 772 } |
771 | 773 |
772 checkUnnamed467(core.List<api.JobStatus> o) { | 774 checkUnnamed488(core.List<api.JobStatus> o) { |
773 unittest.expect(o, unittest.hasLength(2)); | 775 unittest.expect(o, unittest.hasLength(2)); |
774 checkJobStatus(o[0]); | 776 checkJobStatus(o[0]); |
775 checkJobStatus(o[1]); | 777 checkJobStatus(o[1]); |
776 } | 778 } |
777 | 779 |
778 buildUnnamed468() { | 780 buildUnnamed489() { |
779 var o = new core.List<api.YarnApplication>(); | 781 var o = new core.List<api.YarnApplication>(); |
780 o.add(buildYarnApplication()); | 782 o.add(buildYarnApplication()); |
781 o.add(buildYarnApplication()); | 783 o.add(buildYarnApplication()); |
782 return o; | 784 return o; |
783 } | 785 } |
784 | 786 |
785 checkUnnamed468(core.List<api.YarnApplication> o) { | 787 checkUnnamed489(core.List<api.YarnApplication> o) { |
786 unittest.expect(o, unittest.hasLength(2)); | 788 unittest.expect(o, unittest.hasLength(2)); |
787 checkYarnApplication(o[0]); | 789 checkYarnApplication(o[0]); |
788 checkYarnApplication(o[1]); | 790 checkYarnApplication(o[1]); |
789 } | 791 } |
790 | 792 |
791 core.int buildCounterJob = 0; | 793 core.int buildCounterJob = 0; |
792 buildJob() { | 794 buildJob() { |
793 var o = new api.Job(); | 795 var o = new api.Job(); |
794 buildCounterJob++; | 796 buildCounterJob++; |
795 if (buildCounterJob < 3) { | 797 if (buildCounterJob < 3) { |
796 o.driverControlFilesUri = "foo"; | 798 o.driverControlFilesUri = "foo"; |
797 o.driverOutputResourceUri = "foo"; | 799 o.driverOutputResourceUri = "foo"; |
798 o.hadoopJob = buildHadoopJob(); | 800 o.hadoopJob = buildHadoopJob(); |
799 o.hiveJob = buildHiveJob(); | 801 o.hiveJob = buildHiveJob(); |
800 o.labels = buildUnnamed466(); | 802 o.labels = buildUnnamed487(); |
801 o.pigJob = buildPigJob(); | 803 o.pigJob = buildPigJob(); |
802 o.placement = buildJobPlacement(); | 804 o.placement = buildJobPlacement(); |
803 o.pysparkJob = buildPySparkJob(); | 805 o.pysparkJob = buildPySparkJob(); |
804 o.reference = buildJobReference(); | 806 o.reference = buildJobReference(); |
805 o.scheduling = buildJobScheduling(); | 807 o.scheduling = buildJobScheduling(); |
806 o.sparkJob = buildSparkJob(); | 808 o.sparkJob = buildSparkJob(); |
807 o.sparkSqlJob = buildSparkSqlJob(); | 809 o.sparkSqlJob = buildSparkSqlJob(); |
808 o.status = buildJobStatus(); | 810 o.status = buildJobStatus(); |
809 o.statusHistory = buildUnnamed467(); | 811 o.statusHistory = buildUnnamed488(); |
810 o.yarnApplications = buildUnnamed468(); | 812 o.yarnApplications = buildUnnamed489(); |
811 } | 813 } |
812 buildCounterJob--; | 814 buildCounterJob--; |
813 return o; | 815 return o; |
814 } | 816 } |
815 | 817 |
816 checkJob(api.Job o) { | 818 checkJob(api.Job o) { |
817 buildCounterJob++; | 819 buildCounterJob++; |
818 if (buildCounterJob < 3) { | 820 if (buildCounterJob < 3) { |
819 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); | 821 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); |
820 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); | 822 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); |
821 checkHadoopJob(o.hadoopJob); | 823 checkHadoopJob(o.hadoopJob); |
822 checkHiveJob(o.hiveJob); | 824 checkHiveJob(o.hiveJob); |
823 checkUnnamed466(o.labels); | 825 checkUnnamed487(o.labels); |
824 checkPigJob(o.pigJob); | 826 checkPigJob(o.pigJob); |
825 checkJobPlacement(o.placement); | 827 checkJobPlacement(o.placement); |
826 checkPySparkJob(o.pysparkJob); | 828 checkPySparkJob(o.pysparkJob); |
827 checkJobReference(o.reference); | 829 checkJobReference(o.reference); |
828 checkJobScheduling(o.scheduling); | 830 checkJobScheduling(o.scheduling); |
829 checkSparkJob(o.sparkJob); | 831 checkSparkJob(o.sparkJob); |
830 checkSparkSqlJob(o.sparkSqlJob); | 832 checkSparkSqlJob(o.sparkSqlJob); |
831 checkJobStatus(o.status); | 833 checkJobStatus(o.status); |
832 checkUnnamed467(o.statusHistory); | 834 checkUnnamed488(o.statusHistory); |
833 checkUnnamed468(o.yarnApplications); | 835 checkUnnamed489(o.yarnApplications); |
834 } | 836 } |
835 buildCounterJob--; | 837 buildCounterJob--; |
836 } | 838 } |
837 | 839 |
838 core.int buildCounterJobPlacement = 0; | 840 core.int buildCounterJobPlacement = 0; |
839 buildJobPlacement() { | 841 buildJobPlacement() { |
840 var o = new api.JobPlacement(); | 842 var o = new api.JobPlacement(); |
841 buildCounterJobPlacement++; | 843 buildCounterJobPlacement++; |
842 if (buildCounterJobPlacement < 3) { | 844 if (buildCounterJobPlacement < 3) { |
843 o.clusterName = "foo"; | 845 o.clusterName = "foo"; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 } | 899 } |
898 | 900 |
899 core.int buildCounterJobStatus = 0; | 901 core.int buildCounterJobStatus = 0; |
900 buildJobStatus() { | 902 buildJobStatus() { |
901 var o = new api.JobStatus(); | 903 var o = new api.JobStatus(); |
902 buildCounterJobStatus++; | 904 buildCounterJobStatus++; |
903 if (buildCounterJobStatus < 3) { | 905 if (buildCounterJobStatus < 3) { |
904 o.details = "foo"; | 906 o.details = "foo"; |
905 o.state = "foo"; | 907 o.state = "foo"; |
906 o.stateStartTime = "foo"; | 908 o.stateStartTime = "foo"; |
| 909 o.substate = "foo"; |
907 } | 910 } |
908 buildCounterJobStatus--; | 911 buildCounterJobStatus--; |
909 return o; | 912 return o; |
910 } | 913 } |
911 | 914 |
912 checkJobStatus(api.JobStatus o) { | 915 checkJobStatus(api.JobStatus o) { |
913 buildCounterJobStatus++; | 916 buildCounterJobStatus++; |
914 if (buildCounterJobStatus < 3) { | 917 if (buildCounterJobStatus < 3) { |
915 unittest.expect(o.details, unittest.equals('foo')); | 918 unittest.expect(o.details, unittest.equals('foo')); |
916 unittest.expect(o.state, unittest.equals('foo')); | 919 unittest.expect(o.state, unittest.equals('foo')); |
917 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 920 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
| 921 unittest.expect(o.substate, unittest.equals('foo')); |
918 } | 922 } |
919 buildCounterJobStatus--; | 923 buildCounterJobStatus--; |
920 } | 924 } |
921 | 925 |
922 buildUnnamed469() { | 926 buildUnnamed490() { |
923 var o = new core.List<api.Cluster>(); | 927 var o = new core.List<api.Cluster>(); |
924 o.add(buildCluster()); | 928 o.add(buildCluster()); |
925 o.add(buildCluster()); | 929 o.add(buildCluster()); |
926 return o; | 930 return o; |
927 } | 931 } |
928 | 932 |
929 checkUnnamed469(core.List<api.Cluster> o) { | 933 checkUnnamed490(core.List<api.Cluster> o) { |
930 unittest.expect(o, unittest.hasLength(2)); | 934 unittest.expect(o, unittest.hasLength(2)); |
931 checkCluster(o[0]); | 935 checkCluster(o[0]); |
932 checkCluster(o[1]); | 936 checkCluster(o[1]); |
933 } | 937 } |
934 | 938 |
935 core.int buildCounterListClustersResponse = 0; | 939 core.int buildCounterListClustersResponse = 0; |
936 buildListClustersResponse() { | 940 buildListClustersResponse() { |
937 var o = new api.ListClustersResponse(); | 941 var o = new api.ListClustersResponse(); |
938 buildCounterListClustersResponse++; | 942 buildCounterListClustersResponse++; |
939 if (buildCounterListClustersResponse < 3) { | 943 if (buildCounterListClustersResponse < 3) { |
940 o.clusters = buildUnnamed469(); | 944 o.clusters = buildUnnamed490(); |
941 o.nextPageToken = "foo"; | 945 o.nextPageToken = "foo"; |
942 } | 946 } |
943 buildCounterListClustersResponse--; | 947 buildCounterListClustersResponse--; |
944 return o; | 948 return o; |
945 } | 949 } |
946 | 950 |
947 checkListClustersResponse(api.ListClustersResponse o) { | 951 checkListClustersResponse(api.ListClustersResponse o) { |
948 buildCounterListClustersResponse++; | 952 buildCounterListClustersResponse++; |
949 if (buildCounterListClustersResponse < 3) { | 953 if (buildCounterListClustersResponse < 3) { |
950 checkUnnamed469(o.clusters); | 954 checkUnnamed490(o.clusters); |
951 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 955 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
952 } | 956 } |
953 buildCounterListClustersResponse--; | 957 buildCounterListClustersResponse--; |
954 } | 958 } |
955 | 959 |
956 buildUnnamed470() { | 960 buildUnnamed491() { |
957 var o = new core.List<api.Job>(); | 961 var o = new core.List<api.Job>(); |
958 o.add(buildJob()); | 962 o.add(buildJob()); |
959 o.add(buildJob()); | 963 o.add(buildJob()); |
960 return o; | 964 return o; |
961 } | 965 } |
962 | 966 |
963 checkUnnamed470(core.List<api.Job> o) { | 967 checkUnnamed491(core.List<api.Job> o) { |
964 unittest.expect(o, unittest.hasLength(2)); | 968 unittest.expect(o, unittest.hasLength(2)); |
965 checkJob(o[0]); | 969 checkJob(o[0]); |
966 checkJob(o[1]); | 970 checkJob(o[1]); |
967 } | 971 } |
968 | 972 |
969 core.int buildCounterListJobsResponse = 0; | 973 core.int buildCounterListJobsResponse = 0; |
970 buildListJobsResponse() { | 974 buildListJobsResponse() { |
971 var o = new api.ListJobsResponse(); | 975 var o = new api.ListJobsResponse(); |
972 buildCounterListJobsResponse++; | 976 buildCounterListJobsResponse++; |
973 if (buildCounterListJobsResponse < 3) { | 977 if (buildCounterListJobsResponse < 3) { |
974 o.jobs = buildUnnamed470(); | 978 o.jobs = buildUnnamed491(); |
975 o.nextPageToken = "foo"; | 979 o.nextPageToken = "foo"; |
976 } | 980 } |
977 buildCounterListJobsResponse--; | 981 buildCounterListJobsResponse--; |
978 return o; | 982 return o; |
979 } | 983 } |
980 | 984 |
981 checkListJobsResponse(api.ListJobsResponse o) { | 985 checkListJobsResponse(api.ListJobsResponse o) { |
982 buildCounterListJobsResponse++; | 986 buildCounterListJobsResponse++; |
983 if (buildCounterListJobsResponse < 3) { | 987 if (buildCounterListJobsResponse < 3) { |
984 checkUnnamed470(o.jobs); | 988 checkUnnamed491(o.jobs); |
985 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 989 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
986 } | 990 } |
987 buildCounterListJobsResponse--; | 991 buildCounterListJobsResponse--; |
988 } | 992 } |
989 | 993 |
990 buildUnnamed471() { | 994 buildUnnamed492() { |
991 var o = new core.List<api.Operation>(); | 995 var o = new core.List<api.Operation>(); |
992 o.add(buildOperation()); | 996 o.add(buildOperation()); |
993 o.add(buildOperation()); | 997 o.add(buildOperation()); |
994 return o; | 998 return o; |
995 } | 999 } |
996 | 1000 |
997 checkUnnamed471(core.List<api.Operation> o) { | 1001 checkUnnamed492(core.List<api.Operation> o) { |
998 unittest.expect(o, unittest.hasLength(2)); | 1002 unittest.expect(o, unittest.hasLength(2)); |
999 checkOperation(o[0]); | 1003 checkOperation(o[0]); |
1000 checkOperation(o[1]); | 1004 checkOperation(o[1]); |
1001 } | 1005 } |
1002 | 1006 |
1003 core.int buildCounterListOperationsResponse = 0; | 1007 core.int buildCounterListOperationsResponse = 0; |
1004 buildListOperationsResponse() { | 1008 buildListOperationsResponse() { |
1005 var o = new api.ListOperationsResponse(); | 1009 var o = new api.ListOperationsResponse(); |
1006 buildCounterListOperationsResponse++; | 1010 buildCounterListOperationsResponse++; |
1007 if (buildCounterListOperationsResponse < 3) { | 1011 if (buildCounterListOperationsResponse < 3) { |
1008 o.nextPageToken = "foo"; | 1012 o.nextPageToken = "foo"; |
1009 o.operations = buildUnnamed471(); | 1013 o.operations = buildUnnamed492(); |
1010 } | 1014 } |
1011 buildCounterListOperationsResponse--; | 1015 buildCounterListOperationsResponse--; |
1012 return o; | 1016 return o; |
1013 } | 1017 } |
1014 | 1018 |
1015 checkListOperationsResponse(api.ListOperationsResponse o) { | 1019 checkListOperationsResponse(api.ListOperationsResponse o) { |
1016 buildCounterListOperationsResponse++; | 1020 buildCounterListOperationsResponse++; |
1017 if (buildCounterListOperationsResponse < 3) { | 1021 if (buildCounterListOperationsResponse < 3) { |
1018 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1022 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1019 checkUnnamed471(o.operations); | 1023 checkUnnamed492(o.operations); |
1020 } | 1024 } |
1021 buildCounterListOperationsResponse--; | 1025 buildCounterListOperationsResponse--; |
1022 } | 1026 } |
1023 | 1027 |
1024 buildUnnamed472() { | 1028 buildUnnamed493() { |
1025 var o = new core.Map<core.String, core.String>(); | 1029 var o = new core.Map<core.String, core.String>(); |
1026 o["x"] = "foo"; | 1030 o["x"] = "foo"; |
1027 o["y"] = "foo"; | 1031 o["y"] = "foo"; |
1028 return o; | 1032 return o; |
1029 } | 1033 } |
1030 | 1034 |
1031 checkUnnamed472(core.Map<core.String, core.String> o) { | 1035 checkUnnamed493(core.Map<core.String, core.String> o) { |
1032 unittest.expect(o, unittest.hasLength(2)); | 1036 unittest.expect(o, unittest.hasLength(2)); |
1033 unittest.expect(o["x"], unittest.equals('foo')); | 1037 unittest.expect(o["x"], unittest.equals('foo')); |
1034 unittest.expect(o["y"], unittest.equals('foo')); | 1038 unittest.expect(o["y"], unittest.equals('foo')); |
1035 } | 1039 } |
1036 | 1040 |
1037 core.int buildCounterLoggingConfig = 0; | 1041 core.int buildCounterLoggingConfig = 0; |
1038 buildLoggingConfig() { | 1042 buildLoggingConfig() { |
1039 var o = new api.LoggingConfig(); | 1043 var o = new api.LoggingConfig(); |
1040 buildCounterLoggingConfig++; | 1044 buildCounterLoggingConfig++; |
1041 if (buildCounterLoggingConfig < 3) { | 1045 if (buildCounterLoggingConfig < 3) { |
1042 o.driverLogLevels = buildUnnamed472(); | 1046 o.driverLogLevels = buildUnnamed493(); |
1043 } | 1047 } |
1044 buildCounterLoggingConfig--; | 1048 buildCounterLoggingConfig--; |
1045 return o; | 1049 return o; |
1046 } | 1050 } |
1047 | 1051 |
1048 checkLoggingConfig(api.LoggingConfig o) { | 1052 checkLoggingConfig(api.LoggingConfig o) { |
1049 buildCounterLoggingConfig++; | 1053 buildCounterLoggingConfig++; |
1050 if (buildCounterLoggingConfig < 3) { | 1054 if (buildCounterLoggingConfig < 3) { |
1051 checkUnnamed472(o.driverLogLevels); | 1055 checkUnnamed493(o.driverLogLevels); |
1052 } | 1056 } |
1053 buildCounterLoggingConfig--; | 1057 buildCounterLoggingConfig--; |
1054 } | 1058 } |
1055 | 1059 |
1056 core.int buildCounterManagedGroupConfig = 0; | 1060 core.int buildCounterManagedGroupConfig = 0; |
1057 buildManagedGroupConfig() { | 1061 buildManagedGroupConfig() { |
1058 var o = new api.ManagedGroupConfig(); | 1062 var o = new api.ManagedGroupConfig(); |
1059 buildCounterManagedGroupConfig++; | 1063 buildCounterManagedGroupConfig++; |
1060 if (buildCounterManagedGroupConfig < 3) { | 1064 if (buildCounterManagedGroupConfig < 3) { |
1061 o.instanceGroupManagerName = "foo"; | 1065 o.instanceGroupManagerName = "foo"; |
(...skipping 26 matching lines...) Expand all Loading... |
1088 | 1092 |
1089 checkNodeInitializationAction(api.NodeInitializationAction o) { | 1093 checkNodeInitializationAction(api.NodeInitializationAction o) { |
1090 buildCounterNodeInitializationAction++; | 1094 buildCounterNodeInitializationAction++; |
1091 if (buildCounterNodeInitializationAction < 3) { | 1095 if (buildCounterNodeInitializationAction < 3) { |
1092 unittest.expect(o.executableFile, unittest.equals('foo')); | 1096 unittest.expect(o.executableFile, unittest.equals('foo')); |
1093 unittest.expect(o.executionTimeout, unittest.equals('foo')); | 1097 unittest.expect(o.executionTimeout, unittest.equals('foo')); |
1094 } | 1098 } |
1095 buildCounterNodeInitializationAction--; | 1099 buildCounterNodeInitializationAction--; |
1096 } | 1100 } |
1097 | 1101 |
1098 buildUnnamed473() { | 1102 buildUnnamed494() { |
1099 var o = new core.Map<core.String, core.Object>(); | 1103 var o = new core.Map<core.String, core.Object>(); |
1100 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1104 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1101 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1105 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1102 return o; | 1106 return o; |
1103 } | 1107 } |
1104 | 1108 |
1105 checkUnnamed473(core.Map<core.String, core.Object> o) { | 1109 checkUnnamed494(core.Map<core.String, core.Object> o) { |
1106 unittest.expect(o, unittest.hasLength(2)); | 1110 unittest.expect(o, unittest.hasLength(2)); |
1107 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); | 1111 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); |
1108 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); | 1112 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); |
1109 } | 1113 } |
1110 | 1114 |
1111 buildUnnamed474() { | 1115 buildUnnamed495() { |
1112 var o = new core.Map<core.String, core.Object>(); | 1116 var o = new core.Map<core.String, core.Object>(); |
1113 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1117 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1114 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1118 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1115 return o; | 1119 return o; |
1116 } | 1120 } |
1117 | 1121 |
1118 checkUnnamed474(core.Map<core.String, core.Object> o) { | 1122 checkUnnamed495(core.Map<core.String, core.Object> o) { |
1119 unittest.expect(o, unittest.hasLength(2)); | 1123 unittest.expect(o, unittest.hasLength(2)); |
1120 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); | 1124 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); |
1121 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); | 1125 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); |
1122 } | 1126 } |
1123 | 1127 |
1124 core.int buildCounterOperation = 0; | 1128 core.int buildCounterOperation = 0; |
1125 buildOperation() { | 1129 buildOperation() { |
1126 var o = new api.Operation(); | 1130 var o = new api.Operation(); |
1127 buildCounterOperation++; | 1131 buildCounterOperation++; |
1128 if (buildCounterOperation < 3) { | 1132 if (buildCounterOperation < 3) { |
1129 o.done = true; | 1133 o.done = true; |
1130 o.error = buildStatus(); | 1134 o.error = buildStatus(); |
1131 o.metadata = buildUnnamed473(); | 1135 o.metadata = buildUnnamed494(); |
1132 o.name = "foo"; | 1136 o.name = "foo"; |
1133 o.response = buildUnnamed474(); | 1137 o.response = buildUnnamed495(); |
1134 } | 1138 } |
1135 buildCounterOperation--; | 1139 buildCounterOperation--; |
1136 return o; | 1140 return o; |
1137 } | 1141 } |
1138 | 1142 |
1139 checkOperation(api.Operation o) { | 1143 checkOperation(api.Operation o) { |
1140 buildCounterOperation++; | 1144 buildCounterOperation++; |
1141 if (buildCounterOperation < 3) { | 1145 if (buildCounterOperation < 3) { |
1142 unittest.expect(o.done, unittest.isTrue); | 1146 unittest.expect(o.done, unittest.isTrue); |
1143 checkStatus(o.error); | 1147 checkStatus(o.error); |
1144 checkUnnamed473(o.metadata); | 1148 checkUnnamed494(o.metadata); |
1145 unittest.expect(o.name, unittest.equals('foo')); | 1149 unittest.expect(o.name, unittest.equals('foo')); |
1146 checkUnnamed474(o.response); | 1150 checkUnnamed495(o.response); |
1147 } | 1151 } |
1148 buildCounterOperation--; | 1152 buildCounterOperation--; |
1149 } | 1153 } |
1150 | 1154 |
1151 buildUnnamed475() { | 1155 buildUnnamed496() { |
1152 var o = new core.List<api.OperationStatus>(); | 1156 var o = new core.List<api.OperationStatus>(); |
1153 o.add(buildOperationStatus()); | 1157 o.add(buildOperationStatus()); |
1154 o.add(buildOperationStatus()); | 1158 o.add(buildOperationStatus()); |
1155 return o; | 1159 return o; |
1156 } | 1160 } |
1157 | 1161 |
1158 checkUnnamed475(core.List<api.OperationStatus> o) { | 1162 checkUnnamed496(core.List<api.OperationStatus> o) { |
1159 unittest.expect(o, unittest.hasLength(2)); | 1163 unittest.expect(o, unittest.hasLength(2)); |
1160 checkOperationStatus(o[0]); | 1164 checkOperationStatus(o[0]); |
1161 checkOperationStatus(o[1]); | 1165 checkOperationStatus(o[1]); |
1162 } | 1166 } |
1163 | 1167 |
1164 buildUnnamed476() { | 1168 buildUnnamed497() { |
1165 var o = new core.List<core.String>(); | 1169 var o = new core.List<core.String>(); |
1166 o.add("foo"); | 1170 o.add("foo"); |
1167 o.add("foo"); | 1171 o.add("foo"); |
1168 return o; | 1172 return o; |
1169 } | 1173 } |
1170 | 1174 |
1171 checkUnnamed476(core.List<core.String> o) { | 1175 checkUnnamed497(core.List<core.String> o) { |
1172 unittest.expect(o, unittest.hasLength(2)); | 1176 unittest.expect(o, unittest.hasLength(2)); |
1173 unittest.expect(o[0], unittest.equals('foo')); | 1177 unittest.expect(o[0], unittest.equals('foo')); |
1174 unittest.expect(o[1], unittest.equals('foo')); | 1178 unittest.expect(o[1], unittest.equals('foo')); |
1175 } | 1179 } |
1176 | 1180 |
1177 core.int buildCounterOperationMetadata = 0; | 1181 core.int buildCounterOperationMetadata = 0; |
1178 buildOperationMetadata() { | 1182 buildOperationMetadata() { |
1179 var o = new api.OperationMetadata(); | 1183 var o = new api.OperationMetadata(); |
1180 buildCounterOperationMetadata++; | 1184 buildCounterOperationMetadata++; |
1181 if (buildCounterOperationMetadata < 3) { | 1185 if (buildCounterOperationMetadata < 3) { |
1182 o.clusterName = "foo"; | 1186 o.clusterName = "foo"; |
1183 o.clusterUuid = "foo"; | 1187 o.clusterUuid = "foo"; |
1184 o.description = "foo"; | 1188 o.description = "foo"; |
1185 o.details = "foo"; | 1189 o.details = "foo"; |
1186 o.endTime = "foo"; | 1190 o.endTime = "foo"; |
1187 o.innerState = "foo"; | 1191 o.innerState = "foo"; |
1188 o.insertTime = "foo"; | 1192 o.insertTime = "foo"; |
1189 o.operationType = "foo"; | 1193 o.operationType = "foo"; |
1190 o.startTime = "foo"; | 1194 o.startTime = "foo"; |
1191 o.state = "foo"; | 1195 o.state = "foo"; |
1192 o.status = buildOperationStatus(); | 1196 o.status = buildOperationStatus(); |
1193 o.statusHistory = buildUnnamed475(); | 1197 o.statusHistory = buildUnnamed496(); |
1194 o.warnings = buildUnnamed476(); | 1198 o.warnings = buildUnnamed497(); |
1195 } | 1199 } |
1196 buildCounterOperationMetadata--; | 1200 buildCounterOperationMetadata--; |
1197 return o; | 1201 return o; |
1198 } | 1202 } |
1199 | 1203 |
1200 checkOperationMetadata(api.OperationMetadata o) { | 1204 checkOperationMetadata(api.OperationMetadata o) { |
1201 buildCounterOperationMetadata++; | 1205 buildCounterOperationMetadata++; |
1202 if (buildCounterOperationMetadata < 3) { | 1206 if (buildCounterOperationMetadata < 3) { |
1203 unittest.expect(o.clusterName, unittest.equals('foo')); | 1207 unittest.expect(o.clusterName, unittest.equals('foo')); |
1204 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 1208 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
1205 unittest.expect(o.description, unittest.equals('foo')); | 1209 unittest.expect(o.description, unittest.equals('foo')); |
1206 unittest.expect(o.details, unittest.equals('foo')); | 1210 unittest.expect(o.details, unittest.equals('foo')); |
1207 unittest.expect(o.endTime, unittest.equals('foo')); | 1211 unittest.expect(o.endTime, unittest.equals('foo')); |
1208 unittest.expect(o.innerState, unittest.equals('foo')); | 1212 unittest.expect(o.innerState, unittest.equals('foo')); |
1209 unittest.expect(o.insertTime, unittest.equals('foo')); | 1213 unittest.expect(o.insertTime, unittest.equals('foo')); |
1210 unittest.expect(o.operationType, unittest.equals('foo')); | 1214 unittest.expect(o.operationType, unittest.equals('foo')); |
1211 unittest.expect(o.startTime, unittest.equals('foo')); | 1215 unittest.expect(o.startTime, unittest.equals('foo')); |
1212 unittest.expect(o.state, unittest.equals('foo')); | 1216 unittest.expect(o.state, unittest.equals('foo')); |
1213 checkOperationStatus(o.status); | 1217 checkOperationStatus(o.status); |
1214 checkUnnamed475(o.statusHistory); | 1218 checkUnnamed496(o.statusHistory); |
1215 checkUnnamed476(o.warnings); | 1219 checkUnnamed497(o.warnings); |
1216 } | 1220 } |
1217 buildCounterOperationMetadata--; | 1221 buildCounterOperationMetadata--; |
1218 } | 1222 } |
1219 | 1223 |
1220 core.int buildCounterOperationStatus = 0; | 1224 core.int buildCounterOperationStatus = 0; |
1221 buildOperationStatus() { | 1225 buildOperationStatus() { |
1222 var o = new api.OperationStatus(); | 1226 var o = new api.OperationStatus(); |
1223 buildCounterOperationStatus++; | 1227 buildCounterOperationStatus++; |
1224 if (buildCounterOperationStatus < 3) { | 1228 if (buildCounterOperationStatus < 3) { |
1225 o.details = "foo"; | 1229 o.details = "foo"; |
1226 o.innerState = "foo"; | 1230 o.innerState = "foo"; |
1227 o.state = "foo"; | 1231 o.state = "foo"; |
1228 o.stateStartTime = "foo"; | 1232 o.stateStartTime = "foo"; |
1229 } | 1233 } |
1230 buildCounterOperationStatus--; | 1234 buildCounterOperationStatus--; |
1231 return o; | 1235 return o; |
1232 } | 1236 } |
1233 | 1237 |
1234 checkOperationStatus(api.OperationStatus o) { | 1238 checkOperationStatus(api.OperationStatus o) { |
1235 buildCounterOperationStatus++; | 1239 buildCounterOperationStatus++; |
1236 if (buildCounterOperationStatus < 3) { | 1240 if (buildCounterOperationStatus < 3) { |
1237 unittest.expect(o.details, unittest.equals('foo')); | 1241 unittest.expect(o.details, unittest.equals('foo')); |
1238 unittest.expect(o.innerState, unittest.equals('foo')); | 1242 unittest.expect(o.innerState, unittest.equals('foo')); |
1239 unittest.expect(o.state, unittest.equals('foo')); | 1243 unittest.expect(o.state, unittest.equals('foo')); |
1240 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 1244 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
1241 } | 1245 } |
1242 buildCounterOperationStatus--; | 1246 buildCounterOperationStatus--; |
1243 } | 1247 } |
1244 | 1248 |
1245 buildUnnamed477() { | 1249 buildUnnamed498() { |
1246 var o = new core.List<core.String>(); | 1250 var o = new core.List<core.String>(); |
1247 o.add("foo"); | 1251 o.add("foo"); |
1248 o.add("foo"); | 1252 o.add("foo"); |
1249 return o; | 1253 return o; |
1250 } | 1254 } |
1251 | 1255 |
1252 checkUnnamed477(core.List<core.String> o) { | 1256 checkUnnamed498(core.List<core.String> o) { |
1253 unittest.expect(o, unittest.hasLength(2)); | 1257 unittest.expect(o, unittest.hasLength(2)); |
1254 unittest.expect(o[0], unittest.equals('foo')); | 1258 unittest.expect(o[0], unittest.equals('foo')); |
1255 unittest.expect(o[1], unittest.equals('foo')); | 1259 unittest.expect(o[1], unittest.equals('foo')); |
1256 } | 1260 } |
1257 | 1261 |
1258 buildUnnamed478() { | 1262 buildUnnamed499() { |
1259 var o = new core.Map<core.String, core.String>(); | 1263 var o = new core.Map<core.String, core.String>(); |
1260 o["x"] = "foo"; | 1264 o["x"] = "foo"; |
1261 o["y"] = "foo"; | 1265 o["y"] = "foo"; |
1262 return o; | 1266 return o; |
1263 } | 1267 } |
1264 | 1268 |
1265 checkUnnamed478(core.Map<core.String, core.String> o) { | 1269 checkUnnamed499(core.Map<core.String, core.String> o) { |
1266 unittest.expect(o, unittest.hasLength(2)); | 1270 unittest.expect(o, unittest.hasLength(2)); |
1267 unittest.expect(o["x"], unittest.equals('foo')); | 1271 unittest.expect(o["x"], unittest.equals('foo')); |
1268 unittest.expect(o["y"], unittest.equals('foo')); | 1272 unittest.expect(o["y"], unittest.equals('foo')); |
1269 } | 1273 } |
1270 | 1274 |
1271 buildUnnamed479() { | 1275 buildUnnamed500() { |
1272 var o = new core.Map<core.String, core.String>(); | 1276 var o = new core.Map<core.String, core.String>(); |
1273 o["x"] = "foo"; | 1277 o["x"] = "foo"; |
1274 o["y"] = "foo"; | 1278 o["y"] = "foo"; |
1275 return o; | 1279 return o; |
1276 } | 1280 } |
1277 | 1281 |
1278 checkUnnamed479(core.Map<core.String, core.String> o) { | 1282 checkUnnamed500(core.Map<core.String, core.String> o) { |
1279 unittest.expect(o, unittest.hasLength(2)); | 1283 unittest.expect(o, unittest.hasLength(2)); |
1280 unittest.expect(o["x"], unittest.equals('foo')); | 1284 unittest.expect(o["x"], unittest.equals('foo')); |
1281 unittest.expect(o["y"], unittest.equals('foo')); | 1285 unittest.expect(o["y"], unittest.equals('foo')); |
1282 } | 1286 } |
1283 | 1287 |
1284 core.int buildCounterPigJob = 0; | 1288 core.int buildCounterPigJob = 0; |
1285 buildPigJob() { | 1289 buildPigJob() { |
1286 var o = new api.PigJob(); | 1290 var o = new api.PigJob(); |
1287 buildCounterPigJob++; | 1291 buildCounterPigJob++; |
1288 if (buildCounterPigJob < 3) { | 1292 if (buildCounterPigJob < 3) { |
1289 o.continueOnFailure = true; | 1293 o.continueOnFailure = true; |
1290 o.jarFileUris = buildUnnamed477(); | 1294 o.jarFileUris = buildUnnamed498(); |
1291 o.loggingConfig = buildLoggingConfig(); | 1295 o.loggingConfig = buildLoggingConfig(); |
1292 o.properties = buildUnnamed478(); | 1296 o.properties = buildUnnamed499(); |
1293 o.queryFileUri = "foo"; | 1297 o.queryFileUri = "foo"; |
1294 o.queryList = buildQueryList(); | 1298 o.queryList = buildQueryList(); |
1295 o.scriptVariables = buildUnnamed479(); | 1299 o.scriptVariables = buildUnnamed500(); |
1296 } | 1300 } |
1297 buildCounterPigJob--; | 1301 buildCounterPigJob--; |
1298 return o; | 1302 return o; |
1299 } | 1303 } |
1300 | 1304 |
1301 checkPigJob(api.PigJob o) { | 1305 checkPigJob(api.PigJob o) { |
1302 buildCounterPigJob++; | 1306 buildCounterPigJob++; |
1303 if (buildCounterPigJob < 3) { | 1307 if (buildCounterPigJob < 3) { |
1304 unittest.expect(o.continueOnFailure, unittest.isTrue); | 1308 unittest.expect(o.continueOnFailure, unittest.isTrue); |
1305 checkUnnamed477(o.jarFileUris); | 1309 checkUnnamed498(o.jarFileUris); |
1306 checkLoggingConfig(o.loggingConfig); | 1310 checkLoggingConfig(o.loggingConfig); |
1307 checkUnnamed478(o.properties); | 1311 checkUnnamed499(o.properties); |
1308 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1312 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
1309 checkQueryList(o.queryList); | 1313 checkQueryList(o.queryList); |
1310 checkUnnamed479(o.scriptVariables); | 1314 checkUnnamed500(o.scriptVariables); |
1311 } | 1315 } |
1312 buildCounterPigJob--; | 1316 buildCounterPigJob--; |
1313 } | 1317 } |
1314 | 1318 |
1315 buildUnnamed480() { | 1319 buildUnnamed501() { |
1316 var o = new core.List<core.String>(); | 1320 var o = new core.List<core.String>(); |
1317 o.add("foo"); | 1321 o.add("foo"); |
1318 o.add("foo"); | 1322 o.add("foo"); |
1319 return o; | 1323 return o; |
1320 } | 1324 } |
1321 | 1325 |
1322 checkUnnamed480(core.List<core.String> o) { | 1326 checkUnnamed501(core.List<core.String> o) { |
1323 unittest.expect(o, unittest.hasLength(2)); | 1327 unittest.expect(o, unittest.hasLength(2)); |
1324 unittest.expect(o[0], unittest.equals('foo')); | 1328 unittest.expect(o[0], unittest.equals('foo')); |
1325 unittest.expect(o[1], unittest.equals('foo')); | 1329 unittest.expect(o[1], unittest.equals('foo')); |
1326 } | 1330 } |
1327 | 1331 |
1328 buildUnnamed481() { | 1332 buildUnnamed502() { |
1329 var o = new core.List<core.String>(); | 1333 var o = new core.List<core.String>(); |
1330 o.add("foo"); | 1334 o.add("foo"); |
1331 o.add("foo"); | 1335 o.add("foo"); |
1332 return o; | 1336 return o; |
1333 } | 1337 } |
1334 | 1338 |
1335 checkUnnamed481(core.List<core.String> o) { | 1339 checkUnnamed502(core.List<core.String> o) { |
1336 unittest.expect(o, unittest.hasLength(2)); | 1340 unittest.expect(o, unittest.hasLength(2)); |
1337 unittest.expect(o[0], unittest.equals('foo')); | 1341 unittest.expect(o[0], unittest.equals('foo')); |
1338 unittest.expect(o[1], unittest.equals('foo')); | 1342 unittest.expect(o[1], unittest.equals('foo')); |
1339 } | 1343 } |
1340 | 1344 |
1341 buildUnnamed482() { | 1345 buildUnnamed503() { |
1342 var o = new core.List<core.String>(); | 1346 var o = new core.List<core.String>(); |
1343 o.add("foo"); | 1347 o.add("foo"); |
1344 o.add("foo"); | 1348 o.add("foo"); |
1345 return o; | 1349 return o; |
1346 } | 1350 } |
1347 | 1351 |
1348 checkUnnamed482(core.List<core.String> o) { | 1352 checkUnnamed503(core.List<core.String> o) { |
1349 unittest.expect(o, unittest.hasLength(2)); | 1353 unittest.expect(o, unittest.hasLength(2)); |
1350 unittest.expect(o[0], unittest.equals('foo')); | 1354 unittest.expect(o[0], unittest.equals('foo')); |
1351 unittest.expect(o[1], unittest.equals('foo')); | 1355 unittest.expect(o[1], unittest.equals('foo')); |
1352 } | 1356 } |
1353 | 1357 |
1354 buildUnnamed483() { | 1358 buildUnnamed504() { |
1355 var o = new core.List<core.String>(); | 1359 var o = new core.List<core.String>(); |
1356 o.add("foo"); | 1360 o.add("foo"); |
1357 o.add("foo"); | 1361 o.add("foo"); |
1358 return o; | 1362 return o; |
1359 } | 1363 } |
1360 | 1364 |
1361 checkUnnamed483(core.List<core.String> o) { | 1365 checkUnnamed504(core.List<core.String> o) { |
1362 unittest.expect(o, unittest.hasLength(2)); | 1366 unittest.expect(o, unittest.hasLength(2)); |
1363 unittest.expect(o[0], unittest.equals('foo')); | 1367 unittest.expect(o[0], unittest.equals('foo')); |
1364 unittest.expect(o[1], unittest.equals('foo')); | 1368 unittest.expect(o[1], unittest.equals('foo')); |
1365 } | 1369 } |
1366 | 1370 |
1367 buildUnnamed484() { | 1371 buildUnnamed505() { |
1368 var o = new core.Map<core.String, core.String>(); | 1372 var o = new core.Map<core.String, core.String>(); |
1369 o["x"] = "foo"; | 1373 o["x"] = "foo"; |
1370 o["y"] = "foo"; | 1374 o["y"] = "foo"; |
1371 return o; | 1375 return o; |
1372 } | 1376 } |
1373 | 1377 |
1374 checkUnnamed484(core.Map<core.String, core.String> o) { | 1378 checkUnnamed505(core.Map<core.String, core.String> o) { |
1375 unittest.expect(o, unittest.hasLength(2)); | 1379 unittest.expect(o, unittest.hasLength(2)); |
1376 unittest.expect(o["x"], unittest.equals('foo')); | 1380 unittest.expect(o["x"], unittest.equals('foo')); |
1377 unittest.expect(o["y"], unittest.equals('foo')); | 1381 unittest.expect(o["y"], unittest.equals('foo')); |
1378 } | 1382 } |
1379 | 1383 |
1380 buildUnnamed485() { | 1384 buildUnnamed506() { |
1381 var o = new core.List<core.String>(); | 1385 var o = new core.List<core.String>(); |
1382 o.add("foo"); | 1386 o.add("foo"); |
1383 o.add("foo"); | 1387 o.add("foo"); |
1384 return o; | 1388 return o; |
1385 } | 1389 } |
1386 | 1390 |
1387 checkUnnamed485(core.List<core.String> o) { | 1391 checkUnnamed506(core.List<core.String> o) { |
1388 unittest.expect(o, unittest.hasLength(2)); | 1392 unittest.expect(o, unittest.hasLength(2)); |
1389 unittest.expect(o[0], unittest.equals('foo')); | 1393 unittest.expect(o[0], unittest.equals('foo')); |
1390 unittest.expect(o[1], unittest.equals('foo')); | 1394 unittest.expect(o[1], unittest.equals('foo')); |
1391 } | 1395 } |
1392 | 1396 |
1393 core.int buildCounterPySparkJob = 0; | 1397 core.int buildCounterPySparkJob = 0; |
1394 buildPySparkJob() { | 1398 buildPySparkJob() { |
1395 var o = new api.PySparkJob(); | 1399 var o = new api.PySparkJob(); |
1396 buildCounterPySparkJob++; | 1400 buildCounterPySparkJob++; |
1397 if (buildCounterPySparkJob < 3) { | 1401 if (buildCounterPySparkJob < 3) { |
1398 o.archiveUris = buildUnnamed480(); | 1402 o.archiveUris = buildUnnamed501(); |
1399 o.args = buildUnnamed481(); | 1403 o.args = buildUnnamed502(); |
1400 o.fileUris = buildUnnamed482(); | 1404 o.fileUris = buildUnnamed503(); |
1401 o.jarFileUris = buildUnnamed483(); | 1405 o.jarFileUris = buildUnnamed504(); |
1402 o.loggingConfig = buildLoggingConfig(); | 1406 o.loggingConfig = buildLoggingConfig(); |
1403 o.mainPythonFileUri = "foo"; | 1407 o.mainPythonFileUri = "foo"; |
1404 o.properties = buildUnnamed484(); | 1408 o.properties = buildUnnamed505(); |
1405 o.pythonFileUris = buildUnnamed485(); | 1409 o.pythonFileUris = buildUnnamed506(); |
1406 } | 1410 } |
1407 buildCounterPySparkJob--; | 1411 buildCounterPySparkJob--; |
1408 return o; | 1412 return o; |
1409 } | 1413 } |
1410 | 1414 |
1411 checkPySparkJob(api.PySparkJob o) { | 1415 checkPySparkJob(api.PySparkJob o) { |
1412 buildCounterPySparkJob++; | 1416 buildCounterPySparkJob++; |
1413 if (buildCounterPySparkJob < 3) { | 1417 if (buildCounterPySparkJob < 3) { |
1414 checkUnnamed480(o.archiveUris); | 1418 checkUnnamed501(o.archiveUris); |
1415 checkUnnamed481(o.args); | 1419 checkUnnamed502(o.args); |
1416 checkUnnamed482(o.fileUris); | 1420 checkUnnamed503(o.fileUris); |
1417 checkUnnamed483(o.jarFileUris); | 1421 checkUnnamed504(o.jarFileUris); |
1418 checkLoggingConfig(o.loggingConfig); | 1422 checkLoggingConfig(o.loggingConfig); |
1419 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); | 1423 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); |
1420 checkUnnamed484(o.properties); | 1424 checkUnnamed505(o.properties); |
1421 checkUnnamed485(o.pythonFileUris); | 1425 checkUnnamed506(o.pythonFileUris); |
1422 } | 1426 } |
1423 buildCounterPySparkJob--; | 1427 buildCounterPySparkJob--; |
1424 } | 1428 } |
1425 | 1429 |
1426 buildUnnamed486() { | 1430 buildUnnamed507() { |
1427 var o = new core.List<core.String>(); | 1431 var o = new core.List<core.String>(); |
1428 o.add("foo"); | 1432 o.add("foo"); |
1429 o.add("foo"); | 1433 o.add("foo"); |
1430 return o; | 1434 return o; |
1431 } | 1435 } |
1432 | 1436 |
1433 checkUnnamed486(core.List<core.String> o) { | 1437 checkUnnamed507(core.List<core.String> o) { |
1434 unittest.expect(o, unittest.hasLength(2)); | 1438 unittest.expect(o, unittest.hasLength(2)); |
1435 unittest.expect(o[0], unittest.equals('foo')); | 1439 unittest.expect(o[0], unittest.equals('foo')); |
1436 unittest.expect(o[1], unittest.equals('foo')); | 1440 unittest.expect(o[1], unittest.equals('foo')); |
1437 } | 1441 } |
1438 | 1442 |
1439 core.int buildCounterQueryList = 0; | 1443 core.int buildCounterQueryList = 0; |
1440 buildQueryList() { | 1444 buildQueryList() { |
1441 var o = new api.QueryList(); | 1445 var o = new api.QueryList(); |
1442 buildCounterQueryList++; | 1446 buildCounterQueryList++; |
1443 if (buildCounterQueryList < 3) { | 1447 if (buildCounterQueryList < 3) { |
1444 o.queries = buildUnnamed486(); | 1448 o.queries = buildUnnamed507(); |
1445 } | 1449 } |
1446 buildCounterQueryList--; | 1450 buildCounterQueryList--; |
1447 return o; | 1451 return o; |
1448 } | 1452 } |
1449 | 1453 |
1450 checkQueryList(api.QueryList o) { | 1454 checkQueryList(api.QueryList o) { |
1451 buildCounterQueryList++; | 1455 buildCounterQueryList++; |
1452 if (buildCounterQueryList < 3) { | 1456 if (buildCounterQueryList < 3) { |
1453 checkUnnamed486(o.queries); | 1457 checkUnnamed507(o.queries); |
1454 } | 1458 } |
1455 buildCounterQueryList--; | 1459 buildCounterQueryList--; |
1456 } | 1460 } |
1457 | 1461 |
1458 buildUnnamed487() { | 1462 buildUnnamed508() { |
1459 var o = new core.Map<core.String, core.String>(); | 1463 var o = new core.Map<core.String, core.String>(); |
1460 o["x"] = "foo"; | 1464 o["x"] = "foo"; |
1461 o["y"] = "foo"; | 1465 o["y"] = "foo"; |
1462 return o; | 1466 return o; |
1463 } | 1467 } |
1464 | 1468 |
1465 checkUnnamed487(core.Map<core.String, core.String> o) { | 1469 checkUnnamed508(core.Map<core.String, core.String> o) { |
1466 unittest.expect(o, unittest.hasLength(2)); | 1470 unittest.expect(o, unittest.hasLength(2)); |
1467 unittest.expect(o["x"], unittest.equals('foo')); | 1471 unittest.expect(o["x"], unittest.equals('foo')); |
1468 unittest.expect(o["y"], unittest.equals('foo')); | 1472 unittest.expect(o["y"], unittest.equals('foo')); |
1469 } | 1473 } |
1470 | 1474 |
1471 core.int buildCounterSoftwareConfig = 0; | 1475 core.int buildCounterSoftwareConfig = 0; |
1472 buildSoftwareConfig() { | 1476 buildSoftwareConfig() { |
1473 var o = new api.SoftwareConfig(); | 1477 var o = new api.SoftwareConfig(); |
1474 buildCounterSoftwareConfig++; | 1478 buildCounterSoftwareConfig++; |
1475 if (buildCounterSoftwareConfig < 3) { | 1479 if (buildCounterSoftwareConfig < 3) { |
1476 o.imageVersion = "foo"; | 1480 o.imageVersion = "foo"; |
1477 o.properties = buildUnnamed487(); | 1481 o.properties = buildUnnamed508(); |
1478 } | 1482 } |
1479 buildCounterSoftwareConfig--; | 1483 buildCounterSoftwareConfig--; |
1480 return o; | 1484 return o; |
1481 } | 1485 } |
1482 | 1486 |
1483 checkSoftwareConfig(api.SoftwareConfig o) { | 1487 checkSoftwareConfig(api.SoftwareConfig o) { |
1484 buildCounterSoftwareConfig++; | 1488 buildCounterSoftwareConfig++; |
1485 if (buildCounterSoftwareConfig < 3) { | 1489 if (buildCounterSoftwareConfig < 3) { |
1486 unittest.expect(o.imageVersion, unittest.equals('foo')); | 1490 unittest.expect(o.imageVersion, unittest.equals('foo')); |
1487 checkUnnamed487(o.properties); | 1491 checkUnnamed508(o.properties); |
1488 } | 1492 } |
1489 buildCounterSoftwareConfig--; | 1493 buildCounterSoftwareConfig--; |
1490 } | 1494 } |
1491 | 1495 |
1492 buildUnnamed488() { | 1496 buildUnnamed509() { |
1493 var o = new core.List<core.String>(); | 1497 var o = new core.List<core.String>(); |
1494 o.add("foo"); | 1498 o.add("foo"); |
1495 o.add("foo"); | 1499 o.add("foo"); |
1496 return o; | 1500 return o; |
1497 } | 1501 } |
1498 | 1502 |
1499 checkUnnamed488(core.List<core.String> o) { | 1503 checkUnnamed509(core.List<core.String> o) { |
1500 unittest.expect(o, unittest.hasLength(2)); | 1504 unittest.expect(o, unittest.hasLength(2)); |
1501 unittest.expect(o[0], unittest.equals('foo')); | 1505 unittest.expect(o[0], unittest.equals('foo')); |
1502 unittest.expect(o[1], unittest.equals('foo')); | 1506 unittest.expect(o[1], unittest.equals('foo')); |
1503 } | 1507 } |
1504 | 1508 |
1505 buildUnnamed489() { | 1509 buildUnnamed510() { |
1506 var o = new core.List<core.String>(); | 1510 var o = new core.List<core.String>(); |
1507 o.add("foo"); | 1511 o.add("foo"); |
1508 o.add("foo"); | 1512 o.add("foo"); |
1509 return o; | 1513 return o; |
1510 } | 1514 } |
1511 | 1515 |
1512 checkUnnamed489(core.List<core.String> o) { | 1516 checkUnnamed510(core.List<core.String> o) { |
1513 unittest.expect(o, unittest.hasLength(2)); | 1517 unittest.expect(o, unittest.hasLength(2)); |
1514 unittest.expect(o[0], unittest.equals('foo')); | 1518 unittest.expect(o[0], unittest.equals('foo')); |
1515 unittest.expect(o[1], unittest.equals('foo')); | 1519 unittest.expect(o[1], unittest.equals('foo')); |
1516 } | 1520 } |
1517 | 1521 |
1518 buildUnnamed490() { | 1522 buildUnnamed511() { |
1519 var o = new core.List<core.String>(); | 1523 var o = new core.List<core.String>(); |
1520 o.add("foo"); | 1524 o.add("foo"); |
1521 o.add("foo"); | 1525 o.add("foo"); |
1522 return o; | 1526 return o; |
1523 } | 1527 } |
1524 | 1528 |
1525 checkUnnamed490(core.List<core.String> o) { | 1529 checkUnnamed511(core.List<core.String> o) { |
1526 unittest.expect(o, unittest.hasLength(2)); | 1530 unittest.expect(o, unittest.hasLength(2)); |
1527 unittest.expect(o[0], unittest.equals('foo')); | 1531 unittest.expect(o[0], unittest.equals('foo')); |
1528 unittest.expect(o[1], unittest.equals('foo')); | 1532 unittest.expect(o[1], unittest.equals('foo')); |
1529 } | 1533 } |
1530 | 1534 |
1531 buildUnnamed491() { | 1535 buildUnnamed512() { |
1532 var o = new core.List<core.String>(); | 1536 var o = new core.List<core.String>(); |
1533 o.add("foo"); | 1537 o.add("foo"); |
1534 o.add("foo"); | 1538 o.add("foo"); |
1535 return o; | 1539 return o; |
1536 } | 1540 } |
1537 | 1541 |
1538 checkUnnamed491(core.List<core.String> o) { | 1542 checkUnnamed512(core.List<core.String> o) { |
1539 unittest.expect(o, unittest.hasLength(2)); | 1543 unittest.expect(o, unittest.hasLength(2)); |
1540 unittest.expect(o[0], unittest.equals('foo')); | 1544 unittest.expect(o[0], unittest.equals('foo')); |
1541 unittest.expect(o[1], unittest.equals('foo')); | 1545 unittest.expect(o[1], unittest.equals('foo')); |
1542 } | 1546 } |
1543 | 1547 |
1544 buildUnnamed492() { | 1548 buildUnnamed513() { |
1545 var o = new core.Map<core.String, core.String>(); | 1549 var o = new core.Map<core.String, core.String>(); |
1546 o["x"] = "foo"; | 1550 o["x"] = "foo"; |
1547 o["y"] = "foo"; | 1551 o["y"] = "foo"; |
1548 return o; | 1552 return o; |
1549 } | 1553 } |
1550 | 1554 |
1551 checkUnnamed492(core.Map<core.String, core.String> o) { | 1555 checkUnnamed513(core.Map<core.String, core.String> o) { |
1552 unittest.expect(o, unittest.hasLength(2)); | 1556 unittest.expect(o, unittest.hasLength(2)); |
1553 unittest.expect(o["x"], unittest.equals('foo')); | 1557 unittest.expect(o["x"], unittest.equals('foo')); |
1554 unittest.expect(o["y"], unittest.equals('foo')); | 1558 unittest.expect(o["y"], unittest.equals('foo')); |
1555 } | 1559 } |
1556 | 1560 |
1557 core.int buildCounterSparkJob = 0; | 1561 core.int buildCounterSparkJob = 0; |
1558 buildSparkJob() { | 1562 buildSparkJob() { |
1559 var o = new api.SparkJob(); | 1563 var o = new api.SparkJob(); |
1560 buildCounterSparkJob++; | 1564 buildCounterSparkJob++; |
1561 if (buildCounterSparkJob < 3) { | 1565 if (buildCounterSparkJob < 3) { |
1562 o.archiveUris = buildUnnamed488(); | 1566 o.archiveUris = buildUnnamed509(); |
1563 o.args = buildUnnamed489(); | 1567 o.args = buildUnnamed510(); |
1564 o.fileUris = buildUnnamed490(); | 1568 o.fileUris = buildUnnamed511(); |
1565 o.jarFileUris = buildUnnamed491(); | 1569 o.jarFileUris = buildUnnamed512(); |
1566 o.loggingConfig = buildLoggingConfig(); | 1570 o.loggingConfig = buildLoggingConfig(); |
1567 o.mainClass = "foo"; | 1571 o.mainClass = "foo"; |
1568 o.mainJarFileUri = "foo"; | 1572 o.mainJarFileUri = "foo"; |
1569 o.properties = buildUnnamed492(); | 1573 o.properties = buildUnnamed513(); |
1570 } | 1574 } |
1571 buildCounterSparkJob--; | 1575 buildCounterSparkJob--; |
1572 return o; | 1576 return o; |
1573 } | 1577 } |
1574 | 1578 |
1575 checkSparkJob(api.SparkJob o) { | 1579 checkSparkJob(api.SparkJob o) { |
1576 buildCounterSparkJob++; | 1580 buildCounterSparkJob++; |
1577 if (buildCounterSparkJob < 3) { | 1581 if (buildCounterSparkJob < 3) { |
1578 checkUnnamed488(o.archiveUris); | 1582 checkUnnamed509(o.archiveUris); |
1579 checkUnnamed489(o.args); | 1583 checkUnnamed510(o.args); |
1580 checkUnnamed490(o.fileUris); | 1584 checkUnnamed511(o.fileUris); |
1581 checkUnnamed491(o.jarFileUris); | 1585 checkUnnamed512(o.jarFileUris); |
1582 checkLoggingConfig(o.loggingConfig); | 1586 checkLoggingConfig(o.loggingConfig); |
1583 unittest.expect(o.mainClass, unittest.equals('foo')); | 1587 unittest.expect(o.mainClass, unittest.equals('foo')); |
1584 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 1588 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
1585 checkUnnamed492(o.properties); | 1589 checkUnnamed513(o.properties); |
1586 } | 1590 } |
1587 buildCounterSparkJob--; | 1591 buildCounterSparkJob--; |
1588 } | 1592 } |
1589 | 1593 |
1590 buildUnnamed493() { | 1594 buildUnnamed514() { |
1591 var o = new core.List<core.String>(); | 1595 var o = new core.List<core.String>(); |
1592 o.add("foo"); | 1596 o.add("foo"); |
1593 o.add("foo"); | 1597 o.add("foo"); |
1594 return o; | 1598 return o; |
1595 } | 1599 } |
1596 | 1600 |
1597 checkUnnamed493(core.List<core.String> o) { | 1601 checkUnnamed514(core.List<core.String> o) { |
1598 unittest.expect(o, unittest.hasLength(2)); | 1602 unittest.expect(o, unittest.hasLength(2)); |
1599 unittest.expect(o[0], unittest.equals('foo')); | 1603 unittest.expect(o[0], unittest.equals('foo')); |
1600 unittest.expect(o[1], unittest.equals('foo')); | 1604 unittest.expect(o[1], unittest.equals('foo')); |
1601 } | 1605 } |
1602 | 1606 |
1603 buildUnnamed494() { | 1607 buildUnnamed515() { |
1604 var o = new core.Map<core.String, core.String>(); | 1608 var o = new core.Map<core.String, core.String>(); |
1605 o["x"] = "foo"; | 1609 o["x"] = "foo"; |
1606 o["y"] = "foo"; | 1610 o["y"] = "foo"; |
1607 return o; | 1611 return o; |
1608 } | 1612 } |
1609 | 1613 |
1610 checkUnnamed494(core.Map<core.String, core.String> o) { | 1614 checkUnnamed515(core.Map<core.String, core.String> o) { |
1611 unittest.expect(o, unittest.hasLength(2)); | 1615 unittest.expect(o, unittest.hasLength(2)); |
1612 unittest.expect(o["x"], unittest.equals('foo')); | 1616 unittest.expect(o["x"], unittest.equals('foo')); |
1613 unittest.expect(o["y"], unittest.equals('foo')); | 1617 unittest.expect(o["y"], unittest.equals('foo')); |
1614 } | 1618 } |
1615 | 1619 |
1616 buildUnnamed495() { | 1620 buildUnnamed516() { |
1617 var o = new core.Map<core.String, core.String>(); | 1621 var o = new core.Map<core.String, core.String>(); |
1618 o["x"] = "foo"; | 1622 o["x"] = "foo"; |
1619 o["y"] = "foo"; | 1623 o["y"] = "foo"; |
1620 return o; | 1624 return o; |
1621 } | 1625 } |
1622 | 1626 |
1623 checkUnnamed495(core.Map<core.String, core.String> o) { | 1627 checkUnnamed516(core.Map<core.String, core.String> o) { |
1624 unittest.expect(o, unittest.hasLength(2)); | 1628 unittest.expect(o, unittest.hasLength(2)); |
1625 unittest.expect(o["x"], unittest.equals('foo')); | 1629 unittest.expect(o["x"], unittest.equals('foo')); |
1626 unittest.expect(o["y"], unittest.equals('foo')); | 1630 unittest.expect(o["y"], unittest.equals('foo')); |
1627 } | 1631 } |
1628 | 1632 |
1629 core.int buildCounterSparkSqlJob = 0; | 1633 core.int buildCounterSparkSqlJob = 0; |
1630 buildSparkSqlJob() { | 1634 buildSparkSqlJob() { |
1631 var o = new api.SparkSqlJob(); | 1635 var o = new api.SparkSqlJob(); |
1632 buildCounterSparkSqlJob++; | 1636 buildCounterSparkSqlJob++; |
1633 if (buildCounterSparkSqlJob < 3) { | 1637 if (buildCounterSparkSqlJob < 3) { |
1634 o.jarFileUris = buildUnnamed493(); | 1638 o.jarFileUris = buildUnnamed514(); |
1635 o.loggingConfig = buildLoggingConfig(); | 1639 o.loggingConfig = buildLoggingConfig(); |
1636 o.properties = buildUnnamed494(); | 1640 o.properties = buildUnnamed515(); |
1637 o.queryFileUri = "foo"; | 1641 o.queryFileUri = "foo"; |
1638 o.queryList = buildQueryList(); | 1642 o.queryList = buildQueryList(); |
1639 o.scriptVariables = buildUnnamed495(); | 1643 o.scriptVariables = buildUnnamed516(); |
1640 } | 1644 } |
1641 buildCounterSparkSqlJob--; | 1645 buildCounterSparkSqlJob--; |
1642 return o; | 1646 return o; |
1643 } | 1647 } |
1644 | 1648 |
1645 checkSparkSqlJob(api.SparkSqlJob o) { | 1649 checkSparkSqlJob(api.SparkSqlJob o) { |
1646 buildCounterSparkSqlJob++; | 1650 buildCounterSparkSqlJob++; |
1647 if (buildCounterSparkSqlJob < 3) { | 1651 if (buildCounterSparkSqlJob < 3) { |
1648 checkUnnamed493(o.jarFileUris); | 1652 checkUnnamed514(o.jarFileUris); |
1649 checkLoggingConfig(o.loggingConfig); | 1653 checkLoggingConfig(o.loggingConfig); |
1650 checkUnnamed494(o.properties); | 1654 checkUnnamed515(o.properties); |
1651 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1655 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
1652 checkQueryList(o.queryList); | 1656 checkQueryList(o.queryList); |
1653 checkUnnamed495(o.scriptVariables); | 1657 checkUnnamed516(o.scriptVariables); |
1654 } | 1658 } |
1655 buildCounterSparkSqlJob--; | 1659 buildCounterSparkSqlJob--; |
1656 } | 1660 } |
1657 | 1661 |
1658 buildUnnamed496() { | 1662 buildUnnamed517() { |
1659 var o = new core.Map<core.String, core.Object>(); | 1663 var o = new core.Map<core.String, core.Object>(); |
1660 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1664 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1661 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1665 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1662 return o; | 1666 return o; |
1663 } | 1667 } |
1664 | 1668 |
1665 checkUnnamed496(core.Map<core.String, core.Object> o) { | 1669 checkUnnamed517(core.Map<core.String, core.Object> o) { |
1666 unittest.expect(o, unittest.hasLength(2)); | 1670 unittest.expect(o, unittest.hasLength(2)); |
1667 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); | 1671 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); |
1668 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); | 1672 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); |
1669 } | 1673 } |
1670 | 1674 |
1671 buildUnnamed497() { | 1675 buildUnnamed518() { |
1672 var o = new core.List<core.Map<core.String, core.Object>>(); | 1676 var o = new core.List<core.Map<core.String, core.Object>>(); |
1673 o.add(buildUnnamed496()); | 1677 o.add(buildUnnamed517()); |
1674 o.add(buildUnnamed496()); | 1678 o.add(buildUnnamed517()); |
1675 return o; | 1679 return o; |
1676 } | 1680 } |
1677 | 1681 |
1678 checkUnnamed497(core.List<core.Map<core.String, core.Object>> o) { | 1682 checkUnnamed518(core.List<core.Map<core.String, core.Object>> o) { |
1679 unittest.expect(o, unittest.hasLength(2)); | 1683 unittest.expect(o, unittest.hasLength(2)); |
1680 checkUnnamed496(o[0]); | 1684 checkUnnamed517(o[0]); |
1681 checkUnnamed496(o[1]); | 1685 checkUnnamed517(o[1]); |
1682 } | 1686 } |
1683 | 1687 |
1684 core.int buildCounterStatus = 0; | 1688 core.int buildCounterStatus = 0; |
1685 buildStatus() { | 1689 buildStatus() { |
1686 var o = new api.Status(); | 1690 var o = new api.Status(); |
1687 buildCounterStatus++; | 1691 buildCounterStatus++; |
1688 if (buildCounterStatus < 3) { | 1692 if (buildCounterStatus < 3) { |
1689 o.code = 42; | 1693 o.code = 42; |
1690 o.details = buildUnnamed497(); | 1694 o.details = buildUnnamed518(); |
1691 o.message = "foo"; | 1695 o.message = "foo"; |
1692 } | 1696 } |
1693 buildCounterStatus--; | 1697 buildCounterStatus--; |
1694 return o; | 1698 return o; |
1695 } | 1699 } |
1696 | 1700 |
1697 checkStatus(api.Status o) { | 1701 checkStatus(api.Status o) { |
1698 buildCounterStatus++; | 1702 buildCounterStatus++; |
1699 if (buildCounterStatus < 3) { | 1703 if (buildCounterStatus < 3) { |
1700 unittest.expect(o.code, unittest.equals(42)); | 1704 unittest.expect(o.code, unittest.equals(42)); |
1701 checkUnnamed497(o.details); | 1705 checkUnnamed518(o.details); |
1702 unittest.expect(o.message, unittest.equals('foo')); | 1706 unittest.expect(o.message, unittest.equals('foo')); |
1703 } | 1707 } |
1704 buildCounterStatus--; | 1708 buildCounterStatus--; |
1705 } | 1709 } |
1706 | 1710 |
1707 core.int buildCounterSubmitJobRequest = 0; | 1711 core.int buildCounterSubmitJobRequest = 0; |
1708 buildSubmitJobRequest() { | 1712 buildSubmitJobRequest() { |
1709 var o = new api.SubmitJobRequest(); | 1713 var o = new api.SubmitJobRequest(); |
1710 buildCounterSubmitJobRequest++; | 1714 buildCounterSubmitJobRequest++; |
1711 if (buildCounterSubmitJobRequest < 3) { | 1715 if (buildCounterSubmitJobRequest < 3) { |
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2370 checkCluster(response); | 2374 checkCluster(response); |
2371 }))); | 2375 }))); |
2372 }); | 2376 }); |
2373 | 2377 |
2374 unittest.test("method--list", () { | 2378 unittest.test("method--list", () { |
2375 | 2379 |
2376 var mock = new HttpServerMock(); | 2380 var mock = new HttpServerMock(); |
2377 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; | 2381 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; |
2378 var arg_projectId = "foo"; | 2382 var arg_projectId = "foo"; |
2379 var arg_region = "foo"; | 2383 var arg_region = "foo"; |
2380 var arg_filter = "foo"; | |
2381 var arg_pageToken = "foo"; | 2384 var arg_pageToken = "foo"; |
2382 var arg_pageSize = 42; | 2385 var arg_pageSize = 42; |
| 2386 var arg_filter = "foo"; |
2383 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2387 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2384 var path = (req.url).path; | 2388 var path = (req.url).path; |
2385 var pathOffset = 0; | 2389 var pathOffset = 0; |
2386 var index; | 2390 var index; |
2387 var subPart; | 2391 var subPart; |
2388 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2392 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2389 pathOffset += 1; | 2393 pathOffset += 1; |
2390 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2394 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
2391 pathOffset += 12; | 2395 pathOffset += 12; |
2392 index = path.indexOf("/regions/", pathOffset); | 2396 index = path.indexOf("/regions/", pathOffset); |
(...skipping 20 matching lines...) Expand all Loading... |
2413 if (n == "false") return false; | 2417 if (n == "false") return false; |
2414 if (n == null) return null; | 2418 if (n == null) return null; |
2415 throw new core.ArgumentError("Invalid boolean: $n"); | 2419 throw new core.ArgumentError("Invalid boolean: $n"); |
2416 } | 2420 } |
2417 if (query.length > 0) { | 2421 if (query.length > 0) { |
2418 for (var part in query.split("&")) { | 2422 for (var part in query.split("&")) { |
2419 var keyvalue = part.split("="); | 2423 var keyvalue = part.split("="); |
2420 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2424 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2421 } | 2425 } |
2422 } | 2426 } |
2423 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
2424 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2427 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2425 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2428 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 2429 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
2426 | 2430 |
2427 | 2431 |
2428 var h = { | 2432 var h = { |
2429 "content-type" : "application/json; charset=utf-8", | 2433 "content-type" : "application/json; charset=utf-8", |
2430 }; | 2434 }; |
2431 var resp = convert.JSON.encode(buildListClustersResponse()); | 2435 var resp = convert.JSON.encode(buildListClustersResponse()); |
2432 return new async.Future.value(stringResponse(200, h, resp)); | 2436 return new async.Future.value(stringResponse(200, h, resp)); |
2433 }), true); | 2437 }), true); |
2434 res.list(arg_projectId, arg_region, filter: arg_filter, pageToken: arg_pag
eToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListClustersResp
onse response) { | 2438 res.list(arg_projectId, arg_region, pageToken: arg_pageToken, pageSize: ar
g_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.ListClustersResp
onse response) { |
2435 checkListClustersResponse(response); | 2439 checkListClustersResponse(response); |
2436 }))); | 2440 }))); |
2437 }); | 2441 }); |
2438 | 2442 |
2439 unittest.test("method--patch", () { | 2443 unittest.test("method--patch", () { |
2440 | 2444 |
2441 var mock = new HttpServerMock(); | 2445 var mock = new HttpServerMock(); |
2442 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; | 2446 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; |
2443 var arg_request = buildCluster(); | 2447 var arg_request = buildCluster(); |
2444 var arg_projectId = "foo"; | 2448 var arg_projectId = "foo"; |
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3044 res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { | 3048 res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { |
3045 checkOperation(response); | 3049 checkOperation(response); |
3046 }))); | 3050 }))); |
3047 }); | 3051 }); |
3048 | 3052 |
3049 unittest.test("method--list", () { | 3053 unittest.test("method--list", () { |
3050 | 3054 |
3051 var mock = new HttpServerMock(); | 3055 var mock = new HttpServerMock(); |
3052 api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).p
rojects.regions.operations; | 3056 api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).p
rojects.regions.operations; |
3053 var arg_name = "foo"; | 3057 var arg_name = "foo"; |
3054 var arg_pageSize = 42; | |
3055 var arg_filter = "foo"; | 3058 var arg_filter = "foo"; |
3056 var arg_pageToken = "foo"; | 3059 var arg_pageToken = "foo"; |
| 3060 var arg_pageSize = 42; |
3057 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3061 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3058 var path = (req.url).path; | 3062 var path = (req.url).path; |
3059 var pathOffset = 0; | 3063 var pathOffset = 0; |
3060 var index; | 3064 var index; |
3061 var subPart; | 3065 var subPart; |
3062 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3066 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3063 pathOffset += 1; | 3067 pathOffset += 1; |
3064 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 3068 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
3065 pathOffset += 3; | 3069 pathOffset += 3; |
3066 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 3070 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
3067 | 3071 |
3068 var query = (req.url).query; | 3072 var query = (req.url).query; |
3069 var queryOffset = 0; | 3073 var queryOffset = 0; |
3070 var queryMap = {}; | 3074 var queryMap = {}; |
3071 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3075 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
3072 parseBool(n) { | 3076 parseBool(n) { |
3073 if (n == "true") return true; | 3077 if (n == "true") return true; |
3074 if (n == "false") return false; | 3078 if (n == "false") return false; |
3075 if (n == null) return null; | 3079 if (n == null) return null; |
3076 throw new core.ArgumentError("Invalid boolean: $n"); | 3080 throw new core.ArgumentError("Invalid boolean: $n"); |
3077 } | 3081 } |
3078 if (query.length > 0) { | 3082 if (query.length > 0) { |
3079 for (var part in query.split("&")) { | 3083 for (var part in query.split("&")) { |
3080 var keyvalue = part.split("="); | 3084 var keyvalue = part.split("="); |
3081 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3085 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
3082 } | 3086 } |
3083 } | 3087 } |
3084 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
3085 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 3088 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
3086 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 3089 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 3090 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
3087 | 3091 |
3088 | 3092 |
3089 var h = { | 3093 var h = { |
3090 "content-type" : "application/json; charset=utf-8", | 3094 "content-type" : "application/json; charset=utf-8", |
3091 }; | 3095 }; |
3092 var resp = convert.JSON.encode(buildListOperationsResponse()); | 3096 var resp = convert.JSON.encode(buildListOperationsResponse()); |
3093 return new async.Future.value(stringResponse(200, h, resp)); | 3097 return new async.Future.value(stringResponse(200, h, resp)); |
3094 }), true); | 3098 }), true); |
3095 res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken:
arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response)
{ | 3099 res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize:
arg_pageSize).then(unittest.expectAsync(((api.ListOperationsResponse response)
{ |
3096 checkListOperationsResponse(response); | 3100 checkListOperationsResponse(response); |
3097 }))); | 3101 }))); |
3098 }); | 3102 }); |
3099 | 3103 |
3100 }); | 3104 }); |
3101 | 3105 |
3102 | 3106 |
3103 } | 3107 } |
3104 | 3108 |
OLD | NEW |