OLD | NEW |
1 library googleapis_beta.dataproc.v1beta1.test; | 1 library googleapis_beta.dataproc.v1beta1.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 return o; | 78 return o; |
79 } | 79 } |
80 | 80 |
81 checkCancelOperationRequest(api.CancelOperationRequest o) { | 81 checkCancelOperationRequest(api.CancelOperationRequest o) { |
82 buildCounterCancelOperationRequest++; | 82 buildCounterCancelOperationRequest++; |
83 if (buildCounterCancelOperationRequest < 3) { | 83 if (buildCounterCancelOperationRequest < 3) { |
84 } | 84 } |
85 buildCounterCancelOperationRequest--; | 85 buildCounterCancelOperationRequest--; |
86 } | 86 } |
87 | 87 |
88 buildUnnamed3180() { | 88 buildUnnamed3270() { |
89 var o = new core.Map<core.String, core.String>(); | 89 var o = new core.Map<core.String, core.String>(); |
90 o["x"] = "foo"; | 90 o["x"] = "foo"; |
91 o["y"] = "foo"; | 91 o["y"] = "foo"; |
92 return o; | 92 return o; |
93 } | 93 } |
94 | 94 |
95 checkUnnamed3180(core.Map<core.String, core.String> o) { | 95 checkUnnamed3270(core.Map<core.String, core.String> o) { |
96 unittest.expect(o, unittest.hasLength(2)); | 96 unittest.expect(o, unittest.hasLength(2)); |
97 unittest.expect(o["x"], unittest.equals('foo')); | 97 unittest.expect(o["x"], unittest.equals('foo')); |
98 unittest.expect(o["y"], unittest.equals('foo')); | 98 unittest.expect(o["y"], unittest.equals('foo')); |
99 } | 99 } |
100 | 100 |
101 buildUnnamed3181() { | 101 buildUnnamed3271() { |
102 var o = new core.List<api.ClusterStatus>(); | 102 var o = new core.List<api.ClusterStatus>(); |
103 o.add(buildClusterStatus()); | 103 o.add(buildClusterStatus()); |
104 o.add(buildClusterStatus()); | 104 o.add(buildClusterStatus()); |
105 return o; | 105 return o; |
106 } | 106 } |
107 | 107 |
108 checkUnnamed3181(core.List<api.ClusterStatus> o) { | 108 checkUnnamed3271(core.List<api.ClusterStatus> o) { |
109 unittest.expect(o, unittest.hasLength(2)); | 109 unittest.expect(o, unittest.hasLength(2)); |
110 checkClusterStatus(o[0]); | 110 checkClusterStatus(o[0]); |
111 checkClusterStatus(o[1]); | 111 checkClusterStatus(o[1]); |
112 } | 112 } |
113 | 113 |
114 core.int buildCounterCluster = 0; | 114 core.int buildCounterCluster = 0; |
115 buildCluster() { | 115 buildCluster() { |
116 var o = new api.Cluster(); | 116 var o = new api.Cluster(); |
117 buildCounterCluster++; | 117 buildCounterCluster++; |
118 if (buildCounterCluster < 3) { | 118 if (buildCounterCluster < 3) { |
119 o.clusterName = "foo"; | 119 o.clusterName = "foo"; |
120 o.clusterUuid = "foo"; | 120 o.clusterUuid = "foo"; |
121 o.configuration = buildClusterConfiguration(); | 121 o.configuration = buildClusterConfiguration(); |
122 o.labels = buildUnnamed3180(); | 122 o.labels = buildUnnamed3270(); |
123 o.metrics = buildClusterMetrics(); | 123 o.metrics = buildClusterMetrics(); |
124 o.projectId = "foo"; | 124 o.projectId = "foo"; |
125 o.status = buildClusterStatus(); | 125 o.status = buildClusterStatus(); |
126 o.statusHistory = buildUnnamed3181(); | 126 o.statusHistory = buildUnnamed3271(); |
127 } | 127 } |
128 buildCounterCluster--; | 128 buildCounterCluster--; |
129 return o; | 129 return o; |
130 } | 130 } |
131 | 131 |
132 checkCluster(api.Cluster o) { | 132 checkCluster(api.Cluster o) { |
133 buildCounterCluster++; | 133 buildCounterCluster++; |
134 if (buildCounterCluster < 3) { | 134 if (buildCounterCluster < 3) { |
135 unittest.expect(o.clusterName, unittest.equals('foo')); | 135 unittest.expect(o.clusterName, unittest.equals('foo')); |
136 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 136 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
137 checkClusterConfiguration(o.configuration); | 137 checkClusterConfiguration(o.configuration); |
138 checkUnnamed3180(o.labels); | 138 checkUnnamed3270(o.labels); |
139 checkClusterMetrics(o.metrics); | 139 checkClusterMetrics(o.metrics); |
140 unittest.expect(o.projectId, unittest.equals('foo')); | 140 unittest.expect(o.projectId, unittest.equals('foo')); |
141 checkClusterStatus(o.status); | 141 checkClusterStatus(o.status); |
142 checkUnnamed3181(o.statusHistory); | 142 checkUnnamed3271(o.statusHistory); |
143 } | 143 } |
144 buildCounterCluster--; | 144 buildCounterCluster--; |
145 } | 145 } |
146 | 146 |
147 buildUnnamed3182() { | 147 buildUnnamed3272() { |
148 var o = new core.List<api.NodeInitializationAction>(); | 148 var o = new core.List<api.NodeInitializationAction>(); |
149 o.add(buildNodeInitializationAction()); | 149 o.add(buildNodeInitializationAction()); |
150 o.add(buildNodeInitializationAction()); | 150 o.add(buildNodeInitializationAction()); |
151 return o; | 151 return o; |
152 } | 152 } |
153 | 153 |
154 checkUnnamed3182(core.List<api.NodeInitializationAction> o) { | 154 checkUnnamed3272(core.List<api.NodeInitializationAction> o) { |
155 unittest.expect(o, unittest.hasLength(2)); | 155 unittest.expect(o, unittest.hasLength(2)); |
156 checkNodeInitializationAction(o[0]); | 156 checkNodeInitializationAction(o[0]); |
157 checkNodeInitializationAction(o[1]); | 157 checkNodeInitializationAction(o[1]); |
158 } | 158 } |
159 | 159 |
160 core.int buildCounterClusterConfiguration = 0; | 160 core.int buildCounterClusterConfiguration = 0; |
161 buildClusterConfiguration() { | 161 buildClusterConfiguration() { |
162 var o = new api.ClusterConfiguration(); | 162 var o = new api.ClusterConfiguration(); |
163 buildCounterClusterConfiguration++; | 163 buildCounterClusterConfiguration++; |
164 if (buildCounterClusterConfiguration < 3) { | 164 if (buildCounterClusterConfiguration < 3) { |
165 o.configurationBucket = "foo"; | 165 o.configurationBucket = "foo"; |
166 o.gceClusterConfiguration = buildGceClusterConfiguration(); | 166 o.gceClusterConfiguration = buildGceClusterConfiguration(); |
167 o.initializationActions = buildUnnamed3182(); | 167 o.initializationActions = buildUnnamed3272(); |
168 o.masterConfiguration = buildInstanceGroupConfiguration(); | 168 o.masterConfiguration = buildInstanceGroupConfiguration(); |
169 o.secondaryWorkerConfiguration = buildInstanceGroupConfiguration(); | 169 o.secondaryWorkerConfiguration = buildInstanceGroupConfiguration(); |
170 o.softwareConfiguration = buildSoftwareConfiguration(); | 170 o.softwareConfiguration = buildSoftwareConfiguration(); |
171 o.workerConfiguration = buildInstanceGroupConfiguration(); | 171 o.workerConfiguration = buildInstanceGroupConfiguration(); |
172 } | 172 } |
173 buildCounterClusterConfiguration--; | 173 buildCounterClusterConfiguration--; |
174 return o; | 174 return o; |
175 } | 175 } |
176 | 176 |
177 checkClusterConfiguration(api.ClusterConfiguration o) { | 177 checkClusterConfiguration(api.ClusterConfiguration o) { |
178 buildCounterClusterConfiguration++; | 178 buildCounterClusterConfiguration++; |
179 if (buildCounterClusterConfiguration < 3) { | 179 if (buildCounterClusterConfiguration < 3) { |
180 unittest.expect(o.configurationBucket, unittest.equals('foo')); | 180 unittest.expect(o.configurationBucket, unittest.equals('foo')); |
181 checkGceClusterConfiguration(o.gceClusterConfiguration); | 181 checkGceClusterConfiguration(o.gceClusterConfiguration); |
182 checkUnnamed3182(o.initializationActions); | 182 checkUnnamed3272(o.initializationActions); |
183 checkInstanceGroupConfiguration(o.masterConfiguration); | 183 checkInstanceGroupConfiguration(o.masterConfiguration); |
184 checkInstanceGroupConfiguration(o.secondaryWorkerConfiguration); | 184 checkInstanceGroupConfiguration(o.secondaryWorkerConfiguration); |
185 checkSoftwareConfiguration(o.softwareConfiguration); | 185 checkSoftwareConfiguration(o.softwareConfiguration); |
186 checkInstanceGroupConfiguration(o.workerConfiguration); | 186 checkInstanceGroupConfiguration(o.workerConfiguration); |
187 } | 187 } |
188 buildCounterClusterConfiguration--; | 188 buildCounterClusterConfiguration--; |
189 } | 189 } |
190 | 190 |
191 buildUnnamed3183() { | 191 buildUnnamed3273() { |
192 var o = new core.Map<core.String, core.String>(); | 192 var o = new core.Map<core.String, core.String>(); |
193 o["x"] = "foo"; | 193 o["x"] = "foo"; |
194 o["y"] = "foo"; | 194 o["y"] = "foo"; |
195 return o; | 195 return o; |
196 } | 196 } |
197 | 197 |
198 checkUnnamed3183(core.Map<core.String, core.String> o) { | 198 checkUnnamed3273(core.Map<core.String, core.String> o) { |
199 unittest.expect(o, unittest.hasLength(2)); | 199 unittest.expect(o, unittest.hasLength(2)); |
200 unittest.expect(o["x"], unittest.equals('foo')); | 200 unittest.expect(o["x"], unittest.equals('foo')); |
201 unittest.expect(o["y"], unittest.equals('foo')); | 201 unittest.expect(o["y"], unittest.equals('foo')); |
202 } | 202 } |
203 | 203 |
204 buildUnnamed3184() { | 204 buildUnnamed3274() { |
205 var o = new core.Map<core.String, core.String>(); | 205 var o = new core.Map<core.String, core.String>(); |
206 o["x"] = "foo"; | 206 o["x"] = "foo"; |
207 o["y"] = "foo"; | 207 o["y"] = "foo"; |
208 return o; | 208 return o; |
209 } | 209 } |
210 | 210 |
211 checkUnnamed3184(core.Map<core.String, core.String> o) { | 211 checkUnnamed3274(core.Map<core.String, core.String> o) { |
212 unittest.expect(o, unittest.hasLength(2)); | 212 unittest.expect(o, unittest.hasLength(2)); |
213 unittest.expect(o["x"], unittest.equals('foo')); | 213 unittest.expect(o["x"], unittest.equals('foo')); |
214 unittest.expect(o["y"], unittest.equals('foo')); | 214 unittest.expect(o["y"], unittest.equals('foo')); |
215 } | 215 } |
216 | 216 |
217 core.int buildCounterClusterMetrics = 0; | 217 core.int buildCounterClusterMetrics = 0; |
218 buildClusterMetrics() { | 218 buildClusterMetrics() { |
219 var o = new api.ClusterMetrics(); | 219 var o = new api.ClusterMetrics(); |
220 buildCounterClusterMetrics++; | 220 buildCounterClusterMetrics++; |
221 if (buildCounterClusterMetrics < 3) { | 221 if (buildCounterClusterMetrics < 3) { |
222 o.hdfsMetrics = buildUnnamed3183(); | 222 o.hdfsMetrics = buildUnnamed3273(); |
223 o.yarnMetrics = buildUnnamed3184(); | 223 o.yarnMetrics = buildUnnamed3274(); |
224 } | 224 } |
225 buildCounterClusterMetrics--; | 225 buildCounterClusterMetrics--; |
226 return o; | 226 return o; |
227 } | 227 } |
228 | 228 |
229 checkClusterMetrics(api.ClusterMetrics o) { | 229 checkClusterMetrics(api.ClusterMetrics o) { |
230 buildCounterClusterMetrics++; | 230 buildCounterClusterMetrics++; |
231 if (buildCounterClusterMetrics < 3) { | 231 if (buildCounterClusterMetrics < 3) { |
232 checkUnnamed3183(o.hdfsMetrics); | 232 checkUnnamed3273(o.hdfsMetrics); |
233 checkUnnamed3184(o.yarnMetrics); | 233 checkUnnamed3274(o.yarnMetrics); |
234 } | 234 } |
235 buildCounterClusterMetrics--; | 235 buildCounterClusterMetrics--; |
236 } | 236 } |
237 | 237 |
238 buildUnnamed3185() { | 238 buildUnnamed3275() { |
239 var o = new core.Map<core.String, core.String>(); | 239 var o = new core.Map<core.String, core.String>(); |
240 o["x"] = "foo"; | 240 o["x"] = "foo"; |
241 o["y"] = "foo"; | 241 o["y"] = "foo"; |
242 return o; | 242 return o; |
243 } | 243 } |
244 | 244 |
245 checkUnnamed3185(core.Map<core.String, core.String> o) { | 245 checkUnnamed3275(core.Map<core.String, core.String> o) { |
246 unittest.expect(o, unittest.hasLength(2)); | 246 unittest.expect(o, unittest.hasLength(2)); |
247 unittest.expect(o["x"], unittest.equals('foo')); | 247 unittest.expect(o["x"], unittest.equals('foo')); |
248 unittest.expect(o["y"], unittest.equals('foo')); | 248 unittest.expect(o["y"], unittest.equals('foo')); |
249 } | 249 } |
250 | 250 |
251 buildUnnamed3186() { | 251 buildUnnamed3276() { |
252 var o = new core.List<api.ClusterOperationStatus>(); | 252 var o = new core.List<api.ClusterOperationStatus>(); |
253 o.add(buildClusterOperationStatus()); | 253 o.add(buildClusterOperationStatus()); |
254 o.add(buildClusterOperationStatus()); | 254 o.add(buildClusterOperationStatus()); |
255 return o; | 255 return o; |
256 } | 256 } |
257 | 257 |
258 checkUnnamed3186(core.List<api.ClusterOperationStatus> o) { | 258 checkUnnamed3276(core.List<api.ClusterOperationStatus> o) { |
259 unittest.expect(o, unittest.hasLength(2)); | 259 unittest.expect(o, unittest.hasLength(2)); |
260 checkClusterOperationStatus(o[0]); | 260 checkClusterOperationStatus(o[0]); |
261 checkClusterOperationStatus(o[1]); | 261 checkClusterOperationStatus(o[1]); |
262 } | 262 } |
263 | 263 |
| 264 buildUnnamed3277() { |
| 265 var o = new core.List<core.String>(); |
| 266 o.add("foo"); |
| 267 o.add("foo"); |
| 268 return o; |
| 269 } |
| 270 |
| 271 checkUnnamed3277(core.List<core.String> o) { |
| 272 unittest.expect(o, unittest.hasLength(2)); |
| 273 unittest.expect(o[0], unittest.equals('foo')); |
| 274 unittest.expect(o[1], unittest.equals('foo')); |
| 275 } |
| 276 |
264 core.int buildCounterClusterOperationMetadata = 0; | 277 core.int buildCounterClusterOperationMetadata = 0; |
265 buildClusterOperationMetadata() { | 278 buildClusterOperationMetadata() { |
266 var o = new api.ClusterOperationMetadata(); | 279 var o = new api.ClusterOperationMetadata(); |
267 buildCounterClusterOperationMetadata++; | 280 buildCounterClusterOperationMetadata++; |
268 if (buildCounterClusterOperationMetadata < 3) { | 281 if (buildCounterClusterOperationMetadata < 3) { |
269 o.clusterName = "foo"; | 282 o.clusterName = "foo"; |
270 o.clusterUuid = "foo"; | 283 o.clusterUuid = "foo"; |
271 o.description = "foo"; | 284 o.description = "foo"; |
272 o.labels = buildUnnamed3185(); | 285 o.labels = buildUnnamed3275(); |
273 o.operationType = "foo"; | 286 o.operationType = "foo"; |
274 o.status = buildClusterOperationStatus(); | 287 o.status = buildClusterOperationStatus(); |
275 o.statusHistory = buildUnnamed3186(); | 288 o.statusHistory = buildUnnamed3276(); |
| 289 o.warnings = buildUnnamed3277(); |
276 } | 290 } |
277 buildCounterClusterOperationMetadata--; | 291 buildCounterClusterOperationMetadata--; |
278 return o; | 292 return o; |
279 } | 293 } |
280 | 294 |
281 checkClusterOperationMetadata(api.ClusterOperationMetadata o) { | 295 checkClusterOperationMetadata(api.ClusterOperationMetadata o) { |
282 buildCounterClusterOperationMetadata++; | 296 buildCounterClusterOperationMetadata++; |
283 if (buildCounterClusterOperationMetadata < 3) { | 297 if (buildCounterClusterOperationMetadata < 3) { |
284 unittest.expect(o.clusterName, unittest.equals('foo')); | 298 unittest.expect(o.clusterName, unittest.equals('foo')); |
285 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 299 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
286 unittest.expect(o.description, unittest.equals('foo')); | 300 unittest.expect(o.description, unittest.equals('foo')); |
287 checkUnnamed3185(o.labels); | 301 checkUnnamed3275(o.labels); |
288 unittest.expect(o.operationType, unittest.equals('foo')); | 302 unittest.expect(o.operationType, unittest.equals('foo')); |
289 checkClusterOperationStatus(o.status); | 303 checkClusterOperationStatus(o.status); |
290 checkUnnamed3186(o.statusHistory); | 304 checkUnnamed3276(o.statusHistory); |
| 305 checkUnnamed3277(o.warnings); |
291 } | 306 } |
292 buildCounterClusterOperationMetadata--; | 307 buildCounterClusterOperationMetadata--; |
293 } | 308 } |
294 | 309 |
295 core.int buildCounterClusterOperationStatus = 0; | 310 core.int buildCounterClusterOperationStatus = 0; |
296 buildClusterOperationStatus() { | 311 buildClusterOperationStatus() { |
297 var o = new api.ClusterOperationStatus(); | 312 var o = new api.ClusterOperationStatus(); |
298 buildCounterClusterOperationStatus++; | 313 buildCounterClusterOperationStatus++; |
299 if (buildCounterClusterOperationStatus < 3) { | 314 if (buildCounterClusterOperationStatus < 3) { |
300 o.details = "foo"; | 315 o.details = "foo"; |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 return o; | 441 return o; |
427 } | 442 } |
428 | 443 |
429 checkEmpty(api.Empty o) { | 444 checkEmpty(api.Empty o) { |
430 buildCounterEmpty++; | 445 buildCounterEmpty++; |
431 if (buildCounterEmpty < 3) { | 446 if (buildCounterEmpty < 3) { |
432 } | 447 } |
433 buildCounterEmpty--; | 448 buildCounterEmpty--; |
434 } | 449 } |
435 | 450 |
436 buildUnnamed3187() { | 451 buildUnnamed3278() { |
437 var o = new core.Map<core.String, core.String>(); | 452 var o = new core.Map<core.String, core.String>(); |
438 o["x"] = "foo"; | 453 o["x"] = "foo"; |
439 o["y"] = "foo"; | 454 o["y"] = "foo"; |
440 return o; | 455 return o; |
441 } | 456 } |
442 | 457 |
443 checkUnnamed3187(core.Map<core.String, core.String> o) { | 458 checkUnnamed3278(core.Map<core.String, core.String> o) { |
444 unittest.expect(o, unittest.hasLength(2)); | 459 unittest.expect(o, unittest.hasLength(2)); |
445 unittest.expect(o["x"], unittest.equals('foo')); | 460 unittest.expect(o["x"], unittest.equals('foo')); |
446 unittest.expect(o["y"], unittest.equals('foo')); | 461 unittest.expect(o["y"], unittest.equals('foo')); |
447 } | 462 } |
448 | 463 |
449 buildUnnamed3188() { | 464 buildUnnamed3279() { |
450 var o = new core.List<core.String>(); | 465 var o = new core.List<core.String>(); |
451 o.add("foo"); | 466 o.add("foo"); |
452 o.add("foo"); | 467 o.add("foo"); |
453 return o; | 468 return o; |
454 } | 469 } |
455 | 470 |
456 checkUnnamed3188(core.List<core.String> o) { | 471 checkUnnamed3279(core.List<core.String> o) { |
457 unittest.expect(o, unittest.hasLength(2)); | 472 unittest.expect(o, unittest.hasLength(2)); |
458 unittest.expect(o[0], unittest.equals('foo')); | 473 unittest.expect(o[0], unittest.equals('foo')); |
459 unittest.expect(o[1], unittest.equals('foo')); | 474 unittest.expect(o[1], unittest.equals('foo')); |
460 } | 475 } |
461 | 476 |
462 buildUnnamed3189() { | 477 buildUnnamed3280() { |
463 var o = new core.List<core.String>(); | 478 var o = new core.List<core.String>(); |
464 o.add("foo"); | 479 o.add("foo"); |
465 o.add("foo"); | 480 o.add("foo"); |
466 return o; | 481 return o; |
467 } | 482 } |
468 | 483 |
469 checkUnnamed3189(core.List<core.String> o) { | 484 checkUnnamed3280(core.List<core.String> o) { |
470 unittest.expect(o, unittest.hasLength(2)); | 485 unittest.expect(o, unittest.hasLength(2)); |
471 unittest.expect(o[0], unittest.equals('foo')); | 486 unittest.expect(o[0], unittest.equals('foo')); |
472 unittest.expect(o[1], unittest.equals('foo')); | 487 unittest.expect(o[1], unittest.equals('foo')); |
473 } | 488 } |
474 | 489 |
475 core.int buildCounterGceClusterConfiguration = 0; | 490 core.int buildCounterGceClusterConfiguration = 0; |
476 buildGceClusterConfiguration() { | 491 buildGceClusterConfiguration() { |
477 var o = new api.GceClusterConfiguration(); | 492 var o = new api.GceClusterConfiguration(); |
478 buildCounterGceClusterConfiguration++; | 493 buildCounterGceClusterConfiguration++; |
479 if (buildCounterGceClusterConfiguration < 3) { | 494 if (buildCounterGceClusterConfiguration < 3) { |
480 o.internalIpOnly = true; | 495 o.internalIpOnly = true; |
481 o.metadata = buildUnnamed3187(); | 496 o.metadata = buildUnnamed3278(); |
482 o.networkUri = "foo"; | 497 o.networkUri = "foo"; |
483 o.serviceAccountScopes = buildUnnamed3188(); | 498 o.serviceAccount = "foo"; |
| 499 o.serviceAccountScopes = buildUnnamed3279(); |
484 o.subnetworkUri = "foo"; | 500 o.subnetworkUri = "foo"; |
485 o.tags = buildUnnamed3189(); | 501 o.tags = buildUnnamed3280(); |
486 o.zoneUri = "foo"; | 502 o.zoneUri = "foo"; |
487 } | 503 } |
488 buildCounterGceClusterConfiguration--; | 504 buildCounterGceClusterConfiguration--; |
489 return o; | 505 return o; |
490 } | 506 } |
491 | 507 |
492 checkGceClusterConfiguration(api.GceClusterConfiguration o) { | 508 checkGceClusterConfiguration(api.GceClusterConfiguration o) { |
493 buildCounterGceClusterConfiguration++; | 509 buildCounterGceClusterConfiguration++; |
494 if (buildCounterGceClusterConfiguration < 3) { | 510 if (buildCounterGceClusterConfiguration < 3) { |
495 unittest.expect(o.internalIpOnly, unittest.isTrue); | 511 unittest.expect(o.internalIpOnly, unittest.isTrue); |
496 checkUnnamed3187(o.metadata); | 512 checkUnnamed3278(o.metadata); |
497 unittest.expect(o.networkUri, unittest.equals('foo')); | 513 unittest.expect(o.networkUri, unittest.equals('foo')); |
498 checkUnnamed3188(o.serviceAccountScopes); | 514 unittest.expect(o.serviceAccount, unittest.equals('foo')); |
| 515 checkUnnamed3279(o.serviceAccountScopes); |
499 unittest.expect(o.subnetworkUri, unittest.equals('foo')); | 516 unittest.expect(o.subnetworkUri, unittest.equals('foo')); |
500 checkUnnamed3189(o.tags); | 517 checkUnnamed3280(o.tags); |
501 unittest.expect(o.zoneUri, unittest.equals('foo')); | 518 unittest.expect(o.zoneUri, unittest.equals('foo')); |
502 } | 519 } |
503 buildCounterGceClusterConfiguration--; | 520 buildCounterGceClusterConfiguration--; |
504 } | 521 } |
505 | 522 |
506 buildUnnamed3190() { | 523 buildUnnamed3281() { |
507 var o = new core.List<core.String>(); | 524 var o = new core.List<core.String>(); |
508 o.add("foo"); | 525 o.add("foo"); |
509 o.add("foo"); | 526 o.add("foo"); |
510 return o; | 527 return o; |
511 } | 528 } |
512 | 529 |
513 checkUnnamed3190(core.List<core.String> o) { | 530 checkUnnamed3281(core.List<core.String> o) { |
514 unittest.expect(o, unittest.hasLength(2)); | 531 unittest.expect(o, unittest.hasLength(2)); |
515 unittest.expect(o[0], unittest.equals('foo')); | 532 unittest.expect(o[0], unittest.equals('foo')); |
516 unittest.expect(o[1], unittest.equals('foo')); | 533 unittest.expect(o[1], unittest.equals('foo')); |
517 } | 534 } |
518 | 535 |
519 buildUnnamed3191() { | 536 buildUnnamed3282() { |
520 var o = new core.List<core.String>(); | 537 var o = new core.List<core.String>(); |
521 o.add("foo"); | 538 o.add("foo"); |
522 o.add("foo"); | 539 o.add("foo"); |
523 return o; | 540 return o; |
524 } | 541 } |
525 | 542 |
526 checkUnnamed3191(core.List<core.String> o) { | 543 checkUnnamed3282(core.List<core.String> o) { |
527 unittest.expect(o, unittest.hasLength(2)); | 544 unittest.expect(o, unittest.hasLength(2)); |
528 unittest.expect(o[0], unittest.equals('foo')); | 545 unittest.expect(o[0], unittest.equals('foo')); |
529 unittest.expect(o[1], unittest.equals('foo')); | 546 unittest.expect(o[1], unittest.equals('foo')); |
530 } | 547 } |
531 | 548 |
532 buildUnnamed3192() { | 549 buildUnnamed3283() { |
533 var o = new core.List<core.String>(); | 550 var o = new core.List<core.String>(); |
534 o.add("foo"); | 551 o.add("foo"); |
535 o.add("foo"); | 552 o.add("foo"); |
536 return o; | 553 return o; |
537 } | 554 } |
538 | 555 |
539 checkUnnamed3192(core.List<core.String> o) { | 556 checkUnnamed3283(core.List<core.String> o) { |
540 unittest.expect(o, unittest.hasLength(2)); | 557 unittest.expect(o, unittest.hasLength(2)); |
541 unittest.expect(o[0], unittest.equals('foo')); | 558 unittest.expect(o[0], unittest.equals('foo')); |
542 unittest.expect(o[1], unittest.equals('foo')); | 559 unittest.expect(o[1], unittest.equals('foo')); |
543 } | 560 } |
544 | 561 |
545 buildUnnamed3193() { | 562 buildUnnamed3284() { |
546 var o = new core.List<core.String>(); | 563 var o = new core.List<core.String>(); |
547 o.add("foo"); | 564 o.add("foo"); |
548 o.add("foo"); | 565 o.add("foo"); |
549 return o; | 566 return o; |
550 } | 567 } |
551 | 568 |
552 checkUnnamed3193(core.List<core.String> o) { | 569 checkUnnamed3284(core.List<core.String> o) { |
553 unittest.expect(o, unittest.hasLength(2)); | 570 unittest.expect(o, unittest.hasLength(2)); |
554 unittest.expect(o[0], unittest.equals('foo')); | 571 unittest.expect(o[0], unittest.equals('foo')); |
555 unittest.expect(o[1], unittest.equals('foo')); | 572 unittest.expect(o[1], unittest.equals('foo')); |
556 } | 573 } |
557 | 574 |
558 buildUnnamed3194() { | 575 buildUnnamed3285() { |
559 var o = new core.Map<core.String, core.String>(); | 576 var o = new core.Map<core.String, core.String>(); |
560 o["x"] = "foo"; | 577 o["x"] = "foo"; |
561 o["y"] = "foo"; | 578 o["y"] = "foo"; |
562 return o; | 579 return o; |
563 } | 580 } |
564 | 581 |
565 checkUnnamed3194(core.Map<core.String, core.String> o) { | 582 checkUnnamed3285(core.Map<core.String, core.String> o) { |
566 unittest.expect(o, unittest.hasLength(2)); | 583 unittest.expect(o, unittest.hasLength(2)); |
567 unittest.expect(o["x"], unittest.equals('foo')); | 584 unittest.expect(o["x"], unittest.equals('foo')); |
568 unittest.expect(o["y"], unittest.equals('foo')); | 585 unittest.expect(o["y"], unittest.equals('foo')); |
569 } | 586 } |
570 | 587 |
571 core.int buildCounterHadoopJob = 0; | 588 core.int buildCounterHadoopJob = 0; |
572 buildHadoopJob() { | 589 buildHadoopJob() { |
573 var o = new api.HadoopJob(); | 590 var o = new api.HadoopJob(); |
574 buildCounterHadoopJob++; | 591 buildCounterHadoopJob++; |
575 if (buildCounterHadoopJob < 3) { | 592 if (buildCounterHadoopJob < 3) { |
576 o.archiveUris = buildUnnamed3190(); | 593 o.archiveUris = buildUnnamed3281(); |
577 o.args = buildUnnamed3191(); | 594 o.args = buildUnnamed3282(); |
578 o.fileUris = buildUnnamed3192(); | 595 o.fileUris = buildUnnamed3283(); |
579 o.jarFileUris = buildUnnamed3193(); | 596 o.jarFileUris = buildUnnamed3284(); |
580 o.loggingConfiguration = buildLoggingConfiguration(); | 597 o.loggingConfiguration = buildLoggingConfiguration(); |
581 o.mainClass = "foo"; | 598 o.mainClass = "foo"; |
582 o.mainJarFileUri = "foo"; | 599 o.mainJarFileUri = "foo"; |
583 o.properties = buildUnnamed3194(); | 600 o.properties = buildUnnamed3285(); |
584 } | 601 } |
585 buildCounterHadoopJob--; | 602 buildCounterHadoopJob--; |
586 return o; | 603 return o; |
587 } | 604 } |
588 | 605 |
589 checkHadoopJob(api.HadoopJob o) { | 606 checkHadoopJob(api.HadoopJob o) { |
590 buildCounterHadoopJob++; | 607 buildCounterHadoopJob++; |
591 if (buildCounterHadoopJob < 3) { | 608 if (buildCounterHadoopJob < 3) { |
592 checkUnnamed3190(o.archiveUris); | 609 checkUnnamed3281(o.archiveUris); |
593 checkUnnamed3191(o.args); | 610 checkUnnamed3282(o.args); |
594 checkUnnamed3192(o.fileUris); | 611 checkUnnamed3283(o.fileUris); |
595 checkUnnamed3193(o.jarFileUris); | 612 checkUnnamed3284(o.jarFileUris); |
596 checkLoggingConfiguration(o.loggingConfiguration); | 613 checkLoggingConfiguration(o.loggingConfiguration); |
597 unittest.expect(o.mainClass, unittest.equals('foo')); | 614 unittest.expect(o.mainClass, unittest.equals('foo')); |
598 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 615 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
599 checkUnnamed3194(o.properties); | 616 checkUnnamed3285(o.properties); |
600 } | 617 } |
601 buildCounterHadoopJob--; | 618 buildCounterHadoopJob--; |
602 } | 619 } |
603 | 620 |
604 buildUnnamed3195() { | 621 buildUnnamed3286() { |
605 var o = new core.List<core.String>(); | 622 var o = new core.List<core.String>(); |
606 o.add("foo"); | 623 o.add("foo"); |
607 o.add("foo"); | 624 o.add("foo"); |
608 return o; | 625 return o; |
609 } | 626 } |
610 | 627 |
611 checkUnnamed3195(core.List<core.String> o) { | 628 checkUnnamed3286(core.List<core.String> o) { |
612 unittest.expect(o, unittest.hasLength(2)); | 629 unittest.expect(o, unittest.hasLength(2)); |
613 unittest.expect(o[0], unittest.equals('foo')); | 630 unittest.expect(o[0], unittest.equals('foo')); |
614 unittest.expect(o[1], unittest.equals('foo')); | 631 unittest.expect(o[1], unittest.equals('foo')); |
615 } | 632 } |
616 | 633 |
617 buildUnnamed3196() { | 634 buildUnnamed3287() { |
618 var o = new core.Map<core.String, core.String>(); | 635 var o = new core.Map<core.String, core.String>(); |
619 o["x"] = "foo"; | 636 o["x"] = "foo"; |
620 o["y"] = "foo"; | 637 o["y"] = "foo"; |
621 return o; | 638 return o; |
622 } | 639 } |
623 | 640 |
624 checkUnnamed3196(core.Map<core.String, core.String> o) { | 641 checkUnnamed3287(core.Map<core.String, core.String> o) { |
625 unittest.expect(o, unittest.hasLength(2)); | 642 unittest.expect(o, unittest.hasLength(2)); |
626 unittest.expect(o["x"], unittest.equals('foo')); | 643 unittest.expect(o["x"], unittest.equals('foo')); |
627 unittest.expect(o["y"], unittest.equals('foo')); | 644 unittest.expect(o["y"], unittest.equals('foo')); |
628 } | 645 } |
629 | 646 |
630 buildUnnamed3197() { | 647 buildUnnamed3288() { |
631 var o = new core.Map<core.String, core.String>(); | 648 var o = new core.Map<core.String, core.String>(); |
632 o["x"] = "foo"; | 649 o["x"] = "foo"; |
633 o["y"] = "foo"; | 650 o["y"] = "foo"; |
634 return o; | 651 return o; |
635 } | 652 } |
636 | 653 |
637 checkUnnamed3197(core.Map<core.String, core.String> o) { | 654 checkUnnamed3288(core.Map<core.String, core.String> o) { |
638 unittest.expect(o, unittest.hasLength(2)); | 655 unittest.expect(o, unittest.hasLength(2)); |
639 unittest.expect(o["x"], unittest.equals('foo')); | 656 unittest.expect(o["x"], unittest.equals('foo')); |
640 unittest.expect(o["y"], unittest.equals('foo')); | 657 unittest.expect(o["y"], unittest.equals('foo')); |
641 } | 658 } |
642 | 659 |
643 core.int buildCounterHiveJob = 0; | 660 core.int buildCounterHiveJob = 0; |
644 buildHiveJob() { | 661 buildHiveJob() { |
645 var o = new api.HiveJob(); | 662 var o = new api.HiveJob(); |
646 buildCounterHiveJob++; | 663 buildCounterHiveJob++; |
647 if (buildCounterHiveJob < 3) { | 664 if (buildCounterHiveJob < 3) { |
648 o.continueOnFailure = true; | 665 o.continueOnFailure = true; |
649 o.jarFileUris = buildUnnamed3195(); | 666 o.jarFileUris = buildUnnamed3286(); |
650 o.properties = buildUnnamed3196(); | 667 o.properties = buildUnnamed3287(); |
651 o.queryFileUri = "foo"; | 668 o.queryFileUri = "foo"; |
652 o.queryList = buildQueryList(); | 669 o.queryList = buildQueryList(); |
653 o.scriptVariables = buildUnnamed3197(); | 670 o.scriptVariables = buildUnnamed3288(); |
654 } | 671 } |
655 buildCounterHiveJob--; | 672 buildCounterHiveJob--; |
656 return o; | 673 return o; |
657 } | 674 } |
658 | 675 |
659 checkHiveJob(api.HiveJob o) { | 676 checkHiveJob(api.HiveJob o) { |
660 buildCounterHiveJob++; | 677 buildCounterHiveJob++; |
661 if (buildCounterHiveJob < 3) { | 678 if (buildCounterHiveJob < 3) { |
662 unittest.expect(o.continueOnFailure, unittest.isTrue); | 679 unittest.expect(o.continueOnFailure, unittest.isTrue); |
663 checkUnnamed3195(o.jarFileUris); | 680 checkUnnamed3286(o.jarFileUris); |
664 checkUnnamed3196(o.properties); | 681 checkUnnamed3287(o.properties); |
665 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 682 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
666 checkQueryList(o.queryList); | 683 checkQueryList(o.queryList); |
667 checkUnnamed3197(o.scriptVariables); | 684 checkUnnamed3288(o.scriptVariables); |
668 } | 685 } |
669 buildCounterHiveJob--; | 686 buildCounterHiveJob--; |
670 } | 687 } |
671 | 688 |
672 buildUnnamed3198() { | 689 buildUnnamed3289() { |
673 var o = new core.List<core.String>(); | 690 var o = new core.List<core.String>(); |
674 o.add("foo"); | 691 o.add("foo"); |
675 o.add("foo"); | 692 o.add("foo"); |
676 return o; | 693 return o; |
677 } | 694 } |
678 | 695 |
679 checkUnnamed3198(core.List<core.String> o) { | 696 checkUnnamed3289(core.List<core.String> o) { |
680 unittest.expect(o, unittest.hasLength(2)); | 697 unittest.expect(o, unittest.hasLength(2)); |
681 unittest.expect(o[0], unittest.equals('foo')); | 698 unittest.expect(o[0], unittest.equals('foo')); |
682 unittest.expect(o[1], unittest.equals('foo')); | 699 unittest.expect(o[1], unittest.equals('foo')); |
683 } | 700 } |
684 | 701 |
685 core.int buildCounterInstanceGroupConfiguration = 0; | 702 core.int buildCounterInstanceGroupConfiguration = 0; |
686 buildInstanceGroupConfiguration() { | 703 buildInstanceGroupConfiguration() { |
687 var o = new api.InstanceGroupConfiguration(); | 704 var o = new api.InstanceGroupConfiguration(); |
688 buildCounterInstanceGroupConfiguration++; | 705 buildCounterInstanceGroupConfiguration++; |
689 if (buildCounterInstanceGroupConfiguration < 3) { | 706 if (buildCounterInstanceGroupConfiguration < 3) { |
690 o.diskConfiguration = buildDiskConfiguration(); | 707 o.diskConfiguration = buildDiskConfiguration(); |
691 o.imageUri = "foo"; | 708 o.imageUri = "foo"; |
692 o.instanceNames = buildUnnamed3198(); | 709 o.instanceNames = buildUnnamed3289(); |
693 o.isPreemptible = true; | 710 o.isPreemptible = true; |
694 o.machineTypeUri = "foo"; | 711 o.machineTypeUri = "foo"; |
695 o.managedGroupConfiguration = buildManagedGroupConfiguration(); | 712 o.managedGroupConfiguration = buildManagedGroupConfiguration(); |
696 o.numInstances = 42; | 713 o.numInstances = 42; |
697 } | 714 } |
698 buildCounterInstanceGroupConfiguration--; | 715 buildCounterInstanceGroupConfiguration--; |
699 return o; | 716 return o; |
700 } | 717 } |
701 | 718 |
702 checkInstanceGroupConfiguration(api.InstanceGroupConfiguration o) { | 719 checkInstanceGroupConfiguration(api.InstanceGroupConfiguration o) { |
703 buildCounterInstanceGroupConfiguration++; | 720 buildCounterInstanceGroupConfiguration++; |
704 if (buildCounterInstanceGroupConfiguration < 3) { | 721 if (buildCounterInstanceGroupConfiguration < 3) { |
705 checkDiskConfiguration(o.diskConfiguration); | 722 checkDiskConfiguration(o.diskConfiguration); |
706 unittest.expect(o.imageUri, unittest.equals('foo')); | 723 unittest.expect(o.imageUri, unittest.equals('foo')); |
707 checkUnnamed3198(o.instanceNames); | 724 checkUnnamed3289(o.instanceNames); |
708 unittest.expect(o.isPreemptible, unittest.isTrue); | 725 unittest.expect(o.isPreemptible, unittest.isTrue); |
709 unittest.expect(o.machineTypeUri, unittest.equals('foo')); | 726 unittest.expect(o.machineTypeUri, unittest.equals('foo')); |
710 checkManagedGroupConfiguration(o.managedGroupConfiguration); | 727 checkManagedGroupConfiguration(o.managedGroupConfiguration); |
711 unittest.expect(o.numInstances, unittest.equals(42)); | 728 unittest.expect(o.numInstances, unittest.equals(42)); |
712 } | 729 } |
713 buildCounterInstanceGroupConfiguration--; | 730 buildCounterInstanceGroupConfiguration--; |
714 } | 731 } |
715 | 732 |
716 buildUnnamed3199() { | 733 buildUnnamed3290() { |
717 var o = new core.Map<core.String, core.String>(); | 734 var o = new core.Map<core.String, core.String>(); |
718 o["x"] = "foo"; | 735 o["x"] = "foo"; |
719 o["y"] = "foo"; | 736 o["y"] = "foo"; |
720 return o; | 737 return o; |
721 } | 738 } |
722 | 739 |
723 checkUnnamed3199(core.Map<core.String, core.String> o) { | 740 checkUnnamed3290(core.Map<core.String, core.String> o) { |
724 unittest.expect(o, unittest.hasLength(2)); | 741 unittest.expect(o, unittest.hasLength(2)); |
725 unittest.expect(o["x"], unittest.equals('foo')); | 742 unittest.expect(o["x"], unittest.equals('foo')); |
726 unittest.expect(o["y"], unittest.equals('foo')); | 743 unittest.expect(o["y"], unittest.equals('foo')); |
727 } | 744 } |
728 | 745 |
729 buildUnnamed3200() { | 746 buildUnnamed3291() { |
730 var o = new core.List<api.JobStatus>(); | 747 var o = new core.List<api.JobStatus>(); |
731 o.add(buildJobStatus()); | 748 o.add(buildJobStatus()); |
732 o.add(buildJobStatus()); | 749 o.add(buildJobStatus()); |
733 return o; | 750 return o; |
734 } | 751 } |
735 | 752 |
736 checkUnnamed3200(core.List<api.JobStatus> o) { | 753 checkUnnamed3291(core.List<api.JobStatus> o) { |
737 unittest.expect(o, unittest.hasLength(2)); | 754 unittest.expect(o, unittest.hasLength(2)); |
738 checkJobStatus(o[0]); | 755 checkJobStatus(o[0]); |
739 checkJobStatus(o[1]); | 756 checkJobStatus(o[1]); |
740 } | 757 } |
741 | 758 |
742 buildUnnamed3201() { | 759 buildUnnamed3292() { |
743 var o = new core.List<api.YarnApplication>(); | 760 var o = new core.List<api.YarnApplication>(); |
744 o.add(buildYarnApplication()); | 761 o.add(buildYarnApplication()); |
745 o.add(buildYarnApplication()); | 762 o.add(buildYarnApplication()); |
746 return o; | 763 return o; |
747 } | 764 } |
748 | 765 |
749 checkUnnamed3201(core.List<api.YarnApplication> o) { | 766 checkUnnamed3292(core.List<api.YarnApplication> o) { |
750 unittest.expect(o, unittest.hasLength(2)); | 767 unittest.expect(o, unittest.hasLength(2)); |
751 checkYarnApplication(o[0]); | 768 checkYarnApplication(o[0]); |
752 checkYarnApplication(o[1]); | 769 checkYarnApplication(o[1]); |
753 } | 770 } |
754 | 771 |
755 core.int buildCounterJob = 0; | 772 core.int buildCounterJob = 0; |
756 buildJob() { | 773 buildJob() { |
757 var o = new api.Job(); | 774 var o = new api.Job(); |
758 buildCounterJob++; | 775 buildCounterJob++; |
759 if (buildCounterJob < 3) { | 776 if (buildCounterJob < 3) { |
760 o.driverControlFilesUri = "foo"; | 777 o.driverControlFilesUri = "foo"; |
761 o.driverInputResourceUri = "foo"; | 778 o.driverInputResourceUri = "foo"; |
762 o.driverOutputResourceUri = "foo"; | 779 o.driverOutputResourceUri = "foo"; |
763 o.hadoopJob = buildHadoopJob(); | 780 o.hadoopJob = buildHadoopJob(); |
764 o.hiveJob = buildHiveJob(); | 781 o.hiveJob = buildHiveJob(); |
765 o.interactive = true; | 782 o.interactive = true; |
766 o.labels = buildUnnamed3199(); | 783 o.labels = buildUnnamed3290(); |
767 o.pigJob = buildPigJob(); | 784 o.pigJob = buildPigJob(); |
768 o.placement = buildJobPlacement(); | 785 o.placement = buildJobPlacement(); |
769 o.pysparkJob = buildPySparkJob(); | 786 o.pysparkJob = buildPySparkJob(); |
770 o.reference = buildJobReference(); | 787 o.reference = buildJobReference(); |
| 788 o.scheduling = buildJobScheduling(); |
771 o.sparkJob = buildSparkJob(); | 789 o.sparkJob = buildSparkJob(); |
772 o.sparkSqlJob = buildSparkSqlJob(); | 790 o.sparkSqlJob = buildSparkSqlJob(); |
773 o.status = buildJobStatus(); | 791 o.status = buildJobStatus(); |
774 o.statusHistory = buildUnnamed3200(); | 792 o.statusHistory = buildUnnamed3291(); |
775 o.submittedBy = "foo"; | 793 o.submittedBy = "foo"; |
776 o.yarnApplications = buildUnnamed3201(); | 794 o.yarnApplications = buildUnnamed3292(); |
777 } | 795 } |
778 buildCounterJob--; | 796 buildCounterJob--; |
779 return o; | 797 return o; |
780 } | 798 } |
781 | 799 |
782 checkJob(api.Job o) { | 800 checkJob(api.Job o) { |
783 buildCounterJob++; | 801 buildCounterJob++; |
784 if (buildCounterJob < 3) { | 802 if (buildCounterJob < 3) { |
785 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); | 803 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); |
786 unittest.expect(o.driverInputResourceUri, unittest.equals('foo')); | 804 unittest.expect(o.driverInputResourceUri, unittest.equals('foo')); |
787 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); | 805 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); |
788 checkHadoopJob(o.hadoopJob); | 806 checkHadoopJob(o.hadoopJob); |
789 checkHiveJob(o.hiveJob); | 807 checkHiveJob(o.hiveJob); |
790 unittest.expect(o.interactive, unittest.isTrue); | 808 unittest.expect(o.interactive, unittest.isTrue); |
791 checkUnnamed3199(o.labels); | 809 checkUnnamed3290(o.labels); |
792 checkPigJob(o.pigJob); | 810 checkPigJob(o.pigJob); |
793 checkJobPlacement(o.placement); | 811 checkJobPlacement(o.placement); |
794 checkPySparkJob(o.pysparkJob); | 812 checkPySparkJob(o.pysparkJob); |
795 checkJobReference(o.reference); | 813 checkJobReference(o.reference); |
| 814 checkJobScheduling(o.scheduling); |
796 checkSparkJob(o.sparkJob); | 815 checkSparkJob(o.sparkJob); |
797 checkSparkSqlJob(o.sparkSqlJob); | 816 checkSparkSqlJob(o.sparkSqlJob); |
798 checkJobStatus(o.status); | 817 checkJobStatus(o.status); |
799 checkUnnamed3200(o.statusHistory); | 818 checkUnnamed3291(o.statusHistory); |
800 unittest.expect(o.submittedBy, unittest.equals('foo')); | 819 unittest.expect(o.submittedBy, unittest.equals('foo')); |
801 checkUnnamed3201(o.yarnApplications); | 820 checkUnnamed3292(o.yarnApplications); |
802 } | 821 } |
803 buildCounterJob--; | 822 buildCounterJob--; |
804 } | 823 } |
805 | 824 |
806 core.int buildCounterJobPlacement = 0; | 825 core.int buildCounterJobPlacement = 0; |
807 buildJobPlacement() { | 826 buildJobPlacement() { |
808 var o = new api.JobPlacement(); | 827 var o = new api.JobPlacement(); |
809 buildCounterJobPlacement++; | 828 buildCounterJobPlacement++; |
810 if (buildCounterJobPlacement < 3) { | 829 if (buildCounterJobPlacement < 3) { |
811 o.clusterName = "foo"; | 830 o.clusterName = "foo"; |
(...skipping 26 matching lines...) Expand all Loading... |
838 | 857 |
839 checkJobReference(api.JobReference o) { | 858 checkJobReference(api.JobReference o) { |
840 buildCounterJobReference++; | 859 buildCounterJobReference++; |
841 if (buildCounterJobReference < 3) { | 860 if (buildCounterJobReference < 3) { |
842 unittest.expect(o.jobId, unittest.equals('foo')); | 861 unittest.expect(o.jobId, unittest.equals('foo')); |
843 unittest.expect(o.projectId, unittest.equals('foo')); | 862 unittest.expect(o.projectId, unittest.equals('foo')); |
844 } | 863 } |
845 buildCounterJobReference--; | 864 buildCounterJobReference--; |
846 } | 865 } |
847 | 866 |
| 867 core.int buildCounterJobScheduling = 0; |
| 868 buildJobScheduling() { |
| 869 var o = new api.JobScheduling(); |
| 870 buildCounterJobScheduling++; |
| 871 if (buildCounterJobScheduling < 3) { |
| 872 o.maxFailuresPerHour = 42; |
| 873 } |
| 874 buildCounterJobScheduling--; |
| 875 return o; |
| 876 } |
| 877 |
| 878 checkJobScheduling(api.JobScheduling o) { |
| 879 buildCounterJobScheduling++; |
| 880 if (buildCounterJobScheduling < 3) { |
| 881 unittest.expect(o.maxFailuresPerHour, unittest.equals(42)); |
| 882 } |
| 883 buildCounterJobScheduling--; |
| 884 } |
| 885 |
848 core.int buildCounterJobStatus = 0; | 886 core.int buildCounterJobStatus = 0; |
849 buildJobStatus() { | 887 buildJobStatus() { |
850 var o = new api.JobStatus(); | 888 var o = new api.JobStatus(); |
851 buildCounterJobStatus++; | 889 buildCounterJobStatus++; |
852 if (buildCounterJobStatus < 3) { | 890 if (buildCounterJobStatus < 3) { |
853 o.details = "foo"; | 891 o.details = "foo"; |
854 o.state = "foo"; | 892 o.state = "foo"; |
855 o.stateStartTime = "foo"; | 893 o.stateStartTime = "foo"; |
856 } | 894 } |
857 buildCounterJobStatus--; | 895 buildCounterJobStatus--; |
858 return o; | 896 return o; |
859 } | 897 } |
860 | 898 |
861 checkJobStatus(api.JobStatus o) { | 899 checkJobStatus(api.JobStatus o) { |
862 buildCounterJobStatus++; | 900 buildCounterJobStatus++; |
863 if (buildCounterJobStatus < 3) { | 901 if (buildCounterJobStatus < 3) { |
864 unittest.expect(o.details, unittest.equals('foo')); | 902 unittest.expect(o.details, unittest.equals('foo')); |
865 unittest.expect(o.state, unittest.equals('foo')); | 903 unittest.expect(o.state, unittest.equals('foo')); |
866 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 904 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
867 } | 905 } |
868 buildCounterJobStatus--; | 906 buildCounterJobStatus--; |
869 } | 907 } |
870 | 908 |
871 buildUnnamed3202() { | 909 buildUnnamed3293() { |
872 var o = new core.List<api.Cluster>(); | 910 var o = new core.List<api.Cluster>(); |
873 o.add(buildCluster()); | 911 o.add(buildCluster()); |
874 o.add(buildCluster()); | 912 o.add(buildCluster()); |
875 return o; | 913 return o; |
876 } | 914 } |
877 | 915 |
878 checkUnnamed3202(core.List<api.Cluster> o) { | 916 checkUnnamed3293(core.List<api.Cluster> o) { |
879 unittest.expect(o, unittest.hasLength(2)); | 917 unittest.expect(o, unittest.hasLength(2)); |
880 checkCluster(o[0]); | 918 checkCluster(o[0]); |
881 checkCluster(o[1]); | 919 checkCluster(o[1]); |
882 } | 920 } |
883 | 921 |
884 core.int buildCounterListClustersResponse = 0; | 922 core.int buildCounterListClustersResponse = 0; |
885 buildListClustersResponse() { | 923 buildListClustersResponse() { |
886 var o = new api.ListClustersResponse(); | 924 var o = new api.ListClustersResponse(); |
887 buildCounterListClustersResponse++; | 925 buildCounterListClustersResponse++; |
888 if (buildCounterListClustersResponse < 3) { | 926 if (buildCounterListClustersResponse < 3) { |
889 o.clusters = buildUnnamed3202(); | 927 o.clusters = buildUnnamed3293(); |
890 o.nextPageToken = "foo"; | 928 o.nextPageToken = "foo"; |
891 } | 929 } |
892 buildCounterListClustersResponse--; | 930 buildCounterListClustersResponse--; |
893 return o; | 931 return o; |
894 } | 932 } |
895 | 933 |
896 checkListClustersResponse(api.ListClustersResponse o) { | 934 checkListClustersResponse(api.ListClustersResponse o) { |
897 buildCounterListClustersResponse++; | 935 buildCounterListClustersResponse++; |
898 if (buildCounterListClustersResponse < 3) { | 936 if (buildCounterListClustersResponse < 3) { |
899 checkUnnamed3202(o.clusters); | 937 checkUnnamed3293(o.clusters); |
900 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 938 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
901 } | 939 } |
902 buildCounterListClustersResponse--; | 940 buildCounterListClustersResponse--; |
903 } | 941 } |
904 | 942 |
905 buildUnnamed3203() { | 943 buildUnnamed3294() { |
906 var o = new core.List<api.Job>(); | 944 var o = new core.List<api.Job>(); |
907 o.add(buildJob()); | 945 o.add(buildJob()); |
908 o.add(buildJob()); | 946 o.add(buildJob()); |
909 return o; | 947 return o; |
910 } | 948 } |
911 | 949 |
912 checkUnnamed3203(core.List<api.Job> o) { | 950 checkUnnamed3294(core.List<api.Job> o) { |
913 unittest.expect(o, unittest.hasLength(2)); | 951 unittest.expect(o, unittest.hasLength(2)); |
914 checkJob(o[0]); | 952 checkJob(o[0]); |
915 checkJob(o[1]); | 953 checkJob(o[1]); |
916 } | 954 } |
917 | 955 |
918 core.int buildCounterListJobsResponse = 0; | 956 core.int buildCounterListJobsResponse = 0; |
919 buildListJobsResponse() { | 957 buildListJobsResponse() { |
920 var o = new api.ListJobsResponse(); | 958 var o = new api.ListJobsResponse(); |
921 buildCounterListJobsResponse++; | 959 buildCounterListJobsResponse++; |
922 if (buildCounterListJobsResponse < 3) { | 960 if (buildCounterListJobsResponse < 3) { |
923 o.jobs = buildUnnamed3203(); | 961 o.jobs = buildUnnamed3294(); |
924 o.nextPageToken = "foo"; | 962 o.nextPageToken = "foo"; |
925 } | 963 } |
926 buildCounterListJobsResponse--; | 964 buildCounterListJobsResponse--; |
927 return o; | 965 return o; |
928 } | 966 } |
929 | 967 |
930 checkListJobsResponse(api.ListJobsResponse o) { | 968 checkListJobsResponse(api.ListJobsResponse o) { |
931 buildCounterListJobsResponse++; | 969 buildCounterListJobsResponse++; |
932 if (buildCounterListJobsResponse < 3) { | 970 if (buildCounterListJobsResponse < 3) { |
933 checkUnnamed3203(o.jobs); | 971 checkUnnamed3294(o.jobs); |
934 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 972 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
935 } | 973 } |
936 buildCounterListJobsResponse--; | 974 buildCounterListJobsResponse--; |
937 } | 975 } |
938 | 976 |
939 buildUnnamed3204() { | 977 buildUnnamed3295() { |
940 var o = new core.List<api.Operation>(); | 978 var o = new core.List<api.Operation>(); |
941 o.add(buildOperation()); | 979 o.add(buildOperation()); |
942 o.add(buildOperation()); | 980 o.add(buildOperation()); |
943 return o; | 981 return o; |
944 } | 982 } |
945 | 983 |
946 checkUnnamed3204(core.List<api.Operation> o) { | 984 checkUnnamed3295(core.List<api.Operation> o) { |
947 unittest.expect(o, unittest.hasLength(2)); | 985 unittest.expect(o, unittest.hasLength(2)); |
948 checkOperation(o[0]); | 986 checkOperation(o[0]); |
949 checkOperation(o[1]); | 987 checkOperation(o[1]); |
950 } | 988 } |
951 | 989 |
952 core.int buildCounterListOperationsResponse = 0; | 990 core.int buildCounterListOperationsResponse = 0; |
953 buildListOperationsResponse() { | 991 buildListOperationsResponse() { |
954 var o = new api.ListOperationsResponse(); | 992 var o = new api.ListOperationsResponse(); |
955 buildCounterListOperationsResponse++; | 993 buildCounterListOperationsResponse++; |
956 if (buildCounterListOperationsResponse < 3) { | 994 if (buildCounterListOperationsResponse < 3) { |
957 o.nextPageToken = "foo"; | 995 o.nextPageToken = "foo"; |
958 o.operations = buildUnnamed3204(); | 996 o.operations = buildUnnamed3295(); |
959 } | 997 } |
960 buildCounterListOperationsResponse--; | 998 buildCounterListOperationsResponse--; |
961 return o; | 999 return o; |
962 } | 1000 } |
963 | 1001 |
964 checkListOperationsResponse(api.ListOperationsResponse o) { | 1002 checkListOperationsResponse(api.ListOperationsResponse o) { |
965 buildCounterListOperationsResponse++; | 1003 buildCounterListOperationsResponse++; |
966 if (buildCounterListOperationsResponse < 3) { | 1004 if (buildCounterListOperationsResponse < 3) { |
967 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1005 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
968 checkUnnamed3204(o.operations); | 1006 checkUnnamed3295(o.operations); |
969 } | 1007 } |
970 buildCounterListOperationsResponse--; | 1008 buildCounterListOperationsResponse--; |
971 } | 1009 } |
972 | 1010 |
973 buildUnnamed3205() { | 1011 buildUnnamed3296() { |
974 var o = new core.Map<core.String, core.String>(); | 1012 var o = new core.Map<core.String, core.String>(); |
975 o["x"] = "foo"; | 1013 o["x"] = "foo"; |
976 o["y"] = "foo"; | 1014 o["y"] = "foo"; |
977 return o; | 1015 return o; |
978 } | 1016 } |
979 | 1017 |
980 checkUnnamed3205(core.Map<core.String, core.String> o) { | 1018 checkUnnamed3296(core.Map<core.String, core.String> o) { |
981 unittest.expect(o, unittest.hasLength(2)); | 1019 unittest.expect(o, unittest.hasLength(2)); |
982 unittest.expect(o["x"], unittest.equals('foo')); | 1020 unittest.expect(o["x"], unittest.equals('foo')); |
983 unittest.expect(o["y"], unittest.equals('foo')); | 1021 unittest.expect(o["y"], unittest.equals('foo')); |
984 } | 1022 } |
985 | 1023 |
986 core.int buildCounterLoggingConfiguration = 0; | 1024 core.int buildCounterLoggingConfiguration = 0; |
987 buildLoggingConfiguration() { | 1025 buildLoggingConfiguration() { |
988 var o = new api.LoggingConfiguration(); | 1026 var o = new api.LoggingConfiguration(); |
989 buildCounterLoggingConfiguration++; | 1027 buildCounterLoggingConfiguration++; |
990 if (buildCounterLoggingConfiguration < 3) { | 1028 if (buildCounterLoggingConfiguration < 3) { |
991 o.driverLogLevels = buildUnnamed3205(); | 1029 o.driverLogLevels = buildUnnamed3296(); |
992 } | 1030 } |
993 buildCounterLoggingConfiguration--; | 1031 buildCounterLoggingConfiguration--; |
994 return o; | 1032 return o; |
995 } | 1033 } |
996 | 1034 |
997 checkLoggingConfiguration(api.LoggingConfiguration o) { | 1035 checkLoggingConfiguration(api.LoggingConfiguration o) { |
998 buildCounterLoggingConfiguration++; | 1036 buildCounterLoggingConfiguration++; |
999 if (buildCounterLoggingConfiguration < 3) { | 1037 if (buildCounterLoggingConfiguration < 3) { |
1000 checkUnnamed3205(o.driverLogLevels); | 1038 checkUnnamed3296(o.driverLogLevels); |
1001 } | 1039 } |
1002 buildCounterLoggingConfiguration--; | 1040 buildCounterLoggingConfiguration--; |
1003 } | 1041 } |
1004 | 1042 |
1005 core.int buildCounterManagedGroupConfiguration = 0; | 1043 core.int buildCounterManagedGroupConfiguration = 0; |
1006 buildManagedGroupConfiguration() { | 1044 buildManagedGroupConfiguration() { |
1007 var o = new api.ManagedGroupConfiguration(); | 1045 var o = new api.ManagedGroupConfiguration(); |
1008 buildCounterManagedGroupConfiguration++; | 1046 buildCounterManagedGroupConfiguration++; |
1009 if (buildCounterManagedGroupConfiguration < 3) { | 1047 if (buildCounterManagedGroupConfiguration < 3) { |
1010 o.instanceGroupManagerName = "foo"; | 1048 o.instanceGroupManagerName = "foo"; |
(...skipping 26 matching lines...) Expand all Loading... |
1037 | 1075 |
1038 checkNodeInitializationAction(api.NodeInitializationAction o) { | 1076 checkNodeInitializationAction(api.NodeInitializationAction o) { |
1039 buildCounterNodeInitializationAction++; | 1077 buildCounterNodeInitializationAction++; |
1040 if (buildCounterNodeInitializationAction < 3) { | 1078 if (buildCounterNodeInitializationAction < 3) { |
1041 unittest.expect(o.executableFile, unittest.equals('foo')); | 1079 unittest.expect(o.executableFile, unittest.equals('foo')); |
1042 unittest.expect(o.executionTimeout, unittest.equals('foo')); | 1080 unittest.expect(o.executionTimeout, unittest.equals('foo')); |
1043 } | 1081 } |
1044 buildCounterNodeInitializationAction--; | 1082 buildCounterNodeInitializationAction--; |
1045 } | 1083 } |
1046 | 1084 |
1047 buildUnnamed3206() { | 1085 buildUnnamed3297() { |
1048 var o = new core.Map<core.String, core.Object>(); | 1086 var o = new core.Map<core.String, core.Object>(); |
1049 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1087 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1050 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1088 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1051 return o; | 1089 return o; |
1052 } | 1090 } |
1053 | 1091 |
1054 checkUnnamed3206(core.Map<core.String, core.Object> o) { | 1092 checkUnnamed3297(core.Map<core.String, core.Object> o) { |
1055 unittest.expect(o, unittest.hasLength(2)); | 1093 unittest.expect(o, unittest.hasLength(2)); |
1056 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')); | 1094 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')); |
1057 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')); | 1095 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')); |
1058 } | 1096 } |
1059 | 1097 |
1060 buildUnnamed3207() { | 1098 buildUnnamed3298() { |
1061 var o = new core.Map<core.String, core.Object>(); | 1099 var o = new core.Map<core.String, core.Object>(); |
1062 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1100 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1063 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1101 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1064 return o; | 1102 return o; |
1065 } | 1103 } |
1066 | 1104 |
1067 checkUnnamed3207(core.Map<core.String, core.Object> o) { | 1105 checkUnnamed3298(core.Map<core.String, core.Object> o) { |
1068 unittest.expect(o, unittest.hasLength(2)); | 1106 unittest.expect(o, unittest.hasLength(2)); |
1069 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')); | 1107 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')); |
1070 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')); | 1108 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')); |
1071 } | 1109 } |
1072 | 1110 |
1073 core.int buildCounterOperation = 0; | 1111 core.int buildCounterOperation = 0; |
1074 buildOperation() { | 1112 buildOperation() { |
1075 var o = new api.Operation(); | 1113 var o = new api.Operation(); |
1076 buildCounterOperation++; | 1114 buildCounterOperation++; |
1077 if (buildCounterOperation < 3) { | 1115 if (buildCounterOperation < 3) { |
1078 o.done = true; | 1116 o.done = true; |
1079 o.error = buildStatus(); | 1117 o.error = buildStatus(); |
1080 o.metadata = buildUnnamed3206(); | 1118 o.metadata = buildUnnamed3297(); |
1081 o.name = "foo"; | 1119 o.name = "foo"; |
1082 o.response = buildUnnamed3207(); | 1120 o.response = buildUnnamed3298(); |
1083 } | 1121 } |
1084 buildCounterOperation--; | 1122 buildCounterOperation--; |
1085 return o; | 1123 return o; |
1086 } | 1124 } |
1087 | 1125 |
1088 checkOperation(api.Operation o) { | 1126 checkOperation(api.Operation o) { |
1089 buildCounterOperation++; | 1127 buildCounterOperation++; |
1090 if (buildCounterOperation < 3) { | 1128 if (buildCounterOperation < 3) { |
1091 unittest.expect(o.done, unittest.isTrue); | 1129 unittest.expect(o.done, unittest.isTrue); |
1092 checkStatus(o.error); | 1130 checkStatus(o.error); |
1093 checkUnnamed3206(o.metadata); | 1131 checkUnnamed3297(o.metadata); |
1094 unittest.expect(o.name, unittest.equals('foo')); | 1132 unittest.expect(o.name, unittest.equals('foo')); |
1095 checkUnnamed3207(o.response); | 1133 checkUnnamed3298(o.response); |
1096 } | 1134 } |
1097 buildCounterOperation--; | 1135 buildCounterOperation--; |
1098 } | 1136 } |
1099 | 1137 |
1100 buildUnnamed3208() { | 1138 buildUnnamed3299() { |
1101 var o = new core.List<api.OperationStatus>(); | 1139 var o = new core.List<api.OperationStatus>(); |
1102 o.add(buildOperationStatus()); | 1140 o.add(buildOperationStatus()); |
1103 o.add(buildOperationStatus()); | 1141 o.add(buildOperationStatus()); |
1104 return o; | 1142 return o; |
1105 } | 1143 } |
1106 | 1144 |
1107 checkUnnamed3208(core.List<api.OperationStatus> o) { | 1145 checkUnnamed3299(core.List<api.OperationStatus> o) { |
1108 unittest.expect(o, unittest.hasLength(2)); | 1146 unittest.expect(o, unittest.hasLength(2)); |
1109 checkOperationStatus(o[0]); | 1147 checkOperationStatus(o[0]); |
1110 checkOperationStatus(o[1]); | 1148 checkOperationStatus(o[1]); |
1111 } | 1149 } |
1112 | 1150 |
| 1151 buildUnnamed3300() { |
| 1152 var o = new core.List<core.String>(); |
| 1153 o.add("foo"); |
| 1154 o.add("foo"); |
| 1155 return o; |
| 1156 } |
| 1157 |
| 1158 checkUnnamed3300(core.List<core.String> o) { |
| 1159 unittest.expect(o, unittest.hasLength(2)); |
| 1160 unittest.expect(o[0], unittest.equals('foo')); |
| 1161 unittest.expect(o[1], unittest.equals('foo')); |
| 1162 } |
| 1163 |
1113 core.int buildCounterOperationMetadata = 0; | 1164 core.int buildCounterOperationMetadata = 0; |
1114 buildOperationMetadata() { | 1165 buildOperationMetadata() { |
1115 var o = new api.OperationMetadata(); | 1166 var o = new api.OperationMetadata(); |
1116 buildCounterOperationMetadata++; | 1167 buildCounterOperationMetadata++; |
1117 if (buildCounterOperationMetadata < 3) { | 1168 if (buildCounterOperationMetadata < 3) { |
1118 o.clusterName = "foo"; | 1169 o.clusterName = "foo"; |
1119 o.clusterUuid = "foo"; | 1170 o.clusterUuid = "foo"; |
1120 o.description = "foo"; | 1171 o.description = "foo"; |
1121 o.details = "foo"; | 1172 o.details = "foo"; |
1122 o.endTime = "foo"; | 1173 o.endTime = "foo"; |
1123 o.innerState = "foo"; | 1174 o.innerState = "foo"; |
1124 o.insertTime = "foo"; | 1175 o.insertTime = "foo"; |
1125 o.operationType = "foo"; | 1176 o.operationType = "foo"; |
1126 o.startTime = "foo"; | 1177 o.startTime = "foo"; |
1127 o.state = "foo"; | 1178 o.state = "foo"; |
1128 o.status = buildOperationStatus(); | 1179 o.status = buildOperationStatus(); |
1129 o.statusHistory = buildUnnamed3208(); | 1180 o.statusHistory = buildUnnamed3299(); |
| 1181 o.warnings = buildUnnamed3300(); |
1130 } | 1182 } |
1131 buildCounterOperationMetadata--; | 1183 buildCounterOperationMetadata--; |
1132 return o; | 1184 return o; |
1133 } | 1185 } |
1134 | 1186 |
1135 checkOperationMetadata(api.OperationMetadata o) { | 1187 checkOperationMetadata(api.OperationMetadata o) { |
1136 buildCounterOperationMetadata++; | 1188 buildCounterOperationMetadata++; |
1137 if (buildCounterOperationMetadata < 3) { | 1189 if (buildCounterOperationMetadata < 3) { |
1138 unittest.expect(o.clusterName, unittest.equals('foo')); | 1190 unittest.expect(o.clusterName, unittest.equals('foo')); |
1139 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 1191 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
1140 unittest.expect(o.description, unittest.equals('foo')); | 1192 unittest.expect(o.description, unittest.equals('foo')); |
1141 unittest.expect(o.details, unittest.equals('foo')); | 1193 unittest.expect(o.details, unittest.equals('foo')); |
1142 unittest.expect(o.endTime, unittest.equals('foo')); | 1194 unittest.expect(o.endTime, unittest.equals('foo')); |
1143 unittest.expect(o.innerState, unittest.equals('foo')); | 1195 unittest.expect(o.innerState, unittest.equals('foo')); |
1144 unittest.expect(o.insertTime, unittest.equals('foo')); | 1196 unittest.expect(o.insertTime, unittest.equals('foo')); |
1145 unittest.expect(o.operationType, unittest.equals('foo')); | 1197 unittest.expect(o.operationType, unittest.equals('foo')); |
1146 unittest.expect(o.startTime, unittest.equals('foo')); | 1198 unittest.expect(o.startTime, unittest.equals('foo')); |
1147 unittest.expect(o.state, unittest.equals('foo')); | 1199 unittest.expect(o.state, unittest.equals('foo')); |
1148 checkOperationStatus(o.status); | 1200 checkOperationStatus(o.status); |
1149 checkUnnamed3208(o.statusHistory); | 1201 checkUnnamed3299(o.statusHistory); |
| 1202 checkUnnamed3300(o.warnings); |
1150 } | 1203 } |
1151 buildCounterOperationMetadata--; | 1204 buildCounterOperationMetadata--; |
1152 } | 1205 } |
1153 | 1206 |
1154 core.int buildCounterOperationStatus = 0; | 1207 core.int buildCounterOperationStatus = 0; |
1155 buildOperationStatus() { | 1208 buildOperationStatus() { |
1156 var o = new api.OperationStatus(); | 1209 var o = new api.OperationStatus(); |
1157 buildCounterOperationStatus++; | 1210 buildCounterOperationStatus++; |
1158 if (buildCounterOperationStatus < 3) { | 1211 if (buildCounterOperationStatus < 3) { |
1159 o.details = "foo"; | 1212 o.details = "foo"; |
1160 o.innerState = "foo"; | 1213 o.innerState = "foo"; |
1161 o.state = "foo"; | 1214 o.state = "foo"; |
1162 o.stateStartTime = "foo"; | 1215 o.stateStartTime = "foo"; |
1163 } | 1216 } |
1164 buildCounterOperationStatus--; | 1217 buildCounterOperationStatus--; |
1165 return o; | 1218 return o; |
1166 } | 1219 } |
1167 | 1220 |
1168 checkOperationStatus(api.OperationStatus o) { | 1221 checkOperationStatus(api.OperationStatus o) { |
1169 buildCounterOperationStatus++; | 1222 buildCounterOperationStatus++; |
1170 if (buildCounterOperationStatus < 3) { | 1223 if (buildCounterOperationStatus < 3) { |
1171 unittest.expect(o.details, unittest.equals('foo')); | 1224 unittest.expect(o.details, unittest.equals('foo')); |
1172 unittest.expect(o.innerState, unittest.equals('foo')); | 1225 unittest.expect(o.innerState, unittest.equals('foo')); |
1173 unittest.expect(o.state, unittest.equals('foo')); | 1226 unittest.expect(o.state, unittest.equals('foo')); |
1174 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 1227 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
1175 } | 1228 } |
1176 buildCounterOperationStatus--; | 1229 buildCounterOperationStatus--; |
1177 } | 1230 } |
1178 | 1231 |
1179 buildUnnamed3209() { | 1232 buildUnnamed3301() { |
1180 var o = new core.List<core.String>(); | 1233 var o = new core.List<core.String>(); |
1181 o.add("foo"); | 1234 o.add("foo"); |
1182 o.add("foo"); | 1235 o.add("foo"); |
1183 return o; | 1236 return o; |
1184 } | 1237 } |
1185 | 1238 |
1186 checkUnnamed3209(core.List<core.String> o) { | 1239 checkUnnamed3301(core.List<core.String> o) { |
1187 unittest.expect(o, unittest.hasLength(2)); | 1240 unittest.expect(o, unittest.hasLength(2)); |
1188 unittest.expect(o[0], unittest.equals('foo')); | 1241 unittest.expect(o[0], unittest.equals('foo')); |
1189 unittest.expect(o[1], unittest.equals('foo')); | 1242 unittest.expect(o[1], unittest.equals('foo')); |
1190 } | 1243 } |
1191 | 1244 |
1192 buildUnnamed3210() { | 1245 buildUnnamed3302() { |
1193 var o = new core.Map<core.String, core.String>(); | 1246 var o = new core.Map<core.String, core.String>(); |
1194 o["x"] = "foo"; | 1247 o["x"] = "foo"; |
1195 o["y"] = "foo"; | 1248 o["y"] = "foo"; |
1196 return o; | 1249 return o; |
1197 } | 1250 } |
1198 | 1251 |
1199 checkUnnamed3210(core.Map<core.String, core.String> o) { | 1252 checkUnnamed3302(core.Map<core.String, core.String> o) { |
1200 unittest.expect(o, unittest.hasLength(2)); | 1253 unittest.expect(o, unittest.hasLength(2)); |
1201 unittest.expect(o["x"], unittest.equals('foo')); | 1254 unittest.expect(o["x"], unittest.equals('foo')); |
1202 unittest.expect(o["y"], unittest.equals('foo')); | 1255 unittest.expect(o["y"], unittest.equals('foo')); |
1203 } | 1256 } |
1204 | 1257 |
1205 buildUnnamed3211() { | 1258 buildUnnamed3303() { |
1206 var o = new core.Map<core.String, core.String>(); | 1259 var o = new core.Map<core.String, core.String>(); |
1207 o["x"] = "foo"; | 1260 o["x"] = "foo"; |
1208 o["y"] = "foo"; | 1261 o["y"] = "foo"; |
1209 return o; | 1262 return o; |
1210 } | 1263 } |
1211 | 1264 |
1212 checkUnnamed3211(core.Map<core.String, core.String> o) { | 1265 checkUnnamed3303(core.Map<core.String, core.String> o) { |
1213 unittest.expect(o, unittest.hasLength(2)); | 1266 unittest.expect(o, unittest.hasLength(2)); |
1214 unittest.expect(o["x"], unittest.equals('foo')); | 1267 unittest.expect(o["x"], unittest.equals('foo')); |
1215 unittest.expect(o["y"], unittest.equals('foo')); | 1268 unittest.expect(o["y"], unittest.equals('foo')); |
1216 } | 1269 } |
1217 | 1270 |
1218 core.int buildCounterPigJob = 0; | 1271 core.int buildCounterPigJob = 0; |
1219 buildPigJob() { | 1272 buildPigJob() { |
1220 var o = new api.PigJob(); | 1273 var o = new api.PigJob(); |
1221 buildCounterPigJob++; | 1274 buildCounterPigJob++; |
1222 if (buildCounterPigJob < 3) { | 1275 if (buildCounterPigJob < 3) { |
1223 o.continueOnFailure = true; | 1276 o.continueOnFailure = true; |
1224 o.jarFileUris = buildUnnamed3209(); | 1277 o.jarFileUris = buildUnnamed3301(); |
1225 o.loggingConfiguration = buildLoggingConfiguration(); | 1278 o.loggingConfiguration = buildLoggingConfiguration(); |
1226 o.properties = buildUnnamed3210(); | 1279 o.properties = buildUnnamed3302(); |
1227 o.queryFileUri = "foo"; | 1280 o.queryFileUri = "foo"; |
1228 o.queryList = buildQueryList(); | 1281 o.queryList = buildQueryList(); |
1229 o.scriptVariables = buildUnnamed3211(); | 1282 o.scriptVariables = buildUnnamed3303(); |
1230 } | 1283 } |
1231 buildCounterPigJob--; | 1284 buildCounterPigJob--; |
1232 return o; | 1285 return o; |
1233 } | 1286 } |
1234 | 1287 |
1235 checkPigJob(api.PigJob o) { | 1288 checkPigJob(api.PigJob o) { |
1236 buildCounterPigJob++; | 1289 buildCounterPigJob++; |
1237 if (buildCounterPigJob < 3) { | 1290 if (buildCounterPigJob < 3) { |
1238 unittest.expect(o.continueOnFailure, unittest.isTrue); | 1291 unittest.expect(o.continueOnFailure, unittest.isTrue); |
1239 checkUnnamed3209(o.jarFileUris); | 1292 checkUnnamed3301(o.jarFileUris); |
1240 checkLoggingConfiguration(o.loggingConfiguration); | 1293 checkLoggingConfiguration(o.loggingConfiguration); |
1241 checkUnnamed3210(o.properties); | 1294 checkUnnamed3302(o.properties); |
1242 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1295 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
1243 checkQueryList(o.queryList); | 1296 checkQueryList(o.queryList); |
1244 checkUnnamed3211(o.scriptVariables); | 1297 checkUnnamed3303(o.scriptVariables); |
1245 } | 1298 } |
1246 buildCounterPigJob--; | 1299 buildCounterPigJob--; |
1247 } | 1300 } |
1248 | 1301 |
1249 buildUnnamed3212() { | 1302 buildUnnamed3304() { |
1250 var o = new core.List<core.String>(); | 1303 var o = new core.List<core.String>(); |
1251 o.add("foo"); | 1304 o.add("foo"); |
1252 o.add("foo"); | 1305 o.add("foo"); |
1253 return o; | 1306 return o; |
1254 } | 1307 } |
1255 | 1308 |
1256 checkUnnamed3212(core.List<core.String> o) { | 1309 checkUnnamed3304(core.List<core.String> o) { |
1257 unittest.expect(o, unittest.hasLength(2)); | 1310 unittest.expect(o, unittest.hasLength(2)); |
1258 unittest.expect(o[0], unittest.equals('foo')); | 1311 unittest.expect(o[0], unittest.equals('foo')); |
1259 unittest.expect(o[1], unittest.equals('foo')); | 1312 unittest.expect(o[1], unittest.equals('foo')); |
1260 } | 1313 } |
1261 | 1314 |
1262 buildUnnamed3213() { | 1315 buildUnnamed3305() { |
1263 var o = new core.List<core.String>(); | 1316 var o = new core.List<core.String>(); |
1264 o.add("foo"); | 1317 o.add("foo"); |
1265 o.add("foo"); | 1318 o.add("foo"); |
1266 return o; | 1319 return o; |
1267 } | 1320 } |
1268 | 1321 |
1269 checkUnnamed3213(core.List<core.String> o) { | 1322 checkUnnamed3305(core.List<core.String> o) { |
1270 unittest.expect(o, unittest.hasLength(2)); | 1323 unittest.expect(o, unittest.hasLength(2)); |
1271 unittest.expect(o[0], unittest.equals('foo')); | 1324 unittest.expect(o[0], unittest.equals('foo')); |
1272 unittest.expect(o[1], unittest.equals('foo')); | 1325 unittest.expect(o[1], unittest.equals('foo')); |
1273 } | 1326 } |
1274 | 1327 |
1275 buildUnnamed3214() { | 1328 buildUnnamed3306() { |
1276 var o = new core.List<core.String>(); | 1329 var o = new core.List<core.String>(); |
1277 o.add("foo"); | 1330 o.add("foo"); |
1278 o.add("foo"); | 1331 o.add("foo"); |
1279 return o; | 1332 return o; |
1280 } | 1333 } |
1281 | 1334 |
1282 checkUnnamed3214(core.List<core.String> o) { | 1335 checkUnnamed3306(core.List<core.String> o) { |
1283 unittest.expect(o, unittest.hasLength(2)); | 1336 unittest.expect(o, unittest.hasLength(2)); |
1284 unittest.expect(o[0], unittest.equals('foo')); | 1337 unittest.expect(o[0], unittest.equals('foo')); |
1285 unittest.expect(o[1], unittest.equals('foo')); | 1338 unittest.expect(o[1], unittest.equals('foo')); |
1286 } | 1339 } |
1287 | 1340 |
1288 buildUnnamed3215() { | 1341 buildUnnamed3307() { |
1289 var o = new core.List<core.String>(); | 1342 var o = new core.List<core.String>(); |
1290 o.add("foo"); | 1343 o.add("foo"); |
1291 o.add("foo"); | 1344 o.add("foo"); |
1292 return o; | 1345 return o; |
1293 } | 1346 } |
1294 | 1347 |
1295 checkUnnamed3215(core.List<core.String> o) { | 1348 checkUnnamed3307(core.List<core.String> o) { |
1296 unittest.expect(o, unittest.hasLength(2)); | 1349 unittest.expect(o, unittest.hasLength(2)); |
1297 unittest.expect(o[0], unittest.equals('foo')); | 1350 unittest.expect(o[0], unittest.equals('foo')); |
1298 unittest.expect(o[1], unittest.equals('foo')); | 1351 unittest.expect(o[1], unittest.equals('foo')); |
1299 } | 1352 } |
1300 | 1353 |
1301 buildUnnamed3216() { | 1354 buildUnnamed3308() { |
1302 var o = new core.Map<core.String, core.String>(); | 1355 var o = new core.Map<core.String, core.String>(); |
1303 o["x"] = "foo"; | 1356 o["x"] = "foo"; |
1304 o["y"] = "foo"; | 1357 o["y"] = "foo"; |
1305 return o; | 1358 return o; |
1306 } | 1359 } |
1307 | 1360 |
1308 checkUnnamed3216(core.Map<core.String, core.String> o) { | 1361 checkUnnamed3308(core.Map<core.String, core.String> o) { |
1309 unittest.expect(o, unittest.hasLength(2)); | 1362 unittest.expect(o, unittest.hasLength(2)); |
1310 unittest.expect(o["x"], unittest.equals('foo')); | 1363 unittest.expect(o["x"], unittest.equals('foo')); |
1311 unittest.expect(o["y"], unittest.equals('foo')); | 1364 unittest.expect(o["y"], unittest.equals('foo')); |
1312 } | 1365 } |
1313 | 1366 |
1314 buildUnnamed3217() { | 1367 buildUnnamed3309() { |
1315 var o = new core.List<core.String>(); | 1368 var o = new core.List<core.String>(); |
1316 o.add("foo"); | 1369 o.add("foo"); |
1317 o.add("foo"); | 1370 o.add("foo"); |
1318 return o; | 1371 return o; |
1319 } | 1372 } |
1320 | 1373 |
1321 checkUnnamed3217(core.List<core.String> o) { | 1374 checkUnnamed3309(core.List<core.String> o) { |
1322 unittest.expect(o, unittest.hasLength(2)); | 1375 unittest.expect(o, unittest.hasLength(2)); |
1323 unittest.expect(o[0], unittest.equals('foo')); | 1376 unittest.expect(o[0], unittest.equals('foo')); |
1324 unittest.expect(o[1], unittest.equals('foo')); | 1377 unittest.expect(o[1], unittest.equals('foo')); |
1325 } | 1378 } |
1326 | 1379 |
1327 core.int buildCounterPySparkJob = 0; | 1380 core.int buildCounterPySparkJob = 0; |
1328 buildPySparkJob() { | 1381 buildPySparkJob() { |
1329 var o = new api.PySparkJob(); | 1382 var o = new api.PySparkJob(); |
1330 buildCounterPySparkJob++; | 1383 buildCounterPySparkJob++; |
1331 if (buildCounterPySparkJob < 3) { | 1384 if (buildCounterPySparkJob < 3) { |
1332 o.archiveUris = buildUnnamed3212(); | 1385 o.archiveUris = buildUnnamed3304(); |
1333 o.args = buildUnnamed3213(); | 1386 o.args = buildUnnamed3305(); |
1334 o.fileUris = buildUnnamed3214(); | 1387 o.fileUris = buildUnnamed3306(); |
1335 o.jarFileUris = buildUnnamed3215(); | 1388 o.jarFileUris = buildUnnamed3307(); |
1336 o.loggingConfiguration = buildLoggingConfiguration(); | 1389 o.loggingConfiguration = buildLoggingConfiguration(); |
1337 o.mainPythonFileUri = "foo"; | 1390 o.mainPythonFileUri = "foo"; |
1338 o.properties = buildUnnamed3216(); | 1391 o.properties = buildUnnamed3308(); |
1339 o.pythonFileUris = buildUnnamed3217(); | 1392 o.pythonFileUris = buildUnnamed3309(); |
1340 } | 1393 } |
1341 buildCounterPySparkJob--; | 1394 buildCounterPySparkJob--; |
1342 return o; | 1395 return o; |
1343 } | 1396 } |
1344 | 1397 |
1345 checkPySparkJob(api.PySparkJob o) { | 1398 checkPySparkJob(api.PySparkJob o) { |
1346 buildCounterPySparkJob++; | 1399 buildCounterPySparkJob++; |
1347 if (buildCounterPySparkJob < 3) { | 1400 if (buildCounterPySparkJob < 3) { |
1348 checkUnnamed3212(o.archiveUris); | 1401 checkUnnamed3304(o.archiveUris); |
1349 checkUnnamed3213(o.args); | 1402 checkUnnamed3305(o.args); |
1350 checkUnnamed3214(o.fileUris); | 1403 checkUnnamed3306(o.fileUris); |
1351 checkUnnamed3215(o.jarFileUris); | 1404 checkUnnamed3307(o.jarFileUris); |
1352 checkLoggingConfiguration(o.loggingConfiguration); | 1405 checkLoggingConfiguration(o.loggingConfiguration); |
1353 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); | 1406 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); |
1354 checkUnnamed3216(o.properties); | 1407 checkUnnamed3308(o.properties); |
1355 checkUnnamed3217(o.pythonFileUris); | 1408 checkUnnamed3309(o.pythonFileUris); |
1356 } | 1409 } |
1357 buildCounterPySparkJob--; | 1410 buildCounterPySparkJob--; |
1358 } | 1411 } |
1359 | 1412 |
1360 buildUnnamed3218() { | 1413 buildUnnamed3310() { |
1361 var o = new core.List<core.String>(); | 1414 var o = new core.List<core.String>(); |
1362 o.add("foo"); | 1415 o.add("foo"); |
1363 o.add("foo"); | 1416 o.add("foo"); |
1364 return o; | 1417 return o; |
1365 } | 1418 } |
1366 | 1419 |
1367 checkUnnamed3218(core.List<core.String> o) { | 1420 checkUnnamed3310(core.List<core.String> o) { |
1368 unittest.expect(o, unittest.hasLength(2)); | 1421 unittest.expect(o, unittest.hasLength(2)); |
1369 unittest.expect(o[0], unittest.equals('foo')); | 1422 unittest.expect(o[0], unittest.equals('foo')); |
1370 unittest.expect(o[1], unittest.equals('foo')); | 1423 unittest.expect(o[1], unittest.equals('foo')); |
1371 } | 1424 } |
1372 | 1425 |
1373 core.int buildCounterQueryList = 0; | 1426 core.int buildCounterQueryList = 0; |
1374 buildQueryList() { | 1427 buildQueryList() { |
1375 var o = new api.QueryList(); | 1428 var o = new api.QueryList(); |
1376 buildCounterQueryList++; | 1429 buildCounterQueryList++; |
1377 if (buildCounterQueryList < 3) { | 1430 if (buildCounterQueryList < 3) { |
1378 o.queries = buildUnnamed3218(); | 1431 o.queries = buildUnnamed3310(); |
1379 } | 1432 } |
1380 buildCounterQueryList--; | 1433 buildCounterQueryList--; |
1381 return o; | 1434 return o; |
1382 } | 1435 } |
1383 | 1436 |
1384 checkQueryList(api.QueryList o) { | 1437 checkQueryList(api.QueryList o) { |
1385 buildCounterQueryList++; | 1438 buildCounterQueryList++; |
1386 if (buildCounterQueryList < 3) { | 1439 if (buildCounterQueryList < 3) { |
1387 checkUnnamed3218(o.queries); | 1440 checkUnnamed3310(o.queries); |
1388 } | 1441 } |
1389 buildCounterQueryList--; | 1442 buildCounterQueryList--; |
1390 } | 1443 } |
1391 | 1444 |
1392 buildUnnamed3219() { | 1445 buildUnnamed3311() { |
1393 var o = new core.Map<core.String, core.String>(); | 1446 var o = new core.Map<core.String, core.String>(); |
1394 o["x"] = "foo"; | 1447 o["x"] = "foo"; |
1395 o["y"] = "foo"; | 1448 o["y"] = "foo"; |
1396 return o; | 1449 return o; |
1397 } | 1450 } |
1398 | 1451 |
1399 checkUnnamed3219(core.Map<core.String, core.String> o) { | 1452 checkUnnamed3311(core.Map<core.String, core.String> o) { |
1400 unittest.expect(o, unittest.hasLength(2)); | 1453 unittest.expect(o, unittest.hasLength(2)); |
1401 unittest.expect(o["x"], unittest.equals('foo')); | 1454 unittest.expect(o["x"], unittest.equals('foo')); |
1402 unittest.expect(o["y"], unittest.equals('foo')); | 1455 unittest.expect(o["y"], unittest.equals('foo')); |
1403 } | 1456 } |
1404 | 1457 |
1405 core.int buildCounterSoftwareConfiguration = 0; | 1458 core.int buildCounterSoftwareConfiguration = 0; |
1406 buildSoftwareConfiguration() { | 1459 buildSoftwareConfiguration() { |
1407 var o = new api.SoftwareConfiguration(); | 1460 var o = new api.SoftwareConfiguration(); |
1408 buildCounterSoftwareConfiguration++; | 1461 buildCounterSoftwareConfiguration++; |
1409 if (buildCounterSoftwareConfiguration < 3) { | 1462 if (buildCounterSoftwareConfiguration < 3) { |
1410 o.imageVersion = "foo"; | 1463 o.imageVersion = "foo"; |
1411 o.properties = buildUnnamed3219(); | 1464 o.properties = buildUnnamed3311(); |
1412 } | 1465 } |
1413 buildCounterSoftwareConfiguration--; | 1466 buildCounterSoftwareConfiguration--; |
1414 return o; | 1467 return o; |
1415 } | 1468 } |
1416 | 1469 |
1417 checkSoftwareConfiguration(api.SoftwareConfiguration o) { | 1470 checkSoftwareConfiguration(api.SoftwareConfiguration o) { |
1418 buildCounterSoftwareConfiguration++; | 1471 buildCounterSoftwareConfiguration++; |
1419 if (buildCounterSoftwareConfiguration < 3) { | 1472 if (buildCounterSoftwareConfiguration < 3) { |
1420 unittest.expect(o.imageVersion, unittest.equals('foo')); | 1473 unittest.expect(o.imageVersion, unittest.equals('foo')); |
1421 checkUnnamed3219(o.properties); | 1474 checkUnnamed3311(o.properties); |
1422 } | 1475 } |
1423 buildCounterSoftwareConfiguration--; | 1476 buildCounterSoftwareConfiguration--; |
1424 } | 1477 } |
1425 | 1478 |
1426 buildUnnamed3220() { | 1479 buildUnnamed3312() { |
1427 var o = new core.List<core.String>(); | 1480 var o = new core.List<core.String>(); |
1428 o.add("foo"); | 1481 o.add("foo"); |
1429 o.add("foo"); | 1482 o.add("foo"); |
1430 return o; | 1483 return o; |
1431 } | 1484 } |
1432 | 1485 |
1433 checkUnnamed3220(core.List<core.String> o) { | 1486 checkUnnamed3312(core.List<core.String> o) { |
1434 unittest.expect(o, unittest.hasLength(2)); | 1487 unittest.expect(o, unittest.hasLength(2)); |
1435 unittest.expect(o[0], unittest.equals('foo')); | 1488 unittest.expect(o[0], unittest.equals('foo')); |
1436 unittest.expect(o[1], unittest.equals('foo')); | 1489 unittest.expect(o[1], unittest.equals('foo')); |
1437 } | 1490 } |
1438 | 1491 |
1439 buildUnnamed3221() { | 1492 buildUnnamed3313() { |
1440 var o = new core.List<core.String>(); | 1493 var o = new core.List<core.String>(); |
1441 o.add("foo"); | 1494 o.add("foo"); |
1442 o.add("foo"); | 1495 o.add("foo"); |
1443 return o; | 1496 return o; |
1444 } | 1497 } |
1445 | 1498 |
1446 checkUnnamed3221(core.List<core.String> o) { | 1499 checkUnnamed3313(core.List<core.String> o) { |
1447 unittest.expect(o, unittest.hasLength(2)); | 1500 unittest.expect(o, unittest.hasLength(2)); |
1448 unittest.expect(o[0], unittest.equals('foo')); | 1501 unittest.expect(o[0], unittest.equals('foo')); |
1449 unittest.expect(o[1], unittest.equals('foo')); | 1502 unittest.expect(o[1], unittest.equals('foo')); |
1450 } | 1503 } |
1451 | 1504 |
1452 buildUnnamed3222() { | 1505 buildUnnamed3314() { |
1453 var o = new core.List<core.String>(); | 1506 var o = new core.List<core.String>(); |
1454 o.add("foo"); | 1507 o.add("foo"); |
1455 o.add("foo"); | 1508 o.add("foo"); |
1456 return o; | 1509 return o; |
1457 } | 1510 } |
1458 | 1511 |
1459 checkUnnamed3222(core.List<core.String> o) { | 1512 checkUnnamed3314(core.List<core.String> o) { |
1460 unittest.expect(o, unittest.hasLength(2)); | 1513 unittest.expect(o, unittest.hasLength(2)); |
1461 unittest.expect(o[0], unittest.equals('foo')); | 1514 unittest.expect(o[0], unittest.equals('foo')); |
1462 unittest.expect(o[1], unittest.equals('foo')); | 1515 unittest.expect(o[1], unittest.equals('foo')); |
1463 } | 1516 } |
1464 | 1517 |
1465 buildUnnamed3223() { | 1518 buildUnnamed3315() { |
1466 var o = new core.List<core.String>(); | 1519 var o = new core.List<core.String>(); |
1467 o.add("foo"); | 1520 o.add("foo"); |
1468 o.add("foo"); | 1521 o.add("foo"); |
1469 return o; | 1522 return o; |
1470 } | 1523 } |
1471 | 1524 |
1472 checkUnnamed3223(core.List<core.String> o) { | 1525 checkUnnamed3315(core.List<core.String> o) { |
1473 unittest.expect(o, unittest.hasLength(2)); | 1526 unittest.expect(o, unittest.hasLength(2)); |
1474 unittest.expect(o[0], unittest.equals('foo')); | 1527 unittest.expect(o[0], unittest.equals('foo')); |
1475 unittest.expect(o[1], unittest.equals('foo')); | 1528 unittest.expect(o[1], unittest.equals('foo')); |
1476 } | 1529 } |
1477 | 1530 |
1478 buildUnnamed3224() { | 1531 buildUnnamed3316() { |
1479 var o = new core.Map<core.String, core.String>(); | 1532 var o = new core.Map<core.String, core.String>(); |
1480 o["x"] = "foo"; | 1533 o["x"] = "foo"; |
1481 o["y"] = "foo"; | 1534 o["y"] = "foo"; |
1482 return o; | 1535 return o; |
1483 } | 1536 } |
1484 | 1537 |
1485 checkUnnamed3224(core.Map<core.String, core.String> o) { | 1538 checkUnnamed3316(core.Map<core.String, core.String> o) { |
1486 unittest.expect(o, unittest.hasLength(2)); | 1539 unittest.expect(o, unittest.hasLength(2)); |
1487 unittest.expect(o["x"], unittest.equals('foo')); | 1540 unittest.expect(o["x"], unittest.equals('foo')); |
1488 unittest.expect(o["y"], unittest.equals('foo')); | 1541 unittest.expect(o["y"], unittest.equals('foo')); |
1489 } | 1542 } |
1490 | 1543 |
1491 core.int buildCounterSparkJob = 0; | 1544 core.int buildCounterSparkJob = 0; |
1492 buildSparkJob() { | 1545 buildSparkJob() { |
1493 var o = new api.SparkJob(); | 1546 var o = new api.SparkJob(); |
1494 buildCounterSparkJob++; | 1547 buildCounterSparkJob++; |
1495 if (buildCounterSparkJob < 3) { | 1548 if (buildCounterSparkJob < 3) { |
1496 o.archiveUris = buildUnnamed3220(); | 1549 o.archiveUris = buildUnnamed3312(); |
1497 o.args = buildUnnamed3221(); | 1550 o.args = buildUnnamed3313(); |
1498 o.fileUris = buildUnnamed3222(); | 1551 o.fileUris = buildUnnamed3314(); |
1499 o.jarFileUris = buildUnnamed3223(); | 1552 o.jarFileUris = buildUnnamed3315(); |
1500 o.loggingConfiguration = buildLoggingConfiguration(); | 1553 o.loggingConfiguration = buildLoggingConfiguration(); |
1501 o.mainClass = "foo"; | 1554 o.mainClass = "foo"; |
1502 o.mainJarFileUri = "foo"; | 1555 o.mainJarFileUri = "foo"; |
1503 o.properties = buildUnnamed3224(); | 1556 o.properties = buildUnnamed3316(); |
1504 } | 1557 } |
1505 buildCounterSparkJob--; | 1558 buildCounterSparkJob--; |
1506 return o; | 1559 return o; |
1507 } | 1560 } |
1508 | 1561 |
1509 checkSparkJob(api.SparkJob o) { | 1562 checkSparkJob(api.SparkJob o) { |
1510 buildCounterSparkJob++; | 1563 buildCounterSparkJob++; |
1511 if (buildCounterSparkJob < 3) { | 1564 if (buildCounterSparkJob < 3) { |
1512 checkUnnamed3220(o.archiveUris); | 1565 checkUnnamed3312(o.archiveUris); |
1513 checkUnnamed3221(o.args); | 1566 checkUnnamed3313(o.args); |
1514 checkUnnamed3222(o.fileUris); | 1567 checkUnnamed3314(o.fileUris); |
1515 checkUnnamed3223(o.jarFileUris); | 1568 checkUnnamed3315(o.jarFileUris); |
1516 checkLoggingConfiguration(o.loggingConfiguration); | 1569 checkLoggingConfiguration(o.loggingConfiguration); |
1517 unittest.expect(o.mainClass, unittest.equals('foo')); | 1570 unittest.expect(o.mainClass, unittest.equals('foo')); |
1518 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 1571 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
1519 checkUnnamed3224(o.properties); | 1572 checkUnnamed3316(o.properties); |
1520 } | 1573 } |
1521 buildCounterSparkJob--; | 1574 buildCounterSparkJob--; |
1522 } | 1575 } |
1523 | 1576 |
1524 buildUnnamed3225() { | 1577 buildUnnamed3317() { |
1525 var o = new core.List<core.String>(); | 1578 var o = new core.List<core.String>(); |
1526 o.add("foo"); | 1579 o.add("foo"); |
1527 o.add("foo"); | 1580 o.add("foo"); |
1528 return o; | 1581 return o; |
1529 } | 1582 } |
1530 | 1583 |
1531 checkUnnamed3225(core.List<core.String> o) { | 1584 checkUnnamed3317(core.List<core.String> o) { |
1532 unittest.expect(o, unittest.hasLength(2)); | 1585 unittest.expect(o, unittest.hasLength(2)); |
1533 unittest.expect(o[0], unittest.equals('foo')); | 1586 unittest.expect(o[0], unittest.equals('foo')); |
1534 unittest.expect(o[1], unittest.equals('foo')); | 1587 unittest.expect(o[1], unittest.equals('foo')); |
1535 } | 1588 } |
1536 | 1589 |
1537 buildUnnamed3226() { | 1590 buildUnnamed3318() { |
1538 var o = new core.Map<core.String, core.String>(); | 1591 var o = new core.Map<core.String, core.String>(); |
1539 o["x"] = "foo"; | 1592 o["x"] = "foo"; |
1540 o["y"] = "foo"; | 1593 o["y"] = "foo"; |
1541 return o; | 1594 return o; |
1542 } | 1595 } |
1543 | 1596 |
1544 checkUnnamed3226(core.Map<core.String, core.String> o) { | 1597 checkUnnamed3318(core.Map<core.String, core.String> o) { |
1545 unittest.expect(o, unittest.hasLength(2)); | 1598 unittest.expect(o, unittest.hasLength(2)); |
1546 unittest.expect(o["x"], unittest.equals('foo')); | 1599 unittest.expect(o["x"], unittest.equals('foo')); |
1547 unittest.expect(o["y"], unittest.equals('foo')); | 1600 unittest.expect(o["y"], unittest.equals('foo')); |
1548 } | 1601 } |
1549 | 1602 |
1550 buildUnnamed3227() { | 1603 buildUnnamed3319() { |
1551 var o = new core.Map<core.String, core.String>(); | 1604 var o = new core.Map<core.String, core.String>(); |
1552 o["x"] = "foo"; | 1605 o["x"] = "foo"; |
1553 o["y"] = "foo"; | 1606 o["y"] = "foo"; |
1554 return o; | 1607 return o; |
1555 } | 1608 } |
1556 | 1609 |
1557 checkUnnamed3227(core.Map<core.String, core.String> o) { | 1610 checkUnnamed3319(core.Map<core.String, core.String> o) { |
1558 unittest.expect(o, unittest.hasLength(2)); | 1611 unittest.expect(o, unittest.hasLength(2)); |
1559 unittest.expect(o["x"], unittest.equals('foo')); | 1612 unittest.expect(o["x"], unittest.equals('foo')); |
1560 unittest.expect(o["y"], unittest.equals('foo')); | 1613 unittest.expect(o["y"], unittest.equals('foo')); |
1561 } | 1614 } |
1562 | 1615 |
1563 core.int buildCounterSparkSqlJob = 0; | 1616 core.int buildCounterSparkSqlJob = 0; |
1564 buildSparkSqlJob() { | 1617 buildSparkSqlJob() { |
1565 var o = new api.SparkSqlJob(); | 1618 var o = new api.SparkSqlJob(); |
1566 buildCounterSparkSqlJob++; | 1619 buildCounterSparkSqlJob++; |
1567 if (buildCounterSparkSqlJob < 3) { | 1620 if (buildCounterSparkSqlJob < 3) { |
1568 o.jarFileUris = buildUnnamed3225(); | 1621 o.jarFileUris = buildUnnamed3317(); |
1569 o.loggingConfiguration = buildLoggingConfiguration(); | 1622 o.loggingConfiguration = buildLoggingConfiguration(); |
1570 o.properties = buildUnnamed3226(); | 1623 o.properties = buildUnnamed3318(); |
1571 o.queryFileUri = "foo"; | 1624 o.queryFileUri = "foo"; |
1572 o.queryList = buildQueryList(); | 1625 o.queryList = buildQueryList(); |
1573 o.scriptVariables = buildUnnamed3227(); | 1626 o.scriptVariables = buildUnnamed3319(); |
1574 } | 1627 } |
1575 buildCounterSparkSqlJob--; | 1628 buildCounterSparkSqlJob--; |
1576 return o; | 1629 return o; |
1577 } | 1630 } |
1578 | 1631 |
1579 checkSparkSqlJob(api.SparkSqlJob o) { | 1632 checkSparkSqlJob(api.SparkSqlJob o) { |
1580 buildCounterSparkSqlJob++; | 1633 buildCounterSparkSqlJob++; |
1581 if (buildCounterSparkSqlJob < 3) { | 1634 if (buildCounterSparkSqlJob < 3) { |
1582 checkUnnamed3225(o.jarFileUris); | 1635 checkUnnamed3317(o.jarFileUris); |
1583 checkLoggingConfiguration(o.loggingConfiguration); | 1636 checkLoggingConfiguration(o.loggingConfiguration); |
1584 checkUnnamed3226(o.properties); | 1637 checkUnnamed3318(o.properties); |
1585 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1638 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
1586 checkQueryList(o.queryList); | 1639 checkQueryList(o.queryList); |
1587 checkUnnamed3227(o.scriptVariables); | 1640 checkUnnamed3319(o.scriptVariables); |
1588 } | 1641 } |
1589 buildCounterSparkSqlJob--; | 1642 buildCounterSparkSqlJob--; |
1590 } | 1643 } |
1591 | 1644 |
1592 buildUnnamed3228() { | 1645 buildUnnamed3320() { |
1593 var o = new core.Map<core.String, core.Object>(); | 1646 var o = new core.Map<core.String, core.Object>(); |
1594 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1647 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1595 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1648 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1596 return o; | 1649 return o; |
1597 } | 1650 } |
1598 | 1651 |
1599 checkUnnamed3228(core.Map<core.String, core.Object> o) { | 1652 checkUnnamed3320(core.Map<core.String, core.Object> o) { |
1600 unittest.expect(o, unittest.hasLength(2)); | 1653 unittest.expect(o, unittest.hasLength(2)); |
1601 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')); | 1654 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')); |
1602 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')); | 1655 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')); |
1603 } | 1656 } |
1604 | 1657 |
1605 buildUnnamed3229() { | 1658 buildUnnamed3321() { |
1606 var o = new core.List<core.Map<core.String, core.Object>>(); | 1659 var o = new core.List<core.Map<core.String, core.Object>>(); |
1607 o.add(buildUnnamed3228()); | 1660 o.add(buildUnnamed3320()); |
1608 o.add(buildUnnamed3228()); | 1661 o.add(buildUnnamed3320()); |
1609 return o; | 1662 return o; |
1610 } | 1663 } |
1611 | 1664 |
1612 checkUnnamed3229(core.List<core.Map<core.String, core.Object>> o) { | 1665 checkUnnamed3321(core.List<core.Map<core.String, core.Object>> o) { |
1613 unittest.expect(o, unittest.hasLength(2)); | 1666 unittest.expect(o, unittest.hasLength(2)); |
1614 checkUnnamed3228(o[0]); | 1667 checkUnnamed3320(o[0]); |
1615 checkUnnamed3228(o[1]); | 1668 checkUnnamed3320(o[1]); |
1616 } | 1669 } |
1617 | 1670 |
1618 core.int buildCounterStatus = 0; | 1671 core.int buildCounterStatus = 0; |
1619 buildStatus() { | 1672 buildStatus() { |
1620 var o = new api.Status(); | 1673 var o = new api.Status(); |
1621 buildCounterStatus++; | 1674 buildCounterStatus++; |
1622 if (buildCounterStatus < 3) { | 1675 if (buildCounterStatus < 3) { |
1623 o.code = 42; | 1676 o.code = 42; |
1624 o.details = buildUnnamed3229(); | 1677 o.details = buildUnnamed3321(); |
1625 o.message = "foo"; | 1678 o.message = "foo"; |
1626 } | 1679 } |
1627 buildCounterStatus--; | 1680 buildCounterStatus--; |
1628 return o; | 1681 return o; |
1629 } | 1682 } |
1630 | 1683 |
1631 checkStatus(api.Status o) { | 1684 checkStatus(api.Status o) { |
1632 buildCounterStatus++; | 1685 buildCounterStatus++; |
1633 if (buildCounterStatus < 3) { | 1686 if (buildCounterStatus < 3) { |
1634 unittest.expect(o.code, unittest.equals(42)); | 1687 unittest.expect(o.code, unittest.equals(42)); |
1635 checkUnnamed3229(o.details); | 1688 checkUnnamed3321(o.details); |
1636 unittest.expect(o.message, unittest.equals('foo')); | 1689 unittest.expect(o.message, unittest.equals('foo')); |
1637 } | 1690 } |
1638 buildCounterStatus--; | 1691 buildCounterStatus--; |
1639 } | 1692 } |
1640 | 1693 |
1641 core.int buildCounterSubmitJobRequest = 0; | 1694 core.int buildCounterSubmitJobRequest = 0; |
1642 buildSubmitJobRequest() { | 1695 buildSubmitJobRequest() { |
1643 var o = new api.SubmitJobRequest(); | 1696 var o = new api.SubmitJobRequest(); |
1644 buildCounterSubmitJobRequest++; | 1697 buildCounterSubmitJobRequest++; |
1645 if (buildCounterSubmitJobRequest < 3) { | 1698 if (buildCounterSubmitJobRequest < 3) { |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1857 | 1910 |
1858 unittest.group("obj-schema-JobReference", () { | 1911 unittest.group("obj-schema-JobReference", () { |
1859 unittest.test("to-json--from-json", () { | 1912 unittest.test("to-json--from-json", () { |
1860 var o = buildJobReference(); | 1913 var o = buildJobReference(); |
1861 var od = new api.JobReference.fromJson(o.toJson()); | 1914 var od = new api.JobReference.fromJson(o.toJson()); |
1862 checkJobReference(od); | 1915 checkJobReference(od); |
1863 }); | 1916 }); |
1864 }); | 1917 }); |
1865 | 1918 |
1866 | 1919 |
| 1920 unittest.group("obj-schema-JobScheduling", () { |
| 1921 unittest.test("to-json--from-json", () { |
| 1922 var o = buildJobScheduling(); |
| 1923 var od = new api.JobScheduling.fromJson(o.toJson()); |
| 1924 checkJobScheduling(od); |
| 1925 }); |
| 1926 }); |
| 1927 |
| 1928 |
1867 unittest.group("obj-schema-JobStatus", () { | 1929 unittest.group("obj-schema-JobStatus", () { |
1868 unittest.test("to-json--from-json", () { | 1930 unittest.test("to-json--from-json", () { |
1869 var o = buildJobStatus(); | 1931 var o = buildJobStatus(); |
1870 var od = new api.JobStatus.fromJson(o.toJson()); | 1932 var od = new api.JobStatus.fromJson(o.toJson()); |
1871 checkJobStatus(od); | 1933 checkJobStatus(od); |
1872 }); | 1934 }); |
1873 }); | 1935 }); |
1874 | 1936 |
1875 | 1937 |
1876 unittest.group("obj-schema-ListClustersResponse", () { | 1938 unittest.group("obj-schema-ListClustersResponse", () { |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2173 res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { | 2235 res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { |
2174 checkOperation(response); | 2236 checkOperation(response); |
2175 }))); | 2237 }))); |
2176 }); | 2238 }); |
2177 | 2239 |
2178 unittest.test("method--list", () { | 2240 unittest.test("method--list", () { |
2179 | 2241 |
2180 var mock = new HttpServerMock(); | 2242 var mock = new HttpServerMock(); |
2181 api.OperationsResourceApi res = new api.DataprocApi(mock).operations; | 2243 api.OperationsResourceApi res = new api.DataprocApi(mock).operations; |
2182 var arg_name = "foo"; | 2244 var arg_name = "foo"; |
| 2245 var arg_pageToken = "foo"; |
| 2246 var arg_pageSize = 42; |
2183 var arg_filter = "foo"; | 2247 var arg_filter = "foo"; |
2184 var arg_pageSize = 42; | |
2185 var arg_pageToken = "foo"; | |
2186 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2248 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2187 var path = (req.url).path; | 2249 var path = (req.url).path; |
2188 var pathOffset = 0; | 2250 var pathOffset = 0; |
2189 var index; | 2251 var index; |
2190 var subPart; | 2252 var subPart; |
2191 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2253 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2192 pathOffset += 1; | 2254 pathOffset += 1; |
2193 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta1/")); | 2255 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta1/")); |
2194 pathOffset += 8; | 2256 pathOffset += 8; |
2195 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 2257 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
2196 | 2258 |
2197 var query = (req.url).query; | 2259 var query = (req.url).query; |
2198 var queryOffset = 0; | 2260 var queryOffset = 0; |
2199 var queryMap = {}; | 2261 var queryMap = {}; |
2200 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2262 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2201 parseBool(n) { | 2263 parseBool(n) { |
2202 if (n == "true") return true; | 2264 if (n == "true") return true; |
2203 if (n == "false") return false; | 2265 if (n == "false") return false; |
2204 if (n == null) return null; | 2266 if (n == null) return null; |
2205 throw new core.ArgumentError("Invalid boolean: $n"); | 2267 throw new core.ArgumentError("Invalid boolean: $n"); |
2206 } | 2268 } |
2207 if (query.length > 0) { | 2269 if (query.length > 0) { |
2208 for (var part in query.split("&")) { | 2270 for (var part in query.split("&")) { |
2209 var keyvalue = part.split("="); | 2271 var keyvalue = part.split("="); |
2210 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2272 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2211 } | 2273 } |
2212 } | 2274 } |
| 2275 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2276 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2213 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 2277 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
2214 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
2215 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
2216 | 2278 |
2217 | 2279 |
2218 var h = { | 2280 var h = { |
2219 "content-type" : "application/json; charset=utf-8", | 2281 "content-type" : "application/json; charset=utf-8", |
2220 }; | 2282 }; |
2221 var resp = convert.JSON.encode(buildListOperationsResponse()); | 2283 var resp = convert.JSON.encode(buildListOperationsResponse()); |
2222 return new async.Future.value(stringResponse(200, h, resp)); | 2284 return new async.Future.value(stringResponse(200, h, resp)); |
2223 }), true); | 2285 }), true); |
2224 res.list(arg_name, filter: arg_filter, pageSize: arg_pageSize, pageToken:
arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response)
{ | 2286 res.list(arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filte
r: arg_filter).then(unittest.expectAsync(((api.ListOperationsResponse response)
{ |
2225 checkListOperationsResponse(response); | 2287 checkListOperationsResponse(response); |
2226 }))); | 2288 }))); |
2227 }); | 2289 }); |
2228 | 2290 |
2229 }); | 2291 }); |
2230 | 2292 |
2231 | 2293 |
2232 unittest.group("resource-ProjectsClustersResourceApi", () { | 2294 unittest.group("resource-ProjectsClustersResourceApi", () { |
2233 unittest.test("method--create", () { | 2295 unittest.test("method--create", () { |
2234 | 2296 |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2457 checkCluster(response); | 2519 checkCluster(response); |
2458 }))); | 2520 }))); |
2459 }); | 2521 }); |
2460 | 2522 |
2461 unittest.test("method--list", () { | 2523 unittest.test("method--list", () { |
2462 | 2524 |
2463 var mock = new HttpServerMock(); | 2525 var mock = new HttpServerMock(); |
2464 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; | 2526 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; |
2465 var arg_projectId = "foo"; | 2527 var arg_projectId = "foo"; |
2466 var arg_filter = "foo"; | 2528 var arg_filter = "foo"; |
| 2529 var arg_pageToken = "foo"; |
2467 var arg_pageSize = 42; | 2530 var arg_pageSize = 42; |
2468 var arg_pageToken = "foo"; | |
2469 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2531 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2470 var path = (req.url).path; | 2532 var path = (req.url).path; |
2471 var pathOffset = 0; | 2533 var pathOffset = 0; |
2472 var index; | 2534 var index; |
2473 var subPart; | 2535 var subPart; |
2474 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2536 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2475 pathOffset += 1; | 2537 pathOffset += 1; |
2476 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); | 2538 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); |
2477 pathOffset += 17; | 2539 pathOffset += 17; |
2478 index = path.indexOf("/clusters", pathOffset); | 2540 index = path.indexOf("/clusters", pathOffset); |
(...skipping 14 matching lines...) Expand all Loading... |
2493 if (n == null) return null; | 2555 if (n == null) return null; |
2494 throw new core.ArgumentError("Invalid boolean: $n"); | 2556 throw new core.ArgumentError("Invalid boolean: $n"); |
2495 } | 2557 } |
2496 if (query.length > 0) { | 2558 if (query.length > 0) { |
2497 for (var part in query.split("&")) { | 2559 for (var part in query.split("&")) { |
2498 var keyvalue = part.split("="); | 2560 var keyvalue = part.split("="); |
2499 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2561 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2500 } | 2562 } |
2501 } | 2563 } |
2502 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 2564 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 2565 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2503 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2566 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2504 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
2505 | 2567 |
2506 | 2568 |
2507 var h = { | 2569 var h = { |
2508 "content-type" : "application/json; charset=utf-8", | 2570 "content-type" : "application/json; charset=utf-8", |
2509 }; | 2571 }; |
2510 var resp = convert.JSON.encode(buildListClustersResponse()); | 2572 var resp = convert.JSON.encode(buildListClustersResponse()); |
2511 return new async.Future.value(stringResponse(200, h, resp)); | 2573 return new async.Future.value(stringResponse(200, h, resp)); |
2512 }), true); | 2574 }), true); |
2513 res.list(arg_projectId, filter: arg_filter, pageSize: arg_pageSize, pageTo
ken: arg_pageToken).then(unittest.expectAsync(((api.ListClustersResponse respons
e) { | 2575 res.list(arg_projectId, filter: arg_filter, pageToken: arg_pageToken, page
Size: arg_pageSize).then(unittest.expectAsync(((api.ListClustersResponse respons
e) { |
2514 checkListClustersResponse(response); | 2576 checkListClustersResponse(response); |
2515 }))); | 2577 }))); |
2516 }); | 2578 }); |
2517 | 2579 |
2518 unittest.test("method--patch", () { | 2580 unittest.test("method--patch", () { |
2519 | 2581 |
2520 var mock = new HttpServerMock(); | 2582 var mock = new HttpServerMock(); |
2521 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; | 2583 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; |
2522 var arg_request = buildCluster(); | 2584 var arg_request = buildCluster(); |
2523 var arg_projectId = "foo"; | 2585 var arg_projectId = "foo"; |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2751 res.get(arg_projectId, arg_jobId).then(unittest.expectAsync(((api.Job resp
onse) { | 2813 res.get(arg_projectId, arg_jobId).then(unittest.expectAsync(((api.Job resp
onse) { |
2752 checkJob(response); | 2814 checkJob(response); |
2753 }))); | 2815 }))); |
2754 }); | 2816 }); |
2755 | 2817 |
2756 unittest.test("method--list", () { | 2818 unittest.test("method--list", () { |
2757 | 2819 |
2758 var mock = new HttpServerMock(); | 2820 var mock = new HttpServerMock(); |
2759 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; | 2821 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; |
2760 var arg_projectId = "foo"; | 2822 var arg_projectId = "foo"; |
| 2823 var arg_pageToken = "foo"; |
2761 var arg_pageSize = 42; | 2824 var arg_pageSize = 42; |
2762 var arg_pageToken = "foo"; | |
2763 var arg_clusterName = "foo"; | 2825 var arg_clusterName = "foo"; |
| 2826 var arg_filter = "foo"; |
2764 var arg_jobStateMatcher = "foo"; | 2827 var arg_jobStateMatcher = "foo"; |
2765 var arg_filter = "foo"; | |
2766 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2828 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2767 var path = (req.url).path; | 2829 var path = (req.url).path; |
2768 var pathOffset = 0; | 2830 var pathOffset = 0; |
2769 var index; | 2831 var index; |
2770 var subPart; | 2832 var subPart; |
2771 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2833 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2772 pathOffset += 1; | 2834 pathOffset += 1; |
2773 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); | 2835 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); |
2774 pathOffset += 17; | 2836 pathOffset += 17; |
2775 index = path.indexOf("/jobs", pathOffset); | 2837 index = path.indexOf("/jobs", pathOffset); |
(...skipping 13 matching lines...) Expand all Loading... |
2789 if (n == "false") return false; | 2851 if (n == "false") return false; |
2790 if (n == null) return null; | 2852 if (n == null) return null; |
2791 throw new core.ArgumentError("Invalid boolean: $n"); | 2853 throw new core.ArgumentError("Invalid boolean: $n"); |
2792 } | 2854 } |
2793 if (query.length > 0) { | 2855 if (query.length > 0) { |
2794 for (var part in query.split("&")) { | 2856 for (var part in query.split("&")) { |
2795 var keyvalue = part.split("="); | 2857 var keyvalue = part.split("="); |
2796 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2858 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2797 } | 2859 } |
2798 } | 2860 } |
| 2861 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2799 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2862 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2800 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
2801 unittest.expect(queryMap["clusterName"].first, unittest.equals(arg_clust
erName)); | 2863 unittest.expect(queryMap["clusterName"].first, unittest.equals(arg_clust
erName)); |
| 2864 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
2802 unittest.expect(queryMap["jobStateMatcher"].first, unittest.equals(arg_j
obStateMatcher)); | 2865 unittest.expect(queryMap["jobStateMatcher"].first, unittest.equals(arg_j
obStateMatcher)); |
2803 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
2804 | 2866 |
2805 | 2867 |
2806 var h = { | 2868 var h = { |
2807 "content-type" : "application/json; charset=utf-8", | 2869 "content-type" : "application/json; charset=utf-8", |
2808 }; | 2870 }; |
2809 var resp = convert.JSON.encode(buildListJobsResponse()); | 2871 var resp = convert.JSON.encode(buildListJobsResponse()); |
2810 return new async.Future.value(stringResponse(200, h, resp)); | 2872 return new async.Future.value(stringResponse(200, h, resp)); |
2811 }), true); | 2873 }), true); |
2812 res.list(arg_projectId, pageSize: arg_pageSize, pageToken: arg_pageToken,
clusterName: arg_clusterName, jobStateMatcher: arg_jobStateMatcher, filter: arg_
filter).then(unittest.expectAsync(((api.ListJobsResponse response) { | 2874 res.list(arg_projectId, pageToken: arg_pageToken, pageSize: arg_pageSize,
clusterName: arg_clusterName, filter: arg_filter, jobStateMatcher: arg_jobStateM
atcher).then(unittest.expectAsync(((api.ListJobsResponse response) { |
2813 checkListJobsResponse(response); | 2875 checkListJobsResponse(response); |
2814 }))); | 2876 }))); |
2815 }); | 2877 }); |
2816 | 2878 |
| 2879 unittest.test("method--patch", () { |
| 2880 |
| 2881 var mock = new HttpServerMock(); |
| 2882 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; |
| 2883 var arg_request = buildJob(); |
| 2884 var arg_projectId = "foo"; |
| 2885 var arg_jobId = "foo"; |
| 2886 var arg_updateMask = "foo"; |
| 2887 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2888 var obj = new api.Job.fromJson(json); |
| 2889 checkJob(obj); |
| 2890 |
| 2891 var path = (req.url).path; |
| 2892 var pathOffset = 0; |
| 2893 var index; |
| 2894 var subPart; |
| 2895 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2896 pathOffset += 1; |
| 2897 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); |
| 2898 pathOffset += 17; |
| 2899 index = path.indexOf("/jobs/", pathOffset); |
| 2900 unittest.expect(index >= 0, unittest.isTrue); |
| 2901 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2902 pathOffset = index; |
| 2903 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 2904 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/jobs/")); |
| 2905 pathOffset += 6; |
| 2906 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 2907 pathOffset = path.length; |
| 2908 unittest.expect(subPart, unittest.equals("$arg_jobId")); |
| 2909 |
| 2910 var query = (req.url).query; |
| 2911 var queryOffset = 0; |
| 2912 var queryMap = {}; |
| 2913 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2914 parseBool(n) { |
| 2915 if (n == "true") return true; |
| 2916 if (n == "false") return false; |
| 2917 if (n == null) return null; |
| 2918 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2919 } |
| 2920 if (query.length > 0) { |
| 2921 for (var part in query.split("&")) { |
| 2922 var keyvalue = part.split("="); |
| 2923 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2924 } |
| 2925 } |
| 2926 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); |
| 2927 |
| 2928 |
| 2929 var h = { |
| 2930 "content-type" : "application/json; charset=utf-8", |
| 2931 }; |
| 2932 var resp = convert.JSON.encode(buildJob()); |
| 2933 return new async.Future.value(stringResponse(200, h, resp)); |
| 2934 }), true); |
| 2935 res.patch(arg_request, arg_projectId, arg_jobId, updateMask: arg_updateMas
k).then(unittest.expectAsync(((api.Job response) { |
| 2936 checkJob(response); |
| 2937 }))); |
| 2938 }); |
| 2939 |
2817 unittest.test("method--submit", () { | 2940 unittest.test("method--submit", () { |
2818 | 2941 |
2819 var mock = new HttpServerMock(); | 2942 var mock = new HttpServerMock(); |
2820 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; | 2943 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; |
2821 var arg_request = buildSubmitJobRequest(); | 2944 var arg_request = buildSubmitJobRequest(); |
2822 var arg_projectId = "foo"; | 2945 var arg_projectId = "foo"; |
2823 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2946 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2824 var obj = new api.SubmitJobRequest.fromJson(json); | 2947 var obj = new api.SubmitJobRequest.fromJson(json); |
2825 checkSubmitJobRequest(obj); | 2948 checkSubmitJobRequest(obj); |
2826 | 2949 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2867 res.submit(arg_request, arg_projectId).then(unittest.expectAsync(((api.Job
response) { | 2990 res.submit(arg_request, arg_projectId).then(unittest.expectAsync(((api.Job
response) { |
2868 checkJob(response); | 2991 checkJob(response); |
2869 }))); | 2992 }))); |
2870 }); | 2993 }); |
2871 | 2994 |
2872 }); | 2995 }); |
2873 | 2996 |
2874 | 2997 |
2875 } | 2998 } |
2876 | 2999 |
OLD | NEW |