OLD | NEW |
1 library googleapis_beta.dataproc.v1beta1.test; | 1 library googleapis_beta.dataproc.v1beta1.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:test/test.dart' as unittest; |
11 | 11 |
12 import 'package:googleapis_beta/dataproc/v1beta1.dart' as api; | 12 import 'package:googleapis_beta/dataproc/v1beta1.dart' as api; |
13 | 13 |
14 class HttpServerMock extends http.BaseClient { | 14 class HttpServerMock extends http.BaseClient { |
15 core.Function _callback; | 15 core.Function _callback; |
16 core.bool _expectJson; | 16 core.bool _expectJson; |
17 | 17 |
18 void register(core.Function callback, core.bool expectJson) { | 18 void register(core.Function callback, core.bool expectJson) { |
19 _callback = callback; | 19 _callback = callback; |
20 _expectJson = expectJson; | 20 _expectJson = expectJson; |
(...skipping 18 matching lines...) Expand all Loading... |
39 } else { | 39 } else { |
40 return stream.toBytes().then((data) { | 40 return stream.toBytes().then((data) { |
41 return _callback(request, data); | 41 return _callback(request, data); |
42 }); | 42 }); |
43 } | 43 } |
44 } | 44 } |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map<core.String, core.String> headers, core.String bod
y) { |
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
52 } | 52 } |
53 | 53 |
54 core.int buildCounterAcceleratorConfiguration = 0; | 54 core.int buildCounterAcceleratorConfiguration = 0; |
55 buildAcceleratorConfiguration() { | 55 buildAcceleratorConfiguration() { |
56 var o = new api.AcceleratorConfiguration(); | 56 var o = new api.AcceleratorConfiguration(); |
57 buildCounterAcceleratorConfiguration++; | 57 buildCounterAcceleratorConfiguration++; |
58 if (buildCounterAcceleratorConfiguration < 3) { | 58 if (buildCounterAcceleratorConfiguration < 3) { |
59 o.acceleratorCount = 42; | 59 o.acceleratorCount = 42; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 return o; | 99 return o; |
100 } | 100 } |
101 | 101 |
102 checkCancelOperationRequest(api.CancelOperationRequest o) { | 102 checkCancelOperationRequest(api.CancelOperationRequest o) { |
103 buildCounterCancelOperationRequest++; | 103 buildCounterCancelOperationRequest++; |
104 if (buildCounterCancelOperationRequest < 3) { | 104 if (buildCounterCancelOperationRequest < 3) { |
105 } | 105 } |
106 buildCounterCancelOperationRequest--; | 106 buildCounterCancelOperationRequest--; |
107 } | 107 } |
108 | 108 |
109 buildUnnamed3578() { | 109 buildUnnamed3052() { |
110 var o = new core.Map<core.String, core.String>(); | 110 var o = new core.Map<core.String, core.String>(); |
111 o["x"] = "foo"; | 111 o["x"] = "foo"; |
112 o["y"] = "foo"; | 112 o["y"] = "foo"; |
113 return o; | 113 return o; |
114 } | 114 } |
115 | 115 |
116 checkUnnamed3578(core.Map<core.String, core.String> o) { | 116 checkUnnamed3052(core.Map<core.String, core.String> o) { |
117 unittest.expect(o, unittest.hasLength(2)); | 117 unittest.expect(o, unittest.hasLength(2)); |
118 unittest.expect(o["x"], unittest.equals('foo')); | 118 unittest.expect(o["x"], unittest.equals('foo')); |
119 unittest.expect(o["y"], unittest.equals('foo')); | 119 unittest.expect(o["y"], unittest.equals('foo')); |
120 } | 120 } |
121 | 121 |
122 buildUnnamed3579() { | 122 buildUnnamed3053() { |
123 var o = new core.List<api.ClusterStatus>(); | 123 var o = new core.List<api.ClusterStatus>(); |
124 o.add(buildClusterStatus()); | 124 o.add(buildClusterStatus()); |
125 o.add(buildClusterStatus()); | 125 o.add(buildClusterStatus()); |
126 return o; | 126 return o; |
127 } | 127 } |
128 | 128 |
129 checkUnnamed3579(core.List<api.ClusterStatus> o) { | 129 checkUnnamed3053(core.List<api.ClusterStatus> o) { |
130 unittest.expect(o, unittest.hasLength(2)); | 130 unittest.expect(o, unittest.hasLength(2)); |
131 checkClusterStatus(o[0]); | 131 checkClusterStatus(o[0]); |
132 checkClusterStatus(o[1]); | 132 checkClusterStatus(o[1]); |
133 } | 133 } |
134 | 134 |
135 core.int buildCounterCluster = 0; | 135 core.int buildCounterCluster = 0; |
136 buildCluster() { | 136 buildCluster() { |
137 var o = new api.Cluster(); | 137 var o = new api.Cluster(); |
138 buildCounterCluster++; | 138 buildCounterCluster++; |
139 if (buildCounterCluster < 3) { | 139 if (buildCounterCluster < 3) { |
140 o.clusterName = "foo"; | 140 o.clusterName = "foo"; |
141 o.clusterUuid = "foo"; | 141 o.clusterUuid = "foo"; |
142 o.configuration = buildClusterConfiguration(); | 142 o.configuration = buildClusterConfiguration(); |
143 o.labels = buildUnnamed3578(); | 143 o.labels = buildUnnamed3052(); |
144 o.metrics = buildClusterMetrics(); | 144 o.metrics = buildClusterMetrics(); |
145 o.projectId = "foo"; | 145 o.projectId = "foo"; |
146 o.status = buildClusterStatus(); | 146 o.status = buildClusterStatus(); |
147 o.statusHistory = buildUnnamed3579(); | 147 o.statusHistory = buildUnnamed3053(); |
148 } | 148 } |
149 buildCounterCluster--; | 149 buildCounterCluster--; |
150 return o; | 150 return o; |
151 } | 151 } |
152 | 152 |
153 checkCluster(api.Cluster o) { | 153 checkCluster(api.Cluster o) { |
154 buildCounterCluster++; | 154 buildCounterCluster++; |
155 if (buildCounterCluster < 3) { | 155 if (buildCounterCluster < 3) { |
156 unittest.expect(o.clusterName, unittest.equals('foo')); | 156 unittest.expect(o.clusterName, unittest.equals('foo')); |
157 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 157 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
158 checkClusterConfiguration(o.configuration); | 158 checkClusterConfiguration(o.configuration); |
159 checkUnnamed3578(o.labels); | 159 checkUnnamed3052(o.labels); |
160 checkClusterMetrics(o.metrics); | 160 checkClusterMetrics(o.metrics); |
161 unittest.expect(o.projectId, unittest.equals('foo')); | 161 unittest.expect(o.projectId, unittest.equals('foo')); |
162 checkClusterStatus(o.status); | 162 checkClusterStatus(o.status); |
163 checkUnnamed3579(o.statusHistory); | 163 checkUnnamed3053(o.statusHistory); |
164 } | 164 } |
165 buildCounterCluster--; | 165 buildCounterCluster--; |
166 } | 166 } |
167 | 167 |
168 buildUnnamed3580() { | 168 buildUnnamed3054() { |
169 var o = new core.List<api.NodeInitializationAction>(); | 169 var o = new core.List<api.NodeInitializationAction>(); |
170 o.add(buildNodeInitializationAction()); | 170 o.add(buildNodeInitializationAction()); |
171 o.add(buildNodeInitializationAction()); | 171 o.add(buildNodeInitializationAction()); |
172 return o; | 172 return o; |
173 } | 173 } |
174 | 174 |
175 checkUnnamed3580(core.List<api.NodeInitializationAction> o) { | 175 checkUnnamed3054(core.List<api.NodeInitializationAction> o) { |
176 unittest.expect(o, unittest.hasLength(2)); | 176 unittest.expect(o, unittest.hasLength(2)); |
177 checkNodeInitializationAction(o[0]); | 177 checkNodeInitializationAction(o[0]); |
178 checkNodeInitializationAction(o[1]); | 178 checkNodeInitializationAction(o[1]); |
179 } | 179 } |
180 | 180 |
181 core.int buildCounterClusterConfiguration = 0; | 181 core.int buildCounterClusterConfiguration = 0; |
182 buildClusterConfiguration() { | 182 buildClusterConfiguration() { |
183 var o = new api.ClusterConfiguration(); | 183 var o = new api.ClusterConfiguration(); |
184 buildCounterClusterConfiguration++; | 184 buildCounterClusterConfiguration++; |
185 if (buildCounterClusterConfiguration < 3) { | 185 if (buildCounterClusterConfiguration < 3) { |
186 o.configurationBucket = "foo"; | 186 o.configurationBucket = "foo"; |
187 o.gceClusterConfiguration = buildGceClusterConfiguration(); | 187 o.gceClusterConfiguration = buildGceClusterConfiguration(); |
188 o.initializationActions = buildUnnamed3580(); | 188 o.initializationActions = buildUnnamed3054(); |
189 o.masterConfiguration = buildInstanceGroupConfiguration(); | 189 o.masterConfiguration = buildInstanceGroupConfiguration(); |
190 o.secondaryWorkerConfiguration = buildInstanceGroupConfiguration(); | 190 o.secondaryWorkerConfiguration = buildInstanceGroupConfiguration(); |
191 o.softwareConfiguration = buildSoftwareConfiguration(); | 191 o.softwareConfiguration = buildSoftwareConfiguration(); |
192 o.workerConfiguration = buildInstanceGroupConfiguration(); | 192 o.workerConfiguration = buildInstanceGroupConfiguration(); |
193 } | 193 } |
194 buildCounterClusterConfiguration--; | 194 buildCounterClusterConfiguration--; |
195 return o; | 195 return o; |
196 } | 196 } |
197 | 197 |
198 checkClusterConfiguration(api.ClusterConfiguration o) { | 198 checkClusterConfiguration(api.ClusterConfiguration o) { |
199 buildCounterClusterConfiguration++; | 199 buildCounterClusterConfiguration++; |
200 if (buildCounterClusterConfiguration < 3) { | 200 if (buildCounterClusterConfiguration < 3) { |
201 unittest.expect(o.configurationBucket, unittest.equals('foo')); | 201 unittest.expect(o.configurationBucket, unittest.equals('foo')); |
202 checkGceClusterConfiguration(o.gceClusterConfiguration); | 202 checkGceClusterConfiguration(o.gceClusterConfiguration); |
203 checkUnnamed3580(o.initializationActions); | 203 checkUnnamed3054(o.initializationActions); |
204 checkInstanceGroupConfiguration(o.masterConfiguration); | 204 checkInstanceGroupConfiguration(o.masterConfiguration); |
205 checkInstanceGroupConfiguration(o.secondaryWorkerConfiguration); | 205 checkInstanceGroupConfiguration(o.secondaryWorkerConfiguration); |
206 checkSoftwareConfiguration(o.softwareConfiguration); | 206 checkSoftwareConfiguration(o.softwareConfiguration); |
207 checkInstanceGroupConfiguration(o.workerConfiguration); | 207 checkInstanceGroupConfiguration(o.workerConfiguration); |
208 } | 208 } |
209 buildCounterClusterConfiguration--; | 209 buildCounterClusterConfiguration--; |
210 } | 210 } |
211 | 211 |
212 buildUnnamed3581() { | 212 buildUnnamed3055() { |
213 var o = new core.Map<core.String, core.String>(); | 213 var o = new core.Map<core.String, core.String>(); |
214 o["x"] = "foo"; | 214 o["x"] = "foo"; |
215 o["y"] = "foo"; | 215 o["y"] = "foo"; |
216 return o; | 216 return o; |
217 } | 217 } |
218 | 218 |
219 checkUnnamed3581(core.Map<core.String, core.String> o) { | 219 checkUnnamed3055(core.Map<core.String, core.String> o) { |
220 unittest.expect(o, unittest.hasLength(2)); | 220 unittest.expect(o, unittest.hasLength(2)); |
221 unittest.expect(o["x"], unittest.equals('foo')); | 221 unittest.expect(o["x"], unittest.equals('foo')); |
222 unittest.expect(o["y"], unittest.equals('foo')); | 222 unittest.expect(o["y"], unittest.equals('foo')); |
223 } | 223 } |
224 | 224 |
225 buildUnnamed3582() { | 225 buildUnnamed3056() { |
226 var o = new core.Map<core.String, core.String>(); | 226 var o = new core.Map<core.String, core.String>(); |
227 o["x"] = "foo"; | 227 o["x"] = "foo"; |
228 o["y"] = "foo"; | 228 o["y"] = "foo"; |
229 return o; | 229 return o; |
230 } | 230 } |
231 | 231 |
232 checkUnnamed3582(core.Map<core.String, core.String> o) { | 232 checkUnnamed3056(core.Map<core.String, core.String> o) { |
233 unittest.expect(o, unittest.hasLength(2)); | 233 unittest.expect(o, unittest.hasLength(2)); |
234 unittest.expect(o["x"], unittest.equals('foo')); | 234 unittest.expect(o["x"], unittest.equals('foo')); |
235 unittest.expect(o["y"], unittest.equals('foo')); | 235 unittest.expect(o["y"], unittest.equals('foo')); |
236 } | 236 } |
237 | 237 |
238 core.int buildCounterClusterMetrics = 0; | 238 core.int buildCounterClusterMetrics = 0; |
239 buildClusterMetrics() { | 239 buildClusterMetrics() { |
240 var o = new api.ClusterMetrics(); | 240 var o = new api.ClusterMetrics(); |
241 buildCounterClusterMetrics++; | 241 buildCounterClusterMetrics++; |
242 if (buildCounterClusterMetrics < 3) { | 242 if (buildCounterClusterMetrics < 3) { |
243 o.hdfsMetrics = buildUnnamed3581(); | 243 o.hdfsMetrics = buildUnnamed3055(); |
244 o.yarnMetrics = buildUnnamed3582(); | 244 o.yarnMetrics = buildUnnamed3056(); |
245 } | 245 } |
246 buildCounterClusterMetrics--; | 246 buildCounterClusterMetrics--; |
247 return o; | 247 return o; |
248 } | 248 } |
249 | 249 |
250 checkClusterMetrics(api.ClusterMetrics o) { | 250 checkClusterMetrics(api.ClusterMetrics o) { |
251 buildCounterClusterMetrics++; | 251 buildCounterClusterMetrics++; |
252 if (buildCounterClusterMetrics < 3) { | 252 if (buildCounterClusterMetrics < 3) { |
253 checkUnnamed3581(o.hdfsMetrics); | 253 checkUnnamed3055(o.hdfsMetrics); |
254 checkUnnamed3582(o.yarnMetrics); | 254 checkUnnamed3056(o.yarnMetrics); |
255 } | 255 } |
256 buildCounterClusterMetrics--; | 256 buildCounterClusterMetrics--; |
257 } | 257 } |
258 | 258 |
259 buildUnnamed3583() { | 259 buildUnnamed3057() { |
260 var o = new core.Map<core.String, core.String>(); | 260 var o = new core.Map<core.String, core.String>(); |
261 o["x"] = "foo"; | 261 o["x"] = "foo"; |
262 o["y"] = "foo"; | 262 o["y"] = "foo"; |
263 return o; | 263 return o; |
264 } | 264 } |
265 | 265 |
266 checkUnnamed3583(core.Map<core.String, core.String> o) { | 266 checkUnnamed3057(core.Map<core.String, core.String> o) { |
267 unittest.expect(o, unittest.hasLength(2)); | 267 unittest.expect(o, unittest.hasLength(2)); |
268 unittest.expect(o["x"], unittest.equals('foo')); | 268 unittest.expect(o["x"], unittest.equals('foo')); |
269 unittest.expect(o["y"], unittest.equals('foo')); | 269 unittest.expect(o["y"], unittest.equals('foo')); |
270 } | 270 } |
271 | 271 |
272 buildUnnamed3584() { | 272 buildUnnamed3058() { |
273 var o = new core.List<api.ClusterOperationStatus>(); | 273 var o = new core.List<api.ClusterOperationStatus>(); |
274 o.add(buildClusterOperationStatus()); | 274 o.add(buildClusterOperationStatus()); |
275 o.add(buildClusterOperationStatus()); | 275 o.add(buildClusterOperationStatus()); |
276 return o; | 276 return o; |
277 } | 277 } |
278 | 278 |
279 checkUnnamed3584(core.List<api.ClusterOperationStatus> o) { | 279 checkUnnamed3058(core.List<api.ClusterOperationStatus> o) { |
280 unittest.expect(o, unittest.hasLength(2)); | 280 unittest.expect(o, unittest.hasLength(2)); |
281 checkClusterOperationStatus(o[0]); | 281 checkClusterOperationStatus(o[0]); |
282 checkClusterOperationStatus(o[1]); | 282 checkClusterOperationStatus(o[1]); |
283 } | 283 } |
284 | 284 |
285 buildUnnamed3585() { | 285 buildUnnamed3059() { |
286 var o = new core.List<core.String>(); | 286 var o = new core.List<core.String>(); |
287 o.add("foo"); | 287 o.add("foo"); |
288 o.add("foo"); | 288 o.add("foo"); |
289 return o; | 289 return o; |
290 } | 290 } |
291 | 291 |
292 checkUnnamed3585(core.List<core.String> o) { | 292 checkUnnamed3059(core.List<core.String> o) { |
293 unittest.expect(o, unittest.hasLength(2)); | 293 unittest.expect(o, unittest.hasLength(2)); |
294 unittest.expect(o[0], unittest.equals('foo')); | 294 unittest.expect(o[0], unittest.equals('foo')); |
295 unittest.expect(o[1], unittest.equals('foo')); | 295 unittest.expect(o[1], unittest.equals('foo')); |
296 } | 296 } |
297 | 297 |
298 core.int buildCounterClusterOperationMetadata = 0; | 298 core.int buildCounterClusterOperationMetadata = 0; |
299 buildClusterOperationMetadata() { | 299 buildClusterOperationMetadata() { |
300 var o = new api.ClusterOperationMetadata(); | 300 var o = new api.ClusterOperationMetadata(); |
301 buildCounterClusterOperationMetadata++; | 301 buildCounterClusterOperationMetadata++; |
302 if (buildCounterClusterOperationMetadata < 3) { | 302 if (buildCounterClusterOperationMetadata < 3) { |
303 o.clusterName = "foo"; | 303 o.clusterName = "foo"; |
304 o.clusterUuid = "foo"; | 304 o.clusterUuid = "foo"; |
305 o.description = "foo"; | 305 o.description = "foo"; |
306 o.labels = buildUnnamed3583(); | 306 o.labels = buildUnnamed3057(); |
307 o.operationType = "foo"; | 307 o.operationType = "foo"; |
308 o.status = buildClusterOperationStatus(); | 308 o.status = buildClusterOperationStatus(); |
309 o.statusHistory = buildUnnamed3584(); | 309 o.statusHistory = buildUnnamed3058(); |
310 o.warnings = buildUnnamed3585(); | 310 o.warnings = buildUnnamed3059(); |
311 } | 311 } |
312 buildCounterClusterOperationMetadata--; | 312 buildCounterClusterOperationMetadata--; |
313 return o; | 313 return o; |
314 } | 314 } |
315 | 315 |
316 checkClusterOperationMetadata(api.ClusterOperationMetadata o) { | 316 checkClusterOperationMetadata(api.ClusterOperationMetadata o) { |
317 buildCounterClusterOperationMetadata++; | 317 buildCounterClusterOperationMetadata++; |
318 if (buildCounterClusterOperationMetadata < 3) { | 318 if (buildCounterClusterOperationMetadata < 3) { |
319 unittest.expect(o.clusterName, unittest.equals('foo')); | 319 unittest.expect(o.clusterName, unittest.equals('foo')); |
320 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 320 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
321 unittest.expect(o.description, unittest.equals('foo')); | 321 unittest.expect(o.description, unittest.equals('foo')); |
322 checkUnnamed3583(o.labels); | 322 checkUnnamed3057(o.labels); |
323 unittest.expect(o.operationType, unittest.equals('foo')); | 323 unittest.expect(o.operationType, unittest.equals('foo')); |
324 checkClusterOperationStatus(o.status); | 324 checkClusterOperationStatus(o.status); |
325 checkUnnamed3584(o.statusHistory); | 325 checkUnnamed3058(o.statusHistory); |
326 checkUnnamed3585(o.warnings); | 326 checkUnnamed3059(o.warnings); |
327 } | 327 } |
328 buildCounterClusterOperationMetadata--; | 328 buildCounterClusterOperationMetadata--; |
329 } | 329 } |
330 | 330 |
331 core.int buildCounterClusterOperationStatus = 0; | 331 core.int buildCounterClusterOperationStatus = 0; |
332 buildClusterOperationStatus() { | 332 buildClusterOperationStatus() { |
333 var o = new api.ClusterOperationStatus(); | 333 var o = new api.ClusterOperationStatus(); |
334 buildCounterClusterOperationStatus++; | 334 buildCounterClusterOperationStatus++; |
335 if (buildCounterClusterOperationStatus < 3) { | 335 if (buildCounterClusterOperationStatus < 3) { |
336 o.details = "foo"; | 336 o.details = "foo"; |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 return o; | 464 return o; |
465 } | 465 } |
466 | 466 |
467 checkEmpty(api.Empty o) { | 467 checkEmpty(api.Empty o) { |
468 buildCounterEmpty++; | 468 buildCounterEmpty++; |
469 if (buildCounterEmpty < 3) { | 469 if (buildCounterEmpty < 3) { |
470 } | 470 } |
471 buildCounterEmpty--; | 471 buildCounterEmpty--; |
472 } | 472 } |
473 | 473 |
474 buildUnnamed3586() { | 474 buildUnnamed3060() { |
475 var o = new core.Map<core.String, core.String>(); | 475 var o = new core.Map<core.String, core.String>(); |
476 o["x"] = "foo"; | 476 o["x"] = "foo"; |
477 o["y"] = "foo"; | 477 o["y"] = "foo"; |
478 return o; | 478 return o; |
479 } | 479 } |
480 | 480 |
481 checkUnnamed3586(core.Map<core.String, core.String> o) { | 481 checkUnnamed3060(core.Map<core.String, core.String> o) { |
482 unittest.expect(o, unittest.hasLength(2)); | 482 unittest.expect(o, unittest.hasLength(2)); |
483 unittest.expect(o["x"], unittest.equals('foo')); | 483 unittest.expect(o["x"], unittest.equals('foo')); |
484 unittest.expect(o["y"], unittest.equals('foo')); | 484 unittest.expect(o["y"], unittest.equals('foo')); |
485 } | 485 } |
486 | 486 |
487 buildUnnamed3587() { | 487 buildUnnamed3061() { |
488 var o = new core.List<core.String>(); | 488 var o = new core.List<core.String>(); |
489 o.add("foo"); | 489 o.add("foo"); |
490 o.add("foo"); | 490 o.add("foo"); |
491 return o; | 491 return o; |
492 } | 492 } |
493 | 493 |
494 checkUnnamed3587(core.List<core.String> o) { | 494 checkUnnamed3061(core.List<core.String> o) { |
495 unittest.expect(o, unittest.hasLength(2)); | 495 unittest.expect(o, unittest.hasLength(2)); |
496 unittest.expect(o[0], unittest.equals('foo')); | 496 unittest.expect(o[0], unittest.equals('foo')); |
497 unittest.expect(o[1], unittest.equals('foo')); | 497 unittest.expect(o[1], unittest.equals('foo')); |
498 } | 498 } |
499 | 499 |
500 buildUnnamed3588() { | 500 buildUnnamed3062() { |
501 var o = new core.List<core.String>(); | 501 var o = new core.List<core.String>(); |
502 o.add("foo"); | 502 o.add("foo"); |
503 o.add("foo"); | 503 o.add("foo"); |
504 return o; | 504 return o; |
505 } | 505 } |
506 | 506 |
507 checkUnnamed3588(core.List<core.String> o) { | 507 checkUnnamed3062(core.List<core.String> o) { |
508 unittest.expect(o, unittest.hasLength(2)); | 508 unittest.expect(o, unittest.hasLength(2)); |
509 unittest.expect(o[0], unittest.equals('foo')); | 509 unittest.expect(o[0], unittest.equals('foo')); |
510 unittest.expect(o[1], unittest.equals('foo')); | 510 unittest.expect(o[1], unittest.equals('foo')); |
511 } | 511 } |
512 | 512 |
513 core.int buildCounterGceClusterConfiguration = 0; | 513 core.int buildCounterGceClusterConfiguration = 0; |
514 buildGceClusterConfiguration() { | 514 buildGceClusterConfiguration() { |
515 var o = new api.GceClusterConfiguration(); | 515 var o = new api.GceClusterConfiguration(); |
516 buildCounterGceClusterConfiguration++; | 516 buildCounterGceClusterConfiguration++; |
517 if (buildCounterGceClusterConfiguration < 3) { | 517 if (buildCounterGceClusterConfiguration < 3) { |
518 o.internalIpOnly = true; | 518 o.internalIpOnly = true; |
519 o.metadata = buildUnnamed3586(); | 519 o.metadata = buildUnnamed3060(); |
520 o.networkUri = "foo"; | 520 o.networkUri = "foo"; |
521 o.serviceAccount = "foo"; | 521 o.serviceAccount = "foo"; |
522 o.serviceAccountScopes = buildUnnamed3587(); | 522 o.serviceAccountScopes = buildUnnamed3061(); |
523 o.subnetworkUri = "foo"; | 523 o.subnetworkUri = "foo"; |
524 o.tags = buildUnnamed3588(); | 524 o.tags = buildUnnamed3062(); |
525 o.zoneUri = "foo"; | 525 o.zoneUri = "foo"; |
526 } | 526 } |
527 buildCounterGceClusterConfiguration--; | 527 buildCounterGceClusterConfiguration--; |
528 return o; | 528 return o; |
529 } | 529 } |
530 | 530 |
531 checkGceClusterConfiguration(api.GceClusterConfiguration o) { | 531 checkGceClusterConfiguration(api.GceClusterConfiguration o) { |
532 buildCounterGceClusterConfiguration++; | 532 buildCounterGceClusterConfiguration++; |
533 if (buildCounterGceClusterConfiguration < 3) { | 533 if (buildCounterGceClusterConfiguration < 3) { |
534 unittest.expect(o.internalIpOnly, unittest.isTrue); | 534 unittest.expect(o.internalIpOnly, unittest.isTrue); |
535 checkUnnamed3586(o.metadata); | 535 checkUnnamed3060(o.metadata); |
536 unittest.expect(o.networkUri, unittest.equals('foo')); | 536 unittest.expect(o.networkUri, unittest.equals('foo')); |
537 unittest.expect(o.serviceAccount, unittest.equals('foo')); | 537 unittest.expect(o.serviceAccount, unittest.equals('foo')); |
538 checkUnnamed3587(o.serviceAccountScopes); | 538 checkUnnamed3061(o.serviceAccountScopes); |
539 unittest.expect(o.subnetworkUri, unittest.equals('foo')); | 539 unittest.expect(o.subnetworkUri, unittest.equals('foo')); |
540 checkUnnamed3588(o.tags); | 540 checkUnnamed3062(o.tags); |
541 unittest.expect(o.zoneUri, unittest.equals('foo')); | 541 unittest.expect(o.zoneUri, unittest.equals('foo')); |
542 } | 542 } |
543 buildCounterGceClusterConfiguration--; | 543 buildCounterGceClusterConfiguration--; |
544 } | 544 } |
545 | 545 |
546 buildUnnamed3589() { | 546 buildUnnamed3063() { |
547 var o = new core.List<core.String>(); | 547 var o = new core.List<core.String>(); |
548 o.add("foo"); | 548 o.add("foo"); |
549 o.add("foo"); | 549 o.add("foo"); |
550 return o; | 550 return o; |
551 } | 551 } |
552 | 552 |
553 checkUnnamed3589(core.List<core.String> o) { | 553 checkUnnamed3063(core.List<core.String> o) { |
554 unittest.expect(o, unittest.hasLength(2)); | 554 unittest.expect(o, unittest.hasLength(2)); |
555 unittest.expect(o[0], unittest.equals('foo')); | 555 unittest.expect(o[0], unittest.equals('foo')); |
556 unittest.expect(o[1], unittest.equals('foo')); | 556 unittest.expect(o[1], unittest.equals('foo')); |
557 } | 557 } |
558 | 558 |
559 buildUnnamed3590() { | 559 buildUnnamed3064() { |
560 var o = new core.List<core.String>(); | 560 var o = new core.List<core.String>(); |
561 o.add("foo"); | 561 o.add("foo"); |
562 o.add("foo"); | 562 o.add("foo"); |
563 return o; | 563 return o; |
564 } | 564 } |
565 | 565 |
566 checkUnnamed3590(core.List<core.String> o) { | 566 checkUnnamed3064(core.List<core.String> o) { |
567 unittest.expect(o, unittest.hasLength(2)); | 567 unittest.expect(o, unittest.hasLength(2)); |
568 unittest.expect(o[0], unittest.equals('foo')); | 568 unittest.expect(o[0], unittest.equals('foo')); |
569 unittest.expect(o[1], unittest.equals('foo')); | 569 unittest.expect(o[1], unittest.equals('foo')); |
570 } | 570 } |
571 | 571 |
572 buildUnnamed3591() { | 572 buildUnnamed3065() { |
573 var o = new core.List<core.String>(); | 573 var o = new core.List<core.String>(); |
574 o.add("foo"); | 574 o.add("foo"); |
575 o.add("foo"); | 575 o.add("foo"); |
576 return o; | 576 return o; |
577 } | 577 } |
578 | 578 |
579 checkUnnamed3591(core.List<core.String> o) { | 579 checkUnnamed3065(core.List<core.String> o) { |
580 unittest.expect(o, unittest.hasLength(2)); | 580 unittest.expect(o, unittest.hasLength(2)); |
581 unittest.expect(o[0], unittest.equals('foo')); | 581 unittest.expect(o[0], unittest.equals('foo')); |
582 unittest.expect(o[1], unittest.equals('foo')); | 582 unittest.expect(o[1], unittest.equals('foo')); |
583 } | 583 } |
584 | 584 |
585 buildUnnamed3592() { | 585 buildUnnamed3066() { |
586 var o = new core.List<core.String>(); | 586 var o = new core.List<core.String>(); |
587 o.add("foo"); | 587 o.add("foo"); |
588 o.add("foo"); | 588 o.add("foo"); |
589 return o; | 589 return o; |
590 } | 590 } |
591 | 591 |
592 checkUnnamed3592(core.List<core.String> o) { | 592 checkUnnamed3066(core.List<core.String> o) { |
593 unittest.expect(o, unittest.hasLength(2)); | 593 unittest.expect(o, unittest.hasLength(2)); |
594 unittest.expect(o[0], unittest.equals('foo')); | 594 unittest.expect(o[0], unittest.equals('foo')); |
595 unittest.expect(o[1], unittest.equals('foo')); | 595 unittest.expect(o[1], unittest.equals('foo')); |
596 } | 596 } |
597 | 597 |
598 buildUnnamed3593() { | 598 buildUnnamed3067() { |
599 var o = new core.Map<core.String, core.String>(); | 599 var o = new core.Map<core.String, core.String>(); |
600 o["x"] = "foo"; | 600 o["x"] = "foo"; |
601 o["y"] = "foo"; | 601 o["y"] = "foo"; |
602 return o; | 602 return o; |
603 } | 603 } |
604 | 604 |
605 checkUnnamed3593(core.Map<core.String, core.String> o) { | 605 checkUnnamed3067(core.Map<core.String, core.String> o) { |
606 unittest.expect(o, unittest.hasLength(2)); | 606 unittest.expect(o, unittest.hasLength(2)); |
607 unittest.expect(o["x"], unittest.equals('foo')); | 607 unittest.expect(o["x"], unittest.equals('foo')); |
608 unittest.expect(o["y"], unittest.equals('foo')); | 608 unittest.expect(o["y"], unittest.equals('foo')); |
609 } | 609 } |
610 | 610 |
611 core.int buildCounterHadoopJob = 0; | 611 core.int buildCounterHadoopJob = 0; |
612 buildHadoopJob() { | 612 buildHadoopJob() { |
613 var o = new api.HadoopJob(); | 613 var o = new api.HadoopJob(); |
614 buildCounterHadoopJob++; | 614 buildCounterHadoopJob++; |
615 if (buildCounterHadoopJob < 3) { | 615 if (buildCounterHadoopJob < 3) { |
616 o.archiveUris = buildUnnamed3589(); | 616 o.archiveUris = buildUnnamed3063(); |
617 o.args = buildUnnamed3590(); | 617 o.args = buildUnnamed3064(); |
618 o.fileUris = buildUnnamed3591(); | 618 o.fileUris = buildUnnamed3065(); |
619 o.jarFileUris = buildUnnamed3592(); | 619 o.jarFileUris = buildUnnamed3066(); |
620 o.loggingConfiguration = buildLoggingConfiguration(); | 620 o.loggingConfiguration = buildLoggingConfiguration(); |
621 o.mainClass = "foo"; | 621 o.mainClass = "foo"; |
622 o.mainJarFileUri = "foo"; | 622 o.mainJarFileUri = "foo"; |
623 o.properties = buildUnnamed3593(); | 623 o.properties = buildUnnamed3067(); |
624 } | 624 } |
625 buildCounterHadoopJob--; | 625 buildCounterHadoopJob--; |
626 return o; | 626 return o; |
627 } | 627 } |
628 | 628 |
629 checkHadoopJob(api.HadoopJob o) { | 629 checkHadoopJob(api.HadoopJob o) { |
630 buildCounterHadoopJob++; | 630 buildCounterHadoopJob++; |
631 if (buildCounterHadoopJob < 3) { | 631 if (buildCounterHadoopJob < 3) { |
632 checkUnnamed3589(o.archiveUris); | 632 checkUnnamed3063(o.archiveUris); |
633 checkUnnamed3590(o.args); | 633 checkUnnamed3064(o.args); |
634 checkUnnamed3591(o.fileUris); | 634 checkUnnamed3065(o.fileUris); |
635 checkUnnamed3592(o.jarFileUris); | 635 checkUnnamed3066(o.jarFileUris); |
636 checkLoggingConfiguration(o.loggingConfiguration); | 636 checkLoggingConfiguration(o.loggingConfiguration); |
637 unittest.expect(o.mainClass, unittest.equals('foo')); | 637 unittest.expect(o.mainClass, unittest.equals('foo')); |
638 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 638 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
639 checkUnnamed3593(o.properties); | 639 checkUnnamed3067(o.properties); |
640 } | 640 } |
641 buildCounterHadoopJob--; | 641 buildCounterHadoopJob--; |
642 } | 642 } |
643 | 643 |
644 buildUnnamed3594() { | 644 buildUnnamed3068() { |
645 var o = new core.List<core.String>(); | 645 var o = new core.List<core.String>(); |
646 o.add("foo"); | 646 o.add("foo"); |
647 o.add("foo"); | 647 o.add("foo"); |
648 return o; | 648 return o; |
649 } | 649 } |
650 | 650 |
651 checkUnnamed3594(core.List<core.String> o) { | 651 checkUnnamed3068(core.List<core.String> o) { |
652 unittest.expect(o, unittest.hasLength(2)); | 652 unittest.expect(o, unittest.hasLength(2)); |
653 unittest.expect(o[0], unittest.equals('foo')); | 653 unittest.expect(o[0], unittest.equals('foo')); |
654 unittest.expect(o[1], unittest.equals('foo')); | 654 unittest.expect(o[1], unittest.equals('foo')); |
655 } | 655 } |
656 | 656 |
657 buildUnnamed3595() { | 657 buildUnnamed3069() { |
658 var o = new core.Map<core.String, core.String>(); | 658 var o = new core.Map<core.String, core.String>(); |
659 o["x"] = "foo"; | 659 o["x"] = "foo"; |
660 o["y"] = "foo"; | 660 o["y"] = "foo"; |
661 return o; | 661 return o; |
662 } | 662 } |
663 | 663 |
664 checkUnnamed3595(core.Map<core.String, core.String> o) { | 664 checkUnnamed3069(core.Map<core.String, core.String> o) { |
665 unittest.expect(o, unittest.hasLength(2)); | 665 unittest.expect(o, unittest.hasLength(2)); |
666 unittest.expect(o["x"], unittest.equals('foo')); | 666 unittest.expect(o["x"], unittest.equals('foo')); |
667 unittest.expect(o["y"], unittest.equals('foo')); | 667 unittest.expect(o["y"], unittest.equals('foo')); |
668 } | 668 } |
669 | 669 |
670 buildUnnamed3596() { | 670 buildUnnamed3070() { |
671 var o = new core.Map<core.String, core.String>(); | 671 var o = new core.Map<core.String, core.String>(); |
672 o["x"] = "foo"; | 672 o["x"] = "foo"; |
673 o["y"] = "foo"; | 673 o["y"] = "foo"; |
674 return o; | 674 return o; |
675 } | 675 } |
676 | 676 |
677 checkUnnamed3596(core.Map<core.String, core.String> o) { | 677 checkUnnamed3070(core.Map<core.String, core.String> o) { |
678 unittest.expect(o, unittest.hasLength(2)); | 678 unittest.expect(o, unittest.hasLength(2)); |
679 unittest.expect(o["x"], unittest.equals('foo')); | 679 unittest.expect(o["x"], unittest.equals('foo')); |
680 unittest.expect(o["y"], unittest.equals('foo')); | 680 unittest.expect(o["y"], unittest.equals('foo')); |
681 } | 681 } |
682 | 682 |
683 core.int buildCounterHiveJob = 0; | 683 core.int buildCounterHiveJob = 0; |
684 buildHiveJob() { | 684 buildHiveJob() { |
685 var o = new api.HiveJob(); | 685 var o = new api.HiveJob(); |
686 buildCounterHiveJob++; | 686 buildCounterHiveJob++; |
687 if (buildCounterHiveJob < 3) { | 687 if (buildCounterHiveJob < 3) { |
688 o.continueOnFailure = true; | 688 o.continueOnFailure = true; |
689 o.jarFileUris = buildUnnamed3594(); | 689 o.jarFileUris = buildUnnamed3068(); |
690 o.properties = buildUnnamed3595(); | 690 o.properties = buildUnnamed3069(); |
691 o.queryFileUri = "foo"; | 691 o.queryFileUri = "foo"; |
692 o.queryList = buildQueryList(); | 692 o.queryList = buildQueryList(); |
693 o.scriptVariables = buildUnnamed3596(); | 693 o.scriptVariables = buildUnnamed3070(); |
694 } | 694 } |
695 buildCounterHiveJob--; | 695 buildCounterHiveJob--; |
696 return o; | 696 return o; |
697 } | 697 } |
698 | 698 |
699 checkHiveJob(api.HiveJob o) { | 699 checkHiveJob(api.HiveJob o) { |
700 buildCounterHiveJob++; | 700 buildCounterHiveJob++; |
701 if (buildCounterHiveJob < 3) { | 701 if (buildCounterHiveJob < 3) { |
702 unittest.expect(o.continueOnFailure, unittest.isTrue); | 702 unittest.expect(o.continueOnFailure, unittest.isTrue); |
703 checkUnnamed3594(o.jarFileUris); | 703 checkUnnamed3068(o.jarFileUris); |
704 checkUnnamed3595(o.properties); | 704 checkUnnamed3069(o.properties); |
705 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 705 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
706 checkQueryList(o.queryList); | 706 checkQueryList(o.queryList); |
707 checkUnnamed3596(o.scriptVariables); | 707 checkUnnamed3070(o.scriptVariables); |
708 } | 708 } |
709 buildCounterHiveJob--; | 709 buildCounterHiveJob--; |
710 } | 710 } |
711 | 711 |
712 buildUnnamed3597() { | 712 buildUnnamed3071() { |
713 var o = new core.List<api.AcceleratorConfiguration>(); | 713 var o = new core.List<api.AcceleratorConfiguration>(); |
714 o.add(buildAcceleratorConfiguration()); | 714 o.add(buildAcceleratorConfiguration()); |
715 o.add(buildAcceleratorConfiguration()); | 715 o.add(buildAcceleratorConfiguration()); |
716 return o; | 716 return o; |
717 } | 717 } |
718 | 718 |
719 checkUnnamed3597(core.List<api.AcceleratorConfiguration> o) { | 719 checkUnnamed3071(core.List<api.AcceleratorConfiguration> o) { |
720 unittest.expect(o, unittest.hasLength(2)); | 720 unittest.expect(o, unittest.hasLength(2)); |
721 checkAcceleratorConfiguration(o[0]); | 721 checkAcceleratorConfiguration(o[0]); |
722 checkAcceleratorConfiguration(o[1]); | 722 checkAcceleratorConfiguration(o[1]); |
723 } | 723 } |
724 | 724 |
725 buildUnnamed3598() { | 725 buildUnnamed3072() { |
726 var o = new core.List<core.String>(); | 726 var o = new core.List<core.String>(); |
727 o.add("foo"); | 727 o.add("foo"); |
728 o.add("foo"); | 728 o.add("foo"); |
729 return o; | 729 return o; |
730 } | 730 } |
731 | 731 |
732 checkUnnamed3598(core.List<core.String> o) { | 732 checkUnnamed3072(core.List<core.String> o) { |
733 unittest.expect(o, unittest.hasLength(2)); | 733 unittest.expect(o, unittest.hasLength(2)); |
734 unittest.expect(o[0], unittest.equals('foo')); | 734 unittest.expect(o[0], unittest.equals('foo')); |
735 unittest.expect(o[1], unittest.equals('foo')); | 735 unittest.expect(o[1], unittest.equals('foo')); |
736 } | 736 } |
737 | 737 |
738 core.int buildCounterInstanceGroupConfiguration = 0; | 738 core.int buildCounterInstanceGroupConfiguration = 0; |
739 buildInstanceGroupConfiguration() { | 739 buildInstanceGroupConfiguration() { |
740 var o = new api.InstanceGroupConfiguration(); | 740 var o = new api.InstanceGroupConfiguration(); |
741 buildCounterInstanceGroupConfiguration++; | 741 buildCounterInstanceGroupConfiguration++; |
742 if (buildCounterInstanceGroupConfiguration < 3) { | 742 if (buildCounterInstanceGroupConfiguration < 3) { |
743 o.accelerators = buildUnnamed3597(); | 743 o.accelerators = buildUnnamed3071(); |
744 o.diskConfiguration = buildDiskConfiguration(); | 744 o.diskConfiguration = buildDiskConfiguration(); |
745 o.imageUri = "foo"; | 745 o.imageUri = "foo"; |
746 o.instanceNames = buildUnnamed3598(); | 746 o.instanceNames = buildUnnamed3072(); |
747 o.isPreemptible = true; | 747 o.isPreemptible = true; |
748 o.machineTypeUri = "foo"; | 748 o.machineTypeUri = "foo"; |
749 o.managedGroupConfiguration = buildManagedGroupConfiguration(); | 749 o.managedGroupConfiguration = buildManagedGroupConfiguration(); |
750 o.numInstances = 42; | 750 o.numInstances = 42; |
751 } | 751 } |
752 buildCounterInstanceGroupConfiguration--; | 752 buildCounterInstanceGroupConfiguration--; |
753 return o; | 753 return o; |
754 } | 754 } |
755 | 755 |
756 checkInstanceGroupConfiguration(api.InstanceGroupConfiguration o) { | 756 checkInstanceGroupConfiguration(api.InstanceGroupConfiguration o) { |
757 buildCounterInstanceGroupConfiguration++; | 757 buildCounterInstanceGroupConfiguration++; |
758 if (buildCounterInstanceGroupConfiguration < 3) { | 758 if (buildCounterInstanceGroupConfiguration < 3) { |
759 checkUnnamed3597(o.accelerators); | 759 checkUnnamed3071(o.accelerators); |
760 checkDiskConfiguration(o.diskConfiguration); | 760 checkDiskConfiguration(o.diskConfiguration); |
761 unittest.expect(o.imageUri, unittest.equals('foo')); | 761 unittest.expect(o.imageUri, unittest.equals('foo')); |
762 checkUnnamed3598(o.instanceNames); | 762 checkUnnamed3072(o.instanceNames); |
763 unittest.expect(o.isPreemptible, unittest.isTrue); | 763 unittest.expect(o.isPreemptible, unittest.isTrue); |
764 unittest.expect(o.machineTypeUri, unittest.equals('foo')); | 764 unittest.expect(o.machineTypeUri, unittest.equals('foo')); |
765 checkManagedGroupConfiguration(o.managedGroupConfiguration); | 765 checkManagedGroupConfiguration(o.managedGroupConfiguration); |
766 unittest.expect(o.numInstances, unittest.equals(42)); | 766 unittest.expect(o.numInstances, unittest.equals(42)); |
767 } | 767 } |
768 buildCounterInstanceGroupConfiguration--; | 768 buildCounterInstanceGroupConfiguration--; |
769 } | 769 } |
770 | 770 |
771 buildUnnamed3599() { | 771 buildUnnamed3073() { |
772 var o = new core.Map<core.String, core.String>(); | 772 var o = new core.Map<core.String, core.String>(); |
773 o["x"] = "foo"; | 773 o["x"] = "foo"; |
774 o["y"] = "foo"; | 774 o["y"] = "foo"; |
775 return o; | 775 return o; |
776 } | 776 } |
777 | 777 |
778 checkUnnamed3599(core.Map<core.String, core.String> o) { | 778 checkUnnamed3073(core.Map<core.String, core.String> o) { |
779 unittest.expect(o, unittest.hasLength(2)); | 779 unittest.expect(o, unittest.hasLength(2)); |
780 unittest.expect(o["x"], unittest.equals('foo')); | 780 unittest.expect(o["x"], unittest.equals('foo')); |
781 unittest.expect(o["y"], unittest.equals('foo')); | 781 unittest.expect(o["y"], unittest.equals('foo')); |
782 } | 782 } |
783 | 783 |
784 buildUnnamed3600() { | 784 buildUnnamed3074() { |
785 var o = new core.List<api.JobStatus>(); | 785 var o = new core.List<api.JobStatus>(); |
786 o.add(buildJobStatus()); | 786 o.add(buildJobStatus()); |
787 o.add(buildJobStatus()); | 787 o.add(buildJobStatus()); |
788 return o; | 788 return o; |
789 } | 789 } |
790 | 790 |
791 checkUnnamed3600(core.List<api.JobStatus> o) { | 791 checkUnnamed3074(core.List<api.JobStatus> o) { |
792 unittest.expect(o, unittest.hasLength(2)); | 792 unittest.expect(o, unittest.hasLength(2)); |
793 checkJobStatus(o[0]); | 793 checkJobStatus(o[0]); |
794 checkJobStatus(o[1]); | 794 checkJobStatus(o[1]); |
795 } | 795 } |
796 | 796 |
797 buildUnnamed3601() { | 797 buildUnnamed3075() { |
798 var o = new core.List<api.YarnApplication>(); | 798 var o = new core.List<api.YarnApplication>(); |
799 o.add(buildYarnApplication()); | 799 o.add(buildYarnApplication()); |
800 o.add(buildYarnApplication()); | 800 o.add(buildYarnApplication()); |
801 return o; | 801 return o; |
802 } | 802 } |
803 | 803 |
804 checkUnnamed3601(core.List<api.YarnApplication> o) { | 804 checkUnnamed3075(core.List<api.YarnApplication> o) { |
805 unittest.expect(o, unittest.hasLength(2)); | 805 unittest.expect(o, unittest.hasLength(2)); |
806 checkYarnApplication(o[0]); | 806 checkYarnApplication(o[0]); |
807 checkYarnApplication(o[1]); | 807 checkYarnApplication(o[1]); |
808 } | 808 } |
809 | 809 |
810 core.int buildCounterJob = 0; | 810 core.int buildCounterJob = 0; |
811 buildJob() { | 811 buildJob() { |
812 var o = new api.Job(); | 812 var o = new api.Job(); |
813 buildCounterJob++; | 813 buildCounterJob++; |
814 if (buildCounterJob < 3) { | 814 if (buildCounterJob < 3) { |
815 o.driverControlFilesUri = "foo"; | 815 o.driverControlFilesUri = "foo"; |
816 o.driverInputResourceUri = "foo"; | 816 o.driverInputResourceUri = "foo"; |
817 o.driverOutputResourceUri = "foo"; | 817 o.driverOutputResourceUri = "foo"; |
818 o.hadoopJob = buildHadoopJob(); | 818 o.hadoopJob = buildHadoopJob(); |
819 o.hiveJob = buildHiveJob(); | 819 o.hiveJob = buildHiveJob(); |
820 o.interactive = true; | 820 o.interactive = true; |
821 o.labels = buildUnnamed3599(); | 821 o.labels = buildUnnamed3073(); |
822 o.pigJob = buildPigJob(); | 822 o.pigJob = buildPigJob(); |
823 o.placement = buildJobPlacement(); | 823 o.placement = buildJobPlacement(); |
824 o.pysparkJob = buildPySparkJob(); | 824 o.pysparkJob = buildPySparkJob(); |
825 o.reference = buildJobReference(); | 825 o.reference = buildJobReference(); |
826 o.scheduling = buildJobScheduling(); | 826 o.scheduling = buildJobScheduling(); |
827 o.sparkJob = buildSparkJob(); | 827 o.sparkJob = buildSparkJob(); |
828 o.sparkSqlJob = buildSparkSqlJob(); | 828 o.sparkSqlJob = buildSparkSqlJob(); |
829 o.status = buildJobStatus(); | 829 o.status = buildJobStatus(); |
830 o.statusHistory = buildUnnamed3600(); | 830 o.statusHistory = buildUnnamed3074(); |
831 o.submittedBy = "foo"; | 831 o.submittedBy = "foo"; |
832 o.yarnApplications = buildUnnamed3601(); | 832 o.yarnApplications = buildUnnamed3075(); |
833 } | 833 } |
834 buildCounterJob--; | 834 buildCounterJob--; |
835 return o; | 835 return o; |
836 } | 836 } |
837 | 837 |
838 checkJob(api.Job o) { | 838 checkJob(api.Job o) { |
839 buildCounterJob++; | 839 buildCounterJob++; |
840 if (buildCounterJob < 3) { | 840 if (buildCounterJob < 3) { |
841 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); | 841 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); |
842 unittest.expect(o.driverInputResourceUri, unittest.equals('foo')); | 842 unittest.expect(o.driverInputResourceUri, unittest.equals('foo')); |
843 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); | 843 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); |
844 checkHadoopJob(o.hadoopJob); | 844 checkHadoopJob(o.hadoopJob); |
845 checkHiveJob(o.hiveJob); | 845 checkHiveJob(o.hiveJob); |
846 unittest.expect(o.interactive, unittest.isTrue); | 846 unittest.expect(o.interactive, unittest.isTrue); |
847 checkUnnamed3599(o.labels); | 847 checkUnnamed3073(o.labels); |
848 checkPigJob(o.pigJob); | 848 checkPigJob(o.pigJob); |
849 checkJobPlacement(o.placement); | 849 checkJobPlacement(o.placement); |
850 checkPySparkJob(o.pysparkJob); | 850 checkPySparkJob(o.pysparkJob); |
851 checkJobReference(o.reference); | 851 checkJobReference(o.reference); |
852 checkJobScheduling(o.scheduling); | 852 checkJobScheduling(o.scheduling); |
853 checkSparkJob(o.sparkJob); | 853 checkSparkJob(o.sparkJob); |
854 checkSparkSqlJob(o.sparkSqlJob); | 854 checkSparkSqlJob(o.sparkSqlJob); |
855 checkJobStatus(o.status); | 855 checkJobStatus(o.status); |
856 checkUnnamed3600(o.statusHistory); | 856 checkUnnamed3074(o.statusHistory); |
857 unittest.expect(o.submittedBy, unittest.equals('foo')); | 857 unittest.expect(o.submittedBy, unittest.equals('foo')); |
858 checkUnnamed3601(o.yarnApplications); | 858 checkUnnamed3075(o.yarnApplications); |
859 } | 859 } |
860 buildCounterJob--; | 860 buildCounterJob--; |
861 } | 861 } |
862 | 862 |
863 core.int buildCounterJobPlacement = 0; | 863 core.int buildCounterJobPlacement = 0; |
864 buildJobPlacement() { | 864 buildJobPlacement() { |
865 var o = new api.JobPlacement(); | 865 var o = new api.JobPlacement(); |
866 buildCounterJobPlacement++; | 866 buildCounterJobPlacement++; |
867 if (buildCounterJobPlacement < 3) { | 867 if (buildCounterJobPlacement < 3) { |
868 o.clusterName = "foo"; | 868 o.clusterName = "foo"; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
939 buildCounterJobStatus++; | 939 buildCounterJobStatus++; |
940 if (buildCounterJobStatus < 3) { | 940 if (buildCounterJobStatus < 3) { |
941 unittest.expect(o.details, unittest.equals('foo')); | 941 unittest.expect(o.details, unittest.equals('foo')); |
942 unittest.expect(o.state, unittest.equals('foo')); | 942 unittest.expect(o.state, unittest.equals('foo')); |
943 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 943 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
944 unittest.expect(o.substate, unittest.equals('foo')); | 944 unittest.expect(o.substate, unittest.equals('foo')); |
945 } | 945 } |
946 buildCounterJobStatus--; | 946 buildCounterJobStatus--; |
947 } | 947 } |
948 | 948 |
949 buildUnnamed3602() { | 949 buildUnnamed3076() { |
950 var o = new core.List<api.Cluster>(); | 950 var o = new core.List<api.Cluster>(); |
951 o.add(buildCluster()); | 951 o.add(buildCluster()); |
952 o.add(buildCluster()); | 952 o.add(buildCluster()); |
953 return o; | 953 return o; |
954 } | 954 } |
955 | 955 |
956 checkUnnamed3602(core.List<api.Cluster> o) { | 956 checkUnnamed3076(core.List<api.Cluster> o) { |
957 unittest.expect(o, unittest.hasLength(2)); | 957 unittest.expect(o, unittest.hasLength(2)); |
958 checkCluster(o[0]); | 958 checkCluster(o[0]); |
959 checkCluster(o[1]); | 959 checkCluster(o[1]); |
960 } | 960 } |
961 | 961 |
962 core.int buildCounterListClustersResponse = 0; | 962 core.int buildCounterListClustersResponse = 0; |
963 buildListClustersResponse() { | 963 buildListClustersResponse() { |
964 var o = new api.ListClustersResponse(); | 964 var o = new api.ListClustersResponse(); |
965 buildCounterListClustersResponse++; | 965 buildCounterListClustersResponse++; |
966 if (buildCounterListClustersResponse < 3) { | 966 if (buildCounterListClustersResponse < 3) { |
967 o.clusters = buildUnnamed3602(); | 967 o.clusters = buildUnnamed3076(); |
968 o.nextPageToken = "foo"; | 968 o.nextPageToken = "foo"; |
969 } | 969 } |
970 buildCounterListClustersResponse--; | 970 buildCounterListClustersResponse--; |
971 return o; | 971 return o; |
972 } | 972 } |
973 | 973 |
974 checkListClustersResponse(api.ListClustersResponse o) { | 974 checkListClustersResponse(api.ListClustersResponse o) { |
975 buildCounterListClustersResponse++; | 975 buildCounterListClustersResponse++; |
976 if (buildCounterListClustersResponse < 3) { | 976 if (buildCounterListClustersResponse < 3) { |
977 checkUnnamed3602(o.clusters); | 977 checkUnnamed3076(o.clusters); |
978 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 978 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
979 } | 979 } |
980 buildCounterListClustersResponse--; | 980 buildCounterListClustersResponse--; |
981 } | 981 } |
982 | 982 |
983 buildUnnamed3603() { | 983 buildUnnamed3077() { |
984 var o = new core.List<api.Job>(); | 984 var o = new core.List<api.Job>(); |
985 o.add(buildJob()); | 985 o.add(buildJob()); |
986 o.add(buildJob()); | 986 o.add(buildJob()); |
987 return o; | 987 return o; |
988 } | 988 } |
989 | 989 |
990 checkUnnamed3603(core.List<api.Job> o) { | 990 checkUnnamed3077(core.List<api.Job> o) { |
991 unittest.expect(o, unittest.hasLength(2)); | 991 unittest.expect(o, unittest.hasLength(2)); |
992 checkJob(o[0]); | 992 checkJob(o[0]); |
993 checkJob(o[1]); | 993 checkJob(o[1]); |
994 } | 994 } |
995 | 995 |
996 core.int buildCounterListJobsResponse = 0; | 996 core.int buildCounterListJobsResponse = 0; |
997 buildListJobsResponse() { | 997 buildListJobsResponse() { |
998 var o = new api.ListJobsResponse(); | 998 var o = new api.ListJobsResponse(); |
999 buildCounterListJobsResponse++; | 999 buildCounterListJobsResponse++; |
1000 if (buildCounterListJobsResponse < 3) { | 1000 if (buildCounterListJobsResponse < 3) { |
1001 o.jobs = buildUnnamed3603(); | 1001 o.jobs = buildUnnamed3077(); |
1002 o.nextPageToken = "foo"; | 1002 o.nextPageToken = "foo"; |
1003 } | 1003 } |
1004 buildCounterListJobsResponse--; | 1004 buildCounterListJobsResponse--; |
1005 return o; | 1005 return o; |
1006 } | 1006 } |
1007 | 1007 |
1008 checkListJobsResponse(api.ListJobsResponse o) { | 1008 checkListJobsResponse(api.ListJobsResponse o) { |
1009 buildCounterListJobsResponse++; | 1009 buildCounterListJobsResponse++; |
1010 if (buildCounterListJobsResponse < 3) { | 1010 if (buildCounterListJobsResponse < 3) { |
1011 checkUnnamed3603(o.jobs); | 1011 checkUnnamed3077(o.jobs); |
1012 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1012 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1013 } | 1013 } |
1014 buildCounterListJobsResponse--; | 1014 buildCounterListJobsResponse--; |
1015 } | 1015 } |
1016 | 1016 |
1017 buildUnnamed3604() { | 1017 buildUnnamed3078() { |
1018 var o = new core.List<api.Operation>(); | 1018 var o = new core.List<api.Operation>(); |
1019 o.add(buildOperation()); | 1019 o.add(buildOperation()); |
1020 o.add(buildOperation()); | 1020 o.add(buildOperation()); |
1021 return o; | 1021 return o; |
1022 } | 1022 } |
1023 | 1023 |
1024 checkUnnamed3604(core.List<api.Operation> o) { | 1024 checkUnnamed3078(core.List<api.Operation> o) { |
1025 unittest.expect(o, unittest.hasLength(2)); | 1025 unittest.expect(o, unittest.hasLength(2)); |
1026 checkOperation(o[0]); | 1026 checkOperation(o[0]); |
1027 checkOperation(o[1]); | 1027 checkOperation(o[1]); |
1028 } | 1028 } |
1029 | 1029 |
1030 core.int buildCounterListOperationsResponse = 0; | 1030 core.int buildCounterListOperationsResponse = 0; |
1031 buildListOperationsResponse() { | 1031 buildListOperationsResponse() { |
1032 var o = new api.ListOperationsResponse(); | 1032 var o = new api.ListOperationsResponse(); |
1033 buildCounterListOperationsResponse++; | 1033 buildCounterListOperationsResponse++; |
1034 if (buildCounterListOperationsResponse < 3) { | 1034 if (buildCounterListOperationsResponse < 3) { |
1035 o.nextPageToken = "foo"; | 1035 o.nextPageToken = "foo"; |
1036 o.operations = buildUnnamed3604(); | 1036 o.operations = buildUnnamed3078(); |
1037 } | 1037 } |
1038 buildCounterListOperationsResponse--; | 1038 buildCounterListOperationsResponse--; |
1039 return o; | 1039 return o; |
1040 } | 1040 } |
1041 | 1041 |
1042 checkListOperationsResponse(api.ListOperationsResponse o) { | 1042 checkListOperationsResponse(api.ListOperationsResponse o) { |
1043 buildCounterListOperationsResponse++; | 1043 buildCounterListOperationsResponse++; |
1044 if (buildCounterListOperationsResponse < 3) { | 1044 if (buildCounterListOperationsResponse < 3) { |
1045 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1045 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1046 checkUnnamed3604(o.operations); | 1046 checkUnnamed3078(o.operations); |
1047 } | 1047 } |
1048 buildCounterListOperationsResponse--; | 1048 buildCounterListOperationsResponse--; |
1049 } | 1049 } |
1050 | 1050 |
1051 buildUnnamed3605() { | 1051 buildUnnamed3079() { |
1052 var o = new core.Map<core.String, core.String>(); | 1052 var o = new core.Map<core.String, core.String>(); |
1053 o["x"] = "foo"; | 1053 o["x"] = "foo"; |
1054 o["y"] = "foo"; | 1054 o["y"] = "foo"; |
1055 return o; | 1055 return o; |
1056 } | 1056 } |
1057 | 1057 |
1058 checkUnnamed3605(core.Map<core.String, core.String> o) { | 1058 checkUnnamed3079(core.Map<core.String, core.String> o) { |
1059 unittest.expect(o, unittest.hasLength(2)); | 1059 unittest.expect(o, unittest.hasLength(2)); |
1060 unittest.expect(o["x"], unittest.equals('foo')); | 1060 unittest.expect(o["x"], unittest.equals('foo')); |
1061 unittest.expect(o["y"], unittest.equals('foo')); | 1061 unittest.expect(o["y"], unittest.equals('foo')); |
1062 } | 1062 } |
1063 | 1063 |
1064 core.int buildCounterLoggingConfiguration = 0; | 1064 core.int buildCounterLoggingConfiguration = 0; |
1065 buildLoggingConfiguration() { | 1065 buildLoggingConfiguration() { |
1066 var o = new api.LoggingConfiguration(); | 1066 var o = new api.LoggingConfiguration(); |
1067 buildCounterLoggingConfiguration++; | 1067 buildCounterLoggingConfiguration++; |
1068 if (buildCounterLoggingConfiguration < 3) { | 1068 if (buildCounterLoggingConfiguration < 3) { |
1069 o.driverLogLevels = buildUnnamed3605(); | 1069 o.driverLogLevels = buildUnnamed3079(); |
1070 } | 1070 } |
1071 buildCounterLoggingConfiguration--; | 1071 buildCounterLoggingConfiguration--; |
1072 return o; | 1072 return o; |
1073 } | 1073 } |
1074 | 1074 |
1075 checkLoggingConfiguration(api.LoggingConfiguration o) { | 1075 checkLoggingConfiguration(api.LoggingConfiguration o) { |
1076 buildCounterLoggingConfiguration++; | 1076 buildCounterLoggingConfiguration++; |
1077 if (buildCounterLoggingConfiguration < 3) { | 1077 if (buildCounterLoggingConfiguration < 3) { |
1078 checkUnnamed3605(o.driverLogLevels); | 1078 checkUnnamed3079(o.driverLogLevels); |
1079 } | 1079 } |
1080 buildCounterLoggingConfiguration--; | 1080 buildCounterLoggingConfiguration--; |
1081 } | 1081 } |
1082 | 1082 |
1083 core.int buildCounterManagedGroupConfiguration = 0; | 1083 core.int buildCounterManagedGroupConfiguration = 0; |
1084 buildManagedGroupConfiguration() { | 1084 buildManagedGroupConfiguration() { |
1085 var o = new api.ManagedGroupConfiguration(); | 1085 var o = new api.ManagedGroupConfiguration(); |
1086 buildCounterManagedGroupConfiguration++; | 1086 buildCounterManagedGroupConfiguration++; |
1087 if (buildCounterManagedGroupConfiguration < 3) { | 1087 if (buildCounterManagedGroupConfiguration < 3) { |
1088 o.instanceGroupManagerName = "foo"; | 1088 o.instanceGroupManagerName = "foo"; |
(...skipping 26 matching lines...) Expand all Loading... |
1115 | 1115 |
1116 checkNodeInitializationAction(api.NodeInitializationAction o) { | 1116 checkNodeInitializationAction(api.NodeInitializationAction o) { |
1117 buildCounterNodeInitializationAction++; | 1117 buildCounterNodeInitializationAction++; |
1118 if (buildCounterNodeInitializationAction < 3) { | 1118 if (buildCounterNodeInitializationAction < 3) { |
1119 unittest.expect(o.executableFile, unittest.equals('foo')); | 1119 unittest.expect(o.executableFile, unittest.equals('foo')); |
1120 unittest.expect(o.executionTimeout, unittest.equals('foo')); | 1120 unittest.expect(o.executionTimeout, unittest.equals('foo')); |
1121 } | 1121 } |
1122 buildCounterNodeInitializationAction--; | 1122 buildCounterNodeInitializationAction--; |
1123 } | 1123 } |
1124 | 1124 |
1125 buildUnnamed3606() { | 1125 buildUnnamed3080() { |
1126 var o = new core.Map<core.String, core.Object>(); | 1126 var o = new core.Map<core.String, core.Object>(); |
1127 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1127 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1128 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1128 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1129 return o; | 1129 return o; |
1130 } | 1130 } |
1131 | 1131 |
1132 checkUnnamed3606(core.Map<core.String, core.Object> o) { | 1132 checkUnnamed3080(core.Map<core.String, core.Object> o) { |
1133 unittest.expect(o, unittest.hasLength(2)); | 1133 unittest.expect(o, unittest.hasLength(2)); |
1134 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')); | 1134 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')); |
1135 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')); | 1135 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')); |
1136 } | 1136 } |
1137 | 1137 |
1138 buildUnnamed3607() { | 1138 buildUnnamed3081() { |
1139 var o = new core.Map<core.String, core.Object>(); | 1139 var o = new core.Map<core.String, core.Object>(); |
1140 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1140 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1141 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1141 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1142 return o; | 1142 return o; |
1143 } | 1143 } |
1144 | 1144 |
1145 checkUnnamed3607(core.Map<core.String, core.Object> o) { | 1145 checkUnnamed3081(core.Map<core.String, core.Object> o) { |
1146 unittest.expect(o, unittest.hasLength(2)); | 1146 unittest.expect(o, unittest.hasLength(2)); |
1147 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')); | 1147 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')); |
1148 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')); | 1148 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')); |
1149 } | 1149 } |
1150 | 1150 |
1151 core.int buildCounterOperation = 0; | 1151 core.int buildCounterOperation = 0; |
1152 buildOperation() { | 1152 buildOperation() { |
1153 var o = new api.Operation(); | 1153 var o = new api.Operation(); |
1154 buildCounterOperation++; | 1154 buildCounterOperation++; |
1155 if (buildCounterOperation < 3) { | 1155 if (buildCounterOperation < 3) { |
1156 o.done = true; | 1156 o.done = true; |
1157 o.error = buildStatus(); | 1157 o.error = buildStatus(); |
1158 o.metadata = buildUnnamed3606(); | 1158 o.metadata = buildUnnamed3080(); |
1159 o.name = "foo"; | 1159 o.name = "foo"; |
1160 o.response = buildUnnamed3607(); | 1160 o.response = buildUnnamed3081(); |
1161 } | 1161 } |
1162 buildCounterOperation--; | 1162 buildCounterOperation--; |
1163 return o; | 1163 return o; |
1164 } | 1164 } |
1165 | 1165 |
1166 checkOperation(api.Operation o) { | 1166 checkOperation(api.Operation o) { |
1167 buildCounterOperation++; | 1167 buildCounterOperation++; |
1168 if (buildCounterOperation < 3) { | 1168 if (buildCounterOperation < 3) { |
1169 unittest.expect(o.done, unittest.isTrue); | 1169 unittest.expect(o.done, unittest.isTrue); |
1170 checkStatus(o.error); | 1170 checkStatus(o.error); |
1171 checkUnnamed3606(o.metadata); | 1171 checkUnnamed3080(o.metadata); |
1172 unittest.expect(o.name, unittest.equals('foo')); | 1172 unittest.expect(o.name, unittest.equals('foo')); |
1173 checkUnnamed3607(o.response); | 1173 checkUnnamed3081(o.response); |
1174 } | 1174 } |
1175 buildCounterOperation--; | 1175 buildCounterOperation--; |
1176 } | 1176 } |
1177 | 1177 |
1178 buildUnnamed3608() { | 1178 buildUnnamed3082() { |
1179 var o = new core.List<api.OperationStatus>(); | 1179 var o = new core.List<api.OperationStatus>(); |
1180 o.add(buildOperationStatus()); | 1180 o.add(buildOperationStatus()); |
1181 o.add(buildOperationStatus()); | 1181 o.add(buildOperationStatus()); |
1182 return o; | 1182 return o; |
1183 } | 1183 } |
1184 | 1184 |
1185 checkUnnamed3608(core.List<api.OperationStatus> o) { | 1185 checkUnnamed3082(core.List<api.OperationStatus> o) { |
1186 unittest.expect(o, unittest.hasLength(2)); | 1186 unittest.expect(o, unittest.hasLength(2)); |
1187 checkOperationStatus(o[0]); | 1187 checkOperationStatus(o[0]); |
1188 checkOperationStatus(o[1]); | 1188 checkOperationStatus(o[1]); |
1189 } | 1189 } |
1190 | 1190 |
1191 buildUnnamed3609() { | 1191 buildUnnamed3083() { |
1192 var o = new core.List<core.String>(); | 1192 var o = new core.List<core.String>(); |
1193 o.add("foo"); | 1193 o.add("foo"); |
1194 o.add("foo"); | 1194 o.add("foo"); |
1195 return o; | 1195 return o; |
1196 } | 1196 } |
1197 | 1197 |
1198 checkUnnamed3609(core.List<core.String> o) { | 1198 checkUnnamed3083(core.List<core.String> o) { |
1199 unittest.expect(o, unittest.hasLength(2)); | 1199 unittest.expect(o, unittest.hasLength(2)); |
1200 unittest.expect(o[0], unittest.equals('foo')); | 1200 unittest.expect(o[0], unittest.equals('foo')); |
1201 unittest.expect(o[1], unittest.equals('foo')); | 1201 unittest.expect(o[1], unittest.equals('foo')); |
1202 } | 1202 } |
1203 | 1203 |
1204 core.int buildCounterOperationMetadata = 0; | 1204 core.int buildCounterOperationMetadata = 0; |
1205 buildOperationMetadata() { | 1205 buildOperationMetadata() { |
1206 var o = new api.OperationMetadata(); | 1206 var o = new api.OperationMetadata(); |
1207 buildCounterOperationMetadata++; | 1207 buildCounterOperationMetadata++; |
1208 if (buildCounterOperationMetadata < 3) { | 1208 if (buildCounterOperationMetadata < 3) { |
1209 o.clusterName = "foo"; | 1209 o.clusterName = "foo"; |
1210 o.clusterUuid = "foo"; | 1210 o.clusterUuid = "foo"; |
1211 o.description = "foo"; | 1211 o.description = "foo"; |
1212 o.operationType = "foo"; | 1212 o.operationType = "foo"; |
1213 o.status = buildOperationStatus(); | 1213 o.status = buildOperationStatus(); |
1214 o.statusHistory = buildUnnamed3608(); | 1214 o.statusHistory = buildUnnamed3082(); |
1215 o.warnings = buildUnnamed3609(); | 1215 o.warnings = buildUnnamed3083(); |
1216 } | 1216 } |
1217 buildCounterOperationMetadata--; | 1217 buildCounterOperationMetadata--; |
1218 return o; | 1218 return o; |
1219 } | 1219 } |
1220 | 1220 |
1221 checkOperationMetadata(api.OperationMetadata o) { | 1221 checkOperationMetadata(api.OperationMetadata o) { |
1222 buildCounterOperationMetadata++; | 1222 buildCounterOperationMetadata++; |
1223 if (buildCounterOperationMetadata < 3) { | 1223 if (buildCounterOperationMetadata < 3) { |
1224 unittest.expect(o.clusterName, unittest.equals('foo')); | 1224 unittest.expect(o.clusterName, unittest.equals('foo')); |
1225 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 1225 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
1226 unittest.expect(o.description, unittest.equals('foo')); | 1226 unittest.expect(o.description, unittest.equals('foo')); |
1227 unittest.expect(o.operationType, unittest.equals('foo')); | 1227 unittest.expect(o.operationType, unittest.equals('foo')); |
1228 checkOperationStatus(o.status); | 1228 checkOperationStatus(o.status); |
1229 checkUnnamed3608(o.statusHistory); | 1229 checkUnnamed3082(o.statusHistory); |
1230 checkUnnamed3609(o.warnings); | 1230 checkUnnamed3083(o.warnings); |
1231 } | 1231 } |
1232 buildCounterOperationMetadata--; | 1232 buildCounterOperationMetadata--; |
1233 } | 1233 } |
1234 | 1234 |
1235 core.int buildCounterOperationStatus = 0; | 1235 core.int buildCounterOperationStatus = 0; |
1236 buildOperationStatus() { | 1236 buildOperationStatus() { |
1237 var o = new api.OperationStatus(); | 1237 var o = new api.OperationStatus(); |
1238 buildCounterOperationStatus++; | 1238 buildCounterOperationStatus++; |
1239 if (buildCounterOperationStatus < 3) { | 1239 if (buildCounterOperationStatus < 3) { |
1240 o.details = "foo"; | 1240 o.details = "foo"; |
1241 o.innerState = "foo"; | 1241 o.innerState = "foo"; |
1242 o.state = "foo"; | 1242 o.state = "foo"; |
1243 o.stateStartTime = "foo"; | 1243 o.stateStartTime = "foo"; |
1244 } | 1244 } |
1245 buildCounterOperationStatus--; | 1245 buildCounterOperationStatus--; |
1246 return o; | 1246 return o; |
1247 } | 1247 } |
1248 | 1248 |
1249 checkOperationStatus(api.OperationStatus o) { | 1249 checkOperationStatus(api.OperationStatus o) { |
1250 buildCounterOperationStatus++; | 1250 buildCounterOperationStatus++; |
1251 if (buildCounterOperationStatus < 3) { | 1251 if (buildCounterOperationStatus < 3) { |
1252 unittest.expect(o.details, unittest.equals('foo')); | 1252 unittest.expect(o.details, unittest.equals('foo')); |
1253 unittest.expect(o.innerState, unittest.equals('foo')); | 1253 unittest.expect(o.innerState, unittest.equals('foo')); |
1254 unittest.expect(o.state, unittest.equals('foo')); | 1254 unittest.expect(o.state, unittest.equals('foo')); |
1255 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 1255 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
1256 } | 1256 } |
1257 buildCounterOperationStatus--; | 1257 buildCounterOperationStatus--; |
1258 } | 1258 } |
1259 | 1259 |
1260 buildUnnamed3610() { | 1260 buildUnnamed3084() { |
1261 var o = new core.List<core.String>(); | 1261 var o = new core.List<core.String>(); |
1262 o.add("foo"); | 1262 o.add("foo"); |
1263 o.add("foo"); | 1263 o.add("foo"); |
1264 return o; | 1264 return o; |
1265 } | 1265 } |
1266 | 1266 |
1267 checkUnnamed3610(core.List<core.String> o) { | 1267 checkUnnamed3084(core.List<core.String> o) { |
1268 unittest.expect(o, unittest.hasLength(2)); | 1268 unittest.expect(o, unittest.hasLength(2)); |
1269 unittest.expect(o[0], unittest.equals('foo')); | 1269 unittest.expect(o[0], unittest.equals('foo')); |
1270 unittest.expect(o[1], unittest.equals('foo')); | 1270 unittest.expect(o[1], unittest.equals('foo')); |
1271 } | 1271 } |
1272 | 1272 |
1273 buildUnnamed3611() { | 1273 buildUnnamed3085() { |
1274 var o = new core.Map<core.String, core.String>(); | 1274 var o = new core.Map<core.String, core.String>(); |
1275 o["x"] = "foo"; | 1275 o["x"] = "foo"; |
1276 o["y"] = "foo"; | 1276 o["y"] = "foo"; |
1277 return o; | 1277 return o; |
1278 } | 1278 } |
1279 | 1279 |
1280 checkUnnamed3611(core.Map<core.String, core.String> o) { | 1280 checkUnnamed3085(core.Map<core.String, core.String> o) { |
1281 unittest.expect(o, unittest.hasLength(2)); | 1281 unittest.expect(o, unittest.hasLength(2)); |
1282 unittest.expect(o["x"], unittest.equals('foo')); | 1282 unittest.expect(o["x"], unittest.equals('foo')); |
1283 unittest.expect(o["y"], unittest.equals('foo')); | 1283 unittest.expect(o["y"], unittest.equals('foo')); |
1284 } | 1284 } |
1285 | 1285 |
1286 buildUnnamed3612() { | 1286 buildUnnamed3086() { |
1287 var o = new core.Map<core.String, core.String>(); | 1287 var o = new core.Map<core.String, core.String>(); |
1288 o["x"] = "foo"; | 1288 o["x"] = "foo"; |
1289 o["y"] = "foo"; | 1289 o["y"] = "foo"; |
1290 return o; | 1290 return o; |
1291 } | 1291 } |
1292 | 1292 |
1293 checkUnnamed3612(core.Map<core.String, core.String> o) { | 1293 checkUnnamed3086(core.Map<core.String, core.String> o) { |
1294 unittest.expect(o, unittest.hasLength(2)); | 1294 unittest.expect(o, unittest.hasLength(2)); |
1295 unittest.expect(o["x"], unittest.equals('foo')); | 1295 unittest.expect(o["x"], unittest.equals('foo')); |
1296 unittest.expect(o["y"], unittest.equals('foo')); | 1296 unittest.expect(o["y"], unittest.equals('foo')); |
1297 } | 1297 } |
1298 | 1298 |
1299 core.int buildCounterPigJob = 0; | 1299 core.int buildCounterPigJob = 0; |
1300 buildPigJob() { | 1300 buildPigJob() { |
1301 var o = new api.PigJob(); | 1301 var o = new api.PigJob(); |
1302 buildCounterPigJob++; | 1302 buildCounterPigJob++; |
1303 if (buildCounterPigJob < 3) { | 1303 if (buildCounterPigJob < 3) { |
1304 o.continueOnFailure = true; | 1304 o.continueOnFailure = true; |
1305 o.jarFileUris = buildUnnamed3610(); | 1305 o.jarFileUris = buildUnnamed3084(); |
1306 o.loggingConfiguration = buildLoggingConfiguration(); | 1306 o.loggingConfiguration = buildLoggingConfiguration(); |
1307 o.properties = buildUnnamed3611(); | 1307 o.properties = buildUnnamed3085(); |
1308 o.queryFileUri = "foo"; | 1308 o.queryFileUri = "foo"; |
1309 o.queryList = buildQueryList(); | 1309 o.queryList = buildQueryList(); |
1310 o.scriptVariables = buildUnnamed3612(); | 1310 o.scriptVariables = buildUnnamed3086(); |
1311 } | 1311 } |
1312 buildCounterPigJob--; | 1312 buildCounterPigJob--; |
1313 return o; | 1313 return o; |
1314 } | 1314 } |
1315 | 1315 |
1316 checkPigJob(api.PigJob o) { | 1316 checkPigJob(api.PigJob o) { |
1317 buildCounterPigJob++; | 1317 buildCounterPigJob++; |
1318 if (buildCounterPigJob < 3) { | 1318 if (buildCounterPigJob < 3) { |
1319 unittest.expect(o.continueOnFailure, unittest.isTrue); | 1319 unittest.expect(o.continueOnFailure, unittest.isTrue); |
1320 checkUnnamed3610(o.jarFileUris); | 1320 checkUnnamed3084(o.jarFileUris); |
1321 checkLoggingConfiguration(o.loggingConfiguration); | 1321 checkLoggingConfiguration(o.loggingConfiguration); |
1322 checkUnnamed3611(o.properties); | 1322 checkUnnamed3085(o.properties); |
1323 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1323 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
1324 checkQueryList(o.queryList); | 1324 checkQueryList(o.queryList); |
1325 checkUnnamed3612(o.scriptVariables); | 1325 checkUnnamed3086(o.scriptVariables); |
1326 } | 1326 } |
1327 buildCounterPigJob--; | 1327 buildCounterPigJob--; |
1328 } | 1328 } |
1329 | 1329 |
1330 buildUnnamed3613() { | 1330 buildUnnamed3087() { |
1331 var o = new core.List<core.String>(); | 1331 var o = new core.List<core.String>(); |
1332 o.add("foo"); | 1332 o.add("foo"); |
1333 o.add("foo"); | 1333 o.add("foo"); |
1334 return o; | 1334 return o; |
1335 } | 1335 } |
1336 | 1336 |
1337 checkUnnamed3613(core.List<core.String> o) { | 1337 checkUnnamed3087(core.List<core.String> o) { |
1338 unittest.expect(o, unittest.hasLength(2)); | 1338 unittest.expect(o, unittest.hasLength(2)); |
1339 unittest.expect(o[0], unittest.equals('foo')); | 1339 unittest.expect(o[0], unittest.equals('foo')); |
1340 unittest.expect(o[1], unittest.equals('foo')); | 1340 unittest.expect(o[1], unittest.equals('foo')); |
1341 } | 1341 } |
1342 | 1342 |
1343 buildUnnamed3614() { | 1343 buildUnnamed3088() { |
1344 var o = new core.List<core.String>(); | 1344 var o = new core.List<core.String>(); |
1345 o.add("foo"); | 1345 o.add("foo"); |
1346 o.add("foo"); | 1346 o.add("foo"); |
1347 return o; | 1347 return o; |
1348 } | 1348 } |
1349 | 1349 |
1350 checkUnnamed3614(core.List<core.String> o) { | 1350 checkUnnamed3088(core.List<core.String> o) { |
1351 unittest.expect(o, unittest.hasLength(2)); | 1351 unittest.expect(o, unittest.hasLength(2)); |
1352 unittest.expect(o[0], unittest.equals('foo')); | 1352 unittest.expect(o[0], unittest.equals('foo')); |
1353 unittest.expect(o[1], unittest.equals('foo')); | 1353 unittest.expect(o[1], unittest.equals('foo')); |
1354 } | 1354 } |
1355 | 1355 |
1356 buildUnnamed3615() { | 1356 buildUnnamed3089() { |
1357 var o = new core.List<core.String>(); | 1357 var o = new core.List<core.String>(); |
1358 o.add("foo"); | 1358 o.add("foo"); |
1359 o.add("foo"); | 1359 o.add("foo"); |
1360 return o; | 1360 return o; |
1361 } | 1361 } |
1362 | 1362 |
1363 checkUnnamed3615(core.List<core.String> o) { | 1363 checkUnnamed3089(core.List<core.String> o) { |
1364 unittest.expect(o, unittest.hasLength(2)); | 1364 unittest.expect(o, unittest.hasLength(2)); |
1365 unittest.expect(o[0], unittest.equals('foo')); | 1365 unittest.expect(o[0], unittest.equals('foo')); |
1366 unittest.expect(o[1], unittest.equals('foo')); | 1366 unittest.expect(o[1], unittest.equals('foo')); |
1367 } | 1367 } |
1368 | 1368 |
1369 buildUnnamed3616() { | 1369 buildUnnamed3090() { |
1370 var o = new core.List<core.String>(); | 1370 var o = new core.List<core.String>(); |
1371 o.add("foo"); | 1371 o.add("foo"); |
1372 o.add("foo"); | 1372 o.add("foo"); |
1373 return o; | 1373 return o; |
1374 } | 1374 } |
1375 | 1375 |
1376 checkUnnamed3616(core.List<core.String> o) { | 1376 checkUnnamed3090(core.List<core.String> o) { |
1377 unittest.expect(o, unittest.hasLength(2)); | 1377 unittest.expect(o, unittest.hasLength(2)); |
1378 unittest.expect(o[0], unittest.equals('foo')); | 1378 unittest.expect(o[0], unittest.equals('foo')); |
1379 unittest.expect(o[1], unittest.equals('foo')); | 1379 unittest.expect(o[1], unittest.equals('foo')); |
1380 } | 1380 } |
1381 | 1381 |
1382 buildUnnamed3617() { | 1382 buildUnnamed3091() { |
1383 var o = new core.Map<core.String, core.String>(); | 1383 var o = new core.Map<core.String, core.String>(); |
1384 o["x"] = "foo"; | 1384 o["x"] = "foo"; |
1385 o["y"] = "foo"; | 1385 o["y"] = "foo"; |
1386 return o; | 1386 return o; |
1387 } | 1387 } |
1388 | 1388 |
1389 checkUnnamed3617(core.Map<core.String, core.String> o) { | 1389 checkUnnamed3091(core.Map<core.String, core.String> o) { |
1390 unittest.expect(o, unittest.hasLength(2)); | 1390 unittest.expect(o, unittest.hasLength(2)); |
1391 unittest.expect(o["x"], unittest.equals('foo')); | 1391 unittest.expect(o["x"], unittest.equals('foo')); |
1392 unittest.expect(o["y"], unittest.equals('foo')); | 1392 unittest.expect(o["y"], unittest.equals('foo')); |
1393 } | 1393 } |
1394 | 1394 |
1395 buildUnnamed3618() { | 1395 buildUnnamed3092() { |
1396 var o = new core.List<core.String>(); | 1396 var o = new core.List<core.String>(); |
1397 o.add("foo"); | 1397 o.add("foo"); |
1398 o.add("foo"); | 1398 o.add("foo"); |
1399 return o; | 1399 return o; |
1400 } | 1400 } |
1401 | 1401 |
1402 checkUnnamed3618(core.List<core.String> o) { | 1402 checkUnnamed3092(core.List<core.String> o) { |
1403 unittest.expect(o, unittest.hasLength(2)); | 1403 unittest.expect(o, unittest.hasLength(2)); |
1404 unittest.expect(o[0], unittest.equals('foo')); | 1404 unittest.expect(o[0], unittest.equals('foo')); |
1405 unittest.expect(o[1], unittest.equals('foo')); | 1405 unittest.expect(o[1], unittest.equals('foo')); |
1406 } | 1406 } |
1407 | 1407 |
1408 core.int buildCounterPySparkJob = 0; | 1408 core.int buildCounterPySparkJob = 0; |
1409 buildPySparkJob() { | 1409 buildPySparkJob() { |
1410 var o = new api.PySparkJob(); | 1410 var o = new api.PySparkJob(); |
1411 buildCounterPySparkJob++; | 1411 buildCounterPySparkJob++; |
1412 if (buildCounterPySparkJob < 3) { | 1412 if (buildCounterPySparkJob < 3) { |
1413 o.archiveUris = buildUnnamed3613(); | 1413 o.archiveUris = buildUnnamed3087(); |
1414 o.args = buildUnnamed3614(); | 1414 o.args = buildUnnamed3088(); |
1415 o.fileUris = buildUnnamed3615(); | 1415 o.fileUris = buildUnnamed3089(); |
1416 o.jarFileUris = buildUnnamed3616(); | 1416 o.jarFileUris = buildUnnamed3090(); |
1417 o.loggingConfiguration = buildLoggingConfiguration(); | 1417 o.loggingConfiguration = buildLoggingConfiguration(); |
1418 o.mainPythonFileUri = "foo"; | 1418 o.mainPythonFileUri = "foo"; |
1419 o.properties = buildUnnamed3617(); | 1419 o.properties = buildUnnamed3091(); |
1420 o.pythonFileUris = buildUnnamed3618(); | 1420 o.pythonFileUris = buildUnnamed3092(); |
1421 } | 1421 } |
1422 buildCounterPySparkJob--; | 1422 buildCounterPySparkJob--; |
1423 return o; | 1423 return o; |
1424 } | 1424 } |
1425 | 1425 |
1426 checkPySparkJob(api.PySparkJob o) { | 1426 checkPySparkJob(api.PySparkJob o) { |
1427 buildCounterPySparkJob++; | 1427 buildCounterPySparkJob++; |
1428 if (buildCounterPySparkJob < 3) { | 1428 if (buildCounterPySparkJob < 3) { |
1429 checkUnnamed3613(o.archiveUris); | 1429 checkUnnamed3087(o.archiveUris); |
1430 checkUnnamed3614(o.args); | 1430 checkUnnamed3088(o.args); |
1431 checkUnnamed3615(o.fileUris); | 1431 checkUnnamed3089(o.fileUris); |
1432 checkUnnamed3616(o.jarFileUris); | 1432 checkUnnamed3090(o.jarFileUris); |
1433 checkLoggingConfiguration(o.loggingConfiguration); | 1433 checkLoggingConfiguration(o.loggingConfiguration); |
1434 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); | 1434 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); |
1435 checkUnnamed3617(o.properties); | 1435 checkUnnamed3091(o.properties); |
1436 checkUnnamed3618(o.pythonFileUris); | 1436 checkUnnamed3092(o.pythonFileUris); |
1437 } | 1437 } |
1438 buildCounterPySparkJob--; | 1438 buildCounterPySparkJob--; |
1439 } | 1439 } |
1440 | 1440 |
1441 buildUnnamed3619() { | 1441 buildUnnamed3093() { |
1442 var o = new core.List<core.String>(); | 1442 var o = new core.List<core.String>(); |
1443 o.add("foo"); | 1443 o.add("foo"); |
1444 o.add("foo"); | 1444 o.add("foo"); |
1445 return o; | 1445 return o; |
1446 } | 1446 } |
1447 | 1447 |
1448 checkUnnamed3619(core.List<core.String> o) { | 1448 checkUnnamed3093(core.List<core.String> o) { |
1449 unittest.expect(o, unittest.hasLength(2)); | 1449 unittest.expect(o, unittest.hasLength(2)); |
1450 unittest.expect(o[0], unittest.equals('foo')); | 1450 unittest.expect(o[0], unittest.equals('foo')); |
1451 unittest.expect(o[1], unittest.equals('foo')); | 1451 unittest.expect(o[1], unittest.equals('foo')); |
1452 } | 1452 } |
1453 | 1453 |
1454 core.int buildCounterQueryList = 0; | 1454 core.int buildCounterQueryList = 0; |
1455 buildQueryList() { | 1455 buildQueryList() { |
1456 var o = new api.QueryList(); | 1456 var o = new api.QueryList(); |
1457 buildCounterQueryList++; | 1457 buildCounterQueryList++; |
1458 if (buildCounterQueryList < 3) { | 1458 if (buildCounterQueryList < 3) { |
1459 o.queries = buildUnnamed3619(); | 1459 o.queries = buildUnnamed3093(); |
1460 } | 1460 } |
1461 buildCounterQueryList--; | 1461 buildCounterQueryList--; |
1462 return o; | 1462 return o; |
1463 } | 1463 } |
1464 | 1464 |
1465 checkQueryList(api.QueryList o) { | 1465 checkQueryList(api.QueryList o) { |
1466 buildCounterQueryList++; | 1466 buildCounterQueryList++; |
1467 if (buildCounterQueryList < 3) { | 1467 if (buildCounterQueryList < 3) { |
1468 checkUnnamed3619(o.queries); | 1468 checkUnnamed3093(o.queries); |
1469 } | 1469 } |
1470 buildCounterQueryList--; | 1470 buildCounterQueryList--; |
1471 } | 1471 } |
1472 | 1472 |
1473 buildUnnamed3620() { | 1473 buildUnnamed3094() { |
1474 var o = new core.Map<core.String, core.String>(); | 1474 var o = new core.Map<core.String, core.String>(); |
1475 o["x"] = "foo"; | 1475 o["x"] = "foo"; |
1476 o["y"] = "foo"; | 1476 o["y"] = "foo"; |
1477 return o; | 1477 return o; |
1478 } | 1478 } |
1479 | 1479 |
1480 checkUnnamed3620(core.Map<core.String, core.String> o) { | 1480 checkUnnamed3094(core.Map<core.String, core.String> o) { |
1481 unittest.expect(o, unittest.hasLength(2)); | 1481 unittest.expect(o, unittest.hasLength(2)); |
1482 unittest.expect(o["x"], unittest.equals('foo')); | 1482 unittest.expect(o["x"], unittest.equals('foo')); |
1483 unittest.expect(o["y"], unittest.equals('foo')); | 1483 unittest.expect(o["y"], unittest.equals('foo')); |
1484 } | 1484 } |
1485 | 1485 |
1486 core.int buildCounterSoftwareConfiguration = 0; | 1486 core.int buildCounterSoftwareConfiguration = 0; |
1487 buildSoftwareConfiguration() { | 1487 buildSoftwareConfiguration() { |
1488 var o = new api.SoftwareConfiguration(); | 1488 var o = new api.SoftwareConfiguration(); |
1489 buildCounterSoftwareConfiguration++; | 1489 buildCounterSoftwareConfiguration++; |
1490 if (buildCounterSoftwareConfiguration < 3) { | 1490 if (buildCounterSoftwareConfiguration < 3) { |
1491 o.imageVersion = "foo"; | 1491 o.imageVersion = "foo"; |
1492 o.properties = buildUnnamed3620(); | 1492 o.properties = buildUnnamed3094(); |
1493 } | 1493 } |
1494 buildCounterSoftwareConfiguration--; | 1494 buildCounterSoftwareConfiguration--; |
1495 return o; | 1495 return o; |
1496 } | 1496 } |
1497 | 1497 |
1498 checkSoftwareConfiguration(api.SoftwareConfiguration o) { | 1498 checkSoftwareConfiguration(api.SoftwareConfiguration o) { |
1499 buildCounterSoftwareConfiguration++; | 1499 buildCounterSoftwareConfiguration++; |
1500 if (buildCounterSoftwareConfiguration < 3) { | 1500 if (buildCounterSoftwareConfiguration < 3) { |
1501 unittest.expect(o.imageVersion, unittest.equals('foo')); | 1501 unittest.expect(o.imageVersion, unittest.equals('foo')); |
1502 checkUnnamed3620(o.properties); | 1502 checkUnnamed3094(o.properties); |
1503 } | 1503 } |
1504 buildCounterSoftwareConfiguration--; | 1504 buildCounterSoftwareConfiguration--; |
1505 } | 1505 } |
1506 | 1506 |
1507 buildUnnamed3621() { | 1507 buildUnnamed3095() { |
1508 var o = new core.List<core.String>(); | 1508 var o = new core.List<core.String>(); |
1509 o.add("foo"); | 1509 o.add("foo"); |
1510 o.add("foo"); | 1510 o.add("foo"); |
1511 return o; | 1511 return o; |
1512 } | 1512 } |
1513 | 1513 |
1514 checkUnnamed3621(core.List<core.String> o) { | 1514 checkUnnamed3095(core.List<core.String> o) { |
1515 unittest.expect(o, unittest.hasLength(2)); | 1515 unittest.expect(o, unittest.hasLength(2)); |
1516 unittest.expect(o[0], unittest.equals('foo')); | 1516 unittest.expect(o[0], unittest.equals('foo')); |
1517 unittest.expect(o[1], unittest.equals('foo')); | 1517 unittest.expect(o[1], unittest.equals('foo')); |
1518 } | 1518 } |
1519 | 1519 |
1520 buildUnnamed3622() { | 1520 buildUnnamed3096() { |
1521 var o = new core.List<core.String>(); | 1521 var o = new core.List<core.String>(); |
1522 o.add("foo"); | 1522 o.add("foo"); |
1523 o.add("foo"); | 1523 o.add("foo"); |
1524 return o; | 1524 return o; |
1525 } | 1525 } |
1526 | 1526 |
1527 checkUnnamed3622(core.List<core.String> o) { | 1527 checkUnnamed3096(core.List<core.String> o) { |
1528 unittest.expect(o, unittest.hasLength(2)); | 1528 unittest.expect(o, unittest.hasLength(2)); |
1529 unittest.expect(o[0], unittest.equals('foo')); | 1529 unittest.expect(o[0], unittest.equals('foo')); |
1530 unittest.expect(o[1], unittest.equals('foo')); | 1530 unittest.expect(o[1], unittest.equals('foo')); |
1531 } | 1531 } |
1532 | 1532 |
1533 buildUnnamed3623() { | 1533 buildUnnamed3097() { |
1534 var o = new core.List<core.String>(); | 1534 var o = new core.List<core.String>(); |
1535 o.add("foo"); | 1535 o.add("foo"); |
1536 o.add("foo"); | 1536 o.add("foo"); |
1537 return o; | 1537 return o; |
1538 } | 1538 } |
1539 | 1539 |
1540 checkUnnamed3623(core.List<core.String> o) { | 1540 checkUnnamed3097(core.List<core.String> o) { |
1541 unittest.expect(o, unittest.hasLength(2)); | 1541 unittest.expect(o, unittest.hasLength(2)); |
1542 unittest.expect(o[0], unittest.equals('foo')); | 1542 unittest.expect(o[0], unittest.equals('foo')); |
1543 unittest.expect(o[1], unittest.equals('foo')); | 1543 unittest.expect(o[1], unittest.equals('foo')); |
1544 } | 1544 } |
1545 | 1545 |
1546 buildUnnamed3624() { | 1546 buildUnnamed3098() { |
1547 var o = new core.List<core.String>(); | 1547 var o = new core.List<core.String>(); |
1548 o.add("foo"); | 1548 o.add("foo"); |
1549 o.add("foo"); | 1549 o.add("foo"); |
1550 return o; | 1550 return o; |
1551 } | 1551 } |
1552 | 1552 |
1553 checkUnnamed3624(core.List<core.String> o) { | 1553 checkUnnamed3098(core.List<core.String> o) { |
1554 unittest.expect(o, unittest.hasLength(2)); | 1554 unittest.expect(o, unittest.hasLength(2)); |
1555 unittest.expect(o[0], unittest.equals('foo')); | 1555 unittest.expect(o[0], unittest.equals('foo')); |
1556 unittest.expect(o[1], unittest.equals('foo')); | 1556 unittest.expect(o[1], unittest.equals('foo')); |
1557 } | 1557 } |
1558 | 1558 |
1559 buildUnnamed3625() { | 1559 buildUnnamed3099() { |
1560 var o = new core.Map<core.String, core.String>(); | 1560 var o = new core.Map<core.String, core.String>(); |
1561 o["x"] = "foo"; | 1561 o["x"] = "foo"; |
1562 o["y"] = "foo"; | 1562 o["y"] = "foo"; |
1563 return o; | 1563 return o; |
1564 } | 1564 } |
1565 | 1565 |
1566 checkUnnamed3625(core.Map<core.String, core.String> o) { | 1566 checkUnnamed3099(core.Map<core.String, core.String> o) { |
1567 unittest.expect(o, unittest.hasLength(2)); | 1567 unittest.expect(o, unittest.hasLength(2)); |
1568 unittest.expect(o["x"], unittest.equals('foo')); | 1568 unittest.expect(o["x"], unittest.equals('foo')); |
1569 unittest.expect(o["y"], unittest.equals('foo')); | 1569 unittest.expect(o["y"], unittest.equals('foo')); |
1570 } | 1570 } |
1571 | 1571 |
1572 core.int buildCounterSparkJob = 0; | 1572 core.int buildCounterSparkJob = 0; |
1573 buildSparkJob() { | 1573 buildSparkJob() { |
1574 var o = new api.SparkJob(); | 1574 var o = new api.SparkJob(); |
1575 buildCounterSparkJob++; | 1575 buildCounterSparkJob++; |
1576 if (buildCounterSparkJob < 3) { | 1576 if (buildCounterSparkJob < 3) { |
1577 o.archiveUris = buildUnnamed3621(); | 1577 o.archiveUris = buildUnnamed3095(); |
1578 o.args = buildUnnamed3622(); | 1578 o.args = buildUnnamed3096(); |
1579 o.fileUris = buildUnnamed3623(); | 1579 o.fileUris = buildUnnamed3097(); |
1580 o.jarFileUris = buildUnnamed3624(); | 1580 o.jarFileUris = buildUnnamed3098(); |
1581 o.loggingConfiguration = buildLoggingConfiguration(); | 1581 o.loggingConfiguration = buildLoggingConfiguration(); |
1582 o.mainClass = "foo"; | 1582 o.mainClass = "foo"; |
1583 o.mainJarFileUri = "foo"; | 1583 o.mainJarFileUri = "foo"; |
1584 o.properties = buildUnnamed3625(); | 1584 o.properties = buildUnnamed3099(); |
1585 } | 1585 } |
1586 buildCounterSparkJob--; | 1586 buildCounterSparkJob--; |
1587 return o; | 1587 return o; |
1588 } | 1588 } |
1589 | 1589 |
1590 checkSparkJob(api.SparkJob o) { | 1590 checkSparkJob(api.SparkJob o) { |
1591 buildCounterSparkJob++; | 1591 buildCounterSparkJob++; |
1592 if (buildCounterSparkJob < 3) { | 1592 if (buildCounterSparkJob < 3) { |
1593 checkUnnamed3621(o.archiveUris); | 1593 checkUnnamed3095(o.archiveUris); |
1594 checkUnnamed3622(o.args); | 1594 checkUnnamed3096(o.args); |
1595 checkUnnamed3623(o.fileUris); | 1595 checkUnnamed3097(o.fileUris); |
1596 checkUnnamed3624(o.jarFileUris); | 1596 checkUnnamed3098(o.jarFileUris); |
1597 checkLoggingConfiguration(o.loggingConfiguration); | 1597 checkLoggingConfiguration(o.loggingConfiguration); |
1598 unittest.expect(o.mainClass, unittest.equals('foo')); | 1598 unittest.expect(o.mainClass, unittest.equals('foo')); |
1599 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 1599 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
1600 checkUnnamed3625(o.properties); | 1600 checkUnnamed3099(o.properties); |
1601 } | 1601 } |
1602 buildCounterSparkJob--; | 1602 buildCounterSparkJob--; |
1603 } | 1603 } |
1604 | 1604 |
1605 buildUnnamed3626() { | 1605 buildUnnamed3100() { |
1606 var o = new core.List<core.String>(); | 1606 var o = new core.List<core.String>(); |
1607 o.add("foo"); | 1607 o.add("foo"); |
1608 o.add("foo"); | 1608 o.add("foo"); |
1609 return o; | 1609 return o; |
1610 } | 1610 } |
1611 | 1611 |
1612 checkUnnamed3626(core.List<core.String> o) { | 1612 checkUnnamed3100(core.List<core.String> o) { |
1613 unittest.expect(o, unittest.hasLength(2)); | 1613 unittest.expect(o, unittest.hasLength(2)); |
1614 unittest.expect(o[0], unittest.equals('foo')); | 1614 unittest.expect(o[0], unittest.equals('foo')); |
1615 unittest.expect(o[1], unittest.equals('foo')); | 1615 unittest.expect(o[1], unittest.equals('foo')); |
1616 } | 1616 } |
1617 | 1617 |
1618 buildUnnamed3627() { | 1618 buildUnnamed3101() { |
1619 var o = new core.Map<core.String, core.String>(); | 1619 var o = new core.Map<core.String, core.String>(); |
1620 o["x"] = "foo"; | 1620 o["x"] = "foo"; |
1621 o["y"] = "foo"; | 1621 o["y"] = "foo"; |
1622 return o; | 1622 return o; |
1623 } | 1623 } |
1624 | 1624 |
1625 checkUnnamed3627(core.Map<core.String, core.String> o) { | 1625 checkUnnamed3101(core.Map<core.String, core.String> o) { |
1626 unittest.expect(o, unittest.hasLength(2)); | 1626 unittest.expect(o, unittest.hasLength(2)); |
1627 unittest.expect(o["x"], unittest.equals('foo')); | 1627 unittest.expect(o["x"], unittest.equals('foo')); |
1628 unittest.expect(o["y"], unittest.equals('foo')); | 1628 unittest.expect(o["y"], unittest.equals('foo')); |
1629 } | 1629 } |
1630 | 1630 |
1631 buildUnnamed3628() { | 1631 buildUnnamed3102() { |
1632 var o = new core.Map<core.String, core.String>(); | 1632 var o = new core.Map<core.String, core.String>(); |
1633 o["x"] = "foo"; | 1633 o["x"] = "foo"; |
1634 o["y"] = "foo"; | 1634 o["y"] = "foo"; |
1635 return o; | 1635 return o; |
1636 } | 1636 } |
1637 | 1637 |
1638 checkUnnamed3628(core.Map<core.String, core.String> o) { | 1638 checkUnnamed3102(core.Map<core.String, core.String> o) { |
1639 unittest.expect(o, unittest.hasLength(2)); | 1639 unittest.expect(o, unittest.hasLength(2)); |
1640 unittest.expect(o["x"], unittest.equals('foo')); | 1640 unittest.expect(o["x"], unittest.equals('foo')); |
1641 unittest.expect(o["y"], unittest.equals('foo')); | 1641 unittest.expect(o["y"], unittest.equals('foo')); |
1642 } | 1642 } |
1643 | 1643 |
1644 core.int buildCounterSparkSqlJob = 0; | 1644 core.int buildCounterSparkSqlJob = 0; |
1645 buildSparkSqlJob() { | 1645 buildSparkSqlJob() { |
1646 var o = new api.SparkSqlJob(); | 1646 var o = new api.SparkSqlJob(); |
1647 buildCounterSparkSqlJob++; | 1647 buildCounterSparkSqlJob++; |
1648 if (buildCounterSparkSqlJob < 3) { | 1648 if (buildCounterSparkSqlJob < 3) { |
1649 o.jarFileUris = buildUnnamed3626(); | 1649 o.jarFileUris = buildUnnamed3100(); |
1650 o.loggingConfiguration = buildLoggingConfiguration(); | 1650 o.loggingConfiguration = buildLoggingConfiguration(); |
1651 o.properties = buildUnnamed3627(); | 1651 o.properties = buildUnnamed3101(); |
1652 o.queryFileUri = "foo"; | 1652 o.queryFileUri = "foo"; |
1653 o.queryList = buildQueryList(); | 1653 o.queryList = buildQueryList(); |
1654 o.scriptVariables = buildUnnamed3628(); | 1654 o.scriptVariables = buildUnnamed3102(); |
1655 } | 1655 } |
1656 buildCounterSparkSqlJob--; | 1656 buildCounterSparkSqlJob--; |
1657 return o; | 1657 return o; |
1658 } | 1658 } |
1659 | 1659 |
1660 checkSparkSqlJob(api.SparkSqlJob o) { | 1660 checkSparkSqlJob(api.SparkSqlJob o) { |
1661 buildCounterSparkSqlJob++; | 1661 buildCounterSparkSqlJob++; |
1662 if (buildCounterSparkSqlJob < 3) { | 1662 if (buildCounterSparkSqlJob < 3) { |
1663 checkUnnamed3626(o.jarFileUris); | 1663 checkUnnamed3100(o.jarFileUris); |
1664 checkLoggingConfiguration(o.loggingConfiguration); | 1664 checkLoggingConfiguration(o.loggingConfiguration); |
1665 checkUnnamed3627(o.properties); | 1665 checkUnnamed3101(o.properties); |
1666 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1666 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
1667 checkQueryList(o.queryList); | 1667 checkQueryList(o.queryList); |
1668 checkUnnamed3628(o.scriptVariables); | 1668 checkUnnamed3102(o.scriptVariables); |
1669 } | 1669 } |
1670 buildCounterSparkSqlJob--; | 1670 buildCounterSparkSqlJob--; |
1671 } | 1671 } |
1672 | 1672 |
1673 buildUnnamed3629() { | 1673 buildUnnamed3103() { |
1674 var o = new core.Map<core.String, core.Object>(); | 1674 var o = new core.Map<core.String, core.Object>(); |
1675 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1675 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1676 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1676 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1677 return o; | 1677 return o; |
1678 } | 1678 } |
1679 | 1679 |
1680 checkUnnamed3629(core.Map<core.String, core.Object> o) { | 1680 checkUnnamed3103(core.Map<core.String, core.Object> o) { |
1681 unittest.expect(o, unittest.hasLength(2)); | 1681 unittest.expect(o, unittest.hasLength(2)); |
1682 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')); | 1682 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')); |
1683 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')); | 1683 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')); |
1684 } | 1684 } |
1685 | 1685 |
1686 buildUnnamed3630() { | 1686 buildUnnamed3104() { |
1687 var o = new core.List<core.Map<core.String, core.Object>>(); | 1687 var o = new core.List<core.Map<core.String, core.Object>>(); |
1688 o.add(buildUnnamed3629()); | 1688 o.add(buildUnnamed3103()); |
1689 o.add(buildUnnamed3629()); | 1689 o.add(buildUnnamed3103()); |
1690 return o; | 1690 return o; |
1691 } | 1691 } |
1692 | 1692 |
1693 checkUnnamed3630(core.List<core.Map<core.String, core.Object>> o) { | 1693 checkUnnamed3104(core.List<core.Map<core.String, core.Object>> o) { |
1694 unittest.expect(o, unittest.hasLength(2)); | 1694 unittest.expect(o, unittest.hasLength(2)); |
1695 checkUnnamed3629(o[0]); | 1695 checkUnnamed3103(o[0]); |
1696 checkUnnamed3629(o[1]); | 1696 checkUnnamed3103(o[1]); |
1697 } | 1697 } |
1698 | 1698 |
1699 core.int buildCounterStatus = 0; | 1699 core.int buildCounterStatus = 0; |
1700 buildStatus() { | 1700 buildStatus() { |
1701 var o = new api.Status(); | 1701 var o = new api.Status(); |
1702 buildCounterStatus++; | 1702 buildCounterStatus++; |
1703 if (buildCounterStatus < 3) { | 1703 if (buildCounterStatus < 3) { |
1704 o.code = 42; | 1704 o.code = 42; |
1705 o.details = buildUnnamed3630(); | 1705 o.details = buildUnnamed3104(); |
1706 o.message = "foo"; | 1706 o.message = "foo"; |
1707 } | 1707 } |
1708 buildCounterStatus--; | 1708 buildCounterStatus--; |
1709 return o; | 1709 return o; |
1710 } | 1710 } |
1711 | 1711 |
1712 checkStatus(api.Status o) { | 1712 checkStatus(api.Status o) { |
1713 buildCounterStatus++; | 1713 buildCounterStatus++; |
1714 if (buildCounterStatus < 3) { | 1714 if (buildCounterStatus < 3) { |
1715 unittest.expect(o.code, unittest.equals(42)); | 1715 unittest.expect(o.code, unittest.equals(42)); |
1716 checkUnnamed3630(o.details); | 1716 checkUnnamed3104(o.details); |
1717 unittest.expect(o.message, unittest.equals('foo')); | 1717 unittest.expect(o.message, unittest.equals('foo')); |
1718 } | 1718 } |
1719 buildCounterStatus--; | 1719 buildCounterStatus--; |
1720 } | 1720 } |
1721 | 1721 |
1722 core.int buildCounterSubmitJobRequest = 0; | 1722 core.int buildCounterSubmitJobRequest = 0; |
1723 buildSubmitJobRequest() { | 1723 buildSubmitJobRequest() { |
1724 var o = new api.SubmitJobRequest(); | 1724 var o = new api.SubmitJobRequest(); |
1725 buildCounterSubmitJobRequest++; | 1725 buildCounterSubmitJobRequest++; |
1726 if (buildCounterSubmitJobRequest < 3) { | 1726 if (buildCounterSubmitJobRequest < 3) { |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2134 }); | 2134 }); |
2135 | 2135 |
2136 | 2136 |
2137 unittest.group("resource-OperationsResourceApi", () { | 2137 unittest.group("resource-OperationsResourceApi", () { |
2138 unittest.test("method--cancel", () { | 2138 unittest.test("method--cancel", () { |
2139 | 2139 |
2140 var mock = new HttpServerMock(); | 2140 var mock = new HttpServerMock(); |
2141 api.OperationsResourceApi res = new api.DataprocApi(mock).operations; | 2141 api.OperationsResourceApi res = new api.DataprocApi(mock).operations; |
2142 var arg_request = buildCancelOperationRequest(); | 2142 var arg_request = buildCancelOperationRequest(); |
2143 var arg_name = "foo"; | 2143 var arg_name = "foo"; |
2144 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2144 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2145 var obj = new api.CancelOperationRequest.fromJson(json); | 2145 var obj = new api.CancelOperationRequest.fromJson(json); |
2146 checkCancelOperationRequest(obj); | 2146 checkCancelOperationRequest(obj); |
2147 | 2147 |
2148 var path = (req.url).path; | 2148 var path = (req.url).path; |
2149 var pathOffset = 0; | 2149 var pathOffset = 0; |
2150 var index; | 2150 var index; |
2151 var subPart; | 2151 var subPart; |
2152 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2152 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2153 pathOffset += 1; | 2153 pathOffset += 1; |
2154 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta1/")); | 2154 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta1/")); |
(...skipping 17 matching lines...) Expand all Loading... |
2172 } | 2172 } |
2173 } | 2173 } |
2174 | 2174 |
2175 | 2175 |
2176 var h = { | 2176 var h = { |
2177 "content-type" : "application/json; charset=utf-8", | 2177 "content-type" : "application/json; charset=utf-8", |
2178 }; | 2178 }; |
2179 var resp = convert.JSON.encode(buildEmpty()); | 2179 var resp = convert.JSON.encode(buildEmpty()); |
2180 return new async.Future.value(stringResponse(200, h, resp)); | 2180 return new async.Future.value(stringResponse(200, h, resp)); |
2181 }), true); | 2181 }), true); |
2182 res.cancel(arg_request, arg_name).then(unittest.expectAsync(((api.Empty re
sponse) { | 2182 res.cancel(arg_request, arg_name).then(unittest.expectAsync1(((api.Empty r
esponse) { |
2183 checkEmpty(response); | 2183 checkEmpty(response); |
2184 }))); | 2184 }))); |
2185 }); | 2185 }); |
2186 | 2186 |
2187 unittest.test("method--delete", () { | 2187 unittest.test("method--delete", () { |
2188 | 2188 |
2189 var mock = new HttpServerMock(); | 2189 var mock = new HttpServerMock(); |
2190 api.OperationsResourceApi res = new api.DataprocApi(mock).operations; | 2190 api.OperationsResourceApi res = new api.DataprocApi(mock).operations; |
2191 var arg_name = "foo"; | 2191 var arg_name = "foo"; |
2192 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2192 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2193 var path = (req.url).path; | 2193 var path = (req.url).path; |
2194 var pathOffset = 0; | 2194 var pathOffset = 0; |
2195 var index; | 2195 var index; |
2196 var subPart; | 2196 var subPart; |
2197 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2197 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2198 pathOffset += 1; | 2198 pathOffset += 1; |
2199 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta1/")); | 2199 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta1/")); |
2200 pathOffset += 8; | 2200 pathOffset += 8; |
2201 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 2201 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
2202 | 2202 |
(...skipping 14 matching lines...) Expand all Loading... |
2217 } | 2217 } |
2218 } | 2218 } |
2219 | 2219 |
2220 | 2220 |
2221 var h = { | 2221 var h = { |
2222 "content-type" : "application/json; charset=utf-8", | 2222 "content-type" : "application/json; charset=utf-8", |
2223 }; | 2223 }; |
2224 var resp = convert.JSON.encode(buildEmpty()); | 2224 var resp = convert.JSON.encode(buildEmpty()); |
2225 return new async.Future.value(stringResponse(200, h, resp)); | 2225 return new async.Future.value(stringResponse(200, h, resp)); |
2226 }), true); | 2226 }), true); |
2227 res.delete(arg_name).then(unittest.expectAsync(((api.Empty response) { | 2227 res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { |
2228 checkEmpty(response); | 2228 checkEmpty(response); |
2229 }))); | 2229 }))); |
2230 }); | 2230 }); |
2231 | 2231 |
2232 unittest.test("method--get", () { | 2232 unittest.test("method--get", () { |
2233 | 2233 |
2234 var mock = new HttpServerMock(); | 2234 var mock = new HttpServerMock(); |
2235 api.OperationsResourceApi res = new api.DataprocApi(mock).operations; | 2235 api.OperationsResourceApi res = new api.DataprocApi(mock).operations; |
2236 var arg_name = "foo"; | 2236 var arg_name = "foo"; |
2237 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2237 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2238 var path = (req.url).path; | 2238 var path = (req.url).path; |
2239 var pathOffset = 0; | 2239 var pathOffset = 0; |
2240 var index; | 2240 var index; |
2241 var subPart; | 2241 var subPart; |
2242 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2242 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2243 pathOffset += 1; | 2243 pathOffset += 1; |
2244 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta1/")); | 2244 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta1/")); |
2245 pathOffset += 8; | 2245 pathOffset += 8; |
2246 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 2246 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
2247 | 2247 |
(...skipping 14 matching lines...) Expand all Loading... |
2262 } | 2262 } |
2263 } | 2263 } |
2264 | 2264 |
2265 | 2265 |
2266 var h = { | 2266 var h = { |
2267 "content-type" : "application/json; charset=utf-8", | 2267 "content-type" : "application/json; charset=utf-8", |
2268 }; | 2268 }; |
2269 var resp = convert.JSON.encode(buildOperation()); | 2269 var resp = convert.JSON.encode(buildOperation()); |
2270 return new async.Future.value(stringResponse(200, h, resp)); | 2270 return new async.Future.value(stringResponse(200, h, resp)); |
2271 }), true); | 2271 }), true); |
2272 res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { | 2272 res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { |
2273 checkOperation(response); | 2273 checkOperation(response); |
2274 }))); | 2274 }))); |
2275 }); | 2275 }); |
2276 | 2276 |
2277 unittest.test("method--list", () { | 2277 unittest.test("method--list", () { |
2278 | 2278 |
2279 var mock = new HttpServerMock(); | 2279 var mock = new HttpServerMock(); |
2280 api.OperationsResourceApi res = new api.DataprocApi(mock).operations; | 2280 api.OperationsResourceApi res = new api.DataprocApi(mock).operations; |
2281 var arg_name = "foo"; | 2281 var arg_name = "foo"; |
2282 var arg_filter = "foo"; | 2282 var arg_filter = "foo"; |
2283 var arg_pageToken = "foo"; | 2283 var arg_pageToken = "foo"; |
2284 var arg_pageSize = 42; | 2284 var arg_pageSize = 42; |
2285 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2285 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2286 var path = (req.url).path; | 2286 var path = (req.url).path; |
2287 var pathOffset = 0; | 2287 var pathOffset = 0; |
2288 var index; | 2288 var index; |
2289 var subPart; | 2289 var subPart; |
2290 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2290 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2291 pathOffset += 1; | 2291 pathOffset += 1; |
2292 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta1/")); | 2292 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta1/")); |
2293 pathOffset += 8; | 2293 pathOffset += 8; |
2294 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 2294 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
2295 | 2295 |
(...skipping 17 matching lines...) Expand all Loading... |
2313 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2313 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2314 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2314 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2315 | 2315 |
2316 | 2316 |
2317 var h = { | 2317 var h = { |
2318 "content-type" : "application/json; charset=utf-8", | 2318 "content-type" : "application/json; charset=utf-8", |
2319 }; | 2319 }; |
2320 var resp = convert.JSON.encode(buildListOperationsResponse()); | 2320 var resp = convert.JSON.encode(buildListOperationsResponse()); |
2321 return new async.Future.value(stringResponse(200, h, resp)); | 2321 return new async.Future.value(stringResponse(200, h, resp)); |
2322 }), true); | 2322 }), true); |
2323 res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize:
arg_pageSize).then(unittest.expectAsync(((api.ListOperationsResponse response)
{ | 2323 res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize:
arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse response)
{ |
2324 checkListOperationsResponse(response); | 2324 checkListOperationsResponse(response); |
2325 }))); | 2325 }))); |
2326 }); | 2326 }); |
2327 | 2327 |
2328 }); | 2328 }); |
2329 | 2329 |
2330 | 2330 |
2331 unittest.group("resource-ProjectsClustersResourceApi", () { | 2331 unittest.group("resource-ProjectsClustersResourceApi", () { |
2332 unittest.test("method--create", () { | 2332 unittest.test("method--create", () { |
2333 | 2333 |
2334 var mock = new HttpServerMock(); | 2334 var mock = new HttpServerMock(); |
2335 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; | 2335 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; |
2336 var arg_request = buildCluster(); | 2336 var arg_request = buildCluster(); |
2337 var arg_projectId = "foo"; | 2337 var arg_projectId = "foo"; |
2338 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2338 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2339 var obj = new api.Cluster.fromJson(json); | 2339 var obj = new api.Cluster.fromJson(json); |
2340 checkCluster(obj); | 2340 checkCluster(obj); |
2341 | 2341 |
2342 var path = (req.url).path; | 2342 var path = (req.url).path; |
2343 var pathOffset = 0; | 2343 var pathOffset = 0; |
2344 var index; | 2344 var index; |
2345 var subPart; | 2345 var subPart; |
2346 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2346 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2347 pathOffset += 1; | 2347 pathOffset += 1; |
2348 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); | 2348 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); |
(...skipping 23 matching lines...) Expand all Loading... |
2372 } | 2372 } |
2373 } | 2373 } |
2374 | 2374 |
2375 | 2375 |
2376 var h = { | 2376 var h = { |
2377 "content-type" : "application/json; charset=utf-8", | 2377 "content-type" : "application/json; charset=utf-8", |
2378 }; | 2378 }; |
2379 var resp = convert.JSON.encode(buildOperation()); | 2379 var resp = convert.JSON.encode(buildOperation()); |
2380 return new async.Future.value(stringResponse(200, h, resp)); | 2380 return new async.Future.value(stringResponse(200, h, resp)); |
2381 }), true); | 2381 }), true); |
2382 res.create(arg_request, arg_projectId).then(unittest.expectAsync(((api.Ope
ration response) { | 2382 res.create(arg_request, arg_projectId).then(unittest.expectAsync1(((api.Op
eration response) { |
2383 checkOperation(response); | 2383 checkOperation(response); |
2384 }))); | 2384 }))); |
2385 }); | 2385 }); |
2386 | 2386 |
2387 unittest.test("method--delete", () { | 2387 unittest.test("method--delete", () { |
2388 | 2388 |
2389 var mock = new HttpServerMock(); | 2389 var mock = new HttpServerMock(); |
2390 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; | 2390 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; |
2391 var arg_projectId = "foo"; | 2391 var arg_projectId = "foo"; |
2392 var arg_clusterName = "foo"; | 2392 var arg_clusterName = "foo"; |
2393 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2393 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2394 var path = (req.url).path; | 2394 var path = (req.url).path; |
2395 var pathOffset = 0; | 2395 var pathOffset = 0; |
2396 var index; | 2396 var index; |
2397 var subPart; | 2397 var subPart; |
2398 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2398 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2399 pathOffset += 1; | 2399 pathOffset += 1; |
2400 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); | 2400 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); |
2401 pathOffset += 17; | 2401 pathOffset += 17; |
2402 index = path.indexOf("/clusters/", pathOffset); | 2402 index = path.indexOf("/clusters/", pathOffset); |
2403 unittest.expect(index >= 0, unittest.isTrue); | 2403 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 23 matching lines...) Expand all Loading... |
2427 } | 2427 } |
2428 } | 2428 } |
2429 | 2429 |
2430 | 2430 |
2431 var h = { | 2431 var h = { |
2432 "content-type" : "application/json; charset=utf-8", | 2432 "content-type" : "application/json; charset=utf-8", |
2433 }; | 2433 }; |
2434 var resp = convert.JSON.encode(buildOperation()); | 2434 var resp = convert.JSON.encode(buildOperation()); |
2435 return new async.Future.value(stringResponse(200, h, resp)); | 2435 return new async.Future.value(stringResponse(200, h, resp)); |
2436 }), true); | 2436 }), true); |
2437 res.delete(arg_projectId, arg_clusterName).then(unittest.expectAsync(((api
.Operation response) { | 2437 res.delete(arg_projectId, arg_clusterName).then(unittest.expectAsync1(((ap
i.Operation response) { |
2438 checkOperation(response); | 2438 checkOperation(response); |
2439 }))); | 2439 }))); |
2440 }); | 2440 }); |
2441 | 2441 |
2442 unittest.test("method--diagnose", () { | 2442 unittest.test("method--diagnose", () { |
2443 | 2443 |
2444 var mock = new HttpServerMock(); | 2444 var mock = new HttpServerMock(); |
2445 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; | 2445 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; |
2446 var arg_request = buildDiagnoseClusterRequest(); | 2446 var arg_request = buildDiagnoseClusterRequest(); |
2447 var arg_projectId = "foo"; | 2447 var arg_projectId = "foo"; |
2448 var arg_clusterName = "foo"; | 2448 var arg_clusterName = "foo"; |
2449 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2449 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2450 var obj = new api.DiagnoseClusterRequest.fromJson(json); | 2450 var obj = new api.DiagnoseClusterRequest.fromJson(json); |
2451 checkDiagnoseClusterRequest(obj); | 2451 checkDiagnoseClusterRequest(obj); |
2452 | 2452 |
2453 var path = (req.url).path; | 2453 var path = (req.url).path; |
2454 var pathOffset = 0; | 2454 var pathOffset = 0; |
2455 var index; | 2455 var index; |
2456 var subPart; | 2456 var subPart; |
2457 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2457 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2458 pathOffset += 1; | 2458 pathOffset += 1; |
2459 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); | 2459 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); |
(...skipping 30 matching lines...) Expand all Loading... |
2490 } | 2490 } |
2491 } | 2491 } |
2492 | 2492 |
2493 | 2493 |
2494 var h = { | 2494 var h = { |
2495 "content-type" : "application/json; charset=utf-8", | 2495 "content-type" : "application/json; charset=utf-8", |
2496 }; | 2496 }; |
2497 var resp = convert.JSON.encode(buildOperation()); | 2497 var resp = convert.JSON.encode(buildOperation()); |
2498 return new async.Future.value(stringResponse(200, h, resp)); | 2498 return new async.Future.value(stringResponse(200, h, resp)); |
2499 }), true); | 2499 }), true); |
2500 res.diagnose(arg_request, arg_projectId, arg_clusterName).then(unittest.ex
pectAsync(((api.Operation response) { | 2500 res.diagnose(arg_request, arg_projectId, arg_clusterName).then(unittest.ex
pectAsync1(((api.Operation response) { |
2501 checkOperation(response); | 2501 checkOperation(response); |
2502 }))); | 2502 }))); |
2503 }); | 2503 }); |
2504 | 2504 |
2505 unittest.test("method--get", () { | 2505 unittest.test("method--get", () { |
2506 | 2506 |
2507 var mock = new HttpServerMock(); | 2507 var mock = new HttpServerMock(); |
2508 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; | 2508 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; |
2509 var arg_projectId = "foo"; | 2509 var arg_projectId = "foo"; |
2510 var arg_clusterName = "foo"; | 2510 var arg_clusterName = "foo"; |
2511 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2511 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2512 var path = (req.url).path; | 2512 var path = (req.url).path; |
2513 var pathOffset = 0; | 2513 var pathOffset = 0; |
2514 var index; | 2514 var index; |
2515 var subPart; | 2515 var subPart; |
2516 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2516 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2517 pathOffset += 1; | 2517 pathOffset += 1; |
2518 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); | 2518 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); |
2519 pathOffset += 17; | 2519 pathOffset += 17; |
2520 index = path.indexOf("/clusters/", pathOffset); | 2520 index = path.indexOf("/clusters/", pathOffset); |
2521 unittest.expect(index >= 0, unittest.isTrue); | 2521 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 23 matching lines...) Expand all Loading... |
2545 } | 2545 } |
2546 } | 2546 } |
2547 | 2547 |
2548 | 2548 |
2549 var h = { | 2549 var h = { |
2550 "content-type" : "application/json; charset=utf-8", | 2550 "content-type" : "application/json; charset=utf-8", |
2551 }; | 2551 }; |
2552 var resp = convert.JSON.encode(buildCluster()); | 2552 var resp = convert.JSON.encode(buildCluster()); |
2553 return new async.Future.value(stringResponse(200, h, resp)); | 2553 return new async.Future.value(stringResponse(200, h, resp)); |
2554 }), true); | 2554 }), true); |
2555 res.get(arg_projectId, arg_clusterName).then(unittest.expectAsync(((api.Cl
uster response) { | 2555 res.get(arg_projectId, arg_clusterName).then(unittest.expectAsync1(((api.C
luster response) { |
2556 checkCluster(response); | 2556 checkCluster(response); |
2557 }))); | 2557 }))); |
2558 }); | 2558 }); |
2559 | 2559 |
2560 unittest.test("method--list", () { | 2560 unittest.test("method--list", () { |
2561 | 2561 |
2562 var mock = new HttpServerMock(); | 2562 var mock = new HttpServerMock(); |
2563 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; | 2563 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; |
2564 var arg_projectId = "foo"; | 2564 var arg_projectId = "foo"; |
2565 var arg_filter = "foo"; | 2565 var arg_filter = "foo"; |
2566 var arg_pageToken = "foo"; | 2566 var arg_pageToken = "foo"; |
2567 var arg_pageSize = 42; | 2567 var arg_pageSize = 42; |
2568 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2568 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2569 var path = (req.url).path; | 2569 var path = (req.url).path; |
2570 var pathOffset = 0; | 2570 var pathOffset = 0; |
2571 var index; | 2571 var index; |
2572 var subPart; | 2572 var subPart; |
2573 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2573 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2574 pathOffset += 1; | 2574 pathOffset += 1; |
2575 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); | 2575 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); |
2576 pathOffset += 17; | 2576 pathOffset += 17; |
2577 index = path.indexOf("/clusters", pathOffset); | 2577 index = path.indexOf("/clusters", pathOffset); |
2578 unittest.expect(index >= 0, unittest.isTrue); | 2578 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 23 matching lines...) Expand all Loading... |
2602 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2602 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2603 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2603 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2604 | 2604 |
2605 | 2605 |
2606 var h = { | 2606 var h = { |
2607 "content-type" : "application/json; charset=utf-8", | 2607 "content-type" : "application/json; charset=utf-8", |
2608 }; | 2608 }; |
2609 var resp = convert.JSON.encode(buildListClustersResponse()); | 2609 var resp = convert.JSON.encode(buildListClustersResponse()); |
2610 return new async.Future.value(stringResponse(200, h, resp)); | 2610 return new async.Future.value(stringResponse(200, h, resp)); |
2611 }), true); | 2611 }), true); |
2612 res.list(arg_projectId, filter: arg_filter, pageToken: arg_pageToken, page
Size: arg_pageSize).then(unittest.expectAsync(((api.ListClustersResponse respons
e) { | 2612 res.list(arg_projectId, filter: arg_filter, pageToken: arg_pageToken, page
Size: arg_pageSize).then(unittest.expectAsync1(((api.ListClustersResponse respon
se) { |
2613 checkListClustersResponse(response); | 2613 checkListClustersResponse(response); |
2614 }))); | 2614 }))); |
2615 }); | 2615 }); |
2616 | 2616 |
2617 unittest.test("method--patch", () { | 2617 unittest.test("method--patch", () { |
2618 | 2618 |
2619 var mock = new HttpServerMock(); | 2619 var mock = new HttpServerMock(); |
2620 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; | 2620 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; |
2621 var arg_request = buildCluster(); | 2621 var arg_request = buildCluster(); |
2622 var arg_projectId = "foo"; | 2622 var arg_projectId = "foo"; |
2623 var arg_clusterName = "foo"; | 2623 var arg_clusterName = "foo"; |
2624 var arg_updateMask = "foo"; | 2624 var arg_updateMask = "foo"; |
2625 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2625 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2626 var obj = new api.Cluster.fromJson(json); | 2626 var obj = new api.Cluster.fromJson(json); |
2627 checkCluster(obj); | 2627 checkCluster(obj); |
2628 | 2628 |
2629 var path = (req.url).path; | 2629 var path = (req.url).path; |
2630 var pathOffset = 0; | 2630 var pathOffset = 0; |
2631 var index; | 2631 var index; |
2632 var subPart; | 2632 var subPart; |
2633 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2633 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2634 pathOffset += 1; | 2634 pathOffset += 1; |
2635 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); | 2635 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); |
(...skipping 27 matching lines...) Expand all Loading... |
2663 } | 2663 } |
2664 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); | 2664 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); |
2665 | 2665 |
2666 | 2666 |
2667 var h = { | 2667 var h = { |
2668 "content-type" : "application/json; charset=utf-8", | 2668 "content-type" : "application/json; charset=utf-8", |
2669 }; | 2669 }; |
2670 var resp = convert.JSON.encode(buildOperation()); | 2670 var resp = convert.JSON.encode(buildOperation()); |
2671 return new async.Future.value(stringResponse(200, h, resp)); | 2671 return new async.Future.value(stringResponse(200, h, resp)); |
2672 }), true); | 2672 }), true); |
2673 res.patch(arg_request, arg_projectId, arg_clusterName, updateMask: arg_upd
ateMask).then(unittest.expectAsync(((api.Operation response) { | 2673 res.patch(arg_request, arg_projectId, arg_clusterName, updateMask: arg_upd
ateMask).then(unittest.expectAsync1(((api.Operation response) { |
2674 checkOperation(response); | 2674 checkOperation(response); |
2675 }))); | 2675 }))); |
2676 }); | 2676 }); |
2677 | 2677 |
2678 }); | 2678 }); |
2679 | 2679 |
2680 | 2680 |
2681 unittest.group("resource-ProjectsJobsResourceApi", () { | 2681 unittest.group("resource-ProjectsJobsResourceApi", () { |
2682 unittest.test("method--cancel", () { | 2682 unittest.test("method--cancel", () { |
2683 | 2683 |
2684 var mock = new HttpServerMock(); | 2684 var mock = new HttpServerMock(); |
2685 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; | 2685 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; |
2686 var arg_request = buildCancelJobRequest(); | 2686 var arg_request = buildCancelJobRequest(); |
2687 var arg_projectId = "foo"; | 2687 var arg_projectId = "foo"; |
2688 var arg_jobId = "foo"; | 2688 var arg_jobId = "foo"; |
2689 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2689 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2690 var obj = new api.CancelJobRequest.fromJson(json); | 2690 var obj = new api.CancelJobRequest.fromJson(json); |
2691 checkCancelJobRequest(obj); | 2691 checkCancelJobRequest(obj); |
2692 | 2692 |
2693 var path = (req.url).path; | 2693 var path = (req.url).path; |
2694 var pathOffset = 0; | 2694 var pathOffset = 0; |
2695 var index; | 2695 var index; |
2696 var subPart; | 2696 var subPart; |
2697 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2697 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2698 pathOffset += 1; | 2698 pathOffset += 1; |
2699 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); | 2699 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); |
(...skipping 30 matching lines...) Expand all Loading... |
2730 } | 2730 } |
2731 } | 2731 } |
2732 | 2732 |
2733 | 2733 |
2734 var h = { | 2734 var h = { |
2735 "content-type" : "application/json; charset=utf-8", | 2735 "content-type" : "application/json; charset=utf-8", |
2736 }; | 2736 }; |
2737 var resp = convert.JSON.encode(buildJob()); | 2737 var resp = convert.JSON.encode(buildJob()); |
2738 return new async.Future.value(stringResponse(200, h, resp)); | 2738 return new async.Future.value(stringResponse(200, h, resp)); |
2739 }), true); | 2739 }), true); |
2740 res.cancel(arg_request, arg_projectId, arg_jobId).then(unittest.expectAsyn
c(((api.Job response) { | 2740 res.cancel(arg_request, arg_projectId, arg_jobId).then(unittest.expectAsyn
c1(((api.Job response) { |
2741 checkJob(response); | 2741 checkJob(response); |
2742 }))); | 2742 }))); |
2743 }); | 2743 }); |
2744 | 2744 |
2745 unittest.test("method--delete", () { | 2745 unittest.test("method--delete", () { |
2746 | 2746 |
2747 var mock = new HttpServerMock(); | 2747 var mock = new HttpServerMock(); |
2748 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; | 2748 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; |
2749 var arg_projectId = "foo"; | 2749 var arg_projectId = "foo"; |
2750 var arg_jobId = "foo"; | 2750 var arg_jobId = "foo"; |
2751 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2751 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2752 var path = (req.url).path; | 2752 var path = (req.url).path; |
2753 var pathOffset = 0; | 2753 var pathOffset = 0; |
2754 var index; | 2754 var index; |
2755 var subPart; | 2755 var subPart; |
2756 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2756 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2757 pathOffset += 1; | 2757 pathOffset += 1; |
2758 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); | 2758 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); |
2759 pathOffset += 17; | 2759 pathOffset += 17; |
2760 index = path.indexOf("/jobs/", pathOffset); | 2760 index = path.indexOf("/jobs/", pathOffset); |
2761 unittest.expect(index >= 0, unittest.isTrue); | 2761 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 23 matching lines...) Expand all Loading... |
2785 } | 2785 } |
2786 } | 2786 } |
2787 | 2787 |
2788 | 2788 |
2789 var h = { | 2789 var h = { |
2790 "content-type" : "application/json; charset=utf-8", | 2790 "content-type" : "application/json; charset=utf-8", |
2791 }; | 2791 }; |
2792 var resp = convert.JSON.encode(buildEmpty()); | 2792 var resp = convert.JSON.encode(buildEmpty()); |
2793 return new async.Future.value(stringResponse(200, h, resp)); | 2793 return new async.Future.value(stringResponse(200, h, resp)); |
2794 }), true); | 2794 }), true); |
2795 res.delete(arg_projectId, arg_jobId).then(unittest.expectAsync(((api.Empty
response) { | 2795 res.delete(arg_projectId, arg_jobId).then(unittest.expectAsync1(((api.Empt
y response) { |
2796 checkEmpty(response); | 2796 checkEmpty(response); |
2797 }))); | 2797 }))); |
2798 }); | 2798 }); |
2799 | 2799 |
2800 unittest.test("method--get", () { | 2800 unittest.test("method--get", () { |
2801 | 2801 |
2802 var mock = new HttpServerMock(); | 2802 var mock = new HttpServerMock(); |
2803 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; | 2803 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; |
2804 var arg_projectId = "foo"; | 2804 var arg_projectId = "foo"; |
2805 var arg_jobId = "foo"; | 2805 var arg_jobId = "foo"; |
2806 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2806 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2807 var path = (req.url).path; | 2807 var path = (req.url).path; |
2808 var pathOffset = 0; | 2808 var pathOffset = 0; |
2809 var index; | 2809 var index; |
2810 var subPart; | 2810 var subPart; |
2811 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2811 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2812 pathOffset += 1; | 2812 pathOffset += 1; |
2813 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); | 2813 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); |
2814 pathOffset += 17; | 2814 pathOffset += 17; |
2815 index = path.indexOf("/jobs/", pathOffset); | 2815 index = path.indexOf("/jobs/", pathOffset); |
2816 unittest.expect(index >= 0, unittest.isTrue); | 2816 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 23 matching lines...) Expand all Loading... |
2840 } | 2840 } |
2841 } | 2841 } |
2842 | 2842 |
2843 | 2843 |
2844 var h = { | 2844 var h = { |
2845 "content-type" : "application/json; charset=utf-8", | 2845 "content-type" : "application/json; charset=utf-8", |
2846 }; | 2846 }; |
2847 var resp = convert.JSON.encode(buildJob()); | 2847 var resp = convert.JSON.encode(buildJob()); |
2848 return new async.Future.value(stringResponse(200, h, resp)); | 2848 return new async.Future.value(stringResponse(200, h, resp)); |
2849 }), true); | 2849 }), true); |
2850 res.get(arg_projectId, arg_jobId).then(unittest.expectAsync(((api.Job resp
onse) { | 2850 res.get(arg_projectId, arg_jobId).then(unittest.expectAsync1(((api.Job res
ponse) { |
2851 checkJob(response); | 2851 checkJob(response); |
2852 }))); | 2852 }))); |
2853 }); | 2853 }); |
2854 | 2854 |
2855 unittest.test("method--list", () { | 2855 unittest.test("method--list", () { |
2856 | 2856 |
2857 var mock = new HttpServerMock(); | 2857 var mock = new HttpServerMock(); |
2858 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; | 2858 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; |
2859 var arg_projectId = "foo"; | 2859 var arg_projectId = "foo"; |
2860 var arg_filter = "foo"; | 2860 var arg_filter = "foo"; |
2861 var arg_jobStateMatcher = "foo"; | 2861 var arg_jobStateMatcher = "foo"; |
2862 var arg_pageToken = "foo"; | 2862 var arg_pageToken = "foo"; |
2863 var arg_pageSize = 42; | 2863 var arg_pageSize = 42; |
2864 var arg_clusterName = "foo"; | 2864 var arg_clusterName = "foo"; |
2865 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2865 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2866 var path = (req.url).path; | 2866 var path = (req.url).path; |
2867 var pathOffset = 0; | 2867 var pathOffset = 0; |
2868 var index; | 2868 var index; |
2869 var subPart; | 2869 var subPart; |
2870 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2870 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2871 pathOffset += 1; | 2871 pathOffset += 1; |
2872 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); | 2872 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); |
2873 pathOffset += 17; | 2873 pathOffset += 17; |
2874 index = path.indexOf("/jobs", pathOffset); | 2874 index = path.indexOf("/jobs", pathOffset); |
2875 unittest.expect(index >= 0, unittest.isTrue); | 2875 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 25 matching lines...) Expand all Loading... |
2901 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2901 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2902 unittest.expect(queryMap["clusterName"].first, unittest.equals(arg_clust
erName)); | 2902 unittest.expect(queryMap["clusterName"].first, unittest.equals(arg_clust
erName)); |
2903 | 2903 |
2904 | 2904 |
2905 var h = { | 2905 var h = { |
2906 "content-type" : "application/json; charset=utf-8", | 2906 "content-type" : "application/json; charset=utf-8", |
2907 }; | 2907 }; |
2908 var resp = convert.JSON.encode(buildListJobsResponse()); | 2908 var resp = convert.JSON.encode(buildListJobsResponse()); |
2909 return new async.Future.value(stringResponse(200, h, resp)); | 2909 return new async.Future.value(stringResponse(200, h, resp)); |
2910 }), true); | 2910 }), true); |
2911 res.list(arg_projectId, filter: arg_filter, jobStateMatcher: arg_jobStateM
atcher, pageToken: arg_pageToken, pageSize: arg_pageSize, clusterName: arg_clust
erName).then(unittest.expectAsync(((api.ListJobsResponse response) { | 2911 res.list(arg_projectId, filter: arg_filter, jobStateMatcher: arg_jobStateM
atcher, pageToken: arg_pageToken, pageSize: arg_pageSize, clusterName: arg_clust
erName).then(unittest.expectAsync1(((api.ListJobsResponse response) { |
2912 checkListJobsResponse(response); | 2912 checkListJobsResponse(response); |
2913 }))); | 2913 }))); |
2914 }); | 2914 }); |
2915 | 2915 |
2916 unittest.test("method--patch", () { | 2916 unittest.test("method--patch", () { |
2917 | 2917 |
2918 var mock = new HttpServerMock(); | 2918 var mock = new HttpServerMock(); |
2919 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; | 2919 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; |
2920 var arg_request = buildJob(); | 2920 var arg_request = buildJob(); |
2921 var arg_projectId = "foo"; | 2921 var arg_projectId = "foo"; |
2922 var arg_jobId = "foo"; | 2922 var arg_jobId = "foo"; |
2923 var arg_updateMask = "foo"; | 2923 var arg_updateMask = "foo"; |
2924 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2924 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2925 var obj = new api.Job.fromJson(json); | 2925 var obj = new api.Job.fromJson(json); |
2926 checkJob(obj); | 2926 checkJob(obj); |
2927 | 2927 |
2928 var path = (req.url).path; | 2928 var path = (req.url).path; |
2929 var pathOffset = 0; | 2929 var pathOffset = 0; |
2930 var index; | 2930 var index; |
2931 var subPart; | 2931 var subPart; |
2932 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2932 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2933 pathOffset += 1; | 2933 pathOffset += 1; |
2934 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); | 2934 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); |
(...skipping 27 matching lines...) Expand all Loading... |
2962 } | 2962 } |
2963 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); | 2963 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); |
2964 | 2964 |
2965 | 2965 |
2966 var h = { | 2966 var h = { |
2967 "content-type" : "application/json; charset=utf-8", | 2967 "content-type" : "application/json; charset=utf-8", |
2968 }; | 2968 }; |
2969 var resp = convert.JSON.encode(buildJob()); | 2969 var resp = convert.JSON.encode(buildJob()); |
2970 return new async.Future.value(stringResponse(200, h, resp)); | 2970 return new async.Future.value(stringResponse(200, h, resp)); |
2971 }), true); | 2971 }), true); |
2972 res.patch(arg_request, arg_projectId, arg_jobId, updateMask: arg_updateMas
k).then(unittest.expectAsync(((api.Job response) { | 2972 res.patch(arg_request, arg_projectId, arg_jobId, updateMask: arg_updateMas
k).then(unittest.expectAsync1(((api.Job response) { |
2973 checkJob(response); | 2973 checkJob(response); |
2974 }))); | 2974 }))); |
2975 }); | 2975 }); |
2976 | 2976 |
2977 unittest.test("method--submit", () { | 2977 unittest.test("method--submit", () { |
2978 | 2978 |
2979 var mock = new HttpServerMock(); | 2979 var mock = new HttpServerMock(); |
2980 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; | 2980 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; |
2981 var arg_request = buildSubmitJobRequest(); | 2981 var arg_request = buildSubmitJobRequest(); |
2982 var arg_projectId = "foo"; | 2982 var arg_projectId = "foo"; |
2983 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2983 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2984 var obj = new api.SubmitJobRequest.fromJson(json); | 2984 var obj = new api.SubmitJobRequest.fromJson(json); |
2985 checkSubmitJobRequest(obj); | 2985 checkSubmitJobRequest(obj); |
2986 | 2986 |
2987 var path = (req.url).path; | 2987 var path = (req.url).path; |
2988 var pathOffset = 0; | 2988 var pathOffset = 0; |
2989 var index; | 2989 var index; |
2990 var subPart; | 2990 var subPart; |
2991 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2991 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2992 pathOffset += 1; | 2992 pathOffset += 1; |
2993 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); | 2993 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); |
(...skipping 23 matching lines...) Expand all Loading... |
3017 } | 3017 } |
3018 } | 3018 } |
3019 | 3019 |
3020 | 3020 |
3021 var h = { | 3021 var h = { |
3022 "content-type" : "application/json; charset=utf-8", | 3022 "content-type" : "application/json; charset=utf-8", |
3023 }; | 3023 }; |
3024 var resp = convert.JSON.encode(buildJob()); | 3024 var resp = convert.JSON.encode(buildJob()); |
3025 return new async.Future.value(stringResponse(200, h, resp)); | 3025 return new async.Future.value(stringResponse(200, h, resp)); |
3026 }), true); | 3026 }), true); |
3027 res.submit(arg_request, arg_projectId).then(unittest.expectAsync(((api.Job
response) { | 3027 res.submit(arg_request, arg_projectId).then(unittest.expectAsync1(((api.Jo
b response) { |
3028 checkJob(response); | 3028 checkJob(response); |
3029 }))); | 3029 }))); |
3030 }); | 3030 }); |
3031 | 3031 |
3032 }); | 3032 }); |
3033 | 3033 |
3034 | 3034 |
3035 } | 3035 } |
3036 | 3036 |
OLD | NEW |