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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 return o; | 99 return o; |
100 } | 100 } |
101 | 101 |
102 checkCancelOperationRequest(api.CancelOperationRequest o) { | 102 checkCancelOperationRequest(api.CancelOperationRequest o) { |
103 buildCounterCancelOperationRequest++; | 103 buildCounterCancelOperationRequest++; |
104 if (buildCounterCancelOperationRequest < 3) { | 104 if (buildCounterCancelOperationRequest < 3) { |
105 } | 105 } |
106 buildCounterCancelOperationRequest--; | 106 buildCounterCancelOperationRequest--; |
107 } | 107 } |
108 | 108 |
109 buildUnnamed3210() { | 109 buildUnnamed3216() { |
110 var o = new core.Map<core.String, core.String>(); | 110 var o = new core.Map<core.String, core.String>(); |
111 o["x"] = "foo"; | 111 o["x"] = "foo"; |
112 o["y"] = "foo"; | 112 o["y"] = "foo"; |
113 return o; | 113 return o; |
114 } | 114 } |
115 | 115 |
116 checkUnnamed3210(core.Map<core.String, core.String> o) { | 116 checkUnnamed3216(core.Map<core.String, core.String> o) { |
117 unittest.expect(o, unittest.hasLength(2)); | 117 unittest.expect(o, unittest.hasLength(2)); |
118 unittest.expect(o["x"], unittest.equals('foo')); | 118 unittest.expect(o["x"], unittest.equals('foo')); |
119 unittest.expect(o["y"], unittest.equals('foo')); | 119 unittest.expect(o["y"], unittest.equals('foo')); |
120 } | 120 } |
121 | 121 |
122 buildUnnamed3211() { | 122 buildUnnamed3217() { |
123 var o = new core.List<api.ClusterStatus>(); | 123 var o = new core.List<api.ClusterStatus>(); |
124 o.add(buildClusterStatus()); | 124 o.add(buildClusterStatus()); |
125 o.add(buildClusterStatus()); | 125 o.add(buildClusterStatus()); |
126 return o; | 126 return o; |
127 } | 127 } |
128 | 128 |
129 checkUnnamed3211(core.List<api.ClusterStatus> o) { | 129 checkUnnamed3217(core.List<api.ClusterStatus> o) { |
130 unittest.expect(o, unittest.hasLength(2)); | 130 unittest.expect(o, unittest.hasLength(2)); |
131 checkClusterStatus(o[0]); | 131 checkClusterStatus(o[0]); |
132 checkClusterStatus(o[1]); | 132 checkClusterStatus(o[1]); |
133 } | 133 } |
134 | 134 |
135 core.int buildCounterCluster = 0; | 135 core.int buildCounterCluster = 0; |
136 buildCluster() { | 136 buildCluster() { |
137 var o = new api.Cluster(); | 137 var o = new api.Cluster(); |
138 buildCounterCluster++; | 138 buildCounterCluster++; |
139 if (buildCounterCluster < 3) { | 139 if (buildCounterCluster < 3) { |
140 o.clusterName = "foo"; | 140 o.clusterName = "foo"; |
141 o.clusterUuid = "foo"; | 141 o.clusterUuid = "foo"; |
142 o.configuration = buildClusterConfiguration(); | 142 o.configuration = buildClusterConfiguration(); |
143 o.labels = buildUnnamed3210(); | 143 o.labels = buildUnnamed3216(); |
144 o.metrics = buildClusterMetrics(); | 144 o.metrics = buildClusterMetrics(); |
145 o.projectId = "foo"; | 145 o.projectId = "foo"; |
146 o.status = buildClusterStatus(); | 146 o.status = buildClusterStatus(); |
147 o.statusHistory = buildUnnamed3211(); | 147 o.statusHistory = buildUnnamed3217(); |
148 } | 148 } |
149 buildCounterCluster--; | 149 buildCounterCluster--; |
150 return o; | 150 return o; |
151 } | 151 } |
152 | 152 |
153 checkCluster(api.Cluster o) { | 153 checkCluster(api.Cluster o) { |
154 buildCounterCluster++; | 154 buildCounterCluster++; |
155 if (buildCounterCluster < 3) { | 155 if (buildCounterCluster < 3) { |
156 unittest.expect(o.clusterName, unittest.equals('foo')); | 156 unittest.expect(o.clusterName, unittest.equals('foo')); |
157 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 157 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
158 checkClusterConfiguration(o.configuration); | 158 checkClusterConfiguration(o.configuration); |
159 checkUnnamed3210(o.labels); | 159 checkUnnamed3216(o.labels); |
160 checkClusterMetrics(o.metrics); | 160 checkClusterMetrics(o.metrics); |
161 unittest.expect(o.projectId, unittest.equals('foo')); | 161 unittest.expect(o.projectId, unittest.equals('foo')); |
162 checkClusterStatus(o.status); | 162 checkClusterStatus(o.status); |
163 checkUnnamed3211(o.statusHistory); | 163 checkUnnamed3217(o.statusHistory); |
164 } | 164 } |
165 buildCounterCluster--; | 165 buildCounterCluster--; |
166 } | 166 } |
167 | 167 |
168 buildUnnamed3212() { | 168 buildUnnamed3218() { |
169 var o = new core.List<api.NodeInitializationAction>(); | 169 var o = new core.List<api.NodeInitializationAction>(); |
170 o.add(buildNodeInitializationAction()); | 170 o.add(buildNodeInitializationAction()); |
171 o.add(buildNodeInitializationAction()); | 171 o.add(buildNodeInitializationAction()); |
172 return o; | 172 return o; |
173 } | 173 } |
174 | 174 |
175 checkUnnamed3212(core.List<api.NodeInitializationAction> o) { | 175 checkUnnamed3218(core.List<api.NodeInitializationAction> o) { |
176 unittest.expect(o, unittest.hasLength(2)); | 176 unittest.expect(o, unittest.hasLength(2)); |
177 checkNodeInitializationAction(o[0]); | 177 checkNodeInitializationAction(o[0]); |
178 checkNodeInitializationAction(o[1]); | 178 checkNodeInitializationAction(o[1]); |
179 } | 179 } |
180 | 180 |
181 core.int buildCounterClusterConfiguration = 0; | 181 core.int buildCounterClusterConfiguration = 0; |
182 buildClusterConfiguration() { | 182 buildClusterConfiguration() { |
183 var o = new api.ClusterConfiguration(); | 183 var o = new api.ClusterConfiguration(); |
184 buildCounterClusterConfiguration++; | 184 buildCounterClusterConfiguration++; |
185 if (buildCounterClusterConfiguration < 3) { | 185 if (buildCounterClusterConfiguration < 3) { |
186 o.configurationBucket = "foo"; | 186 o.configurationBucket = "foo"; |
187 o.gceClusterConfiguration = buildGceClusterConfiguration(); | 187 o.gceClusterConfiguration = buildGceClusterConfiguration(); |
188 o.initializationActions = buildUnnamed3212(); | 188 o.initializationActions = buildUnnamed3218(); |
189 o.masterConfiguration = buildInstanceGroupConfiguration(); | 189 o.masterConfiguration = buildInstanceGroupConfiguration(); |
190 o.secondaryWorkerConfiguration = buildInstanceGroupConfiguration(); | 190 o.secondaryWorkerConfiguration = buildInstanceGroupConfiguration(); |
191 o.softwareConfiguration = buildSoftwareConfiguration(); | 191 o.softwareConfiguration = buildSoftwareConfiguration(); |
192 o.workerConfiguration = buildInstanceGroupConfiguration(); | 192 o.workerConfiguration = buildInstanceGroupConfiguration(); |
193 } | 193 } |
194 buildCounterClusterConfiguration--; | 194 buildCounterClusterConfiguration--; |
195 return o; | 195 return o; |
196 } | 196 } |
197 | 197 |
198 checkClusterConfiguration(api.ClusterConfiguration o) { | 198 checkClusterConfiguration(api.ClusterConfiguration o) { |
199 buildCounterClusterConfiguration++; | 199 buildCounterClusterConfiguration++; |
200 if (buildCounterClusterConfiguration < 3) { | 200 if (buildCounterClusterConfiguration < 3) { |
201 unittest.expect(o.configurationBucket, unittest.equals('foo')); | 201 unittest.expect(o.configurationBucket, unittest.equals('foo')); |
202 checkGceClusterConfiguration(o.gceClusterConfiguration); | 202 checkGceClusterConfiguration(o.gceClusterConfiguration); |
203 checkUnnamed3212(o.initializationActions); | 203 checkUnnamed3218(o.initializationActions); |
204 checkInstanceGroupConfiguration(o.masterConfiguration); | 204 checkInstanceGroupConfiguration(o.masterConfiguration); |
205 checkInstanceGroupConfiguration(o.secondaryWorkerConfiguration); | 205 checkInstanceGroupConfiguration(o.secondaryWorkerConfiguration); |
206 checkSoftwareConfiguration(o.softwareConfiguration); | 206 checkSoftwareConfiguration(o.softwareConfiguration); |
207 checkInstanceGroupConfiguration(o.workerConfiguration); | 207 checkInstanceGroupConfiguration(o.workerConfiguration); |
208 } | 208 } |
209 buildCounterClusterConfiguration--; | 209 buildCounterClusterConfiguration--; |
210 } | 210 } |
211 | 211 |
212 buildUnnamed3213() { | 212 buildUnnamed3219() { |
213 var o = new core.Map<core.String, core.String>(); | 213 var o = new core.Map<core.String, core.String>(); |
214 o["x"] = "foo"; | 214 o["x"] = "foo"; |
215 o["y"] = "foo"; | 215 o["y"] = "foo"; |
216 return o; | 216 return o; |
217 } | 217 } |
218 | 218 |
219 checkUnnamed3213(core.Map<core.String, core.String> o) { | 219 checkUnnamed3219(core.Map<core.String, core.String> o) { |
220 unittest.expect(o, unittest.hasLength(2)); | 220 unittest.expect(o, unittest.hasLength(2)); |
221 unittest.expect(o["x"], unittest.equals('foo')); | 221 unittest.expect(o["x"], unittest.equals('foo')); |
222 unittest.expect(o["y"], unittest.equals('foo')); | 222 unittest.expect(o["y"], unittest.equals('foo')); |
223 } | 223 } |
224 | 224 |
225 buildUnnamed3214() { | 225 buildUnnamed3220() { |
226 var o = new core.Map<core.String, core.String>(); | 226 var o = new core.Map<core.String, core.String>(); |
227 o["x"] = "foo"; | 227 o["x"] = "foo"; |
228 o["y"] = "foo"; | 228 o["y"] = "foo"; |
229 return o; | 229 return o; |
230 } | 230 } |
231 | 231 |
232 checkUnnamed3214(core.Map<core.String, core.String> o) { | 232 checkUnnamed3220(core.Map<core.String, core.String> o) { |
233 unittest.expect(o, unittest.hasLength(2)); | 233 unittest.expect(o, unittest.hasLength(2)); |
234 unittest.expect(o["x"], unittest.equals('foo')); | 234 unittest.expect(o["x"], unittest.equals('foo')); |
235 unittest.expect(o["y"], unittest.equals('foo')); | 235 unittest.expect(o["y"], unittest.equals('foo')); |
236 } | 236 } |
237 | 237 |
238 core.int buildCounterClusterMetrics = 0; | 238 core.int buildCounterClusterMetrics = 0; |
239 buildClusterMetrics() { | 239 buildClusterMetrics() { |
240 var o = new api.ClusterMetrics(); | 240 var o = new api.ClusterMetrics(); |
241 buildCounterClusterMetrics++; | 241 buildCounterClusterMetrics++; |
242 if (buildCounterClusterMetrics < 3) { | 242 if (buildCounterClusterMetrics < 3) { |
243 o.hdfsMetrics = buildUnnamed3213(); | 243 o.hdfsMetrics = buildUnnamed3219(); |
244 o.yarnMetrics = buildUnnamed3214(); | 244 o.yarnMetrics = buildUnnamed3220(); |
245 } | 245 } |
246 buildCounterClusterMetrics--; | 246 buildCounterClusterMetrics--; |
247 return o; | 247 return o; |
248 } | 248 } |
249 | 249 |
250 checkClusterMetrics(api.ClusterMetrics o) { | 250 checkClusterMetrics(api.ClusterMetrics o) { |
251 buildCounterClusterMetrics++; | 251 buildCounterClusterMetrics++; |
252 if (buildCounterClusterMetrics < 3) { | 252 if (buildCounterClusterMetrics < 3) { |
253 checkUnnamed3213(o.hdfsMetrics); | 253 checkUnnamed3219(o.hdfsMetrics); |
254 checkUnnamed3214(o.yarnMetrics); | 254 checkUnnamed3220(o.yarnMetrics); |
255 } | 255 } |
256 buildCounterClusterMetrics--; | 256 buildCounterClusterMetrics--; |
257 } | 257 } |
258 | 258 |
259 buildUnnamed3215() { | 259 buildUnnamed3221() { |
260 var o = new core.Map<core.String, core.String>(); | 260 var o = new core.Map<core.String, core.String>(); |
261 o["x"] = "foo"; | 261 o["x"] = "foo"; |
262 o["y"] = "foo"; | 262 o["y"] = "foo"; |
263 return o; | 263 return o; |
264 } | 264 } |
265 | 265 |
266 checkUnnamed3215(core.Map<core.String, core.String> o) { | 266 checkUnnamed3221(core.Map<core.String, core.String> o) { |
267 unittest.expect(o, unittest.hasLength(2)); | 267 unittest.expect(o, unittest.hasLength(2)); |
268 unittest.expect(o["x"], unittest.equals('foo')); | 268 unittest.expect(o["x"], unittest.equals('foo')); |
269 unittest.expect(o["y"], unittest.equals('foo')); | 269 unittest.expect(o["y"], unittest.equals('foo')); |
270 } | 270 } |
271 | 271 |
272 buildUnnamed3216() { | 272 buildUnnamed3222() { |
273 var o = new core.List<api.ClusterOperationStatus>(); | 273 var o = new core.List<api.ClusterOperationStatus>(); |
274 o.add(buildClusterOperationStatus()); | 274 o.add(buildClusterOperationStatus()); |
275 o.add(buildClusterOperationStatus()); | 275 o.add(buildClusterOperationStatus()); |
276 return o; | 276 return o; |
277 } | 277 } |
278 | 278 |
279 checkUnnamed3216(core.List<api.ClusterOperationStatus> o) { | 279 checkUnnamed3222(core.List<api.ClusterOperationStatus> o) { |
280 unittest.expect(o, unittest.hasLength(2)); | 280 unittest.expect(o, unittest.hasLength(2)); |
281 checkClusterOperationStatus(o[0]); | 281 checkClusterOperationStatus(o[0]); |
282 checkClusterOperationStatus(o[1]); | 282 checkClusterOperationStatus(o[1]); |
283 } | 283 } |
284 | 284 |
285 buildUnnamed3217() { | 285 buildUnnamed3223() { |
286 var o = new core.List<core.String>(); | 286 var o = new core.List<core.String>(); |
287 o.add("foo"); | 287 o.add("foo"); |
288 o.add("foo"); | 288 o.add("foo"); |
289 return o; | 289 return o; |
290 } | 290 } |
291 | 291 |
292 checkUnnamed3217(core.List<core.String> o) { | 292 checkUnnamed3223(core.List<core.String> o) { |
293 unittest.expect(o, unittest.hasLength(2)); | 293 unittest.expect(o, unittest.hasLength(2)); |
294 unittest.expect(o[0], unittest.equals('foo')); | 294 unittest.expect(o[0], unittest.equals('foo')); |
295 unittest.expect(o[1], unittest.equals('foo')); | 295 unittest.expect(o[1], unittest.equals('foo')); |
296 } | 296 } |
297 | 297 |
298 core.int buildCounterClusterOperationMetadata = 0; | 298 core.int buildCounterClusterOperationMetadata = 0; |
299 buildClusterOperationMetadata() { | 299 buildClusterOperationMetadata() { |
300 var o = new api.ClusterOperationMetadata(); | 300 var o = new api.ClusterOperationMetadata(); |
301 buildCounterClusterOperationMetadata++; | 301 buildCounterClusterOperationMetadata++; |
302 if (buildCounterClusterOperationMetadata < 3) { | 302 if (buildCounterClusterOperationMetadata < 3) { |
303 o.clusterName = "foo"; | 303 o.clusterName = "foo"; |
304 o.clusterUuid = "foo"; | 304 o.clusterUuid = "foo"; |
305 o.description = "foo"; | 305 o.description = "foo"; |
306 o.labels = buildUnnamed3215(); | 306 o.labels = buildUnnamed3221(); |
307 o.operationType = "foo"; | 307 o.operationType = "foo"; |
308 o.status = buildClusterOperationStatus(); | 308 o.status = buildClusterOperationStatus(); |
309 o.statusHistory = buildUnnamed3216(); | 309 o.statusHistory = buildUnnamed3222(); |
310 o.warnings = buildUnnamed3217(); | 310 o.warnings = buildUnnamed3223(); |
311 } | 311 } |
312 buildCounterClusterOperationMetadata--; | 312 buildCounterClusterOperationMetadata--; |
313 return o; | 313 return o; |
314 } | 314 } |
315 | 315 |
316 checkClusterOperationMetadata(api.ClusterOperationMetadata o) { | 316 checkClusterOperationMetadata(api.ClusterOperationMetadata o) { |
317 buildCounterClusterOperationMetadata++; | 317 buildCounterClusterOperationMetadata++; |
318 if (buildCounterClusterOperationMetadata < 3) { | 318 if (buildCounterClusterOperationMetadata < 3) { |
319 unittest.expect(o.clusterName, unittest.equals('foo')); | 319 unittest.expect(o.clusterName, unittest.equals('foo')); |
320 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 320 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
321 unittest.expect(o.description, unittest.equals('foo')); | 321 unittest.expect(o.description, unittest.equals('foo')); |
322 checkUnnamed3215(o.labels); | 322 checkUnnamed3221(o.labels); |
323 unittest.expect(o.operationType, unittest.equals('foo')); | 323 unittest.expect(o.operationType, unittest.equals('foo')); |
324 checkClusterOperationStatus(o.status); | 324 checkClusterOperationStatus(o.status); |
325 checkUnnamed3216(o.statusHistory); | 325 checkUnnamed3222(o.statusHistory); |
326 checkUnnamed3217(o.warnings); | 326 checkUnnamed3223(o.warnings); |
327 } | 327 } |
328 buildCounterClusterOperationMetadata--; | 328 buildCounterClusterOperationMetadata--; |
329 } | 329 } |
330 | 330 |
331 core.int buildCounterClusterOperationStatus = 0; | 331 core.int buildCounterClusterOperationStatus = 0; |
332 buildClusterOperationStatus() { | 332 buildClusterOperationStatus() { |
333 var o = new api.ClusterOperationStatus(); | 333 var o = new api.ClusterOperationStatus(); |
334 buildCounterClusterOperationStatus++; | 334 buildCounterClusterOperationStatus++; |
335 if (buildCounterClusterOperationStatus < 3) { | 335 if (buildCounterClusterOperationStatus < 3) { |
336 o.details = "foo"; | 336 o.details = "foo"; |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 return o; | 464 return o; |
465 } | 465 } |
466 | 466 |
467 checkEmpty(api.Empty o) { | 467 checkEmpty(api.Empty o) { |
468 buildCounterEmpty++; | 468 buildCounterEmpty++; |
469 if (buildCounterEmpty < 3) { | 469 if (buildCounterEmpty < 3) { |
470 } | 470 } |
471 buildCounterEmpty--; | 471 buildCounterEmpty--; |
472 } | 472 } |
473 | 473 |
474 buildUnnamed3218() { | 474 buildUnnamed3224() { |
475 var o = new core.Map<core.String, core.String>(); | 475 var o = new core.Map<core.String, core.String>(); |
476 o["x"] = "foo"; | 476 o["x"] = "foo"; |
477 o["y"] = "foo"; | 477 o["y"] = "foo"; |
478 return o; | 478 return o; |
479 } | 479 } |
480 | 480 |
481 checkUnnamed3218(core.Map<core.String, core.String> o) { | 481 checkUnnamed3224(core.Map<core.String, core.String> o) { |
482 unittest.expect(o, unittest.hasLength(2)); | 482 unittest.expect(o, unittest.hasLength(2)); |
483 unittest.expect(o["x"], unittest.equals('foo')); | 483 unittest.expect(o["x"], unittest.equals('foo')); |
484 unittest.expect(o["y"], unittest.equals('foo')); | 484 unittest.expect(o["y"], unittest.equals('foo')); |
485 } | 485 } |
486 | 486 |
487 buildUnnamed3219() { | 487 buildUnnamed3225() { |
488 var o = new core.List<core.String>(); | 488 var o = new core.List<core.String>(); |
489 o.add("foo"); | 489 o.add("foo"); |
490 o.add("foo"); | 490 o.add("foo"); |
491 return o; | 491 return o; |
492 } | 492 } |
493 | 493 |
494 checkUnnamed3219(core.List<core.String> o) { | 494 checkUnnamed3225(core.List<core.String> o) { |
495 unittest.expect(o, unittest.hasLength(2)); | 495 unittest.expect(o, unittest.hasLength(2)); |
496 unittest.expect(o[0], unittest.equals('foo')); | 496 unittest.expect(o[0], unittest.equals('foo')); |
497 unittest.expect(o[1], unittest.equals('foo')); | 497 unittest.expect(o[1], unittest.equals('foo')); |
498 } | 498 } |
499 | 499 |
500 buildUnnamed3220() { | 500 buildUnnamed3226() { |
501 var o = new core.List<core.String>(); | 501 var o = new core.List<core.String>(); |
502 o.add("foo"); | 502 o.add("foo"); |
503 o.add("foo"); | 503 o.add("foo"); |
504 return o; | 504 return o; |
505 } | 505 } |
506 | 506 |
507 checkUnnamed3220(core.List<core.String> o) { | 507 checkUnnamed3226(core.List<core.String> o) { |
508 unittest.expect(o, unittest.hasLength(2)); | 508 unittest.expect(o, unittest.hasLength(2)); |
509 unittest.expect(o[0], unittest.equals('foo')); | 509 unittest.expect(o[0], unittest.equals('foo')); |
510 unittest.expect(o[1], unittest.equals('foo')); | 510 unittest.expect(o[1], unittest.equals('foo')); |
511 } | 511 } |
512 | 512 |
513 core.int buildCounterGceClusterConfiguration = 0; | 513 core.int buildCounterGceClusterConfiguration = 0; |
514 buildGceClusterConfiguration() { | 514 buildGceClusterConfiguration() { |
515 var o = new api.GceClusterConfiguration(); | 515 var o = new api.GceClusterConfiguration(); |
516 buildCounterGceClusterConfiguration++; | 516 buildCounterGceClusterConfiguration++; |
517 if (buildCounterGceClusterConfiguration < 3) { | 517 if (buildCounterGceClusterConfiguration < 3) { |
518 o.internalIpOnly = true; | 518 o.internalIpOnly = true; |
519 o.metadata = buildUnnamed3218(); | 519 o.metadata = buildUnnamed3224(); |
520 o.networkUri = "foo"; | 520 o.networkUri = "foo"; |
521 o.serviceAccount = "foo"; | 521 o.serviceAccount = "foo"; |
522 o.serviceAccountScopes = buildUnnamed3219(); | 522 o.serviceAccountScopes = buildUnnamed3225(); |
523 o.subnetworkUri = "foo"; | 523 o.subnetworkUri = "foo"; |
524 o.tags = buildUnnamed3220(); | 524 o.tags = buildUnnamed3226(); |
525 o.zoneUri = "foo"; | 525 o.zoneUri = "foo"; |
526 } | 526 } |
527 buildCounterGceClusterConfiguration--; | 527 buildCounterGceClusterConfiguration--; |
528 return o; | 528 return o; |
529 } | 529 } |
530 | 530 |
531 checkGceClusterConfiguration(api.GceClusterConfiguration o) { | 531 checkGceClusterConfiguration(api.GceClusterConfiguration o) { |
532 buildCounterGceClusterConfiguration++; | 532 buildCounterGceClusterConfiguration++; |
533 if (buildCounterGceClusterConfiguration < 3) { | 533 if (buildCounterGceClusterConfiguration < 3) { |
534 unittest.expect(o.internalIpOnly, unittest.isTrue); | 534 unittest.expect(o.internalIpOnly, unittest.isTrue); |
535 checkUnnamed3218(o.metadata); | 535 checkUnnamed3224(o.metadata); |
536 unittest.expect(o.networkUri, unittest.equals('foo')); | 536 unittest.expect(o.networkUri, unittest.equals('foo')); |
537 unittest.expect(o.serviceAccount, unittest.equals('foo')); | 537 unittest.expect(o.serviceAccount, unittest.equals('foo')); |
538 checkUnnamed3219(o.serviceAccountScopes); | 538 checkUnnamed3225(o.serviceAccountScopes); |
539 unittest.expect(o.subnetworkUri, unittest.equals('foo')); | 539 unittest.expect(o.subnetworkUri, unittest.equals('foo')); |
540 checkUnnamed3220(o.tags); | 540 checkUnnamed3226(o.tags); |
541 unittest.expect(o.zoneUri, unittest.equals('foo')); | 541 unittest.expect(o.zoneUri, unittest.equals('foo')); |
542 } | 542 } |
543 buildCounterGceClusterConfiguration--; | 543 buildCounterGceClusterConfiguration--; |
544 } | 544 } |
545 | 545 |
546 buildUnnamed3221() { | 546 buildUnnamed3227() { |
547 var o = new core.List<core.String>(); | 547 var o = new core.List<core.String>(); |
548 o.add("foo"); | 548 o.add("foo"); |
549 o.add("foo"); | 549 o.add("foo"); |
550 return o; | 550 return o; |
551 } | 551 } |
552 | 552 |
553 checkUnnamed3221(core.List<core.String> o) { | 553 checkUnnamed3227(core.List<core.String> o) { |
554 unittest.expect(o, unittest.hasLength(2)); | 554 unittest.expect(o, unittest.hasLength(2)); |
555 unittest.expect(o[0], unittest.equals('foo')); | 555 unittest.expect(o[0], unittest.equals('foo')); |
556 unittest.expect(o[1], unittest.equals('foo')); | 556 unittest.expect(o[1], unittest.equals('foo')); |
557 } | 557 } |
558 | 558 |
559 buildUnnamed3222() { | 559 buildUnnamed3228() { |
560 var o = new core.List<core.String>(); | 560 var o = new core.List<core.String>(); |
561 o.add("foo"); | 561 o.add("foo"); |
562 o.add("foo"); | 562 o.add("foo"); |
563 return o; | 563 return o; |
564 } | 564 } |
565 | 565 |
566 checkUnnamed3222(core.List<core.String> o) { | 566 checkUnnamed3228(core.List<core.String> o) { |
567 unittest.expect(o, unittest.hasLength(2)); | 567 unittest.expect(o, unittest.hasLength(2)); |
568 unittest.expect(o[0], unittest.equals('foo')); | 568 unittest.expect(o[0], unittest.equals('foo')); |
569 unittest.expect(o[1], unittest.equals('foo')); | 569 unittest.expect(o[1], unittest.equals('foo')); |
570 } | 570 } |
571 | 571 |
572 buildUnnamed3223() { | 572 buildUnnamed3229() { |
573 var o = new core.List<core.String>(); | 573 var o = new core.List<core.String>(); |
574 o.add("foo"); | 574 o.add("foo"); |
575 o.add("foo"); | 575 o.add("foo"); |
576 return o; | 576 return o; |
577 } | 577 } |
578 | 578 |
579 checkUnnamed3223(core.List<core.String> o) { | 579 checkUnnamed3229(core.List<core.String> o) { |
580 unittest.expect(o, unittest.hasLength(2)); | 580 unittest.expect(o, unittest.hasLength(2)); |
581 unittest.expect(o[0], unittest.equals('foo')); | 581 unittest.expect(o[0], unittest.equals('foo')); |
582 unittest.expect(o[1], unittest.equals('foo')); | 582 unittest.expect(o[1], unittest.equals('foo')); |
583 } | 583 } |
584 | 584 |
585 buildUnnamed3224() { | 585 buildUnnamed3230() { |
586 var o = new core.List<core.String>(); | 586 var o = new core.List<core.String>(); |
587 o.add("foo"); | 587 o.add("foo"); |
588 o.add("foo"); | 588 o.add("foo"); |
589 return o; | 589 return o; |
590 } | 590 } |
591 | 591 |
592 checkUnnamed3224(core.List<core.String> o) { | 592 checkUnnamed3230(core.List<core.String> o) { |
593 unittest.expect(o, unittest.hasLength(2)); | 593 unittest.expect(o, unittest.hasLength(2)); |
594 unittest.expect(o[0], unittest.equals('foo')); | 594 unittest.expect(o[0], unittest.equals('foo')); |
595 unittest.expect(o[1], unittest.equals('foo')); | 595 unittest.expect(o[1], unittest.equals('foo')); |
596 } | 596 } |
597 | 597 |
598 buildUnnamed3225() { | 598 buildUnnamed3231() { |
599 var o = new core.Map<core.String, core.String>(); | 599 var o = new core.Map<core.String, core.String>(); |
600 o["x"] = "foo"; | 600 o["x"] = "foo"; |
601 o["y"] = "foo"; | 601 o["y"] = "foo"; |
602 return o; | 602 return o; |
603 } | 603 } |
604 | 604 |
605 checkUnnamed3225(core.Map<core.String, core.String> o) { | 605 checkUnnamed3231(core.Map<core.String, core.String> o) { |
606 unittest.expect(o, unittest.hasLength(2)); | 606 unittest.expect(o, unittest.hasLength(2)); |
607 unittest.expect(o["x"], unittest.equals('foo')); | 607 unittest.expect(o["x"], unittest.equals('foo')); |
608 unittest.expect(o["y"], unittest.equals('foo')); | 608 unittest.expect(o["y"], unittest.equals('foo')); |
609 } | 609 } |
610 | 610 |
611 core.int buildCounterHadoopJob = 0; | 611 core.int buildCounterHadoopJob = 0; |
612 buildHadoopJob() { | 612 buildHadoopJob() { |
613 var o = new api.HadoopJob(); | 613 var o = new api.HadoopJob(); |
614 buildCounterHadoopJob++; | 614 buildCounterHadoopJob++; |
615 if (buildCounterHadoopJob < 3) { | 615 if (buildCounterHadoopJob < 3) { |
616 o.archiveUris = buildUnnamed3221(); | 616 o.archiveUris = buildUnnamed3227(); |
617 o.args = buildUnnamed3222(); | 617 o.args = buildUnnamed3228(); |
618 o.fileUris = buildUnnamed3223(); | 618 o.fileUris = buildUnnamed3229(); |
619 o.jarFileUris = buildUnnamed3224(); | 619 o.jarFileUris = buildUnnamed3230(); |
620 o.loggingConfiguration = buildLoggingConfiguration(); | 620 o.loggingConfiguration = buildLoggingConfiguration(); |
621 o.mainClass = "foo"; | 621 o.mainClass = "foo"; |
622 o.mainJarFileUri = "foo"; | 622 o.mainJarFileUri = "foo"; |
623 o.properties = buildUnnamed3225(); | 623 o.properties = buildUnnamed3231(); |
624 } | 624 } |
625 buildCounterHadoopJob--; | 625 buildCounterHadoopJob--; |
626 return o; | 626 return o; |
627 } | 627 } |
628 | 628 |
629 checkHadoopJob(api.HadoopJob o) { | 629 checkHadoopJob(api.HadoopJob o) { |
630 buildCounterHadoopJob++; | 630 buildCounterHadoopJob++; |
631 if (buildCounterHadoopJob < 3) { | 631 if (buildCounterHadoopJob < 3) { |
632 checkUnnamed3221(o.archiveUris); | 632 checkUnnamed3227(o.archiveUris); |
633 checkUnnamed3222(o.args); | 633 checkUnnamed3228(o.args); |
634 checkUnnamed3223(o.fileUris); | 634 checkUnnamed3229(o.fileUris); |
635 checkUnnamed3224(o.jarFileUris); | 635 checkUnnamed3230(o.jarFileUris); |
636 checkLoggingConfiguration(o.loggingConfiguration); | 636 checkLoggingConfiguration(o.loggingConfiguration); |
637 unittest.expect(o.mainClass, unittest.equals('foo')); | 637 unittest.expect(o.mainClass, unittest.equals('foo')); |
638 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 638 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
639 checkUnnamed3225(o.properties); | 639 checkUnnamed3231(o.properties); |
640 } | 640 } |
641 buildCounterHadoopJob--; | 641 buildCounterHadoopJob--; |
642 } | 642 } |
643 | 643 |
644 buildUnnamed3226() { | 644 buildUnnamed3232() { |
645 var o = new core.List<core.String>(); | 645 var o = new core.List<core.String>(); |
646 o.add("foo"); | 646 o.add("foo"); |
647 o.add("foo"); | 647 o.add("foo"); |
648 return o; | 648 return o; |
649 } | 649 } |
650 | 650 |
651 checkUnnamed3226(core.List<core.String> o) { | 651 checkUnnamed3232(core.List<core.String> o) { |
652 unittest.expect(o, unittest.hasLength(2)); | 652 unittest.expect(o, unittest.hasLength(2)); |
653 unittest.expect(o[0], unittest.equals('foo')); | 653 unittest.expect(o[0], unittest.equals('foo')); |
654 unittest.expect(o[1], unittest.equals('foo')); | 654 unittest.expect(o[1], unittest.equals('foo')); |
655 } | 655 } |
656 | 656 |
657 buildUnnamed3227() { | 657 buildUnnamed3233() { |
658 var o = new core.Map<core.String, core.String>(); | 658 var o = new core.Map<core.String, core.String>(); |
659 o["x"] = "foo"; | 659 o["x"] = "foo"; |
660 o["y"] = "foo"; | 660 o["y"] = "foo"; |
661 return o; | 661 return o; |
662 } | 662 } |
663 | 663 |
664 checkUnnamed3227(core.Map<core.String, core.String> o) { | 664 checkUnnamed3233(core.Map<core.String, core.String> o) { |
665 unittest.expect(o, unittest.hasLength(2)); | 665 unittest.expect(o, unittest.hasLength(2)); |
666 unittest.expect(o["x"], unittest.equals('foo')); | 666 unittest.expect(o["x"], unittest.equals('foo')); |
667 unittest.expect(o["y"], unittest.equals('foo')); | 667 unittest.expect(o["y"], unittest.equals('foo')); |
668 } | 668 } |
669 | 669 |
670 buildUnnamed3228() { | 670 buildUnnamed3234() { |
671 var o = new core.Map<core.String, core.String>(); | 671 var o = new core.Map<core.String, core.String>(); |
672 o["x"] = "foo"; | 672 o["x"] = "foo"; |
673 o["y"] = "foo"; | 673 o["y"] = "foo"; |
674 return o; | 674 return o; |
675 } | 675 } |
676 | 676 |
677 checkUnnamed3228(core.Map<core.String, core.String> o) { | 677 checkUnnamed3234(core.Map<core.String, core.String> o) { |
678 unittest.expect(o, unittest.hasLength(2)); | 678 unittest.expect(o, unittest.hasLength(2)); |
679 unittest.expect(o["x"], unittest.equals('foo')); | 679 unittest.expect(o["x"], unittest.equals('foo')); |
680 unittest.expect(o["y"], unittest.equals('foo')); | 680 unittest.expect(o["y"], unittest.equals('foo')); |
681 } | 681 } |
682 | 682 |
683 core.int buildCounterHiveJob = 0; | 683 core.int buildCounterHiveJob = 0; |
684 buildHiveJob() { | 684 buildHiveJob() { |
685 var o = new api.HiveJob(); | 685 var o = new api.HiveJob(); |
686 buildCounterHiveJob++; | 686 buildCounterHiveJob++; |
687 if (buildCounterHiveJob < 3) { | 687 if (buildCounterHiveJob < 3) { |
688 o.continueOnFailure = true; | 688 o.continueOnFailure = true; |
689 o.jarFileUris = buildUnnamed3226(); | 689 o.jarFileUris = buildUnnamed3232(); |
690 o.properties = buildUnnamed3227(); | 690 o.properties = buildUnnamed3233(); |
691 o.queryFileUri = "foo"; | 691 o.queryFileUri = "foo"; |
692 o.queryList = buildQueryList(); | 692 o.queryList = buildQueryList(); |
693 o.scriptVariables = buildUnnamed3228(); | 693 o.scriptVariables = buildUnnamed3234(); |
694 } | 694 } |
695 buildCounterHiveJob--; | 695 buildCounterHiveJob--; |
696 return o; | 696 return o; |
697 } | 697 } |
698 | 698 |
699 checkHiveJob(api.HiveJob o) { | 699 checkHiveJob(api.HiveJob o) { |
700 buildCounterHiveJob++; | 700 buildCounterHiveJob++; |
701 if (buildCounterHiveJob < 3) { | 701 if (buildCounterHiveJob < 3) { |
702 unittest.expect(o.continueOnFailure, unittest.isTrue); | 702 unittest.expect(o.continueOnFailure, unittest.isTrue); |
703 checkUnnamed3226(o.jarFileUris); | 703 checkUnnamed3232(o.jarFileUris); |
704 checkUnnamed3227(o.properties); | 704 checkUnnamed3233(o.properties); |
705 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 705 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
706 checkQueryList(o.queryList); | 706 checkQueryList(o.queryList); |
707 checkUnnamed3228(o.scriptVariables); | 707 checkUnnamed3234(o.scriptVariables); |
708 } | 708 } |
709 buildCounterHiveJob--; | 709 buildCounterHiveJob--; |
710 } | 710 } |
711 | 711 |
712 buildUnnamed3229() { | 712 buildUnnamed3235() { |
713 var o = new core.List<api.AcceleratorConfiguration>(); | 713 var o = new core.List<api.AcceleratorConfiguration>(); |
714 o.add(buildAcceleratorConfiguration()); | 714 o.add(buildAcceleratorConfiguration()); |
715 o.add(buildAcceleratorConfiguration()); | 715 o.add(buildAcceleratorConfiguration()); |
716 return o; | 716 return o; |
717 } | 717 } |
718 | 718 |
719 checkUnnamed3229(core.List<api.AcceleratorConfiguration> o) { | 719 checkUnnamed3235(core.List<api.AcceleratorConfiguration> o) { |
720 unittest.expect(o, unittest.hasLength(2)); | 720 unittest.expect(o, unittest.hasLength(2)); |
721 checkAcceleratorConfiguration(o[0]); | 721 checkAcceleratorConfiguration(o[0]); |
722 checkAcceleratorConfiguration(o[1]); | 722 checkAcceleratorConfiguration(o[1]); |
723 } | 723 } |
724 | 724 |
725 buildUnnamed3230() { | 725 buildUnnamed3236() { |
726 var o = new core.List<core.String>(); | 726 var o = new core.List<core.String>(); |
727 o.add("foo"); | 727 o.add("foo"); |
728 o.add("foo"); | 728 o.add("foo"); |
729 return o; | 729 return o; |
730 } | 730 } |
731 | 731 |
732 checkUnnamed3230(core.List<core.String> o) { | 732 checkUnnamed3236(core.List<core.String> o) { |
733 unittest.expect(o, unittest.hasLength(2)); | 733 unittest.expect(o, unittest.hasLength(2)); |
734 unittest.expect(o[0], unittest.equals('foo')); | 734 unittest.expect(o[0], unittest.equals('foo')); |
735 unittest.expect(o[1], unittest.equals('foo')); | 735 unittest.expect(o[1], unittest.equals('foo')); |
736 } | 736 } |
737 | 737 |
738 core.int buildCounterInstanceGroupConfiguration = 0; | 738 core.int buildCounterInstanceGroupConfiguration = 0; |
739 buildInstanceGroupConfiguration() { | 739 buildInstanceGroupConfiguration() { |
740 var o = new api.InstanceGroupConfiguration(); | 740 var o = new api.InstanceGroupConfiguration(); |
741 buildCounterInstanceGroupConfiguration++; | 741 buildCounterInstanceGroupConfiguration++; |
742 if (buildCounterInstanceGroupConfiguration < 3) { | 742 if (buildCounterInstanceGroupConfiguration < 3) { |
743 o.accelerators = buildUnnamed3229(); | 743 o.accelerators = buildUnnamed3235(); |
744 o.diskConfiguration = buildDiskConfiguration(); | 744 o.diskConfiguration = buildDiskConfiguration(); |
745 o.imageUri = "foo"; | 745 o.imageUri = "foo"; |
746 o.instanceNames = buildUnnamed3230(); | 746 o.instanceNames = buildUnnamed3236(); |
747 o.isPreemptible = true; | 747 o.isPreemptible = true; |
748 o.machineTypeUri = "foo"; | 748 o.machineTypeUri = "foo"; |
749 o.managedGroupConfiguration = buildManagedGroupConfiguration(); | 749 o.managedGroupConfiguration = buildManagedGroupConfiguration(); |
750 o.numInstances = 42; | 750 o.numInstances = 42; |
751 } | 751 } |
752 buildCounterInstanceGroupConfiguration--; | 752 buildCounterInstanceGroupConfiguration--; |
753 return o; | 753 return o; |
754 } | 754 } |
755 | 755 |
756 checkInstanceGroupConfiguration(api.InstanceGroupConfiguration o) { | 756 checkInstanceGroupConfiguration(api.InstanceGroupConfiguration o) { |
757 buildCounterInstanceGroupConfiguration++; | 757 buildCounterInstanceGroupConfiguration++; |
758 if (buildCounterInstanceGroupConfiguration < 3) { | 758 if (buildCounterInstanceGroupConfiguration < 3) { |
759 checkUnnamed3229(o.accelerators); | 759 checkUnnamed3235(o.accelerators); |
760 checkDiskConfiguration(o.diskConfiguration); | 760 checkDiskConfiguration(o.diskConfiguration); |
761 unittest.expect(o.imageUri, unittest.equals('foo')); | 761 unittest.expect(o.imageUri, unittest.equals('foo')); |
762 checkUnnamed3230(o.instanceNames); | 762 checkUnnamed3236(o.instanceNames); |
763 unittest.expect(o.isPreemptible, unittest.isTrue); | 763 unittest.expect(o.isPreemptible, unittest.isTrue); |
764 unittest.expect(o.machineTypeUri, unittest.equals('foo')); | 764 unittest.expect(o.machineTypeUri, unittest.equals('foo')); |
765 checkManagedGroupConfiguration(o.managedGroupConfiguration); | 765 checkManagedGroupConfiguration(o.managedGroupConfiguration); |
766 unittest.expect(o.numInstances, unittest.equals(42)); | 766 unittest.expect(o.numInstances, unittest.equals(42)); |
767 } | 767 } |
768 buildCounterInstanceGroupConfiguration--; | 768 buildCounterInstanceGroupConfiguration--; |
769 } | 769 } |
770 | 770 |
771 buildUnnamed3231() { | 771 buildUnnamed3237() { |
772 var o = new core.Map<core.String, core.String>(); | 772 var o = new core.Map<core.String, core.String>(); |
773 o["x"] = "foo"; | 773 o["x"] = "foo"; |
774 o["y"] = "foo"; | 774 o["y"] = "foo"; |
775 return o; | 775 return o; |
776 } | 776 } |
777 | 777 |
778 checkUnnamed3231(core.Map<core.String, core.String> o) { | 778 checkUnnamed3237(core.Map<core.String, core.String> o) { |
779 unittest.expect(o, unittest.hasLength(2)); | 779 unittest.expect(o, unittest.hasLength(2)); |
780 unittest.expect(o["x"], unittest.equals('foo')); | 780 unittest.expect(o["x"], unittest.equals('foo')); |
781 unittest.expect(o["y"], unittest.equals('foo')); | 781 unittest.expect(o["y"], unittest.equals('foo')); |
782 } | 782 } |
783 | 783 |
784 buildUnnamed3232() { | 784 buildUnnamed3238() { |
785 var o = new core.List<api.JobStatus>(); | 785 var o = new core.List<api.JobStatus>(); |
786 o.add(buildJobStatus()); | 786 o.add(buildJobStatus()); |
787 o.add(buildJobStatus()); | 787 o.add(buildJobStatus()); |
788 return o; | 788 return o; |
789 } | 789 } |
790 | 790 |
791 checkUnnamed3232(core.List<api.JobStatus> o) { | 791 checkUnnamed3238(core.List<api.JobStatus> o) { |
792 unittest.expect(o, unittest.hasLength(2)); | 792 unittest.expect(o, unittest.hasLength(2)); |
793 checkJobStatus(o[0]); | 793 checkJobStatus(o[0]); |
794 checkJobStatus(o[1]); | 794 checkJobStatus(o[1]); |
795 } | 795 } |
796 | 796 |
797 buildUnnamed3233() { | 797 buildUnnamed3239() { |
798 var o = new core.List<api.YarnApplication>(); | 798 var o = new core.List<api.YarnApplication>(); |
799 o.add(buildYarnApplication()); | 799 o.add(buildYarnApplication()); |
800 o.add(buildYarnApplication()); | 800 o.add(buildYarnApplication()); |
801 return o; | 801 return o; |
802 } | 802 } |
803 | 803 |
804 checkUnnamed3233(core.List<api.YarnApplication> o) { | 804 checkUnnamed3239(core.List<api.YarnApplication> o) { |
805 unittest.expect(o, unittest.hasLength(2)); | 805 unittest.expect(o, unittest.hasLength(2)); |
806 checkYarnApplication(o[0]); | 806 checkYarnApplication(o[0]); |
807 checkYarnApplication(o[1]); | 807 checkYarnApplication(o[1]); |
808 } | 808 } |
809 | 809 |
810 core.int buildCounterJob = 0; | 810 core.int buildCounterJob = 0; |
811 buildJob() { | 811 buildJob() { |
812 var o = new api.Job(); | 812 var o = new api.Job(); |
813 buildCounterJob++; | 813 buildCounterJob++; |
814 if (buildCounterJob < 3) { | 814 if (buildCounterJob < 3) { |
815 o.driverControlFilesUri = "foo"; | 815 o.driverControlFilesUri = "foo"; |
816 o.driverInputResourceUri = "foo"; | 816 o.driverInputResourceUri = "foo"; |
817 o.driverOutputResourceUri = "foo"; | 817 o.driverOutputResourceUri = "foo"; |
818 o.hadoopJob = buildHadoopJob(); | 818 o.hadoopJob = buildHadoopJob(); |
819 o.hiveJob = buildHiveJob(); | 819 o.hiveJob = buildHiveJob(); |
820 o.interactive = true; | 820 o.interactive = true; |
821 o.labels = buildUnnamed3231(); | 821 o.labels = buildUnnamed3237(); |
822 o.pigJob = buildPigJob(); | 822 o.pigJob = buildPigJob(); |
823 o.placement = buildJobPlacement(); | 823 o.placement = buildJobPlacement(); |
824 o.pysparkJob = buildPySparkJob(); | 824 o.pysparkJob = buildPySparkJob(); |
825 o.reference = buildJobReference(); | 825 o.reference = buildJobReference(); |
826 o.scheduling = buildJobScheduling(); | 826 o.scheduling = buildJobScheduling(); |
827 o.sparkJob = buildSparkJob(); | 827 o.sparkJob = buildSparkJob(); |
828 o.sparkSqlJob = buildSparkSqlJob(); | 828 o.sparkSqlJob = buildSparkSqlJob(); |
829 o.status = buildJobStatus(); | 829 o.status = buildJobStatus(); |
830 o.statusHistory = buildUnnamed3232(); | 830 o.statusHistory = buildUnnamed3238(); |
831 o.submittedBy = "foo"; | 831 o.submittedBy = "foo"; |
832 o.yarnApplications = buildUnnamed3233(); | 832 o.yarnApplications = buildUnnamed3239(); |
833 } | 833 } |
834 buildCounterJob--; | 834 buildCounterJob--; |
835 return o; | 835 return o; |
836 } | 836 } |
837 | 837 |
838 checkJob(api.Job o) { | 838 checkJob(api.Job o) { |
839 buildCounterJob++; | 839 buildCounterJob++; |
840 if (buildCounterJob < 3) { | 840 if (buildCounterJob < 3) { |
841 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); | 841 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); |
842 unittest.expect(o.driverInputResourceUri, unittest.equals('foo')); | 842 unittest.expect(o.driverInputResourceUri, unittest.equals('foo')); |
843 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); | 843 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); |
844 checkHadoopJob(o.hadoopJob); | 844 checkHadoopJob(o.hadoopJob); |
845 checkHiveJob(o.hiveJob); | 845 checkHiveJob(o.hiveJob); |
846 unittest.expect(o.interactive, unittest.isTrue); | 846 unittest.expect(o.interactive, unittest.isTrue); |
847 checkUnnamed3231(o.labels); | 847 checkUnnamed3237(o.labels); |
848 checkPigJob(o.pigJob); | 848 checkPigJob(o.pigJob); |
849 checkJobPlacement(o.placement); | 849 checkJobPlacement(o.placement); |
850 checkPySparkJob(o.pysparkJob); | 850 checkPySparkJob(o.pysparkJob); |
851 checkJobReference(o.reference); | 851 checkJobReference(o.reference); |
852 checkJobScheduling(o.scheduling); | 852 checkJobScheduling(o.scheduling); |
853 checkSparkJob(o.sparkJob); | 853 checkSparkJob(o.sparkJob); |
854 checkSparkSqlJob(o.sparkSqlJob); | 854 checkSparkSqlJob(o.sparkSqlJob); |
855 checkJobStatus(o.status); | 855 checkJobStatus(o.status); |
856 checkUnnamed3232(o.statusHistory); | 856 checkUnnamed3238(o.statusHistory); |
857 unittest.expect(o.submittedBy, unittest.equals('foo')); | 857 unittest.expect(o.submittedBy, unittest.equals('foo')); |
858 checkUnnamed3233(o.yarnApplications); | 858 checkUnnamed3239(o.yarnApplications); |
859 } | 859 } |
860 buildCounterJob--; | 860 buildCounterJob--; |
861 } | 861 } |
862 | 862 |
863 core.int buildCounterJobPlacement = 0; | 863 core.int buildCounterJobPlacement = 0; |
864 buildJobPlacement() { | 864 buildJobPlacement() { |
865 var o = new api.JobPlacement(); | 865 var o = new api.JobPlacement(); |
866 buildCounterJobPlacement++; | 866 buildCounterJobPlacement++; |
867 if (buildCounterJobPlacement < 3) { | 867 if (buildCounterJobPlacement < 3) { |
868 o.clusterName = "foo"; | 868 o.clusterName = "foo"; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
939 buildCounterJobStatus++; | 939 buildCounterJobStatus++; |
940 if (buildCounterJobStatus < 3) { | 940 if (buildCounterJobStatus < 3) { |
941 unittest.expect(o.details, unittest.equals('foo')); | 941 unittest.expect(o.details, unittest.equals('foo')); |
942 unittest.expect(o.state, unittest.equals('foo')); | 942 unittest.expect(o.state, unittest.equals('foo')); |
943 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 943 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
944 unittest.expect(o.substate, unittest.equals('foo')); | 944 unittest.expect(o.substate, unittest.equals('foo')); |
945 } | 945 } |
946 buildCounterJobStatus--; | 946 buildCounterJobStatus--; |
947 } | 947 } |
948 | 948 |
949 buildUnnamed3234() { | 949 buildUnnamed3240() { |
950 var o = new core.List<api.Cluster>(); | 950 var o = new core.List<api.Cluster>(); |
951 o.add(buildCluster()); | 951 o.add(buildCluster()); |
952 o.add(buildCluster()); | 952 o.add(buildCluster()); |
953 return o; | 953 return o; |
954 } | 954 } |
955 | 955 |
956 checkUnnamed3234(core.List<api.Cluster> o) { | 956 checkUnnamed3240(core.List<api.Cluster> o) { |
957 unittest.expect(o, unittest.hasLength(2)); | 957 unittest.expect(o, unittest.hasLength(2)); |
958 checkCluster(o[0]); | 958 checkCluster(o[0]); |
959 checkCluster(o[1]); | 959 checkCluster(o[1]); |
960 } | 960 } |
961 | 961 |
962 core.int buildCounterListClustersResponse = 0; | 962 core.int buildCounterListClustersResponse = 0; |
963 buildListClustersResponse() { | 963 buildListClustersResponse() { |
964 var o = new api.ListClustersResponse(); | 964 var o = new api.ListClustersResponse(); |
965 buildCounterListClustersResponse++; | 965 buildCounterListClustersResponse++; |
966 if (buildCounterListClustersResponse < 3) { | 966 if (buildCounterListClustersResponse < 3) { |
967 o.clusters = buildUnnamed3234(); | 967 o.clusters = buildUnnamed3240(); |
968 o.nextPageToken = "foo"; | 968 o.nextPageToken = "foo"; |
969 } | 969 } |
970 buildCounterListClustersResponse--; | 970 buildCounterListClustersResponse--; |
971 return o; | 971 return o; |
972 } | 972 } |
973 | 973 |
974 checkListClustersResponse(api.ListClustersResponse o) { | 974 checkListClustersResponse(api.ListClustersResponse o) { |
975 buildCounterListClustersResponse++; | 975 buildCounterListClustersResponse++; |
976 if (buildCounterListClustersResponse < 3) { | 976 if (buildCounterListClustersResponse < 3) { |
977 checkUnnamed3234(o.clusters); | 977 checkUnnamed3240(o.clusters); |
978 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 978 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
979 } | 979 } |
980 buildCounterListClustersResponse--; | 980 buildCounterListClustersResponse--; |
981 } | 981 } |
982 | 982 |
983 buildUnnamed3235() { | 983 buildUnnamed3241() { |
984 var o = new core.List<api.Job>(); | 984 var o = new core.List<api.Job>(); |
985 o.add(buildJob()); | 985 o.add(buildJob()); |
986 o.add(buildJob()); | 986 o.add(buildJob()); |
987 return o; | 987 return o; |
988 } | 988 } |
989 | 989 |
990 checkUnnamed3235(core.List<api.Job> o) { | 990 checkUnnamed3241(core.List<api.Job> o) { |
991 unittest.expect(o, unittest.hasLength(2)); | 991 unittest.expect(o, unittest.hasLength(2)); |
992 checkJob(o[0]); | 992 checkJob(o[0]); |
993 checkJob(o[1]); | 993 checkJob(o[1]); |
994 } | 994 } |
995 | 995 |
996 core.int buildCounterListJobsResponse = 0; | 996 core.int buildCounterListJobsResponse = 0; |
997 buildListJobsResponse() { | 997 buildListJobsResponse() { |
998 var o = new api.ListJobsResponse(); | 998 var o = new api.ListJobsResponse(); |
999 buildCounterListJobsResponse++; | 999 buildCounterListJobsResponse++; |
1000 if (buildCounterListJobsResponse < 3) { | 1000 if (buildCounterListJobsResponse < 3) { |
1001 o.jobs = buildUnnamed3235(); | 1001 o.jobs = buildUnnamed3241(); |
1002 o.nextPageToken = "foo"; | 1002 o.nextPageToken = "foo"; |
1003 } | 1003 } |
1004 buildCounterListJobsResponse--; | 1004 buildCounterListJobsResponse--; |
1005 return o; | 1005 return o; |
1006 } | 1006 } |
1007 | 1007 |
1008 checkListJobsResponse(api.ListJobsResponse o) { | 1008 checkListJobsResponse(api.ListJobsResponse o) { |
1009 buildCounterListJobsResponse++; | 1009 buildCounterListJobsResponse++; |
1010 if (buildCounterListJobsResponse < 3) { | 1010 if (buildCounterListJobsResponse < 3) { |
1011 checkUnnamed3235(o.jobs); | 1011 checkUnnamed3241(o.jobs); |
1012 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1012 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1013 } | 1013 } |
1014 buildCounterListJobsResponse--; | 1014 buildCounterListJobsResponse--; |
1015 } | 1015 } |
1016 | 1016 |
1017 buildUnnamed3236() { | 1017 buildUnnamed3242() { |
1018 var o = new core.List<api.Operation>(); | 1018 var o = new core.List<api.Operation>(); |
1019 o.add(buildOperation()); | 1019 o.add(buildOperation()); |
1020 o.add(buildOperation()); | 1020 o.add(buildOperation()); |
1021 return o; | 1021 return o; |
1022 } | 1022 } |
1023 | 1023 |
1024 checkUnnamed3236(core.List<api.Operation> o) { | 1024 checkUnnamed3242(core.List<api.Operation> o) { |
1025 unittest.expect(o, unittest.hasLength(2)); | 1025 unittest.expect(o, unittest.hasLength(2)); |
1026 checkOperation(o[0]); | 1026 checkOperation(o[0]); |
1027 checkOperation(o[1]); | 1027 checkOperation(o[1]); |
1028 } | 1028 } |
1029 | 1029 |
1030 core.int buildCounterListOperationsResponse = 0; | 1030 core.int buildCounterListOperationsResponse = 0; |
1031 buildListOperationsResponse() { | 1031 buildListOperationsResponse() { |
1032 var o = new api.ListOperationsResponse(); | 1032 var o = new api.ListOperationsResponse(); |
1033 buildCounterListOperationsResponse++; | 1033 buildCounterListOperationsResponse++; |
1034 if (buildCounterListOperationsResponse < 3) { | 1034 if (buildCounterListOperationsResponse < 3) { |
1035 o.nextPageToken = "foo"; | 1035 o.nextPageToken = "foo"; |
1036 o.operations = buildUnnamed3236(); | 1036 o.operations = buildUnnamed3242(); |
1037 } | 1037 } |
1038 buildCounterListOperationsResponse--; | 1038 buildCounterListOperationsResponse--; |
1039 return o; | 1039 return o; |
1040 } | 1040 } |
1041 | 1041 |
1042 checkListOperationsResponse(api.ListOperationsResponse o) { | 1042 checkListOperationsResponse(api.ListOperationsResponse o) { |
1043 buildCounterListOperationsResponse++; | 1043 buildCounterListOperationsResponse++; |
1044 if (buildCounterListOperationsResponse < 3) { | 1044 if (buildCounterListOperationsResponse < 3) { |
1045 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1045 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1046 checkUnnamed3236(o.operations); | 1046 checkUnnamed3242(o.operations); |
1047 } | 1047 } |
1048 buildCounterListOperationsResponse--; | 1048 buildCounterListOperationsResponse--; |
1049 } | 1049 } |
1050 | 1050 |
1051 buildUnnamed3237() { | 1051 buildUnnamed3243() { |
1052 var o = new core.Map<core.String, core.String>(); | 1052 var o = new core.Map<core.String, core.String>(); |
1053 o["x"] = "foo"; | 1053 o["x"] = "foo"; |
1054 o["y"] = "foo"; | 1054 o["y"] = "foo"; |
1055 return o; | 1055 return o; |
1056 } | 1056 } |
1057 | 1057 |
1058 checkUnnamed3237(core.Map<core.String, core.String> o) { | 1058 checkUnnamed3243(core.Map<core.String, core.String> o) { |
1059 unittest.expect(o, unittest.hasLength(2)); | 1059 unittest.expect(o, unittest.hasLength(2)); |
1060 unittest.expect(o["x"], unittest.equals('foo')); | 1060 unittest.expect(o["x"], unittest.equals('foo')); |
1061 unittest.expect(o["y"], unittest.equals('foo')); | 1061 unittest.expect(o["y"], unittest.equals('foo')); |
1062 } | 1062 } |
1063 | 1063 |
1064 core.int buildCounterLoggingConfiguration = 0; | 1064 core.int buildCounterLoggingConfiguration = 0; |
1065 buildLoggingConfiguration() { | 1065 buildLoggingConfiguration() { |
1066 var o = new api.LoggingConfiguration(); | 1066 var o = new api.LoggingConfiguration(); |
1067 buildCounterLoggingConfiguration++; | 1067 buildCounterLoggingConfiguration++; |
1068 if (buildCounterLoggingConfiguration < 3) { | 1068 if (buildCounterLoggingConfiguration < 3) { |
1069 o.driverLogLevels = buildUnnamed3237(); | 1069 o.driverLogLevels = buildUnnamed3243(); |
1070 } | 1070 } |
1071 buildCounterLoggingConfiguration--; | 1071 buildCounterLoggingConfiguration--; |
1072 return o; | 1072 return o; |
1073 } | 1073 } |
1074 | 1074 |
1075 checkLoggingConfiguration(api.LoggingConfiguration o) { | 1075 checkLoggingConfiguration(api.LoggingConfiguration o) { |
1076 buildCounterLoggingConfiguration++; | 1076 buildCounterLoggingConfiguration++; |
1077 if (buildCounterLoggingConfiguration < 3) { | 1077 if (buildCounterLoggingConfiguration < 3) { |
1078 checkUnnamed3237(o.driverLogLevels); | 1078 checkUnnamed3243(o.driverLogLevels); |
1079 } | 1079 } |
1080 buildCounterLoggingConfiguration--; | 1080 buildCounterLoggingConfiguration--; |
1081 } | 1081 } |
1082 | 1082 |
1083 core.int buildCounterManagedGroupConfiguration = 0; | 1083 core.int buildCounterManagedGroupConfiguration = 0; |
1084 buildManagedGroupConfiguration() { | 1084 buildManagedGroupConfiguration() { |
1085 var o = new api.ManagedGroupConfiguration(); | 1085 var o = new api.ManagedGroupConfiguration(); |
1086 buildCounterManagedGroupConfiguration++; | 1086 buildCounterManagedGroupConfiguration++; |
1087 if (buildCounterManagedGroupConfiguration < 3) { | 1087 if (buildCounterManagedGroupConfiguration < 3) { |
1088 o.instanceGroupManagerName = "foo"; | 1088 o.instanceGroupManagerName = "foo"; |
(...skipping 26 matching lines...) Expand all Loading... |
1115 | 1115 |
1116 checkNodeInitializationAction(api.NodeInitializationAction o) { | 1116 checkNodeInitializationAction(api.NodeInitializationAction o) { |
1117 buildCounterNodeInitializationAction++; | 1117 buildCounterNodeInitializationAction++; |
1118 if (buildCounterNodeInitializationAction < 3) { | 1118 if (buildCounterNodeInitializationAction < 3) { |
1119 unittest.expect(o.executableFile, unittest.equals('foo')); | 1119 unittest.expect(o.executableFile, unittest.equals('foo')); |
1120 unittest.expect(o.executionTimeout, unittest.equals('foo')); | 1120 unittest.expect(o.executionTimeout, unittest.equals('foo')); |
1121 } | 1121 } |
1122 buildCounterNodeInitializationAction--; | 1122 buildCounterNodeInitializationAction--; |
1123 } | 1123 } |
1124 | 1124 |
1125 buildUnnamed3238() { | 1125 buildUnnamed3244() { |
1126 var o = new core.Map<core.String, core.Object>(); | 1126 var o = new core.Map<core.String, core.Object>(); |
1127 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1127 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1128 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1128 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1129 return o; | 1129 return o; |
1130 } | 1130 } |
1131 | 1131 |
1132 checkUnnamed3238(core.Map<core.String, core.Object> o) { | 1132 checkUnnamed3244(core.Map<core.String, core.Object> o) { |
1133 unittest.expect(o, unittest.hasLength(2)); | 1133 unittest.expect(o, unittest.hasLength(2)); |
1134 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); | 1134 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); |
1135 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); | 1135 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); |
1136 } | 1136 } |
1137 | 1137 |
1138 buildUnnamed3239() { | 1138 buildUnnamed3245() { |
1139 var o = new core.Map<core.String, core.Object>(); | 1139 var o = new core.Map<core.String, core.Object>(); |
1140 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1140 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1141 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1141 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1142 return o; | 1142 return o; |
1143 } | 1143 } |
1144 | 1144 |
1145 checkUnnamed3239(core.Map<core.String, core.Object> o) { | 1145 checkUnnamed3245(core.Map<core.String, core.Object> o) { |
1146 unittest.expect(o, unittest.hasLength(2)); | 1146 unittest.expect(o, unittest.hasLength(2)); |
1147 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); | 1147 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); |
1148 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); | 1148 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); |
1149 } | 1149 } |
1150 | 1150 |
1151 core.int buildCounterOperation = 0; | 1151 core.int buildCounterOperation = 0; |
1152 buildOperation() { | 1152 buildOperation() { |
1153 var o = new api.Operation(); | 1153 var o = new api.Operation(); |
1154 buildCounterOperation++; | 1154 buildCounterOperation++; |
1155 if (buildCounterOperation < 3) { | 1155 if (buildCounterOperation < 3) { |
1156 o.done = true; | 1156 o.done = true; |
1157 o.error = buildStatus(); | 1157 o.error = buildStatus(); |
1158 o.metadata = buildUnnamed3238(); | 1158 o.metadata = buildUnnamed3244(); |
1159 o.name = "foo"; | 1159 o.name = "foo"; |
1160 o.response = buildUnnamed3239(); | 1160 o.response = buildUnnamed3245(); |
1161 } | 1161 } |
1162 buildCounterOperation--; | 1162 buildCounterOperation--; |
1163 return o; | 1163 return o; |
1164 } | 1164 } |
1165 | 1165 |
1166 checkOperation(api.Operation o) { | 1166 checkOperation(api.Operation o) { |
1167 buildCounterOperation++; | 1167 buildCounterOperation++; |
1168 if (buildCounterOperation < 3) { | 1168 if (buildCounterOperation < 3) { |
1169 unittest.expect(o.done, unittest.isTrue); | 1169 unittest.expect(o.done, unittest.isTrue); |
1170 checkStatus(o.error); | 1170 checkStatus(o.error); |
1171 checkUnnamed3238(o.metadata); | 1171 checkUnnamed3244(o.metadata); |
1172 unittest.expect(o.name, unittest.equals('foo')); | 1172 unittest.expect(o.name, unittest.equals('foo')); |
1173 checkUnnamed3239(o.response); | 1173 checkUnnamed3245(o.response); |
1174 } | 1174 } |
1175 buildCounterOperation--; | 1175 buildCounterOperation--; |
1176 } | 1176 } |
1177 | 1177 |
1178 buildUnnamed3240() { | 1178 buildUnnamed3246() { |
1179 var o = new core.List<api.OperationStatus>(); | 1179 var o = new core.List<api.OperationStatus>(); |
1180 o.add(buildOperationStatus()); | 1180 o.add(buildOperationStatus()); |
1181 o.add(buildOperationStatus()); | 1181 o.add(buildOperationStatus()); |
1182 return o; | 1182 return o; |
1183 } | 1183 } |
1184 | 1184 |
1185 checkUnnamed3240(core.List<api.OperationStatus> o) { | 1185 checkUnnamed3246(core.List<api.OperationStatus> o) { |
1186 unittest.expect(o, unittest.hasLength(2)); | 1186 unittest.expect(o, unittest.hasLength(2)); |
1187 checkOperationStatus(o[0]); | 1187 checkOperationStatus(o[0]); |
1188 checkOperationStatus(o[1]); | 1188 checkOperationStatus(o[1]); |
1189 } | 1189 } |
1190 | 1190 |
1191 buildUnnamed3241() { | 1191 buildUnnamed3247() { |
1192 var o = new core.List<core.String>(); | 1192 var o = new core.List<core.String>(); |
1193 o.add("foo"); | 1193 o.add("foo"); |
1194 o.add("foo"); | 1194 o.add("foo"); |
1195 return o; | 1195 return o; |
1196 } | 1196 } |
1197 | 1197 |
1198 checkUnnamed3241(core.List<core.String> o) { | 1198 checkUnnamed3247(core.List<core.String> o) { |
1199 unittest.expect(o, unittest.hasLength(2)); | 1199 unittest.expect(o, unittest.hasLength(2)); |
1200 unittest.expect(o[0], unittest.equals('foo')); | 1200 unittest.expect(o[0], unittest.equals('foo')); |
1201 unittest.expect(o[1], unittest.equals('foo')); | 1201 unittest.expect(o[1], unittest.equals('foo')); |
1202 } | 1202 } |
1203 | 1203 |
1204 core.int buildCounterOperationMetadata = 0; | 1204 core.int buildCounterOperationMetadata = 0; |
1205 buildOperationMetadata() { | 1205 buildOperationMetadata() { |
1206 var o = new api.OperationMetadata(); | 1206 var o = new api.OperationMetadata(); |
1207 buildCounterOperationMetadata++; | 1207 buildCounterOperationMetadata++; |
1208 if (buildCounterOperationMetadata < 3) { | 1208 if (buildCounterOperationMetadata < 3) { |
1209 o.clusterName = "foo"; | 1209 o.clusterName = "foo"; |
1210 o.clusterUuid = "foo"; | 1210 o.clusterUuid = "foo"; |
1211 o.description = "foo"; | 1211 o.description = "foo"; |
1212 o.operationType = "foo"; | 1212 o.operationType = "foo"; |
1213 o.status = buildOperationStatus(); | 1213 o.status = buildOperationStatus(); |
1214 o.statusHistory = buildUnnamed3240(); | 1214 o.statusHistory = buildUnnamed3246(); |
1215 o.warnings = buildUnnamed3241(); | 1215 o.warnings = buildUnnamed3247(); |
1216 } | 1216 } |
1217 buildCounterOperationMetadata--; | 1217 buildCounterOperationMetadata--; |
1218 return o; | 1218 return o; |
1219 } | 1219 } |
1220 | 1220 |
1221 checkOperationMetadata(api.OperationMetadata o) { | 1221 checkOperationMetadata(api.OperationMetadata o) { |
1222 buildCounterOperationMetadata++; | 1222 buildCounterOperationMetadata++; |
1223 if (buildCounterOperationMetadata < 3) { | 1223 if (buildCounterOperationMetadata < 3) { |
1224 unittest.expect(o.clusterName, unittest.equals('foo')); | 1224 unittest.expect(o.clusterName, unittest.equals('foo')); |
1225 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 1225 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
1226 unittest.expect(o.description, unittest.equals('foo')); | 1226 unittest.expect(o.description, unittest.equals('foo')); |
1227 unittest.expect(o.operationType, unittest.equals('foo')); | 1227 unittest.expect(o.operationType, unittest.equals('foo')); |
1228 checkOperationStatus(o.status); | 1228 checkOperationStatus(o.status); |
1229 checkUnnamed3240(o.statusHistory); | 1229 checkUnnamed3246(o.statusHistory); |
1230 checkUnnamed3241(o.warnings); | 1230 checkUnnamed3247(o.warnings); |
1231 } | 1231 } |
1232 buildCounterOperationMetadata--; | 1232 buildCounterOperationMetadata--; |
1233 } | 1233 } |
1234 | 1234 |
1235 core.int buildCounterOperationStatus = 0; | 1235 core.int buildCounterOperationStatus = 0; |
1236 buildOperationStatus() { | 1236 buildOperationStatus() { |
1237 var o = new api.OperationStatus(); | 1237 var o = new api.OperationStatus(); |
1238 buildCounterOperationStatus++; | 1238 buildCounterOperationStatus++; |
1239 if (buildCounterOperationStatus < 3) { | 1239 if (buildCounterOperationStatus < 3) { |
1240 o.details = "foo"; | 1240 o.details = "foo"; |
1241 o.innerState = "foo"; | 1241 o.innerState = "foo"; |
1242 o.state = "foo"; | 1242 o.state = "foo"; |
1243 o.stateStartTime = "foo"; | 1243 o.stateStartTime = "foo"; |
1244 } | 1244 } |
1245 buildCounterOperationStatus--; | 1245 buildCounterOperationStatus--; |
1246 return o; | 1246 return o; |
1247 } | 1247 } |
1248 | 1248 |
1249 checkOperationStatus(api.OperationStatus o) { | 1249 checkOperationStatus(api.OperationStatus o) { |
1250 buildCounterOperationStatus++; | 1250 buildCounterOperationStatus++; |
1251 if (buildCounterOperationStatus < 3) { | 1251 if (buildCounterOperationStatus < 3) { |
1252 unittest.expect(o.details, unittest.equals('foo')); | 1252 unittest.expect(o.details, unittest.equals('foo')); |
1253 unittest.expect(o.innerState, unittest.equals('foo')); | 1253 unittest.expect(o.innerState, unittest.equals('foo')); |
1254 unittest.expect(o.state, unittest.equals('foo')); | 1254 unittest.expect(o.state, unittest.equals('foo')); |
1255 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 1255 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
1256 } | 1256 } |
1257 buildCounterOperationStatus--; | 1257 buildCounterOperationStatus--; |
1258 } | 1258 } |
1259 | 1259 |
1260 buildUnnamed3242() { | 1260 buildUnnamed3248() { |
1261 var o = new core.List<core.String>(); | 1261 var o = new core.List<core.String>(); |
1262 o.add("foo"); | 1262 o.add("foo"); |
1263 o.add("foo"); | 1263 o.add("foo"); |
1264 return o; | 1264 return o; |
1265 } | 1265 } |
1266 | 1266 |
1267 checkUnnamed3242(core.List<core.String> o) { | 1267 checkUnnamed3248(core.List<core.String> o) { |
1268 unittest.expect(o, unittest.hasLength(2)); | 1268 unittest.expect(o, unittest.hasLength(2)); |
1269 unittest.expect(o[0], unittest.equals('foo')); | 1269 unittest.expect(o[0], unittest.equals('foo')); |
1270 unittest.expect(o[1], unittest.equals('foo')); | 1270 unittest.expect(o[1], unittest.equals('foo')); |
1271 } | 1271 } |
1272 | 1272 |
1273 buildUnnamed3243() { | 1273 buildUnnamed3249() { |
1274 var o = new core.Map<core.String, core.String>(); | 1274 var o = new core.Map<core.String, core.String>(); |
1275 o["x"] = "foo"; | 1275 o["x"] = "foo"; |
1276 o["y"] = "foo"; | 1276 o["y"] = "foo"; |
1277 return o; | 1277 return o; |
1278 } | 1278 } |
1279 | 1279 |
1280 checkUnnamed3243(core.Map<core.String, core.String> o) { | 1280 checkUnnamed3249(core.Map<core.String, core.String> o) { |
1281 unittest.expect(o, unittest.hasLength(2)); | 1281 unittest.expect(o, unittest.hasLength(2)); |
1282 unittest.expect(o["x"], unittest.equals('foo')); | 1282 unittest.expect(o["x"], unittest.equals('foo')); |
1283 unittest.expect(o["y"], unittest.equals('foo')); | 1283 unittest.expect(o["y"], unittest.equals('foo')); |
1284 } | 1284 } |
1285 | 1285 |
1286 buildUnnamed3244() { | 1286 buildUnnamed3250() { |
1287 var o = new core.Map<core.String, core.String>(); | 1287 var o = new core.Map<core.String, core.String>(); |
1288 o["x"] = "foo"; | 1288 o["x"] = "foo"; |
1289 o["y"] = "foo"; | 1289 o["y"] = "foo"; |
1290 return o; | 1290 return o; |
1291 } | 1291 } |
1292 | 1292 |
1293 checkUnnamed3244(core.Map<core.String, core.String> o) { | 1293 checkUnnamed3250(core.Map<core.String, core.String> o) { |
1294 unittest.expect(o, unittest.hasLength(2)); | 1294 unittest.expect(o, unittest.hasLength(2)); |
1295 unittest.expect(o["x"], unittest.equals('foo')); | 1295 unittest.expect(o["x"], unittest.equals('foo')); |
1296 unittest.expect(o["y"], unittest.equals('foo')); | 1296 unittest.expect(o["y"], unittest.equals('foo')); |
1297 } | 1297 } |
1298 | 1298 |
1299 core.int buildCounterPigJob = 0; | 1299 core.int buildCounterPigJob = 0; |
1300 buildPigJob() { | 1300 buildPigJob() { |
1301 var o = new api.PigJob(); | 1301 var o = new api.PigJob(); |
1302 buildCounterPigJob++; | 1302 buildCounterPigJob++; |
1303 if (buildCounterPigJob < 3) { | 1303 if (buildCounterPigJob < 3) { |
1304 o.continueOnFailure = true; | 1304 o.continueOnFailure = true; |
1305 o.jarFileUris = buildUnnamed3242(); | 1305 o.jarFileUris = buildUnnamed3248(); |
1306 o.loggingConfiguration = buildLoggingConfiguration(); | 1306 o.loggingConfiguration = buildLoggingConfiguration(); |
1307 o.properties = buildUnnamed3243(); | 1307 o.properties = buildUnnamed3249(); |
1308 o.queryFileUri = "foo"; | 1308 o.queryFileUri = "foo"; |
1309 o.queryList = buildQueryList(); | 1309 o.queryList = buildQueryList(); |
1310 o.scriptVariables = buildUnnamed3244(); | 1310 o.scriptVariables = buildUnnamed3250(); |
1311 } | 1311 } |
1312 buildCounterPigJob--; | 1312 buildCounterPigJob--; |
1313 return o; | 1313 return o; |
1314 } | 1314 } |
1315 | 1315 |
1316 checkPigJob(api.PigJob o) { | 1316 checkPigJob(api.PigJob o) { |
1317 buildCounterPigJob++; | 1317 buildCounterPigJob++; |
1318 if (buildCounterPigJob < 3) { | 1318 if (buildCounterPigJob < 3) { |
1319 unittest.expect(o.continueOnFailure, unittest.isTrue); | 1319 unittest.expect(o.continueOnFailure, unittest.isTrue); |
1320 checkUnnamed3242(o.jarFileUris); | 1320 checkUnnamed3248(o.jarFileUris); |
1321 checkLoggingConfiguration(o.loggingConfiguration); | 1321 checkLoggingConfiguration(o.loggingConfiguration); |
1322 checkUnnamed3243(o.properties); | 1322 checkUnnamed3249(o.properties); |
1323 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1323 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
1324 checkQueryList(o.queryList); | 1324 checkQueryList(o.queryList); |
1325 checkUnnamed3244(o.scriptVariables); | 1325 checkUnnamed3250(o.scriptVariables); |
1326 } | 1326 } |
1327 buildCounterPigJob--; | 1327 buildCounterPigJob--; |
1328 } | 1328 } |
1329 | 1329 |
1330 buildUnnamed3245() { | 1330 buildUnnamed3251() { |
1331 var o = new core.List<core.String>(); | 1331 var o = new core.List<core.String>(); |
1332 o.add("foo"); | 1332 o.add("foo"); |
1333 o.add("foo"); | 1333 o.add("foo"); |
1334 return o; | 1334 return o; |
1335 } | 1335 } |
1336 | 1336 |
1337 checkUnnamed3245(core.List<core.String> o) { | 1337 checkUnnamed3251(core.List<core.String> o) { |
1338 unittest.expect(o, unittest.hasLength(2)); | 1338 unittest.expect(o, unittest.hasLength(2)); |
1339 unittest.expect(o[0], unittest.equals('foo')); | 1339 unittest.expect(o[0], unittest.equals('foo')); |
1340 unittest.expect(o[1], unittest.equals('foo')); | 1340 unittest.expect(o[1], unittest.equals('foo')); |
1341 } | 1341 } |
1342 | 1342 |
1343 buildUnnamed3246() { | 1343 buildUnnamed3252() { |
1344 var o = new core.List<core.String>(); | 1344 var o = new core.List<core.String>(); |
1345 o.add("foo"); | 1345 o.add("foo"); |
1346 o.add("foo"); | 1346 o.add("foo"); |
1347 return o; | 1347 return o; |
1348 } | 1348 } |
1349 | 1349 |
1350 checkUnnamed3246(core.List<core.String> o) { | 1350 checkUnnamed3252(core.List<core.String> o) { |
1351 unittest.expect(o, unittest.hasLength(2)); | 1351 unittest.expect(o, unittest.hasLength(2)); |
1352 unittest.expect(o[0], unittest.equals('foo')); | 1352 unittest.expect(o[0], unittest.equals('foo')); |
1353 unittest.expect(o[1], unittest.equals('foo')); | 1353 unittest.expect(o[1], unittest.equals('foo')); |
1354 } | 1354 } |
1355 | 1355 |
1356 buildUnnamed3247() { | 1356 buildUnnamed3253() { |
1357 var o = new core.List<core.String>(); | 1357 var o = new core.List<core.String>(); |
1358 o.add("foo"); | 1358 o.add("foo"); |
1359 o.add("foo"); | 1359 o.add("foo"); |
1360 return o; | 1360 return o; |
1361 } | 1361 } |
1362 | 1362 |
1363 checkUnnamed3247(core.List<core.String> o) { | 1363 checkUnnamed3253(core.List<core.String> o) { |
1364 unittest.expect(o, unittest.hasLength(2)); | 1364 unittest.expect(o, unittest.hasLength(2)); |
1365 unittest.expect(o[0], unittest.equals('foo')); | 1365 unittest.expect(o[0], unittest.equals('foo')); |
1366 unittest.expect(o[1], unittest.equals('foo')); | 1366 unittest.expect(o[1], unittest.equals('foo')); |
1367 } | 1367 } |
1368 | 1368 |
1369 buildUnnamed3248() { | 1369 buildUnnamed3254() { |
1370 var o = new core.List<core.String>(); | 1370 var o = new core.List<core.String>(); |
1371 o.add("foo"); | 1371 o.add("foo"); |
1372 o.add("foo"); | 1372 o.add("foo"); |
1373 return o; | 1373 return o; |
1374 } | 1374 } |
1375 | 1375 |
1376 checkUnnamed3248(core.List<core.String> o) { | 1376 checkUnnamed3254(core.List<core.String> o) { |
1377 unittest.expect(o, unittest.hasLength(2)); | 1377 unittest.expect(o, unittest.hasLength(2)); |
1378 unittest.expect(o[0], unittest.equals('foo')); | 1378 unittest.expect(o[0], unittest.equals('foo')); |
1379 unittest.expect(o[1], unittest.equals('foo')); | 1379 unittest.expect(o[1], unittest.equals('foo')); |
1380 } | 1380 } |
1381 | 1381 |
1382 buildUnnamed3249() { | 1382 buildUnnamed3255() { |
1383 var o = new core.Map<core.String, core.String>(); | 1383 var o = new core.Map<core.String, core.String>(); |
1384 o["x"] = "foo"; | 1384 o["x"] = "foo"; |
1385 o["y"] = "foo"; | 1385 o["y"] = "foo"; |
1386 return o; | 1386 return o; |
1387 } | 1387 } |
1388 | 1388 |
1389 checkUnnamed3249(core.Map<core.String, core.String> o) { | 1389 checkUnnamed3255(core.Map<core.String, core.String> o) { |
1390 unittest.expect(o, unittest.hasLength(2)); | 1390 unittest.expect(o, unittest.hasLength(2)); |
1391 unittest.expect(o["x"], unittest.equals('foo')); | 1391 unittest.expect(o["x"], unittest.equals('foo')); |
1392 unittest.expect(o["y"], unittest.equals('foo')); | 1392 unittest.expect(o["y"], unittest.equals('foo')); |
1393 } | 1393 } |
1394 | 1394 |
1395 buildUnnamed3250() { | 1395 buildUnnamed3256() { |
1396 var o = new core.List<core.String>(); | 1396 var o = new core.List<core.String>(); |
1397 o.add("foo"); | 1397 o.add("foo"); |
1398 o.add("foo"); | 1398 o.add("foo"); |
1399 return o; | 1399 return o; |
1400 } | 1400 } |
1401 | 1401 |
1402 checkUnnamed3250(core.List<core.String> o) { | 1402 checkUnnamed3256(core.List<core.String> o) { |
1403 unittest.expect(o, unittest.hasLength(2)); | 1403 unittest.expect(o, unittest.hasLength(2)); |
1404 unittest.expect(o[0], unittest.equals('foo')); | 1404 unittest.expect(o[0], unittest.equals('foo')); |
1405 unittest.expect(o[1], unittest.equals('foo')); | 1405 unittest.expect(o[1], unittest.equals('foo')); |
1406 } | 1406 } |
1407 | 1407 |
1408 core.int buildCounterPySparkJob = 0; | 1408 core.int buildCounterPySparkJob = 0; |
1409 buildPySparkJob() { | 1409 buildPySparkJob() { |
1410 var o = new api.PySparkJob(); | 1410 var o = new api.PySparkJob(); |
1411 buildCounterPySparkJob++; | 1411 buildCounterPySparkJob++; |
1412 if (buildCounterPySparkJob < 3) { | 1412 if (buildCounterPySparkJob < 3) { |
1413 o.archiveUris = buildUnnamed3245(); | 1413 o.archiveUris = buildUnnamed3251(); |
1414 o.args = buildUnnamed3246(); | 1414 o.args = buildUnnamed3252(); |
1415 o.fileUris = buildUnnamed3247(); | 1415 o.fileUris = buildUnnamed3253(); |
1416 o.jarFileUris = buildUnnamed3248(); | 1416 o.jarFileUris = buildUnnamed3254(); |
1417 o.loggingConfiguration = buildLoggingConfiguration(); | 1417 o.loggingConfiguration = buildLoggingConfiguration(); |
1418 o.mainPythonFileUri = "foo"; | 1418 o.mainPythonFileUri = "foo"; |
1419 o.properties = buildUnnamed3249(); | 1419 o.properties = buildUnnamed3255(); |
1420 o.pythonFileUris = buildUnnamed3250(); | 1420 o.pythonFileUris = buildUnnamed3256(); |
1421 } | 1421 } |
1422 buildCounterPySparkJob--; | 1422 buildCounterPySparkJob--; |
1423 return o; | 1423 return o; |
1424 } | 1424 } |
1425 | 1425 |
1426 checkPySparkJob(api.PySparkJob o) { | 1426 checkPySparkJob(api.PySparkJob o) { |
1427 buildCounterPySparkJob++; | 1427 buildCounterPySparkJob++; |
1428 if (buildCounterPySparkJob < 3) { | 1428 if (buildCounterPySparkJob < 3) { |
1429 checkUnnamed3245(o.archiveUris); | 1429 checkUnnamed3251(o.archiveUris); |
1430 checkUnnamed3246(o.args); | 1430 checkUnnamed3252(o.args); |
1431 checkUnnamed3247(o.fileUris); | 1431 checkUnnamed3253(o.fileUris); |
1432 checkUnnamed3248(o.jarFileUris); | 1432 checkUnnamed3254(o.jarFileUris); |
1433 checkLoggingConfiguration(o.loggingConfiguration); | 1433 checkLoggingConfiguration(o.loggingConfiguration); |
1434 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); | 1434 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); |
1435 checkUnnamed3249(o.properties); | 1435 checkUnnamed3255(o.properties); |
1436 checkUnnamed3250(o.pythonFileUris); | 1436 checkUnnamed3256(o.pythonFileUris); |
1437 } | 1437 } |
1438 buildCounterPySparkJob--; | 1438 buildCounterPySparkJob--; |
1439 } | 1439 } |
1440 | 1440 |
1441 buildUnnamed3251() { | 1441 buildUnnamed3257() { |
1442 var o = new core.List<core.String>(); | 1442 var o = new core.List<core.String>(); |
1443 o.add("foo"); | 1443 o.add("foo"); |
1444 o.add("foo"); | 1444 o.add("foo"); |
1445 return o; | 1445 return o; |
1446 } | 1446 } |
1447 | 1447 |
1448 checkUnnamed3251(core.List<core.String> o) { | 1448 checkUnnamed3257(core.List<core.String> o) { |
1449 unittest.expect(o, unittest.hasLength(2)); | 1449 unittest.expect(o, unittest.hasLength(2)); |
1450 unittest.expect(o[0], unittest.equals('foo')); | 1450 unittest.expect(o[0], unittest.equals('foo')); |
1451 unittest.expect(o[1], unittest.equals('foo')); | 1451 unittest.expect(o[1], unittest.equals('foo')); |
1452 } | 1452 } |
1453 | 1453 |
1454 core.int buildCounterQueryList = 0; | 1454 core.int buildCounterQueryList = 0; |
1455 buildQueryList() { | 1455 buildQueryList() { |
1456 var o = new api.QueryList(); | 1456 var o = new api.QueryList(); |
1457 buildCounterQueryList++; | 1457 buildCounterQueryList++; |
1458 if (buildCounterQueryList < 3) { | 1458 if (buildCounterQueryList < 3) { |
1459 o.queries = buildUnnamed3251(); | 1459 o.queries = buildUnnamed3257(); |
1460 } | 1460 } |
1461 buildCounterQueryList--; | 1461 buildCounterQueryList--; |
1462 return o; | 1462 return o; |
1463 } | 1463 } |
1464 | 1464 |
1465 checkQueryList(api.QueryList o) { | 1465 checkQueryList(api.QueryList o) { |
1466 buildCounterQueryList++; | 1466 buildCounterQueryList++; |
1467 if (buildCounterQueryList < 3) { | 1467 if (buildCounterQueryList < 3) { |
1468 checkUnnamed3251(o.queries); | 1468 checkUnnamed3257(o.queries); |
1469 } | 1469 } |
1470 buildCounterQueryList--; | 1470 buildCounterQueryList--; |
1471 } | 1471 } |
1472 | 1472 |
1473 buildUnnamed3252() { | 1473 buildUnnamed3258() { |
1474 var o = new core.Map<core.String, core.String>(); | 1474 var o = new core.Map<core.String, core.String>(); |
1475 o["x"] = "foo"; | 1475 o["x"] = "foo"; |
1476 o["y"] = "foo"; | 1476 o["y"] = "foo"; |
1477 return o; | 1477 return o; |
1478 } | 1478 } |
1479 | 1479 |
1480 checkUnnamed3252(core.Map<core.String, core.String> o) { | 1480 checkUnnamed3258(core.Map<core.String, core.String> o) { |
1481 unittest.expect(o, unittest.hasLength(2)); | 1481 unittest.expect(o, unittest.hasLength(2)); |
1482 unittest.expect(o["x"], unittest.equals('foo')); | 1482 unittest.expect(o["x"], unittest.equals('foo')); |
1483 unittest.expect(o["y"], unittest.equals('foo')); | 1483 unittest.expect(o["y"], unittest.equals('foo')); |
1484 } | 1484 } |
1485 | 1485 |
1486 core.int buildCounterSoftwareConfiguration = 0; | 1486 core.int buildCounterSoftwareConfiguration = 0; |
1487 buildSoftwareConfiguration() { | 1487 buildSoftwareConfiguration() { |
1488 var o = new api.SoftwareConfiguration(); | 1488 var o = new api.SoftwareConfiguration(); |
1489 buildCounterSoftwareConfiguration++; | 1489 buildCounterSoftwareConfiguration++; |
1490 if (buildCounterSoftwareConfiguration < 3) { | 1490 if (buildCounterSoftwareConfiguration < 3) { |
1491 o.imageVersion = "foo"; | 1491 o.imageVersion = "foo"; |
1492 o.properties = buildUnnamed3252(); | 1492 o.properties = buildUnnamed3258(); |
1493 } | 1493 } |
1494 buildCounterSoftwareConfiguration--; | 1494 buildCounterSoftwareConfiguration--; |
1495 return o; | 1495 return o; |
1496 } | 1496 } |
1497 | 1497 |
1498 checkSoftwareConfiguration(api.SoftwareConfiguration o) { | 1498 checkSoftwareConfiguration(api.SoftwareConfiguration o) { |
1499 buildCounterSoftwareConfiguration++; | 1499 buildCounterSoftwareConfiguration++; |
1500 if (buildCounterSoftwareConfiguration < 3) { | 1500 if (buildCounterSoftwareConfiguration < 3) { |
1501 unittest.expect(o.imageVersion, unittest.equals('foo')); | 1501 unittest.expect(o.imageVersion, unittest.equals('foo')); |
1502 checkUnnamed3252(o.properties); | 1502 checkUnnamed3258(o.properties); |
1503 } | 1503 } |
1504 buildCounterSoftwareConfiguration--; | 1504 buildCounterSoftwareConfiguration--; |
1505 } | 1505 } |
1506 | 1506 |
1507 buildUnnamed3253() { | 1507 buildUnnamed3259() { |
1508 var o = new core.List<core.String>(); | 1508 var o = new core.List<core.String>(); |
1509 o.add("foo"); | 1509 o.add("foo"); |
1510 o.add("foo"); | 1510 o.add("foo"); |
1511 return o; | 1511 return o; |
1512 } | 1512 } |
1513 | 1513 |
1514 checkUnnamed3253(core.List<core.String> o) { | 1514 checkUnnamed3259(core.List<core.String> o) { |
1515 unittest.expect(o, unittest.hasLength(2)); | 1515 unittest.expect(o, unittest.hasLength(2)); |
1516 unittest.expect(o[0], unittest.equals('foo')); | 1516 unittest.expect(o[0], unittest.equals('foo')); |
1517 unittest.expect(o[1], unittest.equals('foo')); | 1517 unittest.expect(o[1], unittest.equals('foo')); |
1518 } | 1518 } |
1519 | 1519 |
1520 buildUnnamed3254() { | 1520 buildUnnamed3260() { |
1521 var o = new core.List<core.String>(); | 1521 var o = new core.List<core.String>(); |
1522 o.add("foo"); | 1522 o.add("foo"); |
1523 o.add("foo"); | 1523 o.add("foo"); |
1524 return o; | 1524 return o; |
1525 } | 1525 } |
1526 | 1526 |
1527 checkUnnamed3254(core.List<core.String> o) { | 1527 checkUnnamed3260(core.List<core.String> o) { |
1528 unittest.expect(o, unittest.hasLength(2)); | 1528 unittest.expect(o, unittest.hasLength(2)); |
1529 unittest.expect(o[0], unittest.equals('foo')); | 1529 unittest.expect(o[0], unittest.equals('foo')); |
1530 unittest.expect(o[1], unittest.equals('foo')); | 1530 unittest.expect(o[1], unittest.equals('foo')); |
1531 } | 1531 } |
1532 | 1532 |
1533 buildUnnamed3255() { | 1533 buildUnnamed3261() { |
1534 var o = new core.List<core.String>(); | 1534 var o = new core.List<core.String>(); |
1535 o.add("foo"); | 1535 o.add("foo"); |
1536 o.add("foo"); | 1536 o.add("foo"); |
1537 return o; | 1537 return o; |
1538 } | 1538 } |
1539 | 1539 |
1540 checkUnnamed3255(core.List<core.String> o) { | 1540 checkUnnamed3261(core.List<core.String> o) { |
1541 unittest.expect(o, unittest.hasLength(2)); | 1541 unittest.expect(o, unittest.hasLength(2)); |
1542 unittest.expect(o[0], unittest.equals('foo')); | 1542 unittest.expect(o[0], unittest.equals('foo')); |
1543 unittest.expect(o[1], unittest.equals('foo')); | 1543 unittest.expect(o[1], unittest.equals('foo')); |
1544 } | 1544 } |
1545 | 1545 |
1546 buildUnnamed3256() { | 1546 buildUnnamed3262() { |
1547 var o = new core.List<core.String>(); | 1547 var o = new core.List<core.String>(); |
1548 o.add("foo"); | 1548 o.add("foo"); |
1549 o.add("foo"); | 1549 o.add("foo"); |
1550 return o; | 1550 return o; |
1551 } | 1551 } |
1552 | 1552 |
1553 checkUnnamed3256(core.List<core.String> o) { | 1553 checkUnnamed3262(core.List<core.String> o) { |
1554 unittest.expect(o, unittest.hasLength(2)); | 1554 unittest.expect(o, unittest.hasLength(2)); |
1555 unittest.expect(o[0], unittest.equals('foo')); | 1555 unittest.expect(o[0], unittest.equals('foo')); |
1556 unittest.expect(o[1], unittest.equals('foo')); | 1556 unittest.expect(o[1], unittest.equals('foo')); |
1557 } | 1557 } |
1558 | 1558 |
1559 buildUnnamed3257() { | 1559 buildUnnamed3263() { |
1560 var o = new core.Map<core.String, core.String>(); | 1560 var o = new core.Map<core.String, core.String>(); |
1561 o["x"] = "foo"; | 1561 o["x"] = "foo"; |
1562 o["y"] = "foo"; | 1562 o["y"] = "foo"; |
1563 return o; | 1563 return o; |
1564 } | 1564 } |
1565 | 1565 |
1566 checkUnnamed3257(core.Map<core.String, core.String> o) { | 1566 checkUnnamed3263(core.Map<core.String, core.String> o) { |
1567 unittest.expect(o, unittest.hasLength(2)); | 1567 unittest.expect(o, unittest.hasLength(2)); |
1568 unittest.expect(o["x"], unittest.equals('foo')); | 1568 unittest.expect(o["x"], unittest.equals('foo')); |
1569 unittest.expect(o["y"], unittest.equals('foo')); | 1569 unittest.expect(o["y"], unittest.equals('foo')); |
1570 } | 1570 } |
1571 | 1571 |
1572 core.int buildCounterSparkJob = 0; | 1572 core.int buildCounterSparkJob = 0; |
1573 buildSparkJob() { | 1573 buildSparkJob() { |
1574 var o = new api.SparkJob(); | 1574 var o = new api.SparkJob(); |
1575 buildCounterSparkJob++; | 1575 buildCounterSparkJob++; |
1576 if (buildCounterSparkJob < 3) { | 1576 if (buildCounterSparkJob < 3) { |
1577 o.archiveUris = buildUnnamed3253(); | 1577 o.archiveUris = buildUnnamed3259(); |
1578 o.args = buildUnnamed3254(); | 1578 o.args = buildUnnamed3260(); |
1579 o.fileUris = buildUnnamed3255(); | 1579 o.fileUris = buildUnnamed3261(); |
1580 o.jarFileUris = buildUnnamed3256(); | 1580 o.jarFileUris = buildUnnamed3262(); |
1581 o.loggingConfiguration = buildLoggingConfiguration(); | 1581 o.loggingConfiguration = buildLoggingConfiguration(); |
1582 o.mainClass = "foo"; | 1582 o.mainClass = "foo"; |
1583 o.mainJarFileUri = "foo"; | 1583 o.mainJarFileUri = "foo"; |
1584 o.properties = buildUnnamed3257(); | 1584 o.properties = buildUnnamed3263(); |
1585 } | 1585 } |
1586 buildCounterSparkJob--; | 1586 buildCounterSparkJob--; |
1587 return o; | 1587 return o; |
1588 } | 1588 } |
1589 | 1589 |
1590 checkSparkJob(api.SparkJob o) { | 1590 checkSparkJob(api.SparkJob o) { |
1591 buildCounterSparkJob++; | 1591 buildCounterSparkJob++; |
1592 if (buildCounterSparkJob < 3) { | 1592 if (buildCounterSparkJob < 3) { |
1593 checkUnnamed3253(o.archiveUris); | 1593 checkUnnamed3259(o.archiveUris); |
1594 checkUnnamed3254(o.args); | 1594 checkUnnamed3260(o.args); |
1595 checkUnnamed3255(o.fileUris); | 1595 checkUnnamed3261(o.fileUris); |
1596 checkUnnamed3256(o.jarFileUris); | 1596 checkUnnamed3262(o.jarFileUris); |
1597 checkLoggingConfiguration(o.loggingConfiguration); | 1597 checkLoggingConfiguration(o.loggingConfiguration); |
1598 unittest.expect(o.mainClass, unittest.equals('foo')); | 1598 unittest.expect(o.mainClass, unittest.equals('foo')); |
1599 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 1599 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
1600 checkUnnamed3257(o.properties); | 1600 checkUnnamed3263(o.properties); |
1601 } | 1601 } |
1602 buildCounterSparkJob--; | 1602 buildCounterSparkJob--; |
1603 } | 1603 } |
1604 | 1604 |
1605 buildUnnamed3258() { | 1605 buildUnnamed3264() { |
1606 var o = new core.List<core.String>(); | 1606 var o = new core.List<core.String>(); |
1607 o.add("foo"); | 1607 o.add("foo"); |
1608 o.add("foo"); | 1608 o.add("foo"); |
1609 return o; | 1609 return o; |
1610 } | 1610 } |
1611 | 1611 |
1612 checkUnnamed3258(core.List<core.String> o) { | 1612 checkUnnamed3264(core.List<core.String> o) { |
1613 unittest.expect(o, unittest.hasLength(2)); | 1613 unittest.expect(o, unittest.hasLength(2)); |
1614 unittest.expect(o[0], unittest.equals('foo')); | 1614 unittest.expect(o[0], unittest.equals('foo')); |
1615 unittest.expect(o[1], unittest.equals('foo')); | 1615 unittest.expect(o[1], unittest.equals('foo')); |
1616 } | 1616 } |
1617 | 1617 |
1618 buildUnnamed3259() { | 1618 buildUnnamed3265() { |
1619 var o = new core.Map<core.String, core.String>(); | 1619 var o = new core.Map<core.String, core.String>(); |
1620 o["x"] = "foo"; | 1620 o["x"] = "foo"; |
1621 o["y"] = "foo"; | 1621 o["y"] = "foo"; |
1622 return o; | 1622 return o; |
1623 } | 1623 } |
1624 | 1624 |
1625 checkUnnamed3259(core.Map<core.String, core.String> o) { | 1625 checkUnnamed3265(core.Map<core.String, core.String> o) { |
1626 unittest.expect(o, unittest.hasLength(2)); | 1626 unittest.expect(o, unittest.hasLength(2)); |
1627 unittest.expect(o["x"], unittest.equals('foo')); | 1627 unittest.expect(o["x"], unittest.equals('foo')); |
1628 unittest.expect(o["y"], unittest.equals('foo')); | 1628 unittest.expect(o["y"], unittest.equals('foo')); |
1629 } | 1629 } |
1630 | 1630 |
1631 buildUnnamed3260() { | 1631 buildUnnamed3266() { |
1632 var o = new core.Map<core.String, core.String>(); | 1632 var o = new core.Map<core.String, core.String>(); |
1633 o["x"] = "foo"; | 1633 o["x"] = "foo"; |
1634 o["y"] = "foo"; | 1634 o["y"] = "foo"; |
1635 return o; | 1635 return o; |
1636 } | 1636 } |
1637 | 1637 |
1638 checkUnnamed3260(core.Map<core.String, core.String> o) { | 1638 checkUnnamed3266(core.Map<core.String, core.String> o) { |
1639 unittest.expect(o, unittest.hasLength(2)); | 1639 unittest.expect(o, unittest.hasLength(2)); |
1640 unittest.expect(o["x"], unittest.equals('foo')); | 1640 unittest.expect(o["x"], unittest.equals('foo')); |
1641 unittest.expect(o["y"], unittest.equals('foo')); | 1641 unittest.expect(o["y"], unittest.equals('foo')); |
1642 } | 1642 } |
1643 | 1643 |
1644 core.int buildCounterSparkSqlJob = 0; | 1644 core.int buildCounterSparkSqlJob = 0; |
1645 buildSparkSqlJob() { | 1645 buildSparkSqlJob() { |
1646 var o = new api.SparkSqlJob(); | 1646 var o = new api.SparkSqlJob(); |
1647 buildCounterSparkSqlJob++; | 1647 buildCounterSparkSqlJob++; |
1648 if (buildCounterSparkSqlJob < 3) { | 1648 if (buildCounterSparkSqlJob < 3) { |
1649 o.jarFileUris = buildUnnamed3258(); | 1649 o.jarFileUris = buildUnnamed3264(); |
1650 o.loggingConfiguration = buildLoggingConfiguration(); | 1650 o.loggingConfiguration = buildLoggingConfiguration(); |
1651 o.properties = buildUnnamed3259(); | 1651 o.properties = buildUnnamed3265(); |
1652 o.queryFileUri = "foo"; | 1652 o.queryFileUri = "foo"; |
1653 o.queryList = buildQueryList(); | 1653 o.queryList = buildQueryList(); |
1654 o.scriptVariables = buildUnnamed3260(); | 1654 o.scriptVariables = buildUnnamed3266(); |
1655 } | 1655 } |
1656 buildCounterSparkSqlJob--; | 1656 buildCounterSparkSqlJob--; |
1657 return o; | 1657 return o; |
1658 } | 1658 } |
1659 | 1659 |
1660 checkSparkSqlJob(api.SparkSqlJob o) { | 1660 checkSparkSqlJob(api.SparkSqlJob o) { |
1661 buildCounterSparkSqlJob++; | 1661 buildCounterSparkSqlJob++; |
1662 if (buildCounterSparkSqlJob < 3) { | 1662 if (buildCounterSparkSqlJob < 3) { |
1663 checkUnnamed3258(o.jarFileUris); | 1663 checkUnnamed3264(o.jarFileUris); |
1664 checkLoggingConfiguration(o.loggingConfiguration); | 1664 checkLoggingConfiguration(o.loggingConfiguration); |
1665 checkUnnamed3259(o.properties); | 1665 checkUnnamed3265(o.properties); |
1666 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1666 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
1667 checkQueryList(o.queryList); | 1667 checkQueryList(o.queryList); |
1668 checkUnnamed3260(o.scriptVariables); | 1668 checkUnnamed3266(o.scriptVariables); |
1669 } | 1669 } |
1670 buildCounterSparkSqlJob--; | 1670 buildCounterSparkSqlJob--; |
1671 } | 1671 } |
1672 | 1672 |
1673 buildUnnamed3261() { | 1673 buildUnnamed3267() { |
1674 var o = new core.Map<core.String, core.Object>(); | 1674 var o = new core.Map<core.String, core.Object>(); |
1675 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1675 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1676 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1676 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1677 return o; | 1677 return o; |
1678 } | 1678 } |
1679 | 1679 |
1680 checkUnnamed3261(core.Map<core.String, core.Object> o) { | 1680 checkUnnamed3267(core.Map<core.String, core.Object> o) { |
1681 unittest.expect(o, unittest.hasLength(2)); | 1681 unittest.expect(o, unittest.hasLength(2)); |
1682 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); | 1682 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); |
1683 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); | 1683 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); |
1684 } | 1684 } |
1685 | 1685 |
1686 buildUnnamed3262() { | 1686 buildUnnamed3268() { |
1687 var o = new core.List<core.Map<core.String, core.Object>>(); | 1687 var o = new core.List<core.Map<core.String, core.Object>>(); |
1688 o.add(buildUnnamed3261()); | 1688 o.add(buildUnnamed3267()); |
1689 o.add(buildUnnamed3261()); | 1689 o.add(buildUnnamed3267()); |
1690 return o; | 1690 return o; |
1691 } | 1691 } |
1692 | 1692 |
1693 checkUnnamed3262(core.List<core.Map<core.String, core.Object>> o) { | 1693 checkUnnamed3268(core.List<core.Map<core.String, core.Object>> o) { |
1694 unittest.expect(o, unittest.hasLength(2)); | 1694 unittest.expect(o, unittest.hasLength(2)); |
1695 checkUnnamed3261(o[0]); | 1695 checkUnnamed3267(o[0]); |
1696 checkUnnamed3261(o[1]); | 1696 checkUnnamed3267(o[1]); |
1697 } | 1697 } |
1698 | 1698 |
1699 core.int buildCounterStatus = 0; | 1699 core.int buildCounterStatus = 0; |
1700 buildStatus() { | 1700 buildStatus() { |
1701 var o = new api.Status(); | 1701 var o = new api.Status(); |
1702 buildCounterStatus++; | 1702 buildCounterStatus++; |
1703 if (buildCounterStatus < 3) { | 1703 if (buildCounterStatus < 3) { |
1704 o.code = 42; | 1704 o.code = 42; |
1705 o.details = buildUnnamed3262(); | 1705 o.details = buildUnnamed3268(); |
1706 o.message = "foo"; | 1706 o.message = "foo"; |
1707 } | 1707 } |
1708 buildCounterStatus--; | 1708 buildCounterStatus--; |
1709 return o; | 1709 return o; |
1710 } | 1710 } |
1711 | 1711 |
1712 checkStatus(api.Status o) { | 1712 checkStatus(api.Status o) { |
1713 buildCounterStatus++; | 1713 buildCounterStatus++; |
1714 if (buildCounterStatus < 3) { | 1714 if (buildCounterStatus < 3) { |
1715 unittest.expect(o.code, unittest.equals(42)); | 1715 unittest.expect(o.code, unittest.equals(42)); |
1716 checkUnnamed3262(o.details); | 1716 checkUnnamed3268(o.details); |
1717 unittest.expect(o.message, unittest.equals('foo')); | 1717 unittest.expect(o.message, unittest.equals('foo')); |
1718 } | 1718 } |
1719 buildCounterStatus--; | 1719 buildCounterStatus--; |
1720 } | 1720 } |
1721 | 1721 |
1722 core.int buildCounterSubmitJobRequest = 0; | 1722 core.int buildCounterSubmitJobRequest = 0; |
1723 buildSubmitJobRequest() { | 1723 buildSubmitJobRequest() { |
1724 var o = new api.SubmitJobRequest(); | 1724 var o = new api.SubmitJobRequest(); |
1725 buildCounterSubmitJobRequest++; | 1725 buildCounterSubmitJobRequest++; |
1726 if (buildCounterSubmitJobRequest < 3) { | 1726 if (buildCounterSubmitJobRequest < 3) { |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2272 res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { | 2272 res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { |
2273 checkOperation(response); | 2273 checkOperation(response); |
2274 }))); | 2274 }))); |
2275 }); | 2275 }); |
2276 | 2276 |
2277 unittest.test("method--list", () { | 2277 unittest.test("method--list", () { |
2278 | 2278 |
2279 var mock = new HttpServerMock(); | 2279 var mock = new HttpServerMock(); |
2280 api.OperationsResourceApi res = new api.DataprocApi(mock).operations; | 2280 api.OperationsResourceApi res = new api.DataprocApi(mock).operations; |
2281 var arg_name = "foo"; | 2281 var arg_name = "foo"; |
| 2282 var arg_filter = "foo"; |
2282 var arg_pageToken = "foo"; | 2283 var arg_pageToken = "foo"; |
2283 var arg_pageSize = 42; | 2284 var arg_pageSize = 42; |
2284 var arg_filter = "foo"; | |
2285 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2285 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2286 var path = (req.url).path; | 2286 var path = (req.url).path; |
2287 var pathOffset = 0; | 2287 var pathOffset = 0; |
2288 var index; | 2288 var index; |
2289 var subPart; | 2289 var subPart; |
2290 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2290 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2291 pathOffset += 1; | 2291 pathOffset += 1; |
2292 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta1/")); | 2292 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta1/")); |
2293 pathOffset += 8; | 2293 pathOffset += 8; |
2294 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 2294 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
2295 | 2295 |
2296 var query = (req.url).query; | 2296 var query = (req.url).query; |
2297 var queryOffset = 0; | 2297 var queryOffset = 0; |
2298 var queryMap = {}; | 2298 var queryMap = {}; |
2299 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2299 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2300 parseBool(n) { | 2300 parseBool(n) { |
2301 if (n == "true") return true; | 2301 if (n == "true") return true; |
2302 if (n == "false") return false; | 2302 if (n == "false") return false; |
2303 if (n == null) return null; | 2303 if (n == null) return null; |
2304 throw new core.ArgumentError("Invalid boolean: $n"); | 2304 throw new core.ArgumentError("Invalid boolean: $n"); |
2305 } | 2305 } |
2306 if (query.length > 0) { | 2306 if (query.length > 0) { |
2307 for (var part in query.split("&")) { | 2307 for (var part in query.split("&")) { |
2308 var keyvalue = part.split("="); | 2308 var keyvalue = part.split("="); |
2309 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2309 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2310 } | 2310 } |
2311 } | 2311 } |
| 2312 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
2312 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2313 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2313 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2314 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2314 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
2315 | 2315 |
2316 | 2316 |
2317 var h = { | 2317 var h = { |
2318 "content-type" : "application/json; charset=utf-8", | 2318 "content-type" : "application/json; charset=utf-8", |
2319 }; | 2319 }; |
2320 var resp = convert.JSON.encode(buildListOperationsResponse()); | 2320 var resp = convert.JSON.encode(buildListOperationsResponse()); |
2321 return new async.Future.value(stringResponse(200, h, resp)); | 2321 return new async.Future.value(stringResponse(200, h, resp)); |
2322 }), true); | 2322 }), true); |
2323 res.list(arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filte
r: arg_filter).then(unittest.expectAsync(((api.ListOperationsResponse response)
{ | 2323 res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize:
arg_pageSize).then(unittest.expectAsync(((api.ListOperationsResponse response)
{ |
2324 checkListOperationsResponse(response); | 2324 checkListOperationsResponse(response); |
2325 }))); | 2325 }))); |
2326 }); | 2326 }); |
2327 | 2327 |
2328 }); | 2328 }); |
2329 | 2329 |
2330 | 2330 |
2331 unittest.group("resource-ProjectsClustersResourceApi", () { | 2331 unittest.group("resource-ProjectsClustersResourceApi", () { |
2332 unittest.test("method--create", () { | 2332 unittest.test("method--create", () { |
2333 | 2333 |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2555 res.get(arg_projectId, arg_clusterName).then(unittest.expectAsync(((api.Cl
uster response) { | 2555 res.get(arg_projectId, arg_clusterName).then(unittest.expectAsync(((api.Cl
uster response) { |
2556 checkCluster(response); | 2556 checkCluster(response); |
2557 }))); | 2557 }))); |
2558 }); | 2558 }); |
2559 | 2559 |
2560 unittest.test("method--list", () { | 2560 unittest.test("method--list", () { |
2561 | 2561 |
2562 var mock = new HttpServerMock(); | 2562 var mock = new HttpServerMock(); |
2563 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; | 2563 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; |
2564 var arg_projectId = "foo"; | 2564 var arg_projectId = "foo"; |
| 2565 var arg_filter = "foo"; |
2565 var arg_pageToken = "foo"; | 2566 var arg_pageToken = "foo"; |
2566 var arg_pageSize = 42; | 2567 var arg_pageSize = 42; |
2567 var arg_filter = "foo"; | |
2568 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2568 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2569 var path = (req.url).path; | 2569 var path = (req.url).path; |
2570 var pathOffset = 0; | 2570 var pathOffset = 0; |
2571 var index; | 2571 var index; |
2572 var subPart; | 2572 var subPart; |
2573 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2573 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2574 pathOffset += 1; | 2574 pathOffset += 1; |
2575 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); | 2575 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); |
2576 pathOffset += 17; | 2576 pathOffset += 17; |
2577 index = path.indexOf("/clusters", pathOffset); | 2577 index = path.indexOf("/clusters", pathOffset); |
(...skipping 13 matching lines...) Expand all Loading... |
2591 if (n == "false") return false; | 2591 if (n == "false") return false; |
2592 if (n == null) return null; | 2592 if (n == null) return null; |
2593 throw new core.ArgumentError("Invalid boolean: $n"); | 2593 throw new core.ArgumentError("Invalid boolean: $n"); |
2594 } | 2594 } |
2595 if (query.length > 0) { | 2595 if (query.length > 0) { |
2596 for (var part in query.split("&")) { | 2596 for (var part in query.split("&")) { |
2597 var keyvalue = part.split("="); | 2597 var keyvalue = part.split("="); |
2598 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2598 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2599 } | 2599 } |
2600 } | 2600 } |
| 2601 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
2601 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2602 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2602 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2603 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2603 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
2604 | 2604 |
2605 | 2605 |
2606 var h = { | 2606 var h = { |
2607 "content-type" : "application/json; charset=utf-8", | 2607 "content-type" : "application/json; charset=utf-8", |
2608 }; | 2608 }; |
2609 var resp = convert.JSON.encode(buildListClustersResponse()); | 2609 var resp = convert.JSON.encode(buildListClustersResponse()); |
2610 return new async.Future.value(stringResponse(200, h, resp)); | 2610 return new async.Future.value(stringResponse(200, h, resp)); |
2611 }), true); | 2611 }), true); |
2612 res.list(arg_projectId, pageToken: arg_pageToken, pageSize: arg_pageSize,
filter: arg_filter).then(unittest.expectAsync(((api.ListClustersResponse respons
e) { | 2612 res.list(arg_projectId, filter: arg_filter, pageToken: arg_pageToken, page
Size: arg_pageSize).then(unittest.expectAsync(((api.ListClustersResponse respons
e) { |
2613 checkListClustersResponse(response); | 2613 checkListClustersResponse(response); |
2614 }))); | 2614 }))); |
2615 }); | 2615 }); |
2616 | 2616 |
2617 unittest.test("method--patch", () { | 2617 unittest.test("method--patch", () { |
2618 | 2618 |
2619 var mock = new HttpServerMock(); | 2619 var mock = new HttpServerMock(); |
2620 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; | 2620 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; |
2621 var arg_request = buildCluster(); | 2621 var arg_request = buildCluster(); |
2622 var arg_projectId = "foo"; | 2622 var arg_projectId = "foo"; |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2850 res.get(arg_projectId, arg_jobId).then(unittest.expectAsync(((api.Job resp
onse) { | 2850 res.get(arg_projectId, arg_jobId).then(unittest.expectAsync(((api.Job resp
onse) { |
2851 checkJob(response); | 2851 checkJob(response); |
2852 }))); | 2852 }))); |
2853 }); | 2853 }); |
2854 | 2854 |
2855 unittest.test("method--list", () { | 2855 unittest.test("method--list", () { |
2856 | 2856 |
2857 var mock = new HttpServerMock(); | 2857 var mock = new HttpServerMock(); |
2858 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; | 2858 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; |
2859 var arg_projectId = "foo"; | 2859 var arg_projectId = "foo"; |
2860 var arg_pageToken = "foo"; | |
2861 var arg_pageSize = 42; | 2860 var arg_pageSize = 42; |
2862 var arg_clusterName = "foo"; | 2861 var arg_clusterName = "foo"; |
2863 var arg_filter = "foo"; | 2862 var arg_filter = "foo"; |
2864 var arg_jobStateMatcher = "foo"; | 2863 var arg_jobStateMatcher = "foo"; |
| 2864 var arg_pageToken = "foo"; |
2865 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2865 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2866 var path = (req.url).path; | 2866 var path = (req.url).path; |
2867 var pathOffset = 0; | 2867 var pathOffset = 0; |
2868 var index; | 2868 var index; |
2869 var subPart; | 2869 var subPart; |
2870 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2870 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2871 pathOffset += 1; | 2871 pathOffset += 1; |
2872 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); | 2872 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); |
2873 pathOffset += 17; | 2873 pathOffset += 17; |
2874 index = path.indexOf("/jobs", pathOffset); | 2874 index = path.indexOf("/jobs", pathOffset); |
(...skipping 13 matching lines...) Expand all Loading... |
2888 if (n == "false") return false; | 2888 if (n == "false") return false; |
2889 if (n == null) return null; | 2889 if (n == null) return null; |
2890 throw new core.ArgumentError("Invalid boolean: $n"); | 2890 throw new core.ArgumentError("Invalid boolean: $n"); |
2891 } | 2891 } |
2892 if (query.length > 0) { | 2892 if (query.length > 0) { |
2893 for (var part in query.split("&")) { | 2893 for (var part in query.split("&")) { |
2894 var keyvalue = part.split("="); | 2894 var keyvalue = part.split("="); |
2895 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2895 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2896 } | 2896 } |
2897 } | 2897 } |
2898 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
2899 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2898 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2900 unittest.expect(queryMap["clusterName"].first, unittest.equals(arg_clust
erName)); | 2899 unittest.expect(queryMap["clusterName"].first, unittest.equals(arg_clust
erName)); |
2901 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 2900 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
2902 unittest.expect(queryMap["jobStateMatcher"].first, unittest.equals(arg_j
obStateMatcher)); | 2901 unittest.expect(queryMap["jobStateMatcher"].first, unittest.equals(arg_j
obStateMatcher)); |
| 2902 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2903 | 2903 |
2904 | 2904 |
2905 var h = { | 2905 var h = { |
2906 "content-type" : "application/json; charset=utf-8", | 2906 "content-type" : "application/json; charset=utf-8", |
2907 }; | 2907 }; |
2908 var resp = convert.JSON.encode(buildListJobsResponse()); | 2908 var resp = convert.JSON.encode(buildListJobsResponse()); |
2909 return new async.Future.value(stringResponse(200, h, resp)); | 2909 return new async.Future.value(stringResponse(200, h, resp)); |
2910 }), true); | 2910 }), true); |
2911 res.list(arg_projectId, pageToken: arg_pageToken, pageSize: arg_pageSize,
clusterName: arg_clusterName, filter: arg_filter, jobStateMatcher: arg_jobStateM
atcher).then(unittest.expectAsync(((api.ListJobsResponse response) { | 2911 res.list(arg_projectId, pageSize: arg_pageSize, clusterName: arg_clusterNa
me, filter: arg_filter, jobStateMatcher: arg_jobStateMatcher, pageToken: arg_pag
eToken).then(unittest.expectAsync(((api.ListJobsResponse response) { |
2912 checkListJobsResponse(response); | 2912 checkListJobsResponse(response); |
2913 }))); | 2913 }))); |
2914 }); | 2914 }); |
2915 | 2915 |
2916 unittest.test("method--patch", () { | 2916 unittest.test("method--patch", () { |
2917 | 2917 |
2918 var mock = new HttpServerMock(); | 2918 var mock = new HttpServerMock(); |
2919 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; | 2919 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; |
2920 var arg_request = buildJob(); | 2920 var arg_request = buildJob(); |
2921 var arg_projectId = "foo"; | 2921 var arg_projectId = "foo"; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3027 res.submit(arg_request, arg_projectId).then(unittest.expectAsync(((api.Job
response) { | 3027 res.submit(arg_request, arg_projectId).then(unittest.expectAsync(((api.Job
response) { |
3028 checkJob(response); | 3028 checkJob(response); |
3029 }))); | 3029 }))); |
3030 }); | 3030 }); |
3031 | 3031 |
3032 }); | 3032 }); |
3033 | 3033 |
3034 | 3034 |
3035 } | 3035 } |
3036 | 3036 |
OLD | NEW |