OLD | NEW |
1 library googleapis.dataproc.v1.test; | 1 library googleapis.dataproc.v1.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 return o; | 61 return o; |
62 } | 62 } |
63 | 63 |
64 checkCancelJobRequest(api.CancelJobRequest o) { | 64 checkCancelJobRequest(api.CancelJobRequest o) { |
65 buildCounterCancelJobRequest++; | 65 buildCounterCancelJobRequest++; |
66 if (buildCounterCancelJobRequest < 3) { | 66 if (buildCounterCancelJobRequest < 3) { |
67 } | 67 } |
68 buildCounterCancelJobRequest--; | 68 buildCounterCancelJobRequest--; |
69 } | 69 } |
70 | 70 |
71 buildUnnamed669() { | 71 buildUnnamed687() { |
| 72 var o = new core.Map<core.String, core.String>(); |
| 73 o["x"] = "foo"; |
| 74 o["y"] = "foo"; |
| 75 return o; |
| 76 } |
| 77 |
| 78 checkUnnamed687(core.Map<core.String, core.String> o) { |
| 79 unittest.expect(o, unittest.hasLength(2)); |
| 80 unittest.expect(o["x"], unittest.equals('foo')); |
| 81 unittest.expect(o["y"], unittest.equals('foo')); |
| 82 } |
| 83 |
| 84 buildUnnamed688() { |
72 var o = new core.List<api.ClusterStatus>(); | 85 var o = new core.List<api.ClusterStatus>(); |
73 o.add(buildClusterStatus()); | 86 o.add(buildClusterStatus()); |
74 o.add(buildClusterStatus()); | 87 o.add(buildClusterStatus()); |
75 return o; | 88 return o; |
76 } | 89 } |
77 | 90 |
78 checkUnnamed669(core.List<api.ClusterStatus> o) { | 91 checkUnnamed688(core.List<api.ClusterStatus> o) { |
79 unittest.expect(o, unittest.hasLength(2)); | 92 unittest.expect(o, unittest.hasLength(2)); |
80 checkClusterStatus(o[0]); | 93 checkClusterStatus(o[0]); |
81 checkClusterStatus(o[1]); | 94 checkClusterStatus(o[1]); |
82 } | 95 } |
83 | 96 |
84 core.int buildCounterCluster = 0; | 97 core.int buildCounterCluster = 0; |
85 buildCluster() { | 98 buildCluster() { |
86 var o = new api.Cluster(); | 99 var o = new api.Cluster(); |
87 buildCounterCluster++; | 100 buildCounterCluster++; |
88 if (buildCounterCluster < 3) { | 101 if (buildCounterCluster < 3) { |
89 o.clusterName = "foo"; | 102 o.clusterName = "foo"; |
90 o.clusterUuid = "foo"; | 103 o.clusterUuid = "foo"; |
91 o.config = buildClusterConfig(); | 104 o.config = buildClusterConfig(); |
| 105 o.labels = buildUnnamed687(); |
| 106 o.metrics = buildClusterMetrics(); |
92 o.projectId = "foo"; | 107 o.projectId = "foo"; |
93 o.status = buildClusterStatus(); | 108 o.status = buildClusterStatus(); |
94 o.statusHistory = buildUnnamed669(); | 109 o.statusHistory = buildUnnamed688(); |
95 } | 110 } |
96 buildCounterCluster--; | 111 buildCounterCluster--; |
97 return o; | 112 return o; |
98 } | 113 } |
99 | 114 |
100 checkCluster(api.Cluster o) { | 115 checkCluster(api.Cluster o) { |
101 buildCounterCluster++; | 116 buildCounterCluster++; |
102 if (buildCounterCluster < 3) { | 117 if (buildCounterCluster < 3) { |
103 unittest.expect(o.clusterName, unittest.equals('foo')); | 118 unittest.expect(o.clusterName, unittest.equals('foo')); |
104 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 119 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
105 checkClusterConfig(o.config); | 120 checkClusterConfig(o.config); |
| 121 checkUnnamed687(o.labels); |
| 122 checkClusterMetrics(o.metrics); |
106 unittest.expect(o.projectId, unittest.equals('foo')); | 123 unittest.expect(o.projectId, unittest.equals('foo')); |
107 checkClusterStatus(o.status); | 124 checkClusterStatus(o.status); |
108 checkUnnamed669(o.statusHistory); | 125 checkUnnamed688(o.statusHistory); |
109 } | 126 } |
110 buildCounterCluster--; | 127 buildCounterCluster--; |
111 } | 128 } |
112 | 129 |
113 buildUnnamed670() { | 130 buildUnnamed689() { |
114 var o = new core.List<api.NodeInitializationAction>(); | 131 var o = new core.List<api.NodeInitializationAction>(); |
115 o.add(buildNodeInitializationAction()); | 132 o.add(buildNodeInitializationAction()); |
116 o.add(buildNodeInitializationAction()); | 133 o.add(buildNodeInitializationAction()); |
117 return o; | 134 return o; |
118 } | 135 } |
119 | 136 |
120 checkUnnamed670(core.List<api.NodeInitializationAction> o) { | 137 checkUnnamed689(core.List<api.NodeInitializationAction> o) { |
121 unittest.expect(o, unittest.hasLength(2)); | 138 unittest.expect(o, unittest.hasLength(2)); |
122 checkNodeInitializationAction(o[0]); | 139 checkNodeInitializationAction(o[0]); |
123 checkNodeInitializationAction(o[1]); | 140 checkNodeInitializationAction(o[1]); |
124 } | 141 } |
125 | 142 |
126 core.int buildCounterClusterConfig = 0; | 143 core.int buildCounterClusterConfig = 0; |
127 buildClusterConfig() { | 144 buildClusterConfig() { |
128 var o = new api.ClusterConfig(); | 145 var o = new api.ClusterConfig(); |
129 buildCounterClusterConfig++; | 146 buildCounterClusterConfig++; |
130 if (buildCounterClusterConfig < 3) { | 147 if (buildCounterClusterConfig < 3) { |
131 o.configBucket = "foo"; | 148 o.configBucket = "foo"; |
132 o.gceClusterConfig = buildGceClusterConfig(); | 149 o.gceClusterConfig = buildGceClusterConfig(); |
133 o.initializationActions = buildUnnamed670(); | 150 o.initializationActions = buildUnnamed689(); |
134 o.masterConfig = buildInstanceGroupConfig(); | 151 o.masterConfig = buildInstanceGroupConfig(); |
135 o.secondaryWorkerConfig = buildInstanceGroupConfig(); | 152 o.secondaryWorkerConfig = buildInstanceGroupConfig(); |
136 o.softwareConfig = buildSoftwareConfig(); | 153 o.softwareConfig = buildSoftwareConfig(); |
137 o.workerConfig = buildInstanceGroupConfig(); | 154 o.workerConfig = buildInstanceGroupConfig(); |
138 } | 155 } |
139 buildCounterClusterConfig--; | 156 buildCounterClusterConfig--; |
140 return o; | 157 return o; |
141 } | 158 } |
142 | 159 |
143 checkClusterConfig(api.ClusterConfig o) { | 160 checkClusterConfig(api.ClusterConfig o) { |
144 buildCounterClusterConfig++; | 161 buildCounterClusterConfig++; |
145 if (buildCounterClusterConfig < 3) { | 162 if (buildCounterClusterConfig < 3) { |
146 unittest.expect(o.configBucket, unittest.equals('foo')); | 163 unittest.expect(o.configBucket, unittest.equals('foo')); |
147 checkGceClusterConfig(o.gceClusterConfig); | 164 checkGceClusterConfig(o.gceClusterConfig); |
148 checkUnnamed670(o.initializationActions); | 165 checkUnnamed689(o.initializationActions); |
149 checkInstanceGroupConfig(o.masterConfig); | 166 checkInstanceGroupConfig(o.masterConfig); |
150 checkInstanceGroupConfig(o.secondaryWorkerConfig); | 167 checkInstanceGroupConfig(o.secondaryWorkerConfig); |
151 checkSoftwareConfig(o.softwareConfig); | 168 checkSoftwareConfig(o.softwareConfig); |
152 checkInstanceGroupConfig(o.workerConfig); | 169 checkInstanceGroupConfig(o.workerConfig); |
153 } | 170 } |
154 buildCounterClusterConfig--; | 171 buildCounterClusterConfig--; |
155 } | 172 } |
156 | 173 |
157 buildUnnamed671() { | 174 buildUnnamed690() { |
| 175 var o = new core.Map<core.String, core.String>(); |
| 176 o["x"] = "foo"; |
| 177 o["y"] = "foo"; |
| 178 return o; |
| 179 } |
| 180 |
| 181 checkUnnamed690(core.Map<core.String, core.String> o) { |
| 182 unittest.expect(o, unittest.hasLength(2)); |
| 183 unittest.expect(o["x"], unittest.equals('foo')); |
| 184 unittest.expect(o["y"], unittest.equals('foo')); |
| 185 } |
| 186 |
| 187 buildUnnamed691() { |
| 188 var o = new core.Map<core.String, core.String>(); |
| 189 o["x"] = "foo"; |
| 190 o["y"] = "foo"; |
| 191 return o; |
| 192 } |
| 193 |
| 194 checkUnnamed691(core.Map<core.String, core.String> o) { |
| 195 unittest.expect(o, unittest.hasLength(2)); |
| 196 unittest.expect(o["x"], unittest.equals('foo')); |
| 197 unittest.expect(o["y"], unittest.equals('foo')); |
| 198 } |
| 199 |
| 200 core.int buildCounterClusterMetrics = 0; |
| 201 buildClusterMetrics() { |
| 202 var o = new api.ClusterMetrics(); |
| 203 buildCounterClusterMetrics++; |
| 204 if (buildCounterClusterMetrics < 3) { |
| 205 o.hdfsMetrics = buildUnnamed690(); |
| 206 o.yarnMetrics = buildUnnamed691(); |
| 207 } |
| 208 buildCounterClusterMetrics--; |
| 209 return o; |
| 210 } |
| 211 |
| 212 checkClusterMetrics(api.ClusterMetrics o) { |
| 213 buildCounterClusterMetrics++; |
| 214 if (buildCounterClusterMetrics < 3) { |
| 215 checkUnnamed690(o.hdfsMetrics); |
| 216 checkUnnamed691(o.yarnMetrics); |
| 217 } |
| 218 buildCounterClusterMetrics--; |
| 219 } |
| 220 |
| 221 buildUnnamed692() { |
| 222 var o = new core.Map<core.String, core.String>(); |
| 223 o["x"] = "foo"; |
| 224 o["y"] = "foo"; |
| 225 return o; |
| 226 } |
| 227 |
| 228 checkUnnamed692(core.Map<core.String, core.String> o) { |
| 229 unittest.expect(o, unittest.hasLength(2)); |
| 230 unittest.expect(o["x"], unittest.equals('foo')); |
| 231 unittest.expect(o["y"], unittest.equals('foo')); |
| 232 } |
| 233 |
| 234 buildUnnamed693() { |
158 var o = new core.List<api.ClusterOperationStatus>(); | 235 var o = new core.List<api.ClusterOperationStatus>(); |
159 o.add(buildClusterOperationStatus()); | 236 o.add(buildClusterOperationStatus()); |
160 o.add(buildClusterOperationStatus()); | 237 o.add(buildClusterOperationStatus()); |
161 return o; | 238 return o; |
162 } | 239 } |
163 | 240 |
164 checkUnnamed671(core.List<api.ClusterOperationStatus> o) { | 241 checkUnnamed693(core.List<api.ClusterOperationStatus> o) { |
165 unittest.expect(o, unittest.hasLength(2)); | 242 unittest.expect(o, unittest.hasLength(2)); |
166 checkClusterOperationStatus(o[0]); | 243 checkClusterOperationStatus(o[0]); |
167 checkClusterOperationStatus(o[1]); | 244 checkClusterOperationStatus(o[1]); |
168 } | 245 } |
169 | 246 |
170 core.int buildCounterClusterOperationMetadata = 0; | 247 core.int buildCounterClusterOperationMetadata = 0; |
171 buildClusterOperationMetadata() { | 248 buildClusterOperationMetadata() { |
172 var o = new api.ClusterOperationMetadata(); | 249 var o = new api.ClusterOperationMetadata(); |
173 buildCounterClusterOperationMetadata++; | 250 buildCounterClusterOperationMetadata++; |
174 if (buildCounterClusterOperationMetadata < 3) { | 251 if (buildCounterClusterOperationMetadata < 3) { |
175 o.clusterName = "foo"; | 252 o.clusterName = "foo"; |
176 o.clusterUuid = "foo"; | 253 o.clusterUuid = "foo"; |
177 o.description = "foo"; | 254 o.description = "foo"; |
| 255 o.labels = buildUnnamed692(); |
178 o.operationType = "foo"; | 256 o.operationType = "foo"; |
179 o.status = buildClusterOperationStatus(); | 257 o.status = buildClusterOperationStatus(); |
180 o.statusHistory = buildUnnamed671(); | 258 o.statusHistory = buildUnnamed693(); |
181 } | 259 } |
182 buildCounterClusterOperationMetadata--; | 260 buildCounterClusterOperationMetadata--; |
183 return o; | 261 return o; |
184 } | 262 } |
185 | 263 |
186 checkClusterOperationMetadata(api.ClusterOperationMetadata o) { | 264 checkClusterOperationMetadata(api.ClusterOperationMetadata o) { |
187 buildCounterClusterOperationMetadata++; | 265 buildCounterClusterOperationMetadata++; |
188 if (buildCounterClusterOperationMetadata < 3) { | 266 if (buildCounterClusterOperationMetadata < 3) { |
189 unittest.expect(o.clusterName, unittest.equals('foo')); | 267 unittest.expect(o.clusterName, unittest.equals('foo')); |
190 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 268 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
191 unittest.expect(o.description, unittest.equals('foo')); | 269 unittest.expect(o.description, unittest.equals('foo')); |
| 270 checkUnnamed692(o.labels); |
192 unittest.expect(o.operationType, unittest.equals('foo')); | 271 unittest.expect(o.operationType, unittest.equals('foo')); |
193 checkClusterOperationStatus(o.status); | 272 checkClusterOperationStatus(o.status); |
194 checkUnnamed671(o.statusHistory); | 273 checkUnnamed693(o.statusHistory); |
195 } | 274 } |
196 buildCounterClusterOperationMetadata--; | 275 buildCounterClusterOperationMetadata--; |
197 } | 276 } |
198 | 277 |
199 core.int buildCounterClusterOperationStatus = 0; | 278 core.int buildCounterClusterOperationStatus = 0; |
200 buildClusterOperationStatus() { | 279 buildClusterOperationStatus() { |
201 var o = new api.ClusterOperationStatus(); | 280 var o = new api.ClusterOperationStatus(); |
202 buildCounterClusterOperationStatus++; | 281 buildCounterClusterOperationStatus++; |
203 if (buildCounterClusterOperationStatus < 3) { | 282 if (buildCounterClusterOperationStatus < 3) { |
204 o.details = "foo"; | 283 o.details = "foo"; |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 return o; | 409 return o; |
331 } | 410 } |
332 | 411 |
333 checkEmpty(api.Empty o) { | 412 checkEmpty(api.Empty o) { |
334 buildCounterEmpty++; | 413 buildCounterEmpty++; |
335 if (buildCounterEmpty < 3) { | 414 if (buildCounterEmpty < 3) { |
336 } | 415 } |
337 buildCounterEmpty--; | 416 buildCounterEmpty--; |
338 } | 417 } |
339 | 418 |
340 buildUnnamed672() { | 419 buildUnnamed694() { |
341 var o = new core.Map<core.String, core.String>(); | 420 var o = new core.Map<core.String, core.String>(); |
342 o["x"] = "foo"; | 421 o["x"] = "foo"; |
343 o["y"] = "foo"; | 422 o["y"] = "foo"; |
344 return o; | 423 return o; |
345 } | 424 } |
346 | 425 |
347 checkUnnamed672(core.Map<core.String, core.String> o) { | 426 checkUnnamed694(core.Map<core.String, core.String> o) { |
348 unittest.expect(o, unittest.hasLength(2)); | 427 unittest.expect(o, unittest.hasLength(2)); |
349 unittest.expect(o["x"], unittest.equals('foo')); | 428 unittest.expect(o["x"], unittest.equals('foo')); |
350 unittest.expect(o["y"], unittest.equals('foo')); | 429 unittest.expect(o["y"], unittest.equals('foo')); |
351 } | 430 } |
352 | 431 |
353 buildUnnamed673() { | 432 buildUnnamed695() { |
354 var o = new core.List<core.String>(); | 433 var o = new core.List<core.String>(); |
355 o.add("foo"); | 434 o.add("foo"); |
356 o.add("foo"); | 435 o.add("foo"); |
357 return o; | 436 return o; |
358 } | 437 } |
359 | 438 |
360 checkUnnamed673(core.List<core.String> o) { | 439 checkUnnamed695(core.List<core.String> o) { |
361 unittest.expect(o, unittest.hasLength(2)); | 440 unittest.expect(o, unittest.hasLength(2)); |
362 unittest.expect(o[0], unittest.equals('foo')); | 441 unittest.expect(o[0], unittest.equals('foo')); |
363 unittest.expect(o[1], unittest.equals('foo')); | 442 unittest.expect(o[1], unittest.equals('foo')); |
364 } | 443 } |
365 | 444 |
366 buildUnnamed674() { | 445 buildUnnamed696() { |
367 var o = new core.List<core.String>(); | 446 var o = new core.List<core.String>(); |
368 o.add("foo"); | 447 o.add("foo"); |
369 o.add("foo"); | 448 o.add("foo"); |
370 return o; | 449 return o; |
371 } | 450 } |
372 | 451 |
373 checkUnnamed674(core.List<core.String> o) { | 452 checkUnnamed696(core.List<core.String> o) { |
374 unittest.expect(o, unittest.hasLength(2)); | 453 unittest.expect(o, unittest.hasLength(2)); |
375 unittest.expect(o[0], unittest.equals('foo')); | 454 unittest.expect(o[0], unittest.equals('foo')); |
376 unittest.expect(o[1], unittest.equals('foo')); | 455 unittest.expect(o[1], unittest.equals('foo')); |
377 } | 456 } |
378 | 457 |
379 core.int buildCounterGceClusterConfig = 0; | 458 core.int buildCounterGceClusterConfig = 0; |
380 buildGceClusterConfig() { | 459 buildGceClusterConfig() { |
381 var o = new api.GceClusterConfig(); | 460 var o = new api.GceClusterConfig(); |
382 buildCounterGceClusterConfig++; | 461 buildCounterGceClusterConfig++; |
383 if (buildCounterGceClusterConfig < 3) { | 462 if (buildCounterGceClusterConfig < 3) { |
384 o.metadata = buildUnnamed672(); | 463 o.internalIpOnly = true; |
| 464 o.metadata = buildUnnamed694(); |
385 o.networkUri = "foo"; | 465 o.networkUri = "foo"; |
386 o.serviceAccountScopes = buildUnnamed673(); | 466 o.serviceAccountScopes = buildUnnamed695(); |
387 o.subnetworkUri = "foo"; | 467 o.subnetworkUri = "foo"; |
388 o.tags = buildUnnamed674(); | 468 o.tags = buildUnnamed696(); |
389 o.zoneUri = "foo"; | 469 o.zoneUri = "foo"; |
390 } | 470 } |
391 buildCounterGceClusterConfig--; | 471 buildCounterGceClusterConfig--; |
392 return o; | 472 return o; |
393 } | 473 } |
394 | 474 |
395 checkGceClusterConfig(api.GceClusterConfig o) { | 475 checkGceClusterConfig(api.GceClusterConfig o) { |
396 buildCounterGceClusterConfig++; | 476 buildCounterGceClusterConfig++; |
397 if (buildCounterGceClusterConfig < 3) { | 477 if (buildCounterGceClusterConfig < 3) { |
398 checkUnnamed672(o.metadata); | 478 unittest.expect(o.internalIpOnly, unittest.isTrue); |
| 479 checkUnnamed694(o.metadata); |
399 unittest.expect(o.networkUri, unittest.equals('foo')); | 480 unittest.expect(o.networkUri, unittest.equals('foo')); |
400 checkUnnamed673(o.serviceAccountScopes); | 481 checkUnnamed695(o.serviceAccountScopes); |
401 unittest.expect(o.subnetworkUri, unittest.equals('foo')); | 482 unittest.expect(o.subnetworkUri, unittest.equals('foo')); |
402 checkUnnamed674(o.tags); | 483 checkUnnamed696(o.tags); |
403 unittest.expect(o.zoneUri, unittest.equals('foo')); | 484 unittest.expect(o.zoneUri, unittest.equals('foo')); |
404 } | 485 } |
405 buildCounterGceClusterConfig--; | 486 buildCounterGceClusterConfig--; |
406 } | 487 } |
407 | 488 |
408 buildUnnamed675() { | 489 buildUnnamed697() { |
409 var o = new core.List<core.String>(); | 490 var o = new core.List<core.String>(); |
410 o.add("foo"); | 491 o.add("foo"); |
411 o.add("foo"); | 492 o.add("foo"); |
412 return o; | 493 return o; |
413 } | 494 } |
414 | 495 |
415 checkUnnamed675(core.List<core.String> o) { | 496 checkUnnamed697(core.List<core.String> o) { |
416 unittest.expect(o, unittest.hasLength(2)); | 497 unittest.expect(o, unittest.hasLength(2)); |
417 unittest.expect(o[0], unittest.equals('foo')); | 498 unittest.expect(o[0], unittest.equals('foo')); |
418 unittest.expect(o[1], unittest.equals('foo')); | 499 unittest.expect(o[1], unittest.equals('foo')); |
419 } | 500 } |
420 | 501 |
421 buildUnnamed676() { | 502 buildUnnamed698() { |
422 var o = new core.List<core.String>(); | 503 var o = new core.List<core.String>(); |
423 o.add("foo"); | 504 o.add("foo"); |
424 o.add("foo"); | 505 o.add("foo"); |
425 return o; | 506 return o; |
426 } | 507 } |
427 | 508 |
428 checkUnnamed676(core.List<core.String> o) { | 509 checkUnnamed698(core.List<core.String> o) { |
429 unittest.expect(o, unittest.hasLength(2)); | 510 unittest.expect(o, unittest.hasLength(2)); |
430 unittest.expect(o[0], unittest.equals('foo')); | 511 unittest.expect(o[0], unittest.equals('foo')); |
431 unittest.expect(o[1], unittest.equals('foo')); | 512 unittest.expect(o[1], unittest.equals('foo')); |
432 } | 513 } |
433 | 514 |
434 buildUnnamed677() { | 515 buildUnnamed699() { |
435 var o = new core.List<core.String>(); | 516 var o = new core.List<core.String>(); |
436 o.add("foo"); | 517 o.add("foo"); |
437 o.add("foo"); | 518 o.add("foo"); |
438 return o; | 519 return o; |
439 } | 520 } |
440 | 521 |
441 checkUnnamed677(core.List<core.String> o) { | 522 checkUnnamed699(core.List<core.String> o) { |
442 unittest.expect(o, unittest.hasLength(2)); | 523 unittest.expect(o, unittest.hasLength(2)); |
443 unittest.expect(o[0], unittest.equals('foo')); | 524 unittest.expect(o[0], unittest.equals('foo')); |
444 unittest.expect(o[1], unittest.equals('foo')); | 525 unittest.expect(o[1], unittest.equals('foo')); |
445 } | 526 } |
446 | 527 |
447 buildUnnamed678() { | 528 buildUnnamed700() { |
448 var o = new core.List<core.String>(); | 529 var o = new core.List<core.String>(); |
449 o.add("foo"); | 530 o.add("foo"); |
450 o.add("foo"); | 531 o.add("foo"); |
451 return o; | 532 return o; |
452 } | 533 } |
453 | 534 |
454 checkUnnamed678(core.List<core.String> o) { | 535 checkUnnamed700(core.List<core.String> o) { |
455 unittest.expect(o, unittest.hasLength(2)); | 536 unittest.expect(o, unittest.hasLength(2)); |
456 unittest.expect(o[0], unittest.equals('foo')); | 537 unittest.expect(o[0], unittest.equals('foo')); |
457 unittest.expect(o[1], unittest.equals('foo')); | 538 unittest.expect(o[1], unittest.equals('foo')); |
458 } | 539 } |
459 | 540 |
460 buildUnnamed679() { | 541 buildUnnamed701() { |
461 var o = new core.Map<core.String, core.String>(); | 542 var o = new core.Map<core.String, core.String>(); |
462 o["x"] = "foo"; | 543 o["x"] = "foo"; |
463 o["y"] = "foo"; | 544 o["y"] = "foo"; |
464 return o; | 545 return o; |
465 } | 546 } |
466 | 547 |
467 checkUnnamed679(core.Map<core.String, core.String> o) { | 548 checkUnnamed701(core.Map<core.String, core.String> o) { |
468 unittest.expect(o, unittest.hasLength(2)); | 549 unittest.expect(o, unittest.hasLength(2)); |
469 unittest.expect(o["x"], unittest.equals('foo')); | 550 unittest.expect(o["x"], unittest.equals('foo')); |
470 unittest.expect(o["y"], unittest.equals('foo')); | 551 unittest.expect(o["y"], unittest.equals('foo')); |
471 } | 552 } |
472 | 553 |
473 core.int buildCounterHadoopJob = 0; | 554 core.int buildCounterHadoopJob = 0; |
474 buildHadoopJob() { | 555 buildHadoopJob() { |
475 var o = new api.HadoopJob(); | 556 var o = new api.HadoopJob(); |
476 buildCounterHadoopJob++; | 557 buildCounterHadoopJob++; |
477 if (buildCounterHadoopJob < 3) { | 558 if (buildCounterHadoopJob < 3) { |
478 o.archiveUris = buildUnnamed675(); | 559 o.archiveUris = buildUnnamed697(); |
479 o.args = buildUnnamed676(); | 560 o.args = buildUnnamed698(); |
480 o.fileUris = buildUnnamed677(); | 561 o.fileUris = buildUnnamed699(); |
481 o.jarFileUris = buildUnnamed678(); | 562 o.jarFileUris = buildUnnamed700(); |
482 o.loggingConfig = buildLoggingConfig(); | 563 o.loggingConfig = buildLoggingConfig(); |
483 o.mainClass = "foo"; | 564 o.mainClass = "foo"; |
484 o.mainJarFileUri = "foo"; | 565 o.mainJarFileUri = "foo"; |
485 o.properties = buildUnnamed679(); | 566 o.properties = buildUnnamed701(); |
486 } | 567 } |
487 buildCounterHadoopJob--; | 568 buildCounterHadoopJob--; |
488 return o; | 569 return o; |
489 } | 570 } |
490 | 571 |
491 checkHadoopJob(api.HadoopJob o) { | 572 checkHadoopJob(api.HadoopJob o) { |
492 buildCounterHadoopJob++; | 573 buildCounterHadoopJob++; |
493 if (buildCounterHadoopJob < 3) { | 574 if (buildCounterHadoopJob < 3) { |
494 checkUnnamed675(o.archiveUris); | 575 checkUnnamed697(o.archiveUris); |
495 checkUnnamed676(o.args); | 576 checkUnnamed698(o.args); |
496 checkUnnamed677(o.fileUris); | 577 checkUnnamed699(o.fileUris); |
497 checkUnnamed678(o.jarFileUris); | 578 checkUnnamed700(o.jarFileUris); |
498 checkLoggingConfig(o.loggingConfig); | 579 checkLoggingConfig(o.loggingConfig); |
499 unittest.expect(o.mainClass, unittest.equals('foo')); | 580 unittest.expect(o.mainClass, unittest.equals('foo')); |
500 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 581 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
501 checkUnnamed679(o.properties); | 582 checkUnnamed701(o.properties); |
502 } | 583 } |
503 buildCounterHadoopJob--; | 584 buildCounterHadoopJob--; |
504 } | 585 } |
505 | 586 |
506 buildUnnamed680() { | 587 buildUnnamed702() { |
507 var o = new core.List<core.String>(); | 588 var o = new core.List<core.String>(); |
508 o.add("foo"); | 589 o.add("foo"); |
509 o.add("foo"); | 590 o.add("foo"); |
510 return o; | 591 return o; |
511 } | 592 } |
512 | 593 |
513 checkUnnamed680(core.List<core.String> o) { | 594 checkUnnamed702(core.List<core.String> o) { |
514 unittest.expect(o, unittest.hasLength(2)); | 595 unittest.expect(o, unittest.hasLength(2)); |
515 unittest.expect(o[0], unittest.equals('foo')); | 596 unittest.expect(o[0], unittest.equals('foo')); |
516 unittest.expect(o[1], unittest.equals('foo')); | 597 unittest.expect(o[1], unittest.equals('foo')); |
517 } | 598 } |
518 | 599 |
519 buildUnnamed681() { | 600 buildUnnamed703() { |
520 var o = new core.Map<core.String, core.String>(); | 601 var o = new core.Map<core.String, core.String>(); |
521 o["x"] = "foo"; | 602 o["x"] = "foo"; |
522 o["y"] = "foo"; | 603 o["y"] = "foo"; |
523 return o; | 604 return o; |
524 } | 605 } |
525 | 606 |
526 checkUnnamed681(core.Map<core.String, core.String> o) { | 607 checkUnnamed703(core.Map<core.String, core.String> o) { |
527 unittest.expect(o, unittest.hasLength(2)); | 608 unittest.expect(o, unittest.hasLength(2)); |
528 unittest.expect(o["x"], unittest.equals('foo')); | 609 unittest.expect(o["x"], unittest.equals('foo')); |
529 unittest.expect(o["y"], unittest.equals('foo')); | 610 unittest.expect(o["y"], unittest.equals('foo')); |
530 } | 611 } |
531 | 612 |
532 buildUnnamed682() { | 613 buildUnnamed704() { |
533 var o = new core.Map<core.String, core.String>(); | 614 var o = new core.Map<core.String, core.String>(); |
534 o["x"] = "foo"; | 615 o["x"] = "foo"; |
535 o["y"] = "foo"; | 616 o["y"] = "foo"; |
536 return o; | 617 return o; |
537 } | 618 } |
538 | 619 |
539 checkUnnamed682(core.Map<core.String, core.String> o) { | 620 checkUnnamed704(core.Map<core.String, core.String> o) { |
540 unittest.expect(o, unittest.hasLength(2)); | 621 unittest.expect(o, unittest.hasLength(2)); |
541 unittest.expect(o["x"], unittest.equals('foo')); | 622 unittest.expect(o["x"], unittest.equals('foo')); |
542 unittest.expect(o["y"], unittest.equals('foo')); | 623 unittest.expect(o["y"], unittest.equals('foo')); |
543 } | 624 } |
544 | 625 |
545 core.int buildCounterHiveJob = 0; | 626 core.int buildCounterHiveJob = 0; |
546 buildHiveJob() { | 627 buildHiveJob() { |
547 var o = new api.HiveJob(); | 628 var o = new api.HiveJob(); |
548 buildCounterHiveJob++; | 629 buildCounterHiveJob++; |
549 if (buildCounterHiveJob < 3) { | 630 if (buildCounterHiveJob < 3) { |
550 o.continueOnFailure = true; | 631 o.continueOnFailure = true; |
551 o.jarFileUris = buildUnnamed680(); | 632 o.jarFileUris = buildUnnamed702(); |
552 o.properties = buildUnnamed681(); | 633 o.properties = buildUnnamed703(); |
553 o.queryFileUri = "foo"; | 634 o.queryFileUri = "foo"; |
554 o.queryList = buildQueryList(); | 635 o.queryList = buildQueryList(); |
555 o.scriptVariables = buildUnnamed682(); | 636 o.scriptVariables = buildUnnamed704(); |
556 } | 637 } |
557 buildCounterHiveJob--; | 638 buildCounterHiveJob--; |
558 return o; | 639 return o; |
559 } | 640 } |
560 | 641 |
561 checkHiveJob(api.HiveJob o) { | 642 checkHiveJob(api.HiveJob o) { |
562 buildCounterHiveJob++; | 643 buildCounterHiveJob++; |
563 if (buildCounterHiveJob < 3) { | 644 if (buildCounterHiveJob < 3) { |
564 unittest.expect(o.continueOnFailure, unittest.isTrue); | 645 unittest.expect(o.continueOnFailure, unittest.isTrue); |
565 checkUnnamed680(o.jarFileUris); | 646 checkUnnamed702(o.jarFileUris); |
566 checkUnnamed681(o.properties); | 647 checkUnnamed703(o.properties); |
567 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 648 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
568 checkQueryList(o.queryList); | 649 checkQueryList(o.queryList); |
569 checkUnnamed682(o.scriptVariables); | 650 checkUnnamed704(o.scriptVariables); |
570 } | 651 } |
571 buildCounterHiveJob--; | 652 buildCounterHiveJob--; |
572 } | 653 } |
573 | 654 |
574 buildUnnamed683() { | 655 buildUnnamed705() { |
575 var o = new core.List<core.String>(); | 656 var o = new core.List<core.String>(); |
576 o.add("foo"); | 657 o.add("foo"); |
577 o.add("foo"); | 658 o.add("foo"); |
578 return o; | 659 return o; |
579 } | 660 } |
580 | 661 |
581 checkUnnamed683(core.List<core.String> o) { | 662 checkUnnamed705(core.List<core.String> o) { |
582 unittest.expect(o, unittest.hasLength(2)); | 663 unittest.expect(o, unittest.hasLength(2)); |
583 unittest.expect(o[0], unittest.equals('foo')); | 664 unittest.expect(o[0], unittest.equals('foo')); |
584 unittest.expect(o[1], unittest.equals('foo')); | 665 unittest.expect(o[1], unittest.equals('foo')); |
585 } | 666 } |
586 | 667 |
587 core.int buildCounterInstanceGroupConfig = 0; | 668 core.int buildCounterInstanceGroupConfig = 0; |
588 buildInstanceGroupConfig() { | 669 buildInstanceGroupConfig() { |
589 var o = new api.InstanceGroupConfig(); | 670 var o = new api.InstanceGroupConfig(); |
590 buildCounterInstanceGroupConfig++; | 671 buildCounterInstanceGroupConfig++; |
591 if (buildCounterInstanceGroupConfig < 3) { | 672 if (buildCounterInstanceGroupConfig < 3) { |
592 o.diskConfig = buildDiskConfig(); | 673 o.diskConfig = buildDiskConfig(); |
593 o.imageUri = "foo"; | 674 o.imageUri = "foo"; |
594 o.instanceNames = buildUnnamed683(); | 675 o.instanceNames = buildUnnamed705(); |
595 o.isPreemptible = true; | 676 o.isPreemptible = true; |
596 o.machineTypeUri = "foo"; | 677 o.machineTypeUri = "foo"; |
597 o.managedGroupConfig = buildManagedGroupConfig(); | 678 o.managedGroupConfig = buildManagedGroupConfig(); |
598 o.numInstances = 42; | 679 o.numInstances = 42; |
599 } | 680 } |
600 buildCounterInstanceGroupConfig--; | 681 buildCounterInstanceGroupConfig--; |
601 return o; | 682 return o; |
602 } | 683 } |
603 | 684 |
604 checkInstanceGroupConfig(api.InstanceGroupConfig o) { | 685 checkInstanceGroupConfig(api.InstanceGroupConfig o) { |
605 buildCounterInstanceGroupConfig++; | 686 buildCounterInstanceGroupConfig++; |
606 if (buildCounterInstanceGroupConfig < 3) { | 687 if (buildCounterInstanceGroupConfig < 3) { |
607 checkDiskConfig(o.diskConfig); | 688 checkDiskConfig(o.diskConfig); |
608 unittest.expect(o.imageUri, unittest.equals('foo')); | 689 unittest.expect(o.imageUri, unittest.equals('foo')); |
609 checkUnnamed683(o.instanceNames); | 690 checkUnnamed705(o.instanceNames); |
610 unittest.expect(o.isPreemptible, unittest.isTrue); | 691 unittest.expect(o.isPreemptible, unittest.isTrue); |
611 unittest.expect(o.machineTypeUri, unittest.equals('foo')); | 692 unittest.expect(o.machineTypeUri, unittest.equals('foo')); |
612 checkManagedGroupConfig(o.managedGroupConfig); | 693 checkManagedGroupConfig(o.managedGroupConfig); |
613 unittest.expect(o.numInstances, unittest.equals(42)); | 694 unittest.expect(o.numInstances, unittest.equals(42)); |
614 } | 695 } |
615 buildCounterInstanceGroupConfig--; | 696 buildCounterInstanceGroupConfig--; |
616 } | 697 } |
617 | 698 |
618 buildUnnamed684() { | 699 buildUnnamed706() { |
| 700 var o = new core.Map<core.String, core.String>(); |
| 701 o["x"] = "foo"; |
| 702 o["y"] = "foo"; |
| 703 return o; |
| 704 } |
| 705 |
| 706 checkUnnamed706(core.Map<core.String, core.String> o) { |
| 707 unittest.expect(o, unittest.hasLength(2)); |
| 708 unittest.expect(o["x"], unittest.equals('foo')); |
| 709 unittest.expect(o["y"], unittest.equals('foo')); |
| 710 } |
| 711 |
| 712 buildUnnamed707() { |
619 var o = new core.List<api.JobStatus>(); | 713 var o = new core.List<api.JobStatus>(); |
620 o.add(buildJobStatus()); | 714 o.add(buildJobStatus()); |
621 o.add(buildJobStatus()); | 715 o.add(buildJobStatus()); |
622 return o; | 716 return o; |
623 } | 717 } |
624 | 718 |
625 checkUnnamed684(core.List<api.JobStatus> o) { | 719 checkUnnamed707(core.List<api.JobStatus> o) { |
626 unittest.expect(o, unittest.hasLength(2)); | 720 unittest.expect(o, unittest.hasLength(2)); |
627 checkJobStatus(o[0]); | 721 checkJobStatus(o[0]); |
628 checkJobStatus(o[1]); | 722 checkJobStatus(o[1]); |
629 } | 723 } |
630 | 724 |
| 725 buildUnnamed708() { |
| 726 var o = new core.List<api.YarnApplication>(); |
| 727 o.add(buildYarnApplication()); |
| 728 o.add(buildYarnApplication()); |
| 729 return o; |
| 730 } |
| 731 |
| 732 checkUnnamed708(core.List<api.YarnApplication> o) { |
| 733 unittest.expect(o, unittest.hasLength(2)); |
| 734 checkYarnApplication(o[0]); |
| 735 checkYarnApplication(o[1]); |
| 736 } |
| 737 |
631 core.int buildCounterJob = 0; | 738 core.int buildCounterJob = 0; |
632 buildJob() { | 739 buildJob() { |
633 var o = new api.Job(); | 740 var o = new api.Job(); |
634 buildCounterJob++; | 741 buildCounterJob++; |
635 if (buildCounterJob < 3) { | 742 if (buildCounterJob < 3) { |
636 o.driverControlFilesUri = "foo"; | 743 o.driverControlFilesUri = "foo"; |
637 o.driverOutputResourceUri = "foo"; | 744 o.driverOutputResourceUri = "foo"; |
638 o.hadoopJob = buildHadoopJob(); | 745 o.hadoopJob = buildHadoopJob(); |
639 o.hiveJob = buildHiveJob(); | 746 o.hiveJob = buildHiveJob(); |
| 747 o.labels = buildUnnamed706(); |
640 o.pigJob = buildPigJob(); | 748 o.pigJob = buildPigJob(); |
641 o.placement = buildJobPlacement(); | 749 o.placement = buildJobPlacement(); |
642 o.pysparkJob = buildPySparkJob(); | 750 o.pysparkJob = buildPySparkJob(); |
643 o.reference = buildJobReference(); | 751 o.reference = buildJobReference(); |
644 o.sparkJob = buildSparkJob(); | 752 o.sparkJob = buildSparkJob(); |
645 o.sparkSqlJob = buildSparkSqlJob(); | 753 o.sparkSqlJob = buildSparkSqlJob(); |
646 o.status = buildJobStatus(); | 754 o.status = buildJobStatus(); |
647 o.statusHistory = buildUnnamed684(); | 755 o.statusHistory = buildUnnamed707(); |
| 756 o.yarnApplications = buildUnnamed708(); |
648 } | 757 } |
649 buildCounterJob--; | 758 buildCounterJob--; |
650 return o; | 759 return o; |
651 } | 760 } |
652 | 761 |
653 checkJob(api.Job o) { | 762 checkJob(api.Job o) { |
654 buildCounterJob++; | 763 buildCounterJob++; |
655 if (buildCounterJob < 3) { | 764 if (buildCounterJob < 3) { |
656 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); | 765 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); |
657 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); | 766 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); |
658 checkHadoopJob(o.hadoopJob); | 767 checkHadoopJob(o.hadoopJob); |
659 checkHiveJob(o.hiveJob); | 768 checkHiveJob(o.hiveJob); |
| 769 checkUnnamed706(o.labels); |
660 checkPigJob(o.pigJob); | 770 checkPigJob(o.pigJob); |
661 checkJobPlacement(o.placement); | 771 checkJobPlacement(o.placement); |
662 checkPySparkJob(o.pysparkJob); | 772 checkPySparkJob(o.pysparkJob); |
663 checkJobReference(o.reference); | 773 checkJobReference(o.reference); |
664 checkSparkJob(o.sparkJob); | 774 checkSparkJob(o.sparkJob); |
665 checkSparkSqlJob(o.sparkSqlJob); | 775 checkSparkSqlJob(o.sparkSqlJob); |
666 checkJobStatus(o.status); | 776 checkJobStatus(o.status); |
667 checkUnnamed684(o.statusHistory); | 777 checkUnnamed707(o.statusHistory); |
| 778 checkUnnamed708(o.yarnApplications); |
668 } | 779 } |
669 buildCounterJob--; | 780 buildCounterJob--; |
670 } | 781 } |
671 | 782 |
672 core.int buildCounterJobPlacement = 0; | 783 core.int buildCounterJobPlacement = 0; |
673 buildJobPlacement() { | 784 buildJobPlacement() { |
674 var o = new api.JobPlacement(); | 785 var o = new api.JobPlacement(); |
675 buildCounterJobPlacement++; | 786 buildCounterJobPlacement++; |
676 if (buildCounterJobPlacement < 3) { | 787 if (buildCounterJobPlacement < 3) { |
677 o.clusterName = "foo"; | 788 o.clusterName = "foo"; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 checkJobStatus(api.JobStatus o) { | 838 checkJobStatus(api.JobStatus o) { |
728 buildCounterJobStatus++; | 839 buildCounterJobStatus++; |
729 if (buildCounterJobStatus < 3) { | 840 if (buildCounterJobStatus < 3) { |
730 unittest.expect(o.details, unittest.equals('foo')); | 841 unittest.expect(o.details, unittest.equals('foo')); |
731 unittest.expect(o.state, unittest.equals('foo')); | 842 unittest.expect(o.state, unittest.equals('foo')); |
732 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 843 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
733 } | 844 } |
734 buildCounterJobStatus--; | 845 buildCounterJobStatus--; |
735 } | 846 } |
736 | 847 |
737 buildUnnamed685() { | 848 buildUnnamed709() { |
738 var o = new core.List<api.Cluster>(); | 849 var o = new core.List<api.Cluster>(); |
739 o.add(buildCluster()); | 850 o.add(buildCluster()); |
740 o.add(buildCluster()); | 851 o.add(buildCluster()); |
741 return o; | 852 return o; |
742 } | 853 } |
743 | 854 |
744 checkUnnamed685(core.List<api.Cluster> o) { | 855 checkUnnamed709(core.List<api.Cluster> o) { |
745 unittest.expect(o, unittest.hasLength(2)); | 856 unittest.expect(o, unittest.hasLength(2)); |
746 checkCluster(o[0]); | 857 checkCluster(o[0]); |
747 checkCluster(o[1]); | 858 checkCluster(o[1]); |
748 } | 859 } |
749 | 860 |
750 core.int buildCounterListClustersResponse = 0; | 861 core.int buildCounterListClustersResponse = 0; |
751 buildListClustersResponse() { | 862 buildListClustersResponse() { |
752 var o = new api.ListClustersResponse(); | 863 var o = new api.ListClustersResponse(); |
753 buildCounterListClustersResponse++; | 864 buildCounterListClustersResponse++; |
754 if (buildCounterListClustersResponse < 3) { | 865 if (buildCounterListClustersResponse < 3) { |
755 o.clusters = buildUnnamed685(); | 866 o.clusters = buildUnnamed709(); |
756 o.nextPageToken = "foo"; | 867 o.nextPageToken = "foo"; |
757 } | 868 } |
758 buildCounterListClustersResponse--; | 869 buildCounterListClustersResponse--; |
759 return o; | 870 return o; |
760 } | 871 } |
761 | 872 |
762 checkListClustersResponse(api.ListClustersResponse o) { | 873 checkListClustersResponse(api.ListClustersResponse o) { |
763 buildCounterListClustersResponse++; | 874 buildCounterListClustersResponse++; |
764 if (buildCounterListClustersResponse < 3) { | 875 if (buildCounterListClustersResponse < 3) { |
765 checkUnnamed685(o.clusters); | 876 checkUnnamed709(o.clusters); |
766 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 877 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
767 } | 878 } |
768 buildCounterListClustersResponse--; | 879 buildCounterListClustersResponse--; |
769 } | 880 } |
770 | 881 |
771 buildUnnamed686() { | 882 buildUnnamed710() { |
772 var o = new core.List<api.Job>(); | 883 var o = new core.List<api.Job>(); |
773 o.add(buildJob()); | 884 o.add(buildJob()); |
774 o.add(buildJob()); | 885 o.add(buildJob()); |
775 return o; | 886 return o; |
776 } | 887 } |
777 | 888 |
778 checkUnnamed686(core.List<api.Job> o) { | 889 checkUnnamed710(core.List<api.Job> o) { |
779 unittest.expect(o, unittest.hasLength(2)); | 890 unittest.expect(o, unittest.hasLength(2)); |
780 checkJob(o[0]); | 891 checkJob(o[0]); |
781 checkJob(o[1]); | 892 checkJob(o[1]); |
782 } | 893 } |
783 | 894 |
784 core.int buildCounterListJobsResponse = 0; | 895 core.int buildCounterListJobsResponse = 0; |
785 buildListJobsResponse() { | 896 buildListJobsResponse() { |
786 var o = new api.ListJobsResponse(); | 897 var o = new api.ListJobsResponse(); |
787 buildCounterListJobsResponse++; | 898 buildCounterListJobsResponse++; |
788 if (buildCounterListJobsResponse < 3) { | 899 if (buildCounterListJobsResponse < 3) { |
789 o.jobs = buildUnnamed686(); | 900 o.jobs = buildUnnamed710(); |
790 o.nextPageToken = "foo"; | 901 o.nextPageToken = "foo"; |
791 } | 902 } |
792 buildCounterListJobsResponse--; | 903 buildCounterListJobsResponse--; |
793 return o; | 904 return o; |
794 } | 905 } |
795 | 906 |
796 checkListJobsResponse(api.ListJobsResponse o) { | 907 checkListJobsResponse(api.ListJobsResponse o) { |
797 buildCounterListJobsResponse++; | 908 buildCounterListJobsResponse++; |
798 if (buildCounterListJobsResponse < 3) { | 909 if (buildCounterListJobsResponse < 3) { |
799 checkUnnamed686(o.jobs); | 910 checkUnnamed710(o.jobs); |
800 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 911 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
801 } | 912 } |
802 buildCounterListJobsResponse--; | 913 buildCounterListJobsResponse--; |
803 } | 914 } |
804 | 915 |
805 buildUnnamed687() { | 916 buildUnnamed711() { |
806 var o = new core.List<api.Operation>(); | 917 var o = new core.List<api.Operation>(); |
807 o.add(buildOperation()); | 918 o.add(buildOperation()); |
808 o.add(buildOperation()); | 919 o.add(buildOperation()); |
809 return o; | 920 return o; |
810 } | 921 } |
811 | 922 |
812 checkUnnamed687(core.List<api.Operation> o) { | 923 checkUnnamed711(core.List<api.Operation> o) { |
813 unittest.expect(o, unittest.hasLength(2)); | 924 unittest.expect(o, unittest.hasLength(2)); |
814 checkOperation(o[0]); | 925 checkOperation(o[0]); |
815 checkOperation(o[1]); | 926 checkOperation(o[1]); |
816 } | 927 } |
817 | 928 |
818 core.int buildCounterListOperationsResponse = 0; | 929 core.int buildCounterListOperationsResponse = 0; |
819 buildListOperationsResponse() { | 930 buildListOperationsResponse() { |
820 var o = new api.ListOperationsResponse(); | 931 var o = new api.ListOperationsResponse(); |
821 buildCounterListOperationsResponse++; | 932 buildCounterListOperationsResponse++; |
822 if (buildCounterListOperationsResponse < 3) { | 933 if (buildCounterListOperationsResponse < 3) { |
823 o.nextPageToken = "foo"; | 934 o.nextPageToken = "foo"; |
824 o.operations = buildUnnamed687(); | 935 o.operations = buildUnnamed711(); |
825 } | 936 } |
826 buildCounterListOperationsResponse--; | 937 buildCounterListOperationsResponse--; |
827 return o; | 938 return o; |
828 } | 939 } |
829 | 940 |
830 checkListOperationsResponse(api.ListOperationsResponse o) { | 941 checkListOperationsResponse(api.ListOperationsResponse o) { |
831 buildCounterListOperationsResponse++; | 942 buildCounterListOperationsResponse++; |
832 if (buildCounterListOperationsResponse < 3) { | 943 if (buildCounterListOperationsResponse < 3) { |
833 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 944 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
834 checkUnnamed687(o.operations); | 945 checkUnnamed711(o.operations); |
835 } | 946 } |
836 buildCounterListOperationsResponse--; | 947 buildCounterListOperationsResponse--; |
837 } | 948 } |
838 | 949 |
839 buildUnnamed688() { | 950 buildUnnamed712() { |
840 var o = new core.Map<core.String, core.String>(); | 951 var o = new core.Map<core.String, core.String>(); |
841 o["x"] = "foo"; | 952 o["x"] = "foo"; |
842 o["y"] = "foo"; | 953 o["y"] = "foo"; |
843 return o; | 954 return o; |
844 } | 955 } |
845 | 956 |
846 checkUnnamed688(core.Map<core.String, core.String> o) { | 957 checkUnnamed712(core.Map<core.String, core.String> o) { |
847 unittest.expect(o, unittest.hasLength(2)); | 958 unittest.expect(o, unittest.hasLength(2)); |
848 unittest.expect(o["x"], unittest.equals('foo')); | 959 unittest.expect(o["x"], unittest.equals('foo')); |
849 unittest.expect(o["y"], unittest.equals('foo')); | 960 unittest.expect(o["y"], unittest.equals('foo')); |
850 } | 961 } |
851 | 962 |
852 core.int buildCounterLoggingConfig = 0; | 963 core.int buildCounterLoggingConfig = 0; |
853 buildLoggingConfig() { | 964 buildLoggingConfig() { |
854 var o = new api.LoggingConfig(); | 965 var o = new api.LoggingConfig(); |
855 buildCounterLoggingConfig++; | 966 buildCounterLoggingConfig++; |
856 if (buildCounterLoggingConfig < 3) { | 967 if (buildCounterLoggingConfig < 3) { |
857 o.driverLogLevels = buildUnnamed688(); | 968 o.driverLogLevels = buildUnnamed712(); |
858 } | 969 } |
859 buildCounterLoggingConfig--; | 970 buildCounterLoggingConfig--; |
860 return o; | 971 return o; |
861 } | 972 } |
862 | 973 |
863 checkLoggingConfig(api.LoggingConfig o) { | 974 checkLoggingConfig(api.LoggingConfig o) { |
864 buildCounterLoggingConfig++; | 975 buildCounterLoggingConfig++; |
865 if (buildCounterLoggingConfig < 3) { | 976 if (buildCounterLoggingConfig < 3) { |
866 checkUnnamed688(o.driverLogLevels); | 977 checkUnnamed712(o.driverLogLevels); |
867 } | 978 } |
868 buildCounterLoggingConfig--; | 979 buildCounterLoggingConfig--; |
869 } | 980 } |
870 | 981 |
871 core.int buildCounterManagedGroupConfig = 0; | 982 core.int buildCounterManagedGroupConfig = 0; |
872 buildManagedGroupConfig() { | 983 buildManagedGroupConfig() { |
873 var o = new api.ManagedGroupConfig(); | 984 var o = new api.ManagedGroupConfig(); |
874 buildCounterManagedGroupConfig++; | 985 buildCounterManagedGroupConfig++; |
875 if (buildCounterManagedGroupConfig < 3) { | 986 if (buildCounterManagedGroupConfig < 3) { |
876 o.instanceGroupManagerName = "foo"; | 987 o.instanceGroupManagerName = "foo"; |
(...skipping 26 matching lines...) Expand all Loading... |
903 | 1014 |
904 checkNodeInitializationAction(api.NodeInitializationAction o) { | 1015 checkNodeInitializationAction(api.NodeInitializationAction o) { |
905 buildCounterNodeInitializationAction++; | 1016 buildCounterNodeInitializationAction++; |
906 if (buildCounterNodeInitializationAction < 3) { | 1017 if (buildCounterNodeInitializationAction < 3) { |
907 unittest.expect(o.executableFile, unittest.equals('foo')); | 1018 unittest.expect(o.executableFile, unittest.equals('foo')); |
908 unittest.expect(o.executionTimeout, unittest.equals('foo')); | 1019 unittest.expect(o.executionTimeout, unittest.equals('foo')); |
909 } | 1020 } |
910 buildCounterNodeInitializationAction--; | 1021 buildCounterNodeInitializationAction--; |
911 } | 1022 } |
912 | 1023 |
913 buildUnnamed689() { | 1024 buildUnnamed713() { |
914 var o = new core.Map<core.String, core.Object>(); | 1025 var o = new core.Map<core.String, core.Object>(); |
915 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1026 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
916 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1027 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
917 return o; | 1028 return o; |
918 } | 1029 } |
919 | 1030 |
920 checkUnnamed689(core.Map<core.String, core.Object> o) { | 1031 checkUnnamed713(core.Map<core.String, core.Object> o) { |
921 unittest.expect(o, unittest.hasLength(2)); | 1032 unittest.expect(o, unittest.hasLength(2)); |
922 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')); | 1033 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')); |
923 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')); | 1034 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')); |
924 } | 1035 } |
925 | 1036 |
926 buildUnnamed690() { | 1037 buildUnnamed714() { |
927 var o = new core.Map<core.String, core.Object>(); | 1038 var o = new core.Map<core.String, core.Object>(); |
928 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1039 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
929 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1040 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
930 return o; | 1041 return o; |
931 } | 1042 } |
932 | 1043 |
933 checkUnnamed690(core.Map<core.String, core.Object> o) { | 1044 checkUnnamed714(core.Map<core.String, core.Object> o) { |
934 unittest.expect(o, unittest.hasLength(2)); | 1045 unittest.expect(o, unittest.hasLength(2)); |
935 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')); | 1046 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')); |
936 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')); | 1047 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')); |
937 } | 1048 } |
938 | 1049 |
939 core.int buildCounterOperation = 0; | 1050 core.int buildCounterOperation = 0; |
940 buildOperation() { | 1051 buildOperation() { |
941 var o = new api.Operation(); | 1052 var o = new api.Operation(); |
942 buildCounterOperation++; | 1053 buildCounterOperation++; |
943 if (buildCounterOperation < 3) { | 1054 if (buildCounterOperation < 3) { |
944 o.done = true; | 1055 o.done = true; |
945 o.error = buildStatus(); | 1056 o.error = buildStatus(); |
946 o.metadata = buildUnnamed689(); | 1057 o.metadata = buildUnnamed713(); |
947 o.name = "foo"; | 1058 o.name = "foo"; |
948 o.response = buildUnnamed690(); | 1059 o.response = buildUnnamed714(); |
949 } | 1060 } |
950 buildCounterOperation--; | 1061 buildCounterOperation--; |
951 return o; | 1062 return o; |
952 } | 1063 } |
953 | 1064 |
954 checkOperation(api.Operation o) { | 1065 checkOperation(api.Operation o) { |
955 buildCounterOperation++; | 1066 buildCounterOperation++; |
956 if (buildCounterOperation < 3) { | 1067 if (buildCounterOperation < 3) { |
957 unittest.expect(o.done, unittest.isTrue); | 1068 unittest.expect(o.done, unittest.isTrue); |
958 checkStatus(o.error); | 1069 checkStatus(o.error); |
959 checkUnnamed689(o.metadata); | 1070 checkUnnamed713(o.metadata); |
960 unittest.expect(o.name, unittest.equals('foo')); | 1071 unittest.expect(o.name, unittest.equals('foo')); |
961 checkUnnamed690(o.response); | 1072 checkUnnamed714(o.response); |
962 } | 1073 } |
963 buildCounterOperation--; | 1074 buildCounterOperation--; |
964 } | 1075 } |
965 | 1076 |
966 buildUnnamed691() { | 1077 buildUnnamed715() { |
967 var o = new core.List<api.OperationStatus>(); | 1078 var o = new core.List<api.OperationStatus>(); |
968 o.add(buildOperationStatus()); | 1079 o.add(buildOperationStatus()); |
969 o.add(buildOperationStatus()); | 1080 o.add(buildOperationStatus()); |
970 return o; | 1081 return o; |
971 } | 1082 } |
972 | 1083 |
973 checkUnnamed691(core.List<api.OperationStatus> o) { | 1084 checkUnnamed715(core.List<api.OperationStatus> o) { |
974 unittest.expect(o, unittest.hasLength(2)); | 1085 unittest.expect(o, unittest.hasLength(2)); |
975 checkOperationStatus(o[0]); | 1086 checkOperationStatus(o[0]); |
976 checkOperationStatus(o[1]); | 1087 checkOperationStatus(o[1]); |
977 } | 1088 } |
978 | 1089 |
979 core.int buildCounterOperationMetadata = 0; | 1090 core.int buildCounterOperationMetadata = 0; |
980 buildOperationMetadata() { | 1091 buildOperationMetadata() { |
981 var o = new api.OperationMetadata(); | 1092 var o = new api.OperationMetadata(); |
982 buildCounterOperationMetadata++; | 1093 buildCounterOperationMetadata++; |
983 if (buildCounterOperationMetadata < 3) { | 1094 if (buildCounterOperationMetadata < 3) { |
984 o.clusterName = "foo"; | 1095 o.clusterName = "foo"; |
985 o.clusterUuid = "foo"; | 1096 o.clusterUuid = "foo"; |
986 o.description = "foo"; | 1097 o.description = "foo"; |
987 o.details = "foo"; | 1098 o.details = "foo"; |
988 o.endTime = "foo"; | 1099 o.endTime = "foo"; |
989 o.innerState = "foo"; | 1100 o.innerState = "foo"; |
990 o.insertTime = "foo"; | 1101 o.insertTime = "foo"; |
991 o.operationType = "foo"; | 1102 o.operationType = "foo"; |
992 o.startTime = "foo"; | 1103 o.startTime = "foo"; |
993 o.state = "foo"; | 1104 o.state = "foo"; |
994 o.status = buildOperationStatus(); | 1105 o.status = buildOperationStatus(); |
995 o.statusHistory = buildUnnamed691(); | 1106 o.statusHistory = buildUnnamed715(); |
996 } | 1107 } |
997 buildCounterOperationMetadata--; | 1108 buildCounterOperationMetadata--; |
998 return o; | 1109 return o; |
999 } | 1110 } |
1000 | 1111 |
1001 checkOperationMetadata(api.OperationMetadata o) { | 1112 checkOperationMetadata(api.OperationMetadata o) { |
1002 buildCounterOperationMetadata++; | 1113 buildCounterOperationMetadata++; |
1003 if (buildCounterOperationMetadata < 3) { | 1114 if (buildCounterOperationMetadata < 3) { |
1004 unittest.expect(o.clusterName, unittest.equals('foo')); | 1115 unittest.expect(o.clusterName, unittest.equals('foo')); |
1005 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 1116 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
1006 unittest.expect(o.description, unittest.equals('foo')); | 1117 unittest.expect(o.description, unittest.equals('foo')); |
1007 unittest.expect(o.details, unittest.equals('foo')); | 1118 unittest.expect(o.details, unittest.equals('foo')); |
1008 unittest.expect(o.endTime, unittest.equals('foo')); | 1119 unittest.expect(o.endTime, unittest.equals('foo')); |
1009 unittest.expect(o.innerState, unittest.equals('foo')); | 1120 unittest.expect(o.innerState, unittest.equals('foo')); |
1010 unittest.expect(o.insertTime, unittest.equals('foo')); | 1121 unittest.expect(o.insertTime, unittest.equals('foo')); |
1011 unittest.expect(o.operationType, unittest.equals('foo')); | 1122 unittest.expect(o.operationType, unittest.equals('foo')); |
1012 unittest.expect(o.startTime, unittest.equals('foo')); | 1123 unittest.expect(o.startTime, unittest.equals('foo')); |
1013 unittest.expect(o.state, unittest.equals('foo')); | 1124 unittest.expect(o.state, unittest.equals('foo')); |
1014 checkOperationStatus(o.status); | 1125 checkOperationStatus(o.status); |
1015 checkUnnamed691(o.statusHistory); | 1126 checkUnnamed715(o.statusHistory); |
1016 } | 1127 } |
1017 buildCounterOperationMetadata--; | 1128 buildCounterOperationMetadata--; |
1018 } | 1129 } |
1019 | 1130 |
1020 core.int buildCounterOperationStatus = 0; | 1131 core.int buildCounterOperationStatus = 0; |
1021 buildOperationStatus() { | 1132 buildOperationStatus() { |
1022 var o = new api.OperationStatus(); | 1133 var o = new api.OperationStatus(); |
1023 buildCounterOperationStatus++; | 1134 buildCounterOperationStatus++; |
1024 if (buildCounterOperationStatus < 3) { | 1135 if (buildCounterOperationStatus < 3) { |
1025 o.details = "foo"; | 1136 o.details = "foo"; |
1026 o.innerState = "foo"; | 1137 o.innerState = "foo"; |
1027 o.state = "foo"; | 1138 o.state = "foo"; |
1028 o.stateStartTime = "foo"; | 1139 o.stateStartTime = "foo"; |
1029 } | 1140 } |
1030 buildCounterOperationStatus--; | 1141 buildCounterOperationStatus--; |
1031 return o; | 1142 return o; |
1032 } | 1143 } |
1033 | 1144 |
1034 checkOperationStatus(api.OperationStatus o) { | 1145 checkOperationStatus(api.OperationStatus o) { |
1035 buildCounterOperationStatus++; | 1146 buildCounterOperationStatus++; |
1036 if (buildCounterOperationStatus < 3) { | 1147 if (buildCounterOperationStatus < 3) { |
1037 unittest.expect(o.details, unittest.equals('foo')); | 1148 unittest.expect(o.details, unittest.equals('foo')); |
1038 unittest.expect(o.innerState, unittest.equals('foo')); | 1149 unittest.expect(o.innerState, unittest.equals('foo')); |
1039 unittest.expect(o.state, unittest.equals('foo')); | 1150 unittest.expect(o.state, unittest.equals('foo')); |
1040 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 1151 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
1041 } | 1152 } |
1042 buildCounterOperationStatus--; | 1153 buildCounterOperationStatus--; |
1043 } | 1154 } |
1044 | 1155 |
1045 buildUnnamed692() { | 1156 buildUnnamed716() { |
1046 var o = new core.List<core.String>(); | 1157 var o = new core.List<core.String>(); |
1047 o.add("foo"); | 1158 o.add("foo"); |
1048 o.add("foo"); | 1159 o.add("foo"); |
1049 return o; | 1160 return o; |
1050 } | 1161 } |
1051 | 1162 |
1052 checkUnnamed692(core.List<core.String> o) { | 1163 checkUnnamed716(core.List<core.String> o) { |
1053 unittest.expect(o, unittest.hasLength(2)); | 1164 unittest.expect(o, unittest.hasLength(2)); |
1054 unittest.expect(o[0], unittest.equals('foo')); | 1165 unittest.expect(o[0], unittest.equals('foo')); |
1055 unittest.expect(o[1], unittest.equals('foo')); | 1166 unittest.expect(o[1], unittest.equals('foo')); |
1056 } | 1167 } |
1057 | 1168 |
1058 buildUnnamed693() { | 1169 buildUnnamed717() { |
1059 var o = new core.Map<core.String, core.String>(); | 1170 var o = new core.Map<core.String, core.String>(); |
1060 o["x"] = "foo"; | 1171 o["x"] = "foo"; |
1061 o["y"] = "foo"; | 1172 o["y"] = "foo"; |
1062 return o; | 1173 return o; |
1063 } | 1174 } |
1064 | 1175 |
1065 checkUnnamed693(core.Map<core.String, core.String> o) { | 1176 checkUnnamed717(core.Map<core.String, core.String> o) { |
1066 unittest.expect(o, unittest.hasLength(2)); | 1177 unittest.expect(o, unittest.hasLength(2)); |
1067 unittest.expect(o["x"], unittest.equals('foo')); | 1178 unittest.expect(o["x"], unittest.equals('foo')); |
1068 unittest.expect(o["y"], unittest.equals('foo')); | 1179 unittest.expect(o["y"], unittest.equals('foo')); |
1069 } | 1180 } |
1070 | 1181 |
1071 buildUnnamed694() { | 1182 buildUnnamed718() { |
1072 var o = new core.Map<core.String, core.String>(); | 1183 var o = new core.Map<core.String, core.String>(); |
1073 o["x"] = "foo"; | 1184 o["x"] = "foo"; |
1074 o["y"] = "foo"; | 1185 o["y"] = "foo"; |
1075 return o; | 1186 return o; |
1076 } | 1187 } |
1077 | 1188 |
1078 checkUnnamed694(core.Map<core.String, core.String> o) { | 1189 checkUnnamed718(core.Map<core.String, core.String> o) { |
1079 unittest.expect(o, unittest.hasLength(2)); | 1190 unittest.expect(o, unittest.hasLength(2)); |
1080 unittest.expect(o["x"], unittest.equals('foo')); | 1191 unittest.expect(o["x"], unittest.equals('foo')); |
1081 unittest.expect(o["y"], unittest.equals('foo')); | 1192 unittest.expect(o["y"], unittest.equals('foo')); |
1082 } | 1193 } |
1083 | 1194 |
1084 core.int buildCounterPigJob = 0; | 1195 core.int buildCounterPigJob = 0; |
1085 buildPigJob() { | 1196 buildPigJob() { |
1086 var o = new api.PigJob(); | 1197 var o = new api.PigJob(); |
1087 buildCounterPigJob++; | 1198 buildCounterPigJob++; |
1088 if (buildCounterPigJob < 3) { | 1199 if (buildCounterPigJob < 3) { |
1089 o.continueOnFailure = true; | 1200 o.continueOnFailure = true; |
1090 o.jarFileUris = buildUnnamed692(); | 1201 o.jarFileUris = buildUnnamed716(); |
1091 o.loggingConfig = buildLoggingConfig(); | 1202 o.loggingConfig = buildLoggingConfig(); |
1092 o.properties = buildUnnamed693(); | 1203 o.properties = buildUnnamed717(); |
1093 o.queryFileUri = "foo"; | 1204 o.queryFileUri = "foo"; |
1094 o.queryList = buildQueryList(); | 1205 o.queryList = buildQueryList(); |
1095 o.scriptVariables = buildUnnamed694(); | 1206 o.scriptVariables = buildUnnamed718(); |
1096 } | 1207 } |
1097 buildCounterPigJob--; | 1208 buildCounterPigJob--; |
1098 return o; | 1209 return o; |
1099 } | 1210 } |
1100 | 1211 |
1101 checkPigJob(api.PigJob o) { | 1212 checkPigJob(api.PigJob o) { |
1102 buildCounterPigJob++; | 1213 buildCounterPigJob++; |
1103 if (buildCounterPigJob < 3) { | 1214 if (buildCounterPigJob < 3) { |
1104 unittest.expect(o.continueOnFailure, unittest.isTrue); | 1215 unittest.expect(o.continueOnFailure, unittest.isTrue); |
1105 checkUnnamed692(o.jarFileUris); | 1216 checkUnnamed716(o.jarFileUris); |
1106 checkLoggingConfig(o.loggingConfig); | 1217 checkLoggingConfig(o.loggingConfig); |
1107 checkUnnamed693(o.properties); | 1218 checkUnnamed717(o.properties); |
1108 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1219 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
1109 checkQueryList(o.queryList); | 1220 checkQueryList(o.queryList); |
1110 checkUnnamed694(o.scriptVariables); | 1221 checkUnnamed718(o.scriptVariables); |
1111 } | 1222 } |
1112 buildCounterPigJob--; | 1223 buildCounterPigJob--; |
1113 } | 1224 } |
1114 | 1225 |
1115 buildUnnamed695() { | 1226 buildUnnamed719() { |
1116 var o = new core.List<core.String>(); | 1227 var o = new core.List<core.String>(); |
1117 o.add("foo"); | 1228 o.add("foo"); |
1118 o.add("foo"); | 1229 o.add("foo"); |
1119 return o; | 1230 return o; |
1120 } | 1231 } |
1121 | 1232 |
1122 checkUnnamed695(core.List<core.String> o) { | 1233 checkUnnamed719(core.List<core.String> o) { |
1123 unittest.expect(o, unittest.hasLength(2)); | 1234 unittest.expect(o, unittest.hasLength(2)); |
1124 unittest.expect(o[0], unittest.equals('foo')); | 1235 unittest.expect(o[0], unittest.equals('foo')); |
1125 unittest.expect(o[1], unittest.equals('foo')); | 1236 unittest.expect(o[1], unittest.equals('foo')); |
1126 } | 1237 } |
1127 | 1238 |
1128 buildUnnamed696() { | 1239 buildUnnamed720() { |
1129 var o = new core.List<core.String>(); | 1240 var o = new core.List<core.String>(); |
1130 o.add("foo"); | 1241 o.add("foo"); |
1131 o.add("foo"); | 1242 o.add("foo"); |
1132 return o; | 1243 return o; |
1133 } | 1244 } |
1134 | 1245 |
1135 checkUnnamed696(core.List<core.String> o) { | 1246 checkUnnamed720(core.List<core.String> o) { |
1136 unittest.expect(o, unittest.hasLength(2)); | 1247 unittest.expect(o, unittest.hasLength(2)); |
1137 unittest.expect(o[0], unittest.equals('foo')); | 1248 unittest.expect(o[0], unittest.equals('foo')); |
1138 unittest.expect(o[1], unittest.equals('foo')); | 1249 unittest.expect(o[1], unittest.equals('foo')); |
1139 } | 1250 } |
1140 | 1251 |
1141 buildUnnamed697() { | 1252 buildUnnamed721() { |
1142 var o = new core.List<core.String>(); | 1253 var o = new core.List<core.String>(); |
1143 o.add("foo"); | 1254 o.add("foo"); |
1144 o.add("foo"); | 1255 o.add("foo"); |
1145 return o; | 1256 return o; |
1146 } | 1257 } |
1147 | 1258 |
1148 checkUnnamed697(core.List<core.String> o) { | 1259 checkUnnamed721(core.List<core.String> o) { |
1149 unittest.expect(o, unittest.hasLength(2)); | 1260 unittest.expect(o, unittest.hasLength(2)); |
1150 unittest.expect(o[0], unittest.equals('foo')); | 1261 unittest.expect(o[0], unittest.equals('foo')); |
1151 unittest.expect(o[1], unittest.equals('foo')); | 1262 unittest.expect(o[1], unittest.equals('foo')); |
1152 } | 1263 } |
1153 | 1264 |
1154 buildUnnamed698() { | 1265 buildUnnamed722() { |
1155 var o = new core.List<core.String>(); | 1266 var o = new core.List<core.String>(); |
1156 o.add("foo"); | 1267 o.add("foo"); |
1157 o.add("foo"); | 1268 o.add("foo"); |
1158 return o; | 1269 return o; |
1159 } | 1270 } |
1160 | 1271 |
1161 checkUnnamed698(core.List<core.String> o) { | 1272 checkUnnamed722(core.List<core.String> o) { |
1162 unittest.expect(o, unittest.hasLength(2)); | 1273 unittest.expect(o, unittest.hasLength(2)); |
1163 unittest.expect(o[0], unittest.equals('foo')); | 1274 unittest.expect(o[0], unittest.equals('foo')); |
1164 unittest.expect(o[1], unittest.equals('foo')); | 1275 unittest.expect(o[1], unittest.equals('foo')); |
1165 } | 1276 } |
1166 | 1277 |
1167 buildUnnamed699() { | 1278 buildUnnamed723() { |
1168 var o = new core.Map<core.String, core.String>(); | 1279 var o = new core.Map<core.String, core.String>(); |
1169 o["x"] = "foo"; | 1280 o["x"] = "foo"; |
1170 o["y"] = "foo"; | 1281 o["y"] = "foo"; |
1171 return o; | 1282 return o; |
1172 } | 1283 } |
1173 | 1284 |
1174 checkUnnamed699(core.Map<core.String, core.String> o) { | 1285 checkUnnamed723(core.Map<core.String, core.String> o) { |
1175 unittest.expect(o, unittest.hasLength(2)); | 1286 unittest.expect(o, unittest.hasLength(2)); |
1176 unittest.expect(o["x"], unittest.equals('foo')); | 1287 unittest.expect(o["x"], unittest.equals('foo')); |
1177 unittest.expect(o["y"], unittest.equals('foo')); | 1288 unittest.expect(o["y"], unittest.equals('foo')); |
1178 } | 1289 } |
1179 | 1290 |
1180 buildUnnamed700() { | 1291 buildUnnamed724() { |
1181 var o = new core.List<core.String>(); | 1292 var o = new core.List<core.String>(); |
1182 o.add("foo"); | 1293 o.add("foo"); |
1183 o.add("foo"); | 1294 o.add("foo"); |
1184 return o; | 1295 return o; |
1185 } | 1296 } |
1186 | 1297 |
1187 checkUnnamed700(core.List<core.String> o) { | 1298 checkUnnamed724(core.List<core.String> o) { |
1188 unittest.expect(o, unittest.hasLength(2)); | 1299 unittest.expect(o, unittest.hasLength(2)); |
1189 unittest.expect(o[0], unittest.equals('foo')); | 1300 unittest.expect(o[0], unittest.equals('foo')); |
1190 unittest.expect(o[1], unittest.equals('foo')); | 1301 unittest.expect(o[1], unittest.equals('foo')); |
1191 } | 1302 } |
1192 | 1303 |
1193 core.int buildCounterPySparkJob = 0; | 1304 core.int buildCounterPySparkJob = 0; |
1194 buildPySparkJob() { | 1305 buildPySparkJob() { |
1195 var o = new api.PySparkJob(); | 1306 var o = new api.PySparkJob(); |
1196 buildCounterPySparkJob++; | 1307 buildCounterPySparkJob++; |
1197 if (buildCounterPySparkJob < 3) { | 1308 if (buildCounterPySparkJob < 3) { |
1198 o.archiveUris = buildUnnamed695(); | 1309 o.archiveUris = buildUnnamed719(); |
1199 o.args = buildUnnamed696(); | 1310 o.args = buildUnnamed720(); |
1200 o.fileUris = buildUnnamed697(); | 1311 o.fileUris = buildUnnamed721(); |
1201 o.jarFileUris = buildUnnamed698(); | 1312 o.jarFileUris = buildUnnamed722(); |
1202 o.loggingConfig = buildLoggingConfig(); | 1313 o.loggingConfig = buildLoggingConfig(); |
1203 o.mainPythonFileUri = "foo"; | 1314 o.mainPythonFileUri = "foo"; |
1204 o.properties = buildUnnamed699(); | 1315 o.properties = buildUnnamed723(); |
1205 o.pythonFileUris = buildUnnamed700(); | 1316 o.pythonFileUris = buildUnnamed724(); |
1206 } | 1317 } |
1207 buildCounterPySparkJob--; | 1318 buildCounterPySparkJob--; |
1208 return o; | 1319 return o; |
1209 } | 1320 } |
1210 | 1321 |
1211 checkPySparkJob(api.PySparkJob o) { | 1322 checkPySparkJob(api.PySparkJob o) { |
1212 buildCounterPySparkJob++; | 1323 buildCounterPySparkJob++; |
1213 if (buildCounterPySparkJob < 3) { | 1324 if (buildCounterPySparkJob < 3) { |
1214 checkUnnamed695(o.archiveUris); | 1325 checkUnnamed719(o.archiveUris); |
1215 checkUnnamed696(o.args); | 1326 checkUnnamed720(o.args); |
1216 checkUnnamed697(o.fileUris); | 1327 checkUnnamed721(o.fileUris); |
1217 checkUnnamed698(o.jarFileUris); | 1328 checkUnnamed722(o.jarFileUris); |
1218 checkLoggingConfig(o.loggingConfig); | 1329 checkLoggingConfig(o.loggingConfig); |
1219 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); | 1330 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); |
1220 checkUnnamed699(o.properties); | 1331 checkUnnamed723(o.properties); |
1221 checkUnnamed700(o.pythonFileUris); | 1332 checkUnnamed724(o.pythonFileUris); |
1222 } | 1333 } |
1223 buildCounterPySparkJob--; | 1334 buildCounterPySparkJob--; |
1224 } | 1335 } |
1225 | 1336 |
1226 buildUnnamed701() { | 1337 buildUnnamed725() { |
1227 var o = new core.List<core.String>(); | 1338 var o = new core.List<core.String>(); |
1228 o.add("foo"); | 1339 o.add("foo"); |
1229 o.add("foo"); | 1340 o.add("foo"); |
1230 return o; | 1341 return o; |
1231 } | 1342 } |
1232 | 1343 |
1233 checkUnnamed701(core.List<core.String> o) { | 1344 checkUnnamed725(core.List<core.String> o) { |
1234 unittest.expect(o, unittest.hasLength(2)); | 1345 unittest.expect(o, unittest.hasLength(2)); |
1235 unittest.expect(o[0], unittest.equals('foo')); | 1346 unittest.expect(o[0], unittest.equals('foo')); |
1236 unittest.expect(o[1], unittest.equals('foo')); | 1347 unittest.expect(o[1], unittest.equals('foo')); |
1237 } | 1348 } |
1238 | 1349 |
1239 core.int buildCounterQueryList = 0; | 1350 core.int buildCounterQueryList = 0; |
1240 buildQueryList() { | 1351 buildQueryList() { |
1241 var o = new api.QueryList(); | 1352 var o = new api.QueryList(); |
1242 buildCounterQueryList++; | 1353 buildCounterQueryList++; |
1243 if (buildCounterQueryList < 3) { | 1354 if (buildCounterQueryList < 3) { |
1244 o.queries = buildUnnamed701(); | 1355 o.queries = buildUnnamed725(); |
1245 } | 1356 } |
1246 buildCounterQueryList--; | 1357 buildCounterQueryList--; |
1247 return o; | 1358 return o; |
1248 } | 1359 } |
1249 | 1360 |
1250 checkQueryList(api.QueryList o) { | 1361 checkQueryList(api.QueryList o) { |
1251 buildCounterQueryList++; | 1362 buildCounterQueryList++; |
1252 if (buildCounterQueryList < 3) { | 1363 if (buildCounterQueryList < 3) { |
1253 checkUnnamed701(o.queries); | 1364 checkUnnamed725(o.queries); |
1254 } | 1365 } |
1255 buildCounterQueryList--; | 1366 buildCounterQueryList--; |
1256 } | 1367 } |
1257 | 1368 |
1258 buildUnnamed702() { | 1369 buildUnnamed726() { |
1259 var o = new core.Map<core.String, core.String>(); | 1370 var o = new core.Map<core.String, core.String>(); |
1260 o["x"] = "foo"; | 1371 o["x"] = "foo"; |
1261 o["y"] = "foo"; | 1372 o["y"] = "foo"; |
1262 return o; | 1373 return o; |
1263 } | 1374 } |
1264 | 1375 |
1265 checkUnnamed702(core.Map<core.String, core.String> o) { | 1376 checkUnnamed726(core.Map<core.String, core.String> o) { |
1266 unittest.expect(o, unittest.hasLength(2)); | 1377 unittest.expect(o, unittest.hasLength(2)); |
1267 unittest.expect(o["x"], unittest.equals('foo')); | 1378 unittest.expect(o["x"], unittest.equals('foo')); |
1268 unittest.expect(o["y"], unittest.equals('foo')); | 1379 unittest.expect(o["y"], unittest.equals('foo')); |
1269 } | 1380 } |
1270 | 1381 |
1271 core.int buildCounterSoftwareConfig = 0; | 1382 core.int buildCounterSoftwareConfig = 0; |
1272 buildSoftwareConfig() { | 1383 buildSoftwareConfig() { |
1273 var o = new api.SoftwareConfig(); | 1384 var o = new api.SoftwareConfig(); |
1274 buildCounterSoftwareConfig++; | 1385 buildCounterSoftwareConfig++; |
1275 if (buildCounterSoftwareConfig < 3) { | 1386 if (buildCounterSoftwareConfig < 3) { |
1276 o.imageVersion = "foo"; | 1387 o.imageVersion = "foo"; |
1277 o.properties = buildUnnamed702(); | 1388 o.properties = buildUnnamed726(); |
1278 } | 1389 } |
1279 buildCounterSoftwareConfig--; | 1390 buildCounterSoftwareConfig--; |
1280 return o; | 1391 return o; |
1281 } | 1392 } |
1282 | 1393 |
1283 checkSoftwareConfig(api.SoftwareConfig o) { | 1394 checkSoftwareConfig(api.SoftwareConfig o) { |
1284 buildCounterSoftwareConfig++; | 1395 buildCounterSoftwareConfig++; |
1285 if (buildCounterSoftwareConfig < 3) { | 1396 if (buildCounterSoftwareConfig < 3) { |
1286 unittest.expect(o.imageVersion, unittest.equals('foo')); | 1397 unittest.expect(o.imageVersion, unittest.equals('foo')); |
1287 checkUnnamed702(o.properties); | 1398 checkUnnamed726(o.properties); |
1288 } | 1399 } |
1289 buildCounterSoftwareConfig--; | 1400 buildCounterSoftwareConfig--; |
1290 } | 1401 } |
1291 | 1402 |
1292 buildUnnamed703() { | 1403 buildUnnamed727() { |
1293 var o = new core.List<core.String>(); | 1404 var o = new core.List<core.String>(); |
1294 o.add("foo"); | 1405 o.add("foo"); |
1295 o.add("foo"); | 1406 o.add("foo"); |
1296 return o; | 1407 return o; |
1297 } | 1408 } |
1298 | 1409 |
1299 checkUnnamed703(core.List<core.String> o) { | 1410 checkUnnamed727(core.List<core.String> o) { |
1300 unittest.expect(o, unittest.hasLength(2)); | 1411 unittest.expect(o, unittest.hasLength(2)); |
1301 unittest.expect(o[0], unittest.equals('foo')); | 1412 unittest.expect(o[0], unittest.equals('foo')); |
1302 unittest.expect(o[1], unittest.equals('foo')); | 1413 unittest.expect(o[1], unittest.equals('foo')); |
1303 } | 1414 } |
1304 | 1415 |
1305 buildUnnamed704() { | 1416 buildUnnamed728() { |
1306 var o = new core.List<core.String>(); | 1417 var o = new core.List<core.String>(); |
1307 o.add("foo"); | 1418 o.add("foo"); |
1308 o.add("foo"); | 1419 o.add("foo"); |
1309 return o; | 1420 return o; |
1310 } | 1421 } |
1311 | 1422 |
1312 checkUnnamed704(core.List<core.String> o) { | 1423 checkUnnamed728(core.List<core.String> o) { |
1313 unittest.expect(o, unittest.hasLength(2)); | 1424 unittest.expect(o, unittest.hasLength(2)); |
1314 unittest.expect(o[0], unittest.equals('foo')); | 1425 unittest.expect(o[0], unittest.equals('foo')); |
1315 unittest.expect(o[1], unittest.equals('foo')); | 1426 unittest.expect(o[1], unittest.equals('foo')); |
1316 } | 1427 } |
1317 | 1428 |
1318 buildUnnamed705() { | 1429 buildUnnamed729() { |
1319 var o = new core.List<core.String>(); | 1430 var o = new core.List<core.String>(); |
1320 o.add("foo"); | 1431 o.add("foo"); |
1321 o.add("foo"); | 1432 o.add("foo"); |
1322 return o; | 1433 return o; |
1323 } | 1434 } |
1324 | 1435 |
1325 checkUnnamed705(core.List<core.String> o) { | 1436 checkUnnamed729(core.List<core.String> o) { |
1326 unittest.expect(o, unittest.hasLength(2)); | 1437 unittest.expect(o, unittest.hasLength(2)); |
1327 unittest.expect(o[0], unittest.equals('foo')); | 1438 unittest.expect(o[0], unittest.equals('foo')); |
1328 unittest.expect(o[1], unittest.equals('foo')); | 1439 unittest.expect(o[1], unittest.equals('foo')); |
1329 } | 1440 } |
1330 | 1441 |
1331 buildUnnamed706() { | 1442 buildUnnamed730() { |
1332 var o = new core.List<core.String>(); | 1443 var o = new core.List<core.String>(); |
1333 o.add("foo"); | 1444 o.add("foo"); |
1334 o.add("foo"); | 1445 o.add("foo"); |
1335 return o; | 1446 return o; |
1336 } | 1447 } |
1337 | 1448 |
1338 checkUnnamed706(core.List<core.String> o) { | 1449 checkUnnamed730(core.List<core.String> o) { |
1339 unittest.expect(o, unittest.hasLength(2)); | 1450 unittest.expect(o, unittest.hasLength(2)); |
1340 unittest.expect(o[0], unittest.equals('foo')); | 1451 unittest.expect(o[0], unittest.equals('foo')); |
1341 unittest.expect(o[1], unittest.equals('foo')); | 1452 unittest.expect(o[1], unittest.equals('foo')); |
1342 } | 1453 } |
1343 | 1454 |
1344 buildUnnamed707() { | 1455 buildUnnamed731() { |
1345 var o = new core.Map<core.String, core.String>(); | 1456 var o = new core.Map<core.String, core.String>(); |
1346 o["x"] = "foo"; | 1457 o["x"] = "foo"; |
1347 o["y"] = "foo"; | 1458 o["y"] = "foo"; |
1348 return o; | 1459 return o; |
1349 } | 1460 } |
1350 | 1461 |
1351 checkUnnamed707(core.Map<core.String, core.String> o) { | 1462 checkUnnamed731(core.Map<core.String, core.String> o) { |
1352 unittest.expect(o, unittest.hasLength(2)); | 1463 unittest.expect(o, unittest.hasLength(2)); |
1353 unittest.expect(o["x"], unittest.equals('foo')); | 1464 unittest.expect(o["x"], unittest.equals('foo')); |
1354 unittest.expect(o["y"], unittest.equals('foo')); | 1465 unittest.expect(o["y"], unittest.equals('foo')); |
1355 } | 1466 } |
1356 | 1467 |
1357 core.int buildCounterSparkJob = 0; | 1468 core.int buildCounterSparkJob = 0; |
1358 buildSparkJob() { | 1469 buildSparkJob() { |
1359 var o = new api.SparkJob(); | 1470 var o = new api.SparkJob(); |
1360 buildCounterSparkJob++; | 1471 buildCounterSparkJob++; |
1361 if (buildCounterSparkJob < 3) { | 1472 if (buildCounterSparkJob < 3) { |
1362 o.archiveUris = buildUnnamed703(); | 1473 o.archiveUris = buildUnnamed727(); |
1363 o.args = buildUnnamed704(); | 1474 o.args = buildUnnamed728(); |
1364 o.fileUris = buildUnnamed705(); | 1475 o.fileUris = buildUnnamed729(); |
1365 o.jarFileUris = buildUnnamed706(); | 1476 o.jarFileUris = buildUnnamed730(); |
1366 o.loggingConfig = buildLoggingConfig(); | 1477 o.loggingConfig = buildLoggingConfig(); |
1367 o.mainClass = "foo"; | 1478 o.mainClass = "foo"; |
1368 o.mainJarFileUri = "foo"; | 1479 o.mainJarFileUri = "foo"; |
1369 o.properties = buildUnnamed707(); | 1480 o.properties = buildUnnamed731(); |
1370 } | 1481 } |
1371 buildCounterSparkJob--; | 1482 buildCounterSparkJob--; |
1372 return o; | 1483 return o; |
1373 } | 1484 } |
1374 | 1485 |
1375 checkSparkJob(api.SparkJob o) { | 1486 checkSparkJob(api.SparkJob o) { |
1376 buildCounterSparkJob++; | 1487 buildCounterSparkJob++; |
1377 if (buildCounterSparkJob < 3) { | 1488 if (buildCounterSparkJob < 3) { |
1378 checkUnnamed703(o.archiveUris); | 1489 checkUnnamed727(o.archiveUris); |
1379 checkUnnamed704(o.args); | 1490 checkUnnamed728(o.args); |
1380 checkUnnamed705(o.fileUris); | 1491 checkUnnamed729(o.fileUris); |
1381 checkUnnamed706(o.jarFileUris); | 1492 checkUnnamed730(o.jarFileUris); |
1382 checkLoggingConfig(o.loggingConfig); | 1493 checkLoggingConfig(o.loggingConfig); |
1383 unittest.expect(o.mainClass, unittest.equals('foo')); | 1494 unittest.expect(o.mainClass, unittest.equals('foo')); |
1384 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 1495 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
1385 checkUnnamed707(o.properties); | 1496 checkUnnamed731(o.properties); |
1386 } | 1497 } |
1387 buildCounterSparkJob--; | 1498 buildCounterSparkJob--; |
1388 } | 1499 } |
1389 | 1500 |
1390 buildUnnamed708() { | 1501 buildUnnamed732() { |
1391 var o = new core.List<core.String>(); | 1502 var o = new core.List<core.String>(); |
1392 o.add("foo"); | 1503 o.add("foo"); |
1393 o.add("foo"); | 1504 o.add("foo"); |
1394 return o; | 1505 return o; |
1395 } | 1506 } |
1396 | 1507 |
1397 checkUnnamed708(core.List<core.String> o) { | 1508 checkUnnamed732(core.List<core.String> o) { |
1398 unittest.expect(o, unittest.hasLength(2)); | 1509 unittest.expect(o, unittest.hasLength(2)); |
1399 unittest.expect(o[0], unittest.equals('foo')); | 1510 unittest.expect(o[0], unittest.equals('foo')); |
1400 unittest.expect(o[1], unittest.equals('foo')); | 1511 unittest.expect(o[1], unittest.equals('foo')); |
1401 } | 1512 } |
1402 | 1513 |
1403 buildUnnamed709() { | 1514 buildUnnamed733() { |
1404 var o = new core.Map<core.String, core.String>(); | 1515 var o = new core.Map<core.String, core.String>(); |
1405 o["x"] = "foo"; | 1516 o["x"] = "foo"; |
1406 o["y"] = "foo"; | 1517 o["y"] = "foo"; |
1407 return o; | 1518 return o; |
1408 } | 1519 } |
1409 | 1520 |
1410 checkUnnamed709(core.Map<core.String, core.String> o) { | 1521 checkUnnamed733(core.Map<core.String, core.String> o) { |
1411 unittest.expect(o, unittest.hasLength(2)); | 1522 unittest.expect(o, unittest.hasLength(2)); |
1412 unittest.expect(o["x"], unittest.equals('foo')); | 1523 unittest.expect(o["x"], unittest.equals('foo')); |
1413 unittest.expect(o["y"], unittest.equals('foo')); | 1524 unittest.expect(o["y"], unittest.equals('foo')); |
1414 } | 1525 } |
1415 | 1526 |
1416 buildUnnamed710() { | 1527 buildUnnamed734() { |
1417 var o = new core.Map<core.String, core.String>(); | 1528 var o = new core.Map<core.String, core.String>(); |
1418 o["x"] = "foo"; | 1529 o["x"] = "foo"; |
1419 o["y"] = "foo"; | 1530 o["y"] = "foo"; |
1420 return o; | 1531 return o; |
1421 } | 1532 } |
1422 | 1533 |
1423 checkUnnamed710(core.Map<core.String, core.String> o) { | 1534 checkUnnamed734(core.Map<core.String, core.String> o) { |
1424 unittest.expect(o, unittest.hasLength(2)); | 1535 unittest.expect(o, unittest.hasLength(2)); |
1425 unittest.expect(o["x"], unittest.equals('foo')); | 1536 unittest.expect(o["x"], unittest.equals('foo')); |
1426 unittest.expect(o["y"], unittest.equals('foo')); | 1537 unittest.expect(o["y"], unittest.equals('foo')); |
1427 } | 1538 } |
1428 | 1539 |
1429 core.int buildCounterSparkSqlJob = 0; | 1540 core.int buildCounterSparkSqlJob = 0; |
1430 buildSparkSqlJob() { | 1541 buildSparkSqlJob() { |
1431 var o = new api.SparkSqlJob(); | 1542 var o = new api.SparkSqlJob(); |
1432 buildCounterSparkSqlJob++; | 1543 buildCounterSparkSqlJob++; |
1433 if (buildCounterSparkSqlJob < 3) { | 1544 if (buildCounterSparkSqlJob < 3) { |
1434 o.jarFileUris = buildUnnamed708(); | 1545 o.jarFileUris = buildUnnamed732(); |
1435 o.loggingConfig = buildLoggingConfig(); | 1546 o.loggingConfig = buildLoggingConfig(); |
1436 o.properties = buildUnnamed709(); | 1547 o.properties = buildUnnamed733(); |
1437 o.queryFileUri = "foo"; | 1548 o.queryFileUri = "foo"; |
1438 o.queryList = buildQueryList(); | 1549 o.queryList = buildQueryList(); |
1439 o.scriptVariables = buildUnnamed710(); | 1550 o.scriptVariables = buildUnnamed734(); |
1440 } | 1551 } |
1441 buildCounterSparkSqlJob--; | 1552 buildCounterSparkSqlJob--; |
1442 return o; | 1553 return o; |
1443 } | 1554 } |
1444 | 1555 |
1445 checkSparkSqlJob(api.SparkSqlJob o) { | 1556 checkSparkSqlJob(api.SparkSqlJob o) { |
1446 buildCounterSparkSqlJob++; | 1557 buildCounterSparkSqlJob++; |
1447 if (buildCounterSparkSqlJob < 3) { | 1558 if (buildCounterSparkSqlJob < 3) { |
1448 checkUnnamed708(o.jarFileUris); | 1559 checkUnnamed732(o.jarFileUris); |
1449 checkLoggingConfig(o.loggingConfig); | 1560 checkLoggingConfig(o.loggingConfig); |
1450 checkUnnamed709(o.properties); | 1561 checkUnnamed733(o.properties); |
1451 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1562 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
1452 checkQueryList(o.queryList); | 1563 checkQueryList(o.queryList); |
1453 checkUnnamed710(o.scriptVariables); | 1564 checkUnnamed734(o.scriptVariables); |
1454 } | 1565 } |
1455 buildCounterSparkSqlJob--; | 1566 buildCounterSparkSqlJob--; |
1456 } | 1567 } |
1457 | 1568 |
1458 buildUnnamed711() { | 1569 buildUnnamed735() { |
1459 var o = new core.Map<core.String, core.Object>(); | 1570 var o = new core.Map<core.String, core.Object>(); |
1460 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1571 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1461 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1572 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1462 return o; | 1573 return o; |
1463 } | 1574 } |
1464 | 1575 |
1465 checkUnnamed711(core.Map<core.String, core.Object> o) { | 1576 checkUnnamed735(core.Map<core.String, core.Object> o) { |
1466 unittest.expect(o, unittest.hasLength(2)); | 1577 unittest.expect(o, unittest.hasLength(2)); |
1467 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')); | 1578 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')); |
1468 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')); | 1579 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')); |
1469 } | 1580 } |
1470 | 1581 |
1471 buildUnnamed712() { | 1582 buildUnnamed736() { |
1472 var o = new core.List<core.Map<core.String, core.Object>>(); | 1583 var o = new core.List<core.Map<core.String, core.Object>>(); |
1473 o.add(buildUnnamed711()); | 1584 o.add(buildUnnamed735()); |
1474 o.add(buildUnnamed711()); | 1585 o.add(buildUnnamed735()); |
1475 return o; | 1586 return o; |
1476 } | 1587 } |
1477 | 1588 |
1478 checkUnnamed712(core.List<core.Map<core.String, core.Object>> o) { | 1589 checkUnnamed736(core.List<core.Map<core.String, core.Object>> o) { |
1479 unittest.expect(o, unittest.hasLength(2)); | 1590 unittest.expect(o, unittest.hasLength(2)); |
1480 checkUnnamed711(o[0]); | 1591 checkUnnamed735(o[0]); |
1481 checkUnnamed711(o[1]); | 1592 checkUnnamed735(o[1]); |
1482 } | 1593 } |
1483 | 1594 |
1484 core.int buildCounterStatus = 0; | 1595 core.int buildCounterStatus = 0; |
1485 buildStatus() { | 1596 buildStatus() { |
1486 var o = new api.Status(); | 1597 var o = new api.Status(); |
1487 buildCounterStatus++; | 1598 buildCounterStatus++; |
1488 if (buildCounterStatus < 3) { | 1599 if (buildCounterStatus < 3) { |
1489 o.code = 42; | 1600 o.code = 42; |
1490 o.details = buildUnnamed712(); | 1601 o.details = buildUnnamed736(); |
1491 o.message = "foo"; | 1602 o.message = "foo"; |
1492 } | 1603 } |
1493 buildCounterStatus--; | 1604 buildCounterStatus--; |
1494 return o; | 1605 return o; |
1495 } | 1606 } |
1496 | 1607 |
1497 checkStatus(api.Status o) { | 1608 checkStatus(api.Status o) { |
1498 buildCounterStatus++; | 1609 buildCounterStatus++; |
1499 if (buildCounterStatus < 3) { | 1610 if (buildCounterStatus < 3) { |
1500 unittest.expect(o.code, unittest.equals(42)); | 1611 unittest.expect(o.code, unittest.equals(42)); |
1501 checkUnnamed712(o.details); | 1612 checkUnnamed736(o.details); |
1502 unittest.expect(o.message, unittest.equals('foo')); | 1613 unittest.expect(o.message, unittest.equals('foo')); |
1503 } | 1614 } |
1504 buildCounterStatus--; | 1615 buildCounterStatus--; |
1505 } | 1616 } |
1506 | 1617 |
1507 core.int buildCounterSubmitJobRequest = 0; | 1618 core.int buildCounterSubmitJobRequest = 0; |
1508 buildSubmitJobRequest() { | 1619 buildSubmitJobRequest() { |
1509 var o = new api.SubmitJobRequest(); | 1620 var o = new api.SubmitJobRequest(); |
1510 buildCounterSubmitJobRequest++; | 1621 buildCounterSubmitJobRequest++; |
1511 if (buildCounterSubmitJobRequest < 3) { | 1622 if (buildCounterSubmitJobRequest < 3) { |
1512 o.job = buildJob(); | 1623 o.job = buildJob(); |
1513 } | 1624 } |
1514 buildCounterSubmitJobRequest--; | 1625 buildCounterSubmitJobRequest--; |
1515 return o; | 1626 return o; |
1516 } | 1627 } |
1517 | 1628 |
1518 checkSubmitJobRequest(api.SubmitJobRequest o) { | 1629 checkSubmitJobRequest(api.SubmitJobRequest o) { |
1519 buildCounterSubmitJobRequest++; | 1630 buildCounterSubmitJobRequest++; |
1520 if (buildCounterSubmitJobRequest < 3) { | 1631 if (buildCounterSubmitJobRequest < 3) { |
1521 checkJob(o.job); | 1632 checkJob(o.job); |
1522 } | 1633 } |
1523 buildCounterSubmitJobRequest--; | 1634 buildCounterSubmitJobRequest--; |
1524 } | 1635 } |
1525 | 1636 |
| 1637 core.int buildCounterYarnApplication = 0; |
| 1638 buildYarnApplication() { |
| 1639 var o = new api.YarnApplication(); |
| 1640 buildCounterYarnApplication++; |
| 1641 if (buildCounterYarnApplication < 3) { |
| 1642 o.name = "foo"; |
| 1643 o.progress = 42.0; |
| 1644 o.state = "foo"; |
| 1645 o.trackingUrl = "foo"; |
| 1646 } |
| 1647 buildCounterYarnApplication--; |
| 1648 return o; |
| 1649 } |
| 1650 |
| 1651 checkYarnApplication(api.YarnApplication o) { |
| 1652 buildCounterYarnApplication++; |
| 1653 if (buildCounterYarnApplication < 3) { |
| 1654 unittest.expect(o.name, unittest.equals('foo')); |
| 1655 unittest.expect(o.progress, unittest.equals(42.0)); |
| 1656 unittest.expect(o.state, unittest.equals('foo')); |
| 1657 unittest.expect(o.trackingUrl, unittest.equals('foo')); |
| 1658 } |
| 1659 buildCounterYarnApplication--; |
| 1660 } |
| 1661 |
1526 | 1662 |
1527 main() { | 1663 main() { |
1528 unittest.group("obj-schema-CancelJobRequest", () { | 1664 unittest.group("obj-schema-CancelJobRequest", () { |
1529 unittest.test("to-json--from-json", () { | 1665 unittest.test("to-json--from-json", () { |
1530 var o = buildCancelJobRequest(); | 1666 var o = buildCancelJobRequest(); |
1531 var od = new api.CancelJobRequest.fromJson(o.toJson()); | 1667 var od = new api.CancelJobRequest.fromJson(o.toJson()); |
1532 checkCancelJobRequest(od); | 1668 checkCancelJobRequest(od); |
1533 }); | 1669 }); |
1534 }); | 1670 }); |
1535 | 1671 |
1536 | 1672 |
1537 unittest.group("obj-schema-Cluster", () { | 1673 unittest.group("obj-schema-Cluster", () { |
1538 unittest.test("to-json--from-json", () { | 1674 unittest.test("to-json--from-json", () { |
1539 var o = buildCluster(); | 1675 var o = buildCluster(); |
1540 var od = new api.Cluster.fromJson(o.toJson()); | 1676 var od = new api.Cluster.fromJson(o.toJson()); |
1541 checkCluster(od); | 1677 checkCluster(od); |
1542 }); | 1678 }); |
1543 }); | 1679 }); |
1544 | 1680 |
1545 | 1681 |
1546 unittest.group("obj-schema-ClusterConfig", () { | 1682 unittest.group("obj-schema-ClusterConfig", () { |
1547 unittest.test("to-json--from-json", () { | 1683 unittest.test("to-json--from-json", () { |
1548 var o = buildClusterConfig(); | 1684 var o = buildClusterConfig(); |
1549 var od = new api.ClusterConfig.fromJson(o.toJson()); | 1685 var od = new api.ClusterConfig.fromJson(o.toJson()); |
1550 checkClusterConfig(od); | 1686 checkClusterConfig(od); |
1551 }); | 1687 }); |
1552 }); | 1688 }); |
1553 | 1689 |
1554 | 1690 |
| 1691 unittest.group("obj-schema-ClusterMetrics", () { |
| 1692 unittest.test("to-json--from-json", () { |
| 1693 var o = buildClusterMetrics(); |
| 1694 var od = new api.ClusterMetrics.fromJson(o.toJson()); |
| 1695 checkClusterMetrics(od); |
| 1696 }); |
| 1697 }); |
| 1698 |
| 1699 |
1555 unittest.group("obj-schema-ClusterOperationMetadata", () { | 1700 unittest.group("obj-schema-ClusterOperationMetadata", () { |
1556 unittest.test("to-json--from-json", () { | 1701 unittest.test("to-json--from-json", () { |
1557 var o = buildClusterOperationMetadata(); | 1702 var o = buildClusterOperationMetadata(); |
1558 var od = new api.ClusterOperationMetadata.fromJson(o.toJson()); | 1703 var od = new api.ClusterOperationMetadata.fromJson(o.toJson()); |
1559 checkClusterOperationMetadata(od); | 1704 checkClusterOperationMetadata(od); |
1560 }); | 1705 }); |
1561 }); | 1706 }); |
1562 | 1707 |
1563 | 1708 |
1564 unittest.group("obj-schema-ClusterOperationStatus", () { | 1709 unittest.group("obj-schema-ClusterOperationStatus", () { |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1842 | 1987 |
1843 unittest.group("obj-schema-SubmitJobRequest", () { | 1988 unittest.group("obj-schema-SubmitJobRequest", () { |
1844 unittest.test("to-json--from-json", () { | 1989 unittest.test("to-json--from-json", () { |
1845 var o = buildSubmitJobRequest(); | 1990 var o = buildSubmitJobRequest(); |
1846 var od = new api.SubmitJobRequest.fromJson(o.toJson()); | 1991 var od = new api.SubmitJobRequest.fromJson(o.toJson()); |
1847 checkSubmitJobRequest(od); | 1992 checkSubmitJobRequest(od); |
1848 }); | 1993 }); |
1849 }); | 1994 }); |
1850 | 1995 |
1851 | 1996 |
| 1997 unittest.group("obj-schema-YarnApplication", () { |
| 1998 unittest.test("to-json--from-json", () { |
| 1999 var o = buildYarnApplication(); |
| 2000 var od = new api.YarnApplication.fromJson(o.toJson()); |
| 2001 checkYarnApplication(od); |
| 2002 }); |
| 2003 }); |
| 2004 |
| 2005 |
1852 unittest.group("resource-ProjectsRegionsClustersResourceApi", () { | 2006 unittest.group("resource-ProjectsRegionsClustersResourceApi", () { |
1853 unittest.test("method--create", () { | 2007 unittest.test("method--create", () { |
1854 | 2008 |
1855 var mock = new HttpServerMock(); | 2009 var mock = new HttpServerMock(); |
1856 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; | 2010 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; |
1857 var arg_request = buildCluster(); | 2011 var arg_request = buildCluster(); |
1858 var arg_projectId = "foo"; | 2012 var arg_projectId = "foo"; |
1859 var arg_region = "foo"; | 2013 var arg_region = "foo"; |
1860 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2014 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1861 var obj = new api.Cluster.fromJson(json); | 2015 var obj = new api.Cluster.fromJson(json); |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2109 checkCluster(response); | 2263 checkCluster(response); |
2110 }))); | 2264 }))); |
2111 }); | 2265 }); |
2112 | 2266 |
2113 unittest.test("method--list", () { | 2267 unittest.test("method--list", () { |
2114 | 2268 |
2115 var mock = new HttpServerMock(); | 2269 var mock = new HttpServerMock(); |
2116 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; | 2270 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; |
2117 var arg_projectId = "foo"; | 2271 var arg_projectId = "foo"; |
2118 var arg_region = "foo"; | 2272 var arg_region = "foo"; |
| 2273 var arg_filter = "foo"; |
2119 var arg_pageSize = 42; | 2274 var arg_pageSize = 42; |
2120 var arg_pageToken = "foo"; | 2275 var arg_pageToken = "foo"; |
2121 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2276 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2122 var path = (req.url).path; | 2277 var path = (req.url).path; |
2123 var pathOffset = 0; | 2278 var pathOffset = 0; |
2124 var index; | 2279 var index; |
2125 var subPart; | 2280 var subPart; |
2126 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2281 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2127 pathOffset += 1; | 2282 pathOffset += 1; |
2128 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2283 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
(...skipping 22 matching lines...) Expand all Loading... |
2151 if (n == "false") return false; | 2306 if (n == "false") return false; |
2152 if (n == null) return null; | 2307 if (n == null) return null; |
2153 throw new core.ArgumentError("Invalid boolean: $n"); | 2308 throw new core.ArgumentError("Invalid boolean: $n"); |
2154 } | 2309 } |
2155 if (query.length > 0) { | 2310 if (query.length > 0) { |
2156 for (var part in query.split("&")) { | 2311 for (var part in query.split("&")) { |
2157 var keyvalue = part.split("="); | 2312 var keyvalue = part.split("="); |
2158 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2313 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2159 } | 2314 } |
2160 } | 2315 } |
| 2316 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
2161 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2317 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2162 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2318 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2163 | 2319 |
2164 | 2320 |
2165 var h = { | 2321 var h = { |
2166 "content-type" : "application/json; charset=utf-8", | 2322 "content-type" : "application/json; charset=utf-8", |
2167 }; | 2323 }; |
2168 var resp = convert.JSON.encode(buildListClustersResponse()); | 2324 var resp = convert.JSON.encode(buildListClustersResponse()); |
2169 return new async.Future.value(stringResponse(200, h, resp)); | 2325 return new async.Future.value(stringResponse(200, h, resp)); |
2170 }), true); | 2326 }), true); |
2171 res.list(arg_projectId, arg_region, pageSize: arg_pageSize, pageToken: arg
_pageToken).then(unittest.expectAsync(((api.ListClustersResponse response) { | 2327 res.list(arg_projectId, arg_region, filter: arg_filter, pageSize: arg_page
Size, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListClustersResp
onse response) { |
2172 checkListClustersResponse(response); | 2328 checkListClustersResponse(response); |
2173 }))); | 2329 }))); |
2174 }); | 2330 }); |
2175 | 2331 |
2176 unittest.test("method--patch", () { | 2332 unittest.test("method--patch", () { |
2177 | 2333 |
2178 var mock = new HttpServerMock(); | 2334 var mock = new HttpServerMock(); |
2179 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; | 2335 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; |
2180 var arg_request = buildCluster(); | 2336 var arg_request = buildCluster(); |
2181 var arg_projectId = "foo"; | 2337 var arg_projectId = "foo"; |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2446 unittest.test("method--list", () { | 2602 unittest.test("method--list", () { |
2447 | 2603 |
2448 var mock = new HttpServerMock(); | 2604 var mock = new HttpServerMock(); |
2449 api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).project
s.regions.jobs; | 2605 api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).project
s.regions.jobs; |
2450 var arg_projectId = "foo"; | 2606 var arg_projectId = "foo"; |
2451 var arg_region = "foo"; | 2607 var arg_region = "foo"; |
2452 var arg_pageSize = 42; | 2608 var arg_pageSize = 42; |
2453 var arg_pageToken = "foo"; | 2609 var arg_pageToken = "foo"; |
2454 var arg_clusterName = "foo"; | 2610 var arg_clusterName = "foo"; |
2455 var arg_jobStateMatcher = "foo"; | 2611 var arg_jobStateMatcher = "foo"; |
| 2612 var arg_filter = "foo"; |
2456 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2613 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2457 var path = (req.url).path; | 2614 var path = (req.url).path; |
2458 var pathOffset = 0; | 2615 var pathOffset = 0; |
2459 var index; | 2616 var index; |
2460 var subPart; | 2617 var subPart; |
2461 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2618 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2462 pathOffset += 1; | 2619 pathOffset += 1; |
2463 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2620 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
2464 pathOffset += 12; | 2621 pathOffset += 12; |
2465 index = path.indexOf("/regions/", pathOffset); | 2622 index = path.indexOf("/regions/", pathOffset); |
(...skipping 24 matching lines...) Expand all Loading... |
2490 if (query.length > 0) { | 2647 if (query.length > 0) { |
2491 for (var part in query.split("&")) { | 2648 for (var part in query.split("&")) { |
2492 var keyvalue = part.split("="); | 2649 var keyvalue = part.split("="); |
2493 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2650 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2494 } | 2651 } |
2495 } | 2652 } |
2496 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2653 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2497 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2654 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2498 unittest.expect(queryMap["clusterName"].first, unittest.equals(arg_clust
erName)); | 2655 unittest.expect(queryMap["clusterName"].first, unittest.equals(arg_clust
erName)); |
2499 unittest.expect(queryMap["jobStateMatcher"].first, unittest.equals(arg_j
obStateMatcher)); | 2656 unittest.expect(queryMap["jobStateMatcher"].first, unittest.equals(arg_j
obStateMatcher)); |
| 2657 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
2500 | 2658 |
2501 | 2659 |
2502 var h = { | 2660 var h = { |
2503 "content-type" : "application/json; charset=utf-8", | 2661 "content-type" : "application/json; charset=utf-8", |
2504 }; | 2662 }; |
2505 var resp = convert.JSON.encode(buildListJobsResponse()); | 2663 var resp = convert.JSON.encode(buildListJobsResponse()); |
2506 return new async.Future.value(stringResponse(200, h, resp)); | 2664 return new async.Future.value(stringResponse(200, h, resp)); |
2507 }), true); | 2665 }), true); |
2508 res.list(arg_projectId, arg_region, pageSize: arg_pageSize, pageToken: arg
_pageToken, clusterName: arg_clusterName, jobStateMatcher: arg_jobStateMatcher).
then(unittest.expectAsync(((api.ListJobsResponse response) { | 2666 res.list(arg_projectId, arg_region, pageSize: arg_pageSize, pageToken: arg
_pageToken, clusterName: arg_clusterName, jobStateMatcher: arg_jobStateMatcher,
filter: arg_filter).then(unittest.expectAsync(((api.ListJobsResponse response) { |
2509 checkListJobsResponse(response); | 2667 checkListJobsResponse(response); |
2510 }))); | 2668 }))); |
2511 }); | 2669 }); |
2512 | 2670 |
2513 unittest.test("method--submit", () { | 2671 unittest.test("method--submit", () { |
2514 | 2672 |
2515 var mock = new HttpServerMock(); | 2673 var mock = new HttpServerMock(); |
2516 api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).project
s.regions.jobs; | 2674 api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).project
s.regions.jobs; |
2517 var arg_request = buildSubmitJobRequest(); | 2675 var arg_request = buildSubmitJobRequest(); |
2518 var arg_projectId = "foo"; | 2676 var arg_projectId = "foo"; |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2761 res.list(arg_name, filter: arg_filter, pageSize: arg_pageSize, pageToken:
arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response)
{ | 2919 res.list(arg_name, filter: arg_filter, pageSize: arg_pageSize, pageToken:
arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response)
{ |
2762 checkListOperationsResponse(response); | 2920 checkListOperationsResponse(response); |
2763 }))); | 2921 }))); |
2764 }); | 2922 }); |
2765 | 2923 |
2766 }); | 2924 }); |
2767 | 2925 |
2768 | 2926 |
2769 } | 2927 } |
2770 | 2928 |
OLD | NEW |