| 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 buildUnnamed3118() { | 109 buildUnnamed3210() { |
| 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 checkUnnamed3118(core.Map<core.String, core.String> o) { | 116 checkUnnamed3210(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 buildUnnamed3119() { | 122 buildUnnamed3211() { |
| 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 checkUnnamed3119(core.List<api.ClusterStatus> o) { | 129 checkUnnamed3211(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 = buildUnnamed3118(); | 143 o.labels = buildUnnamed3210(); |
| 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 = buildUnnamed3119(); | 147 o.statusHistory = buildUnnamed3211(); |
| 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 checkUnnamed3118(o.labels); | 159 checkUnnamed3210(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 checkUnnamed3119(o.statusHistory); | 163 checkUnnamed3211(o.statusHistory); |
| 164 } | 164 } |
| 165 buildCounterCluster--; | 165 buildCounterCluster--; |
| 166 } | 166 } |
| 167 | 167 |
| 168 buildUnnamed3120() { | 168 buildUnnamed3212() { |
| 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 checkUnnamed3120(core.List<api.NodeInitializationAction> o) { | 175 checkUnnamed3212(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 = buildUnnamed3120(); | 188 o.initializationActions = buildUnnamed3212(); |
| 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 checkUnnamed3120(o.initializationActions); | 203 checkUnnamed3212(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 buildUnnamed3121() { | 212 buildUnnamed3213() { |
| 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 checkUnnamed3121(core.Map<core.String, core.String> o) { | 219 checkUnnamed3213(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 buildUnnamed3122() { | 225 buildUnnamed3214() { |
| 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 checkUnnamed3122(core.Map<core.String, core.String> o) { | 232 checkUnnamed3214(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 = buildUnnamed3121(); | 243 o.hdfsMetrics = buildUnnamed3213(); |
| 244 o.yarnMetrics = buildUnnamed3122(); | 244 o.yarnMetrics = buildUnnamed3214(); |
| 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 checkUnnamed3121(o.hdfsMetrics); | 253 checkUnnamed3213(o.hdfsMetrics); |
| 254 checkUnnamed3122(o.yarnMetrics); | 254 checkUnnamed3214(o.yarnMetrics); |
| 255 } | 255 } |
| 256 buildCounterClusterMetrics--; | 256 buildCounterClusterMetrics--; |
| 257 } | 257 } |
| 258 | 258 |
| 259 buildUnnamed3123() { | 259 buildUnnamed3215() { |
| 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 checkUnnamed3123(core.Map<core.String, core.String> o) { | 266 checkUnnamed3215(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 buildUnnamed3124() { | 272 buildUnnamed3216() { |
| 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 checkUnnamed3124(core.List<api.ClusterOperationStatus> o) { | 279 checkUnnamed3216(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 buildUnnamed3125() { | 285 buildUnnamed3217() { |
| 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 checkUnnamed3125(core.List<core.String> o) { | 292 checkUnnamed3217(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 = buildUnnamed3123(); | 306 o.labels = buildUnnamed3215(); |
| 307 o.operationType = "foo"; | 307 o.operationType = "foo"; |
| 308 o.status = buildClusterOperationStatus(); | 308 o.status = buildClusterOperationStatus(); |
| 309 o.statusHistory = buildUnnamed3124(); | 309 o.statusHistory = buildUnnamed3216(); |
| 310 o.warnings = buildUnnamed3125(); | 310 o.warnings = buildUnnamed3217(); |
| 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 checkUnnamed3123(o.labels); | 322 checkUnnamed3215(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 checkUnnamed3124(o.statusHistory); | 325 checkUnnamed3216(o.statusHistory); |
| 326 checkUnnamed3125(o.warnings); | 326 checkUnnamed3217(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 17 matching lines...) Expand all Loading... |
| 354 } | 354 } |
| 355 | 355 |
| 356 core.int buildCounterClusterStatus = 0; | 356 core.int buildCounterClusterStatus = 0; |
| 357 buildClusterStatus() { | 357 buildClusterStatus() { |
| 358 var o = new api.ClusterStatus(); | 358 var o = new api.ClusterStatus(); |
| 359 buildCounterClusterStatus++; | 359 buildCounterClusterStatus++; |
| 360 if (buildCounterClusterStatus < 3) { | 360 if (buildCounterClusterStatus < 3) { |
| 361 o.detail = "foo"; | 361 o.detail = "foo"; |
| 362 o.state = "foo"; | 362 o.state = "foo"; |
| 363 o.stateStartTime = "foo"; | 363 o.stateStartTime = "foo"; |
| 364 o.substate = "foo"; |
| 364 } | 365 } |
| 365 buildCounterClusterStatus--; | 366 buildCounterClusterStatus--; |
| 366 return o; | 367 return o; |
| 367 } | 368 } |
| 368 | 369 |
| 369 checkClusterStatus(api.ClusterStatus o) { | 370 checkClusterStatus(api.ClusterStatus o) { |
| 370 buildCounterClusterStatus++; | 371 buildCounterClusterStatus++; |
| 371 if (buildCounterClusterStatus < 3) { | 372 if (buildCounterClusterStatus < 3) { |
| 372 unittest.expect(o.detail, unittest.equals('foo')); | 373 unittest.expect(o.detail, unittest.equals('foo')); |
| 373 unittest.expect(o.state, unittest.equals('foo')); | 374 unittest.expect(o.state, unittest.equals('foo')); |
| 374 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 375 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
| 376 unittest.expect(o.substate, unittest.equals('foo')); |
| 375 } | 377 } |
| 376 buildCounterClusterStatus--; | 378 buildCounterClusterStatus--; |
| 377 } | 379 } |
| 378 | 380 |
| 379 core.int buildCounterDiagnoseClusterOutputLocation = 0; | 381 core.int buildCounterDiagnoseClusterOutputLocation = 0; |
| 380 buildDiagnoseClusterOutputLocation() { | 382 buildDiagnoseClusterOutputLocation() { |
| 381 var o = new api.DiagnoseClusterOutputLocation(); | 383 var o = new api.DiagnoseClusterOutputLocation(); |
| 382 buildCounterDiagnoseClusterOutputLocation++; | 384 buildCounterDiagnoseClusterOutputLocation++; |
| 383 if (buildCounterDiagnoseClusterOutputLocation < 3) { | 385 if (buildCounterDiagnoseClusterOutputLocation < 3) { |
| 384 o.outputUri = "foo"; | 386 o.outputUri = "foo"; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 return o; | 464 return o; |
| 463 } | 465 } |
| 464 | 466 |
| 465 checkEmpty(api.Empty o) { | 467 checkEmpty(api.Empty o) { |
| 466 buildCounterEmpty++; | 468 buildCounterEmpty++; |
| 467 if (buildCounterEmpty < 3) { | 469 if (buildCounterEmpty < 3) { |
| 468 } | 470 } |
| 469 buildCounterEmpty--; | 471 buildCounterEmpty--; |
| 470 } | 472 } |
| 471 | 473 |
| 472 buildUnnamed3126() { | 474 buildUnnamed3218() { |
| 473 var o = new core.Map<core.String, core.String>(); | 475 var o = new core.Map<core.String, core.String>(); |
| 474 o["x"] = "foo"; | 476 o["x"] = "foo"; |
| 475 o["y"] = "foo"; | 477 o["y"] = "foo"; |
| 476 return o; | 478 return o; |
| 477 } | 479 } |
| 478 | 480 |
| 479 checkUnnamed3126(core.Map<core.String, core.String> o) { | 481 checkUnnamed3218(core.Map<core.String, core.String> o) { |
| 480 unittest.expect(o, unittest.hasLength(2)); | 482 unittest.expect(o, unittest.hasLength(2)); |
| 481 unittest.expect(o["x"], unittest.equals('foo')); | 483 unittest.expect(o["x"], unittest.equals('foo')); |
| 482 unittest.expect(o["y"], unittest.equals('foo')); | 484 unittest.expect(o["y"], unittest.equals('foo')); |
| 483 } | 485 } |
| 484 | 486 |
| 485 buildUnnamed3127() { | 487 buildUnnamed3219() { |
| 486 var o = new core.List<core.String>(); | 488 var o = new core.List<core.String>(); |
| 487 o.add("foo"); | 489 o.add("foo"); |
| 488 o.add("foo"); | 490 o.add("foo"); |
| 489 return o; | 491 return o; |
| 490 } | 492 } |
| 491 | 493 |
| 492 checkUnnamed3127(core.List<core.String> o) { | 494 checkUnnamed3219(core.List<core.String> o) { |
| 493 unittest.expect(o, unittest.hasLength(2)); | 495 unittest.expect(o, unittest.hasLength(2)); |
| 494 unittest.expect(o[0], unittest.equals('foo')); | 496 unittest.expect(o[0], unittest.equals('foo')); |
| 495 unittest.expect(o[1], unittest.equals('foo')); | 497 unittest.expect(o[1], unittest.equals('foo')); |
| 496 } | 498 } |
| 497 | 499 |
| 498 buildUnnamed3128() { | 500 buildUnnamed3220() { |
| 499 var o = new core.List<core.String>(); | 501 var o = new core.List<core.String>(); |
| 500 o.add("foo"); | 502 o.add("foo"); |
| 501 o.add("foo"); | 503 o.add("foo"); |
| 502 return o; | 504 return o; |
| 503 } | 505 } |
| 504 | 506 |
| 505 checkUnnamed3128(core.List<core.String> o) { | 507 checkUnnamed3220(core.List<core.String> o) { |
| 506 unittest.expect(o, unittest.hasLength(2)); | 508 unittest.expect(o, unittest.hasLength(2)); |
| 507 unittest.expect(o[0], unittest.equals('foo')); | 509 unittest.expect(o[0], unittest.equals('foo')); |
| 508 unittest.expect(o[1], unittest.equals('foo')); | 510 unittest.expect(o[1], unittest.equals('foo')); |
| 509 } | 511 } |
| 510 | 512 |
| 511 core.int buildCounterGceClusterConfiguration = 0; | 513 core.int buildCounterGceClusterConfiguration = 0; |
| 512 buildGceClusterConfiguration() { | 514 buildGceClusterConfiguration() { |
| 513 var o = new api.GceClusterConfiguration(); | 515 var o = new api.GceClusterConfiguration(); |
| 514 buildCounterGceClusterConfiguration++; | 516 buildCounterGceClusterConfiguration++; |
| 515 if (buildCounterGceClusterConfiguration < 3) { | 517 if (buildCounterGceClusterConfiguration < 3) { |
| 516 o.internalIpOnly = true; | 518 o.internalIpOnly = true; |
| 517 o.metadata = buildUnnamed3126(); | 519 o.metadata = buildUnnamed3218(); |
| 518 o.networkUri = "foo"; | 520 o.networkUri = "foo"; |
| 519 o.serviceAccount = "foo"; | 521 o.serviceAccount = "foo"; |
| 520 o.serviceAccountScopes = buildUnnamed3127(); | 522 o.serviceAccountScopes = buildUnnamed3219(); |
| 521 o.subnetworkUri = "foo"; | 523 o.subnetworkUri = "foo"; |
| 522 o.tags = buildUnnamed3128(); | 524 o.tags = buildUnnamed3220(); |
| 523 o.zoneUri = "foo"; | 525 o.zoneUri = "foo"; |
| 524 } | 526 } |
| 525 buildCounterGceClusterConfiguration--; | 527 buildCounterGceClusterConfiguration--; |
| 526 return o; | 528 return o; |
| 527 } | 529 } |
| 528 | 530 |
| 529 checkGceClusterConfiguration(api.GceClusterConfiguration o) { | 531 checkGceClusterConfiguration(api.GceClusterConfiguration o) { |
| 530 buildCounterGceClusterConfiguration++; | 532 buildCounterGceClusterConfiguration++; |
| 531 if (buildCounterGceClusterConfiguration < 3) { | 533 if (buildCounterGceClusterConfiguration < 3) { |
| 532 unittest.expect(o.internalIpOnly, unittest.isTrue); | 534 unittest.expect(o.internalIpOnly, unittest.isTrue); |
| 533 checkUnnamed3126(o.metadata); | 535 checkUnnamed3218(o.metadata); |
| 534 unittest.expect(o.networkUri, unittest.equals('foo')); | 536 unittest.expect(o.networkUri, unittest.equals('foo')); |
| 535 unittest.expect(o.serviceAccount, unittest.equals('foo')); | 537 unittest.expect(o.serviceAccount, unittest.equals('foo')); |
| 536 checkUnnamed3127(o.serviceAccountScopes); | 538 checkUnnamed3219(o.serviceAccountScopes); |
| 537 unittest.expect(o.subnetworkUri, unittest.equals('foo')); | 539 unittest.expect(o.subnetworkUri, unittest.equals('foo')); |
| 538 checkUnnamed3128(o.tags); | 540 checkUnnamed3220(o.tags); |
| 539 unittest.expect(o.zoneUri, unittest.equals('foo')); | 541 unittest.expect(o.zoneUri, unittest.equals('foo')); |
| 540 } | 542 } |
| 541 buildCounterGceClusterConfiguration--; | 543 buildCounterGceClusterConfiguration--; |
| 542 } | 544 } |
| 543 | 545 |
| 544 buildUnnamed3129() { | 546 buildUnnamed3221() { |
| 545 var o = new core.List<core.String>(); | 547 var o = new core.List<core.String>(); |
| 546 o.add("foo"); | 548 o.add("foo"); |
| 547 o.add("foo"); | 549 o.add("foo"); |
| 548 return o; | 550 return o; |
| 549 } | 551 } |
| 550 | 552 |
| 551 checkUnnamed3129(core.List<core.String> o) { | 553 checkUnnamed3221(core.List<core.String> o) { |
| 552 unittest.expect(o, unittest.hasLength(2)); | 554 unittest.expect(o, unittest.hasLength(2)); |
| 553 unittest.expect(o[0], unittest.equals('foo')); | 555 unittest.expect(o[0], unittest.equals('foo')); |
| 554 unittest.expect(o[1], unittest.equals('foo')); | 556 unittest.expect(o[1], unittest.equals('foo')); |
| 555 } | 557 } |
| 556 | 558 |
| 557 buildUnnamed3130() { | 559 buildUnnamed3222() { |
| 558 var o = new core.List<core.String>(); | 560 var o = new core.List<core.String>(); |
| 559 o.add("foo"); | 561 o.add("foo"); |
| 560 o.add("foo"); | 562 o.add("foo"); |
| 561 return o; | 563 return o; |
| 562 } | 564 } |
| 563 | 565 |
| 564 checkUnnamed3130(core.List<core.String> o) { | 566 checkUnnamed3222(core.List<core.String> o) { |
| 565 unittest.expect(o, unittest.hasLength(2)); | 567 unittest.expect(o, unittest.hasLength(2)); |
| 566 unittest.expect(o[0], unittest.equals('foo')); | 568 unittest.expect(o[0], unittest.equals('foo')); |
| 567 unittest.expect(o[1], unittest.equals('foo')); | 569 unittest.expect(o[1], unittest.equals('foo')); |
| 568 } | 570 } |
| 569 | 571 |
| 570 buildUnnamed3131() { | 572 buildUnnamed3223() { |
| 571 var o = new core.List<core.String>(); | 573 var o = new core.List<core.String>(); |
| 572 o.add("foo"); | 574 o.add("foo"); |
| 573 o.add("foo"); | 575 o.add("foo"); |
| 574 return o; | 576 return o; |
| 575 } | 577 } |
| 576 | 578 |
| 577 checkUnnamed3131(core.List<core.String> o) { | 579 checkUnnamed3223(core.List<core.String> o) { |
| 578 unittest.expect(o, unittest.hasLength(2)); | 580 unittest.expect(o, unittest.hasLength(2)); |
| 579 unittest.expect(o[0], unittest.equals('foo')); | 581 unittest.expect(o[0], unittest.equals('foo')); |
| 580 unittest.expect(o[1], unittest.equals('foo')); | 582 unittest.expect(o[1], unittest.equals('foo')); |
| 581 } | 583 } |
| 582 | 584 |
| 583 buildUnnamed3132() { | 585 buildUnnamed3224() { |
| 584 var o = new core.List<core.String>(); | 586 var o = new core.List<core.String>(); |
| 585 o.add("foo"); | 587 o.add("foo"); |
| 586 o.add("foo"); | 588 o.add("foo"); |
| 587 return o; | 589 return o; |
| 588 } | 590 } |
| 589 | 591 |
| 590 checkUnnamed3132(core.List<core.String> o) { | 592 checkUnnamed3224(core.List<core.String> o) { |
| 591 unittest.expect(o, unittest.hasLength(2)); | 593 unittest.expect(o, unittest.hasLength(2)); |
| 592 unittest.expect(o[0], unittest.equals('foo')); | 594 unittest.expect(o[0], unittest.equals('foo')); |
| 593 unittest.expect(o[1], unittest.equals('foo')); | 595 unittest.expect(o[1], unittest.equals('foo')); |
| 594 } | 596 } |
| 595 | 597 |
| 596 buildUnnamed3133() { | 598 buildUnnamed3225() { |
| 597 var o = new core.Map<core.String, core.String>(); | 599 var o = new core.Map<core.String, core.String>(); |
| 598 o["x"] = "foo"; | 600 o["x"] = "foo"; |
| 599 o["y"] = "foo"; | 601 o["y"] = "foo"; |
| 600 return o; | 602 return o; |
| 601 } | 603 } |
| 602 | 604 |
| 603 checkUnnamed3133(core.Map<core.String, core.String> o) { | 605 checkUnnamed3225(core.Map<core.String, core.String> o) { |
| 604 unittest.expect(o, unittest.hasLength(2)); | 606 unittest.expect(o, unittest.hasLength(2)); |
| 605 unittest.expect(o["x"], unittest.equals('foo')); | 607 unittest.expect(o["x"], unittest.equals('foo')); |
| 606 unittest.expect(o["y"], unittest.equals('foo')); | 608 unittest.expect(o["y"], unittest.equals('foo')); |
| 607 } | 609 } |
| 608 | 610 |
| 609 core.int buildCounterHadoopJob = 0; | 611 core.int buildCounterHadoopJob = 0; |
| 610 buildHadoopJob() { | 612 buildHadoopJob() { |
| 611 var o = new api.HadoopJob(); | 613 var o = new api.HadoopJob(); |
| 612 buildCounterHadoopJob++; | 614 buildCounterHadoopJob++; |
| 613 if (buildCounterHadoopJob < 3) { | 615 if (buildCounterHadoopJob < 3) { |
| 614 o.archiveUris = buildUnnamed3129(); | 616 o.archiveUris = buildUnnamed3221(); |
| 615 o.args = buildUnnamed3130(); | 617 o.args = buildUnnamed3222(); |
| 616 o.fileUris = buildUnnamed3131(); | 618 o.fileUris = buildUnnamed3223(); |
| 617 o.jarFileUris = buildUnnamed3132(); | 619 o.jarFileUris = buildUnnamed3224(); |
| 618 o.loggingConfiguration = buildLoggingConfiguration(); | 620 o.loggingConfiguration = buildLoggingConfiguration(); |
| 619 o.mainClass = "foo"; | 621 o.mainClass = "foo"; |
| 620 o.mainJarFileUri = "foo"; | 622 o.mainJarFileUri = "foo"; |
| 621 o.properties = buildUnnamed3133(); | 623 o.properties = buildUnnamed3225(); |
| 622 } | 624 } |
| 623 buildCounterHadoopJob--; | 625 buildCounterHadoopJob--; |
| 624 return o; | 626 return o; |
| 625 } | 627 } |
| 626 | 628 |
| 627 checkHadoopJob(api.HadoopJob o) { | 629 checkHadoopJob(api.HadoopJob o) { |
| 628 buildCounterHadoopJob++; | 630 buildCounterHadoopJob++; |
| 629 if (buildCounterHadoopJob < 3) { | 631 if (buildCounterHadoopJob < 3) { |
| 630 checkUnnamed3129(o.archiveUris); | 632 checkUnnamed3221(o.archiveUris); |
| 631 checkUnnamed3130(o.args); | 633 checkUnnamed3222(o.args); |
| 632 checkUnnamed3131(o.fileUris); | 634 checkUnnamed3223(o.fileUris); |
| 633 checkUnnamed3132(o.jarFileUris); | 635 checkUnnamed3224(o.jarFileUris); |
| 634 checkLoggingConfiguration(o.loggingConfiguration); | 636 checkLoggingConfiguration(o.loggingConfiguration); |
| 635 unittest.expect(o.mainClass, unittest.equals('foo')); | 637 unittest.expect(o.mainClass, unittest.equals('foo')); |
| 636 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 638 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
| 637 checkUnnamed3133(o.properties); | 639 checkUnnamed3225(o.properties); |
| 638 } | 640 } |
| 639 buildCounterHadoopJob--; | 641 buildCounterHadoopJob--; |
| 640 } | 642 } |
| 641 | 643 |
| 642 buildUnnamed3134() { | 644 buildUnnamed3226() { |
| 643 var o = new core.List<core.String>(); | 645 var o = new core.List<core.String>(); |
| 644 o.add("foo"); | 646 o.add("foo"); |
| 645 o.add("foo"); | 647 o.add("foo"); |
| 646 return o; | 648 return o; |
| 647 } | 649 } |
| 648 | 650 |
| 649 checkUnnamed3134(core.List<core.String> o) { | 651 checkUnnamed3226(core.List<core.String> o) { |
| 650 unittest.expect(o, unittest.hasLength(2)); | 652 unittest.expect(o, unittest.hasLength(2)); |
| 651 unittest.expect(o[0], unittest.equals('foo')); | 653 unittest.expect(o[0], unittest.equals('foo')); |
| 652 unittest.expect(o[1], unittest.equals('foo')); | 654 unittest.expect(o[1], unittest.equals('foo')); |
| 653 } | 655 } |
| 654 | 656 |
| 655 buildUnnamed3135() { | 657 buildUnnamed3227() { |
| 656 var o = new core.Map<core.String, core.String>(); | 658 var o = new core.Map<core.String, core.String>(); |
| 657 o["x"] = "foo"; | 659 o["x"] = "foo"; |
| 658 o["y"] = "foo"; | 660 o["y"] = "foo"; |
| 659 return o; | 661 return o; |
| 660 } | 662 } |
| 661 | 663 |
| 662 checkUnnamed3135(core.Map<core.String, core.String> o) { | 664 checkUnnamed3227(core.Map<core.String, core.String> o) { |
| 663 unittest.expect(o, unittest.hasLength(2)); | 665 unittest.expect(o, unittest.hasLength(2)); |
| 664 unittest.expect(o["x"], unittest.equals('foo')); | 666 unittest.expect(o["x"], unittest.equals('foo')); |
| 665 unittest.expect(o["y"], unittest.equals('foo')); | 667 unittest.expect(o["y"], unittest.equals('foo')); |
| 666 } | 668 } |
| 667 | 669 |
| 668 buildUnnamed3136() { | 670 buildUnnamed3228() { |
| 669 var o = new core.Map<core.String, core.String>(); | 671 var o = new core.Map<core.String, core.String>(); |
| 670 o["x"] = "foo"; | 672 o["x"] = "foo"; |
| 671 o["y"] = "foo"; | 673 o["y"] = "foo"; |
| 672 return o; | 674 return o; |
| 673 } | 675 } |
| 674 | 676 |
| 675 checkUnnamed3136(core.Map<core.String, core.String> o) { | 677 checkUnnamed3228(core.Map<core.String, core.String> o) { |
| 676 unittest.expect(o, unittest.hasLength(2)); | 678 unittest.expect(o, unittest.hasLength(2)); |
| 677 unittest.expect(o["x"], unittest.equals('foo')); | 679 unittest.expect(o["x"], unittest.equals('foo')); |
| 678 unittest.expect(o["y"], unittest.equals('foo')); | 680 unittest.expect(o["y"], unittest.equals('foo')); |
| 679 } | 681 } |
| 680 | 682 |
| 681 core.int buildCounterHiveJob = 0; | 683 core.int buildCounterHiveJob = 0; |
| 682 buildHiveJob() { | 684 buildHiveJob() { |
| 683 var o = new api.HiveJob(); | 685 var o = new api.HiveJob(); |
| 684 buildCounterHiveJob++; | 686 buildCounterHiveJob++; |
| 685 if (buildCounterHiveJob < 3) { | 687 if (buildCounterHiveJob < 3) { |
| 686 o.continueOnFailure = true; | 688 o.continueOnFailure = true; |
| 687 o.jarFileUris = buildUnnamed3134(); | 689 o.jarFileUris = buildUnnamed3226(); |
| 688 o.properties = buildUnnamed3135(); | 690 o.properties = buildUnnamed3227(); |
| 689 o.queryFileUri = "foo"; | 691 o.queryFileUri = "foo"; |
| 690 o.queryList = buildQueryList(); | 692 o.queryList = buildQueryList(); |
| 691 o.scriptVariables = buildUnnamed3136(); | 693 o.scriptVariables = buildUnnamed3228(); |
| 692 } | 694 } |
| 693 buildCounterHiveJob--; | 695 buildCounterHiveJob--; |
| 694 return o; | 696 return o; |
| 695 } | 697 } |
| 696 | 698 |
| 697 checkHiveJob(api.HiveJob o) { | 699 checkHiveJob(api.HiveJob o) { |
| 698 buildCounterHiveJob++; | 700 buildCounterHiveJob++; |
| 699 if (buildCounterHiveJob < 3) { | 701 if (buildCounterHiveJob < 3) { |
| 700 unittest.expect(o.continueOnFailure, unittest.isTrue); | 702 unittest.expect(o.continueOnFailure, unittest.isTrue); |
| 701 checkUnnamed3134(o.jarFileUris); | 703 checkUnnamed3226(o.jarFileUris); |
| 702 checkUnnamed3135(o.properties); | 704 checkUnnamed3227(o.properties); |
| 703 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 705 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
| 704 checkQueryList(o.queryList); | 706 checkQueryList(o.queryList); |
| 705 checkUnnamed3136(o.scriptVariables); | 707 checkUnnamed3228(o.scriptVariables); |
| 706 } | 708 } |
| 707 buildCounterHiveJob--; | 709 buildCounterHiveJob--; |
| 708 } | 710 } |
| 709 | 711 |
| 710 buildUnnamed3137() { | 712 buildUnnamed3229() { |
| 711 var o = new core.List<api.AcceleratorConfiguration>(); | 713 var o = new core.List<api.AcceleratorConfiguration>(); |
| 712 o.add(buildAcceleratorConfiguration()); | 714 o.add(buildAcceleratorConfiguration()); |
| 713 o.add(buildAcceleratorConfiguration()); | 715 o.add(buildAcceleratorConfiguration()); |
| 714 return o; | 716 return o; |
| 715 } | 717 } |
| 716 | 718 |
| 717 checkUnnamed3137(core.List<api.AcceleratorConfiguration> o) { | 719 checkUnnamed3229(core.List<api.AcceleratorConfiguration> o) { |
| 718 unittest.expect(o, unittest.hasLength(2)); | 720 unittest.expect(o, unittest.hasLength(2)); |
| 719 checkAcceleratorConfiguration(o[0]); | 721 checkAcceleratorConfiguration(o[0]); |
| 720 checkAcceleratorConfiguration(o[1]); | 722 checkAcceleratorConfiguration(o[1]); |
| 721 } | 723 } |
| 722 | 724 |
| 723 buildUnnamed3138() { | 725 buildUnnamed3230() { |
| 724 var o = new core.List<core.String>(); | 726 var o = new core.List<core.String>(); |
| 725 o.add("foo"); | 727 o.add("foo"); |
| 726 o.add("foo"); | 728 o.add("foo"); |
| 727 return o; | 729 return o; |
| 728 } | 730 } |
| 729 | 731 |
| 730 checkUnnamed3138(core.List<core.String> o) { | 732 checkUnnamed3230(core.List<core.String> o) { |
| 731 unittest.expect(o, unittest.hasLength(2)); | 733 unittest.expect(o, unittest.hasLength(2)); |
| 732 unittest.expect(o[0], unittest.equals('foo')); | 734 unittest.expect(o[0], unittest.equals('foo')); |
| 733 unittest.expect(o[1], unittest.equals('foo')); | 735 unittest.expect(o[1], unittest.equals('foo')); |
| 734 } | 736 } |
| 735 | 737 |
| 736 core.int buildCounterInstanceGroupConfiguration = 0; | 738 core.int buildCounterInstanceGroupConfiguration = 0; |
| 737 buildInstanceGroupConfiguration() { | 739 buildInstanceGroupConfiguration() { |
| 738 var o = new api.InstanceGroupConfiguration(); | 740 var o = new api.InstanceGroupConfiguration(); |
| 739 buildCounterInstanceGroupConfiguration++; | 741 buildCounterInstanceGroupConfiguration++; |
| 740 if (buildCounterInstanceGroupConfiguration < 3) { | 742 if (buildCounterInstanceGroupConfiguration < 3) { |
| 741 o.accelerators = buildUnnamed3137(); | 743 o.accelerators = buildUnnamed3229(); |
| 742 o.diskConfiguration = buildDiskConfiguration(); | 744 o.diskConfiguration = buildDiskConfiguration(); |
| 743 o.imageUri = "foo"; | 745 o.imageUri = "foo"; |
| 744 o.instanceNames = buildUnnamed3138(); | 746 o.instanceNames = buildUnnamed3230(); |
| 745 o.isPreemptible = true; | 747 o.isPreemptible = true; |
| 746 o.machineTypeUri = "foo"; | 748 o.machineTypeUri = "foo"; |
| 747 o.managedGroupConfiguration = buildManagedGroupConfiguration(); | 749 o.managedGroupConfiguration = buildManagedGroupConfiguration(); |
| 748 o.numInstances = 42; | 750 o.numInstances = 42; |
| 749 } | 751 } |
| 750 buildCounterInstanceGroupConfiguration--; | 752 buildCounterInstanceGroupConfiguration--; |
| 751 return o; | 753 return o; |
| 752 } | 754 } |
| 753 | 755 |
| 754 checkInstanceGroupConfiguration(api.InstanceGroupConfiguration o) { | 756 checkInstanceGroupConfiguration(api.InstanceGroupConfiguration o) { |
| 755 buildCounterInstanceGroupConfiguration++; | 757 buildCounterInstanceGroupConfiguration++; |
| 756 if (buildCounterInstanceGroupConfiguration < 3) { | 758 if (buildCounterInstanceGroupConfiguration < 3) { |
| 757 checkUnnamed3137(o.accelerators); | 759 checkUnnamed3229(o.accelerators); |
| 758 checkDiskConfiguration(o.diskConfiguration); | 760 checkDiskConfiguration(o.diskConfiguration); |
| 759 unittest.expect(o.imageUri, unittest.equals('foo')); | 761 unittest.expect(o.imageUri, unittest.equals('foo')); |
| 760 checkUnnamed3138(o.instanceNames); | 762 checkUnnamed3230(o.instanceNames); |
| 761 unittest.expect(o.isPreemptible, unittest.isTrue); | 763 unittest.expect(o.isPreemptible, unittest.isTrue); |
| 762 unittest.expect(o.machineTypeUri, unittest.equals('foo')); | 764 unittest.expect(o.machineTypeUri, unittest.equals('foo')); |
| 763 checkManagedGroupConfiguration(o.managedGroupConfiguration); | 765 checkManagedGroupConfiguration(o.managedGroupConfiguration); |
| 764 unittest.expect(o.numInstances, unittest.equals(42)); | 766 unittest.expect(o.numInstances, unittest.equals(42)); |
| 765 } | 767 } |
| 766 buildCounterInstanceGroupConfiguration--; | 768 buildCounterInstanceGroupConfiguration--; |
| 767 } | 769 } |
| 768 | 770 |
| 769 buildUnnamed3139() { | 771 buildUnnamed3231() { |
| 770 var o = new core.Map<core.String, core.String>(); | 772 var o = new core.Map<core.String, core.String>(); |
| 771 o["x"] = "foo"; | 773 o["x"] = "foo"; |
| 772 o["y"] = "foo"; | 774 o["y"] = "foo"; |
| 773 return o; | 775 return o; |
| 774 } | 776 } |
| 775 | 777 |
| 776 checkUnnamed3139(core.Map<core.String, core.String> o) { | 778 checkUnnamed3231(core.Map<core.String, core.String> o) { |
| 777 unittest.expect(o, unittest.hasLength(2)); | 779 unittest.expect(o, unittest.hasLength(2)); |
| 778 unittest.expect(o["x"], unittest.equals('foo')); | 780 unittest.expect(o["x"], unittest.equals('foo')); |
| 779 unittest.expect(o["y"], unittest.equals('foo')); | 781 unittest.expect(o["y"], unittest.equals('foo')); |
| 780 } | 782 } |
| 781 | 783 |
| 782 buildUnnamed3140() { | 784 buildUnnamed3232() { |
| 783 var o = new core.List<api.JobStatus>(); | 785 var o = new core.List<api.JobStatus>(); |
| 784 o.add(buildJobStatus()); | 786 o.add(buildJobStatus()); |
| 785 o.add(buildJobStatus()); | 787 o.add(buildJobStatus()); |
| 786 return o; | 788 return o; |
| 787 } | 789 } |
| 788 | 790 |
| 789 checkUnnamed3140(core.List<api.JobStatus> o) { | 791 checkUnnamed3232(core.List<api.JobStatus> o) { |
| 790 unittest.expect(o, unittest.hasLength(2)); | 792 unittest.expect(o, unittest.hasLength(2)); |
| 791 checkJobStatus(o[0]); | 793 checkJobStatus(o[0]); |
| 792 checkJobStatus(o[1]); | 794 checkJobStatus(o[1]); |
| 793 } | 795 } |
| 794 | 796 |
| 795 buildUnnamed3141() { | 797 buildUnnamed3233() { |
| 796 var o = new core.List<api.YarnApplication>(); | 798 var o = new core.List<api.YarnApplication>(); |
| 797 o.add(buildYarnApplication()); | 799 o.add(buildYarnApplication()); |
| 798 o.add(buildYarnApplication()); | 800 o.add(buildYarnApplication()); |
| 799 return o; | 801 return o; |
| 800 } | 802 } |
| 801 | 803 |
| 802 checkUnnamed3141(core.List<api.YarnApplication> o) { | 804 checkUnnamed3233(core.List<api.YarnApplication> o) { |
| 803 unittest.expect(o, unittest.hasLength(2)); | 805 unittest.expect(o, unittest.hasLength(2)); |
| 804 checkYarnApplication(o[0]); | 806 checkYarnApplication(o[0]); |
| 805 checkYarnApplication(o[1]); | 807 checkYarnApplication(o[1]); |
| 806 } | 808 } |
| 807 | 809 |
| 808 core.int buildCounterJob = 0; | 810 core.int buildCounterJob = 0; |
| 809 buildJob() { | 811 buildJob() { |
| 810 var o = new api.Job(); | 812 var o = new api.Job(); |
| 811 buildCounterJob++; | 813 buildCounterJob++; |
| 812 if (buildCounterJob < 3) { | 814 if (buildCounterJob < 3) { |
| 813 o.driverControlFilesUri = "foo"; | 815 o.driverControlFilesUri = "foo"; |
| 814 o.driverInputResourceUri = "foo"; | 816 o.driverInputResourceUri = "foo"; |
| 815 o.driverOutputResourceUri = "foo"; | 817 o.driverOutputResourceUri = "foo"; |
| 816 o.hadoopJob = buildHadoopJob(); | 818 o.hadoopJob = buildHadoopJob(); |
| 817 o.hiveJob = buildHiveJob(); | 819 o.hiveJob = buildHiveJob(); |
| 818 o.interactive = true; | 820 o.interactive = true; |
| 819 o.labels = buildUnnamed3139(); | 821 o.labels = buildUnnamed3231(); |
| 820 o.pigJob = buildPigJob(); | 822 o.pigJob = buildPigJob(); |
| 821 o.placement = buildJobPlacement(); | 823 o.placement = buildJobPlacement(); |
| 822 o.pysparkJob = buildPySparkJob(); | 824 o.pysparkJob = buildPySparkJob(); |
| 823 o.reference = buildJobReference(); | 825 o.reference = buildJobReference(); |
| 824 o.scheduling = buildJobScheduling(); | 826 o.scheduling = buildJobScheduling(); |
| 825 o.sparkJob = buildSparkJob(); | 827 o.sparkJob = buildSparkJob(); |
| 826 o.sparkSqlJob = buildSparkSqlJob(); | 828 o.sparkSqlJob = buildSparkSqlJob(); |
| 827 o.status = buildJobStatus(); | 829 o.status = buildJobStatus(); |
| 828 o.statusHistory = buildUnnamed3140(); | 830 o.statusHistory = buildUnnamed3232(); |
| 829 o.submittedBy = "foo"; | 831 o.submittedBy = "foo"; |
| 830 o.yarnApplications = buildUnnamed3141(); | 832 o.yarnApplications = buildUnnamed3233(); |
| 831 } | 833 } |
| 832 buildCounterJob--; | 834 buildCounterJob--; |
| 833 return o; | 835 return o; |
| 834 } | 836 } |
| 835 | 837 |
| 836 checkJob(api.Job o) { | 838 checkJob(api.Job o) { |
| 837 buildCounterJob++; | 839 buildCounterJob++; |
| 838 if (buildCounterJob < 3) { | 840 if (buildCounterJob < 3) { |
| 839 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); | 841 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); |
| 840 unittest.expect(o.driverInputResourceUri, unittest.equals('foo')); | 842 unittest.expect(o.driverInputResourceUri, unittest.equals('foo')); |
| 841 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); | 843 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); |
| 842 checkHadoopJob(o.hadoopJob); | 844 checkHadoopJob(o.hadoopJob); |
| 843 checkHiveJob(o.hiveJob); | 845 checkHiveJob(o.hiveJob); |
| 844 unittest.expect(o.interactive, unittest.isTrue); | 846 unittest.expect(o.interactive, unittest.isTrue); |
| 845 checkUnnamed3139(o.labels); | 847 checkUnnamed3231(o.labels); |
| 846 checkPigJob(o.pigJob); | 848 checkPigJob(o.pigJob); |
| 847 checkJobPlacement(o.placement); | 849 checkJobPlacement(o.placement); |
| 848 checkPySparkJob(o.pysparkJob); | 850 checkPySparkJob(o.pysparkJob); |
| 849 checkJobReference(o.reference); | 851 checkJobReference(o.reference); |
| 850 checkJobScheduling(o.scheduling); | 852 checkJobScheduling(o.scheduling); |
| 851 checkSparkJob(o.sparkJob); | 853 checkSparkJob(o.sparkJob); |
| 852 checkSparkSqlJob(o.sparkSqlJob); | 854 checkSparkSqlJob(o.sparkSqlJob); |
| 853 checkJobStatus(o.status); | 855 checkJobStatus(o.status); |
| 854 checkUnnamed3140(o.statusHistory); | 856 checkUnnamed3232(o.statusHistory); |
| 855 unittest.expect(o.submittedBy, unittest.equals('foo')); | 857 unittest.expect(o.submittedBy, unittest.equals('foo')); |
| 856 checkUnnamed3141(o.yarnApplications); | 858 checkUnnamed3233(o.yarnApplications); |
| 857 } | 859 } |
| 858 buildCounterJob--; | 860 buildCounterJob--; |
| 859 } | 861 } |
| 860 | 862 |
| 861 core.int buildCounterJobPlacement = 0; | 863 core.int buildCounterJobPlacement = 0; |
| 862 buildJobPlacement() { | 864 buildJobPlacement() { |
| 863 var o = new api.JobPlacement(); | 865 var o = new api.JobPlacement(); |
| 864 buildCounterJobPlacement++; | 866 buildCounterJobPlacement++; |
| 865 if (buildCounterJobPlacement < 3) { | 867 if (buildCounterJobPlacement < 3) { |
| 866 o.clusterName = "foo"; | 868 o.clusterName = "foo"; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 920 } | 922 } |
| 921 | 923 |
| 922 core.int buildCounterJobStatus = 0; | 924 core.int buildCounterJobStatus = 0; |
| 923 buildJobStatus() { | 925 buildJobStatus() { |
| 924 var o = new api.JobStatus(); | 926 var o = new api.JobStatus(); |
| 925 buildCounterJobStatus++; | 927 buildCounterJobStatus++; |
| 926 if (buildCounterJobStatus < 3) { | 928 if (buildCounterJobStatus < 3) { |
| 927 o.details = "foo"; | 929 o.details = "foo"; |
| 928 o.state = "foo"; | 930 o.state = "foo"; |
| 929 o.stateStartTime = "foo"; | 931 o.stateStartTime = "foo"; |
| 932 o.substate = "foo"; |
| 930 } | 933 } |
| 931 buildCounterJobStatus--; | 934 buildCounterJobStatus--; |
| 932 return o; | 935 return o; |
| 933 } | 936 } |
| 934 | 937 |
| 935 checkJobStatus(api.JobStatus o) { | 938 checkJobStatus(api.JobStatus o) { |
| 936 buildCounterJobStatus++; | 939 buildCounterJobStatus++; |
| 937 if (buildCounterJobStatus < 3) { | 940 if (buildCounterJobStatus < 3) { |
| 938 unittest.expect(o.details, unittest.equals('foo')); | 941 unittest.expect(o.details, unittest.equals('foo')); |
| 939 unittest.expect(o.state, unittest.equals('foo')); | 942 unittest.expect(o.state, unittest.equals('foo')); |
| 940 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 943 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
| 944 unittest.expect(o.substate, unittest.equals('foo')); |
| 941 } | 945 } |
| 942 buildCounterJobStatus--; | 946 buildCounterJobStatus--; |
| 943 } | 947 } |
| 944 | 948 |
| 945 buildUnnamed3142() { | 949 buildUnnamed3234() { |
| 946 var o = new core.List<api.Cluster>(); | 950 var o = new core.List<api.Cluster>(); |
| 947 o.add(buildCluster()); | 951 o.add(buildCluster()); |
| 948 o.add(buildCluster()); | 952 o.add(buildCluster()); |
| 949 return o; | 953 return o; |
| 950 } | 954 } |
| 951 | 955 |
| 952 checkUnnamed3142(core.List<api.Cluster> o) { | 956 checkUnnamed3234(core.List<api.Cluster> o) { |
| 953 unittest.expect(o, unittest.hasLength(2)); | 957 unittest.expect(o, unittest.hasLength(2)); |
| 954 checkCluster(o[0]); | 958 checkCluster(o[0]); |
| 955 checkCluster(o[1]); | 959 checkCluster(o[1]); |
| 956 } | 960 } |
| 957 | 961 |
| 958 core.int buildCounterListClustersResponse = 0; | 962 core.int buildCounterListClustersResponse = 0; |
| 959 buildListClustersResponse() { | 963 buildListClustersResponse() { |
| 960 var o = new api.ListClustersResponse(); | 964 var o = new api.ListClustersResponse(); |
| 961 buildCounterListClustersResponse++; | 965 buildCounterListClustersResponse++; |
| 962 if (buildCounterListClustersResponse < 3) { | 966 if (buildCounterListClustersResponse < 3) { |
| 963 o.clusters = buildUnnamed3142(); | 967 o.clusters = buildUnnamed3234(); |
| 964 o.nextPageToken = "foo"; | 968 o.nextPageToken = "foo"; |
| 965 } | 969 } |
| 966 buildCounterListClustersResponse--; | 970 buildCounterListClustersResponse--; |
| 967 return o; | 971 return o; |
| 968 } | 972 } |
| 969 | 973 |
| 970 checkListClustersResponse(api.ListClustersResponse o) { | 974 checkListClustersResponse(api.ListClustersResponse o) { |
| 971 buildCounterListClustersResponse++; | 975 buildCounterListClustersResponse++; |
| 972 if (buildCounterListClustersResponse < 3) { | 976 if (buildCounterListClustersResponse < 3) { |
| 973 checkUnnamed3142(o.clusters); | 977 checkUnnamed3234(o.clusters); |
| 974 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 978 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 975 } | 979 } |
| 976 buildCounterListClustersResponse--; | 980 buildCounterListClustersResponse--; |
| 977 } | 981 } |
| 978 | 982 |
| 979 buildUnnamed3143() { | 983 buildUnnamed3235() { |
| 980 var o = new core.List<api.Job>(); | 984 var o = new core.List<api.Job>(); |
| 981 o.add(buildJob()); | 985 o.add(buildJob()); |
| 982 o.add(buildJob()); | 986 o.add(buildJob()); |
| 983 return o; | 987 return o; |
| 984 } | 988 } |
| 985 | 989 |
| 986 checkUnnamed3143(core.List<api.Job> o) { | 990 checkUnnamed3235(core.List<api.Job> o) { |
| 987 unittest.expect(o, unittest.hasLength(2)); | 991 unittest.expect(o, unittest.hasLength(2)); |
| 988 checkJob(o[0]); | 992 checkJob(o[0]); |
| 989 checkJob(o[1]); | 993 checkJob(o[1]); |
| 990 } | 994 } |
| 991 | 995 |
| 992 core.int buildCounterListJobsResponse = 0; | 996 core.int buildCounterListJobsResponse = 0; |
| 993 buildListJobsResponse() { | 997 buildListJobsResponse() { |
| 994 var o = new api.ListJobsResponse(); | 998 var o = new api.ListJobsResponse(); |
| 995 buildCounterListJobsResponse++; | 999 buildCounterListJobsResponse++; |
| 996 if (buildCounterListJobsResponse < 3) { | 1000 if (buildCounterListJobsResponse < 3) { |
| 997 o.jobs = buildUnnamed3143(); | 1001 o.jobs = buildUnnamed3235(); |
| 998 o.nextPageToken = "foo"; | 1002 o.nextPageToken = "foo"; |
| 999 } | 1003 } |
| 1000 buildCounterListJobsResponse--; | 1004 buildCounterListJobsResponse--; |
| 1001 return o; | 1005 return o; |
| 1002 } | 1006 } |
| 1003 | 1007 |
| 1004 checkListJobsResponse(api.ListJobsResponse o) { | 1008 checkListJobsResponse(api.ListJobsResponse o) { |
| 1005 buildCounterListJobsResponse++; | 1009 buildCounterListJobsResponse++; |
| 1006 if (buildCounterListJobsResponse < 3) { | 1010 if (buildCounterListJobsResponse < 3) { |
| 1007 checkUnnamed3143(o.jobs); | 1011 checkUnnamed3235(o.jobs); |
| 1008 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1012 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1009 } | 1013 } |
| 1010 buildCounterListJobsResponse--; | 1014 buildCounterListJobsResponse--; |
| 1011 } | 1015 } |
| 1012 | 1016 |
| 1013 buildUnnamed3144() { | 1017 buildUnnamed3236() { |
| 1014 var o = new core.List<api.Operation>(); | 1018 var o = new core.List<api.Operation>(); |
| 1015 o.add(buildOperation()); | 1019 o.add(buildOperation()); |
| 1016 o.add(buildOperation()); | 1020 o.add(buildOperation()); |
| 1017 return o; | 1021 return o; |
| 1018 } | 1022 } |
| 1019 | 1023 |
| 1020 checkUnnamed3144(core.List<api.Operation> o) { | 1024 checkUnnamed3236(core.List<api.Operation> o) { |
| 1021 unittest.expect(o, unittest.hasLength(2)); | 1025 unittest.expect(o, unittest.hasLength(2)); |
| 1022 checkOperation(o[0]); | 1026 checkOperation(o[0]); |
| 1023 checkOperation(o[1]); | 1027 checkOperation(o[1]); |
| 1024 } | 1028 } |
| 1025 | 1029 |
| 1026 core.int buildCounterListOperationsResponse = 0; | 1030 core.int buildCounterListOperationsResponse = 0; |
| 1027 buildListOperationsResponse() { | 1031 buildListOperationsResponse() { |
| 1028 var o = new api.ListOperationsResponse(); | 1032 var o = new api.ListOperationsResponse(); |
| 1029 buildCounterListOperationsResponse++; | 1033 buildCounterListOperationsResponse++; |
| 1030 if (buildCounterListOperationsResponse < 3) { | 1034 if (buildCounterListOperationsResponse < 3) { |
| 1031 o.nextPageToken = "foo"; | 1035 o.nextPageToken = "foo"; |
| 1032 o.operations = buildUnnamed3144(); | 1036 o.operations = buildUnnamed3236(); |
| 1033 } | 1037 } |
| 1034 buildCounterListOperationsResponse--; | 1038 buildCounterListOperationsResponse--; |
| 1035 return o; | 1039 return o; |
| 1036 } | 1040 } |
| 1037 | 1041 |
| 1038 checkListOperationsResponse(api.ListOperationsResponse o) { | 1042 checkListOperationsResponse(api.ListOperationsResponse o) { |
| 1039 buildCounterListOperationsResponse++; | 1043 buildCounterListOperationsResponse++; |
| 1040 if (buildCounterListOperationsResponse < 3) { | 1044 if (buildCounterListOperationsResponse < 3) { |
| 1041 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1045 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1042 checkUnnamed3144(o.operations); | 1046 checkUnnamed3236(o.operations); |
| 1043 } | 1047 } |
| 1044 buildCounterListOperationsResponse--; | 1048 buildCounterListOperationsResponse--; |
| 1045 } | 1049 } |
| 1046 | 1050 |
| 1047 buildUnnamed3145() { | 1051 buildUnnamed3237() { |
| 1048 var o = new core.Map<core.String, core.String>(); | 1052 var o = new core.Map<core.String, core.String>(); |
| 1049 o["x"] = "foo"; | 1053 o["x"] = "foo"; |
| 1050 o["y"] = "foo"; | 1054 o["y"] = "foo"; |
| 1051 return o; | 1055 return o; |
| 1052 } | 1056 } |
| 1053 | 1057 |
| 1054 checkUnnamed3145(core.Map<core.String, core.String> o) { | 1058 checkUnnamed3237(core.Map<core.String, core.String> o) { |
| 1055 unittest.expect(o, unittest.hasLength(2)); | 1059 unittest.expect(o, unittest.hasLength(2)); |
| 1056 unittest.expect(o["x"], unittest.equals('foo')); | 1060 unittest.expect(o["x"], unittest.equals('foo')); |
| 1057 unittest.expect(o["y"], unittest.equals('foo')); | 1061 unittest.expect(o["y"], unittest.equals('foo')); |
| 1058 } | 1062 } |
| 1059 | 1063 |
| 1060 core.int buildCounterLoggingConfiguration = 0; | 1064 core.int buildCounterLoggingConfiguration = 0; |
| 1061 buildLoggingConfiguration() { | 1065 buildLoggingConfiguration() { |
| 1062 var o = new api.LoggingConfiguration(); | 1066 var o = new api.LoggingConfiguration(); |
| 1063 buildCounterLoggingConfiguration++; | 1067 buildCounterLoggingConfiguration++; |
| 1064 if (buildCounterLoggingConfiguration < 3) { | 1068 if (buildCounterLoggingConfiguration < 3) { |
| 1065 o.driverLogLevels = buildUnnamed3145(); | 1069 o.driverLogLevels = buildUnnamed3237(); |
| 1066 } | 1070 } |
| 1067 buildCounterLoggingConfiguration--; | 1071 buildCounterLoggingConfiguration--; |
| 1068 return o; | 1072 return o; |
| 1069 } | 1073 } |
| 1070 | 1074 |
| 1071 checkLoggingConfiguration(api.LoggingConfiguration o) { | 1075 checkLoggingConfiguration(api.LoggingConfiguration o) { |
| 1072 buildCounterLoggingConfiguration++; | 1076 buildCounterLoggingConfiguration++; |
| 1073 if (buildCounterLoggingConfiguration < 3) { | 1077 if (buildCounterLoggingConfiguration < 3) { |
| 1074 checkUnnamed3145(o.driverLogLevels); | 1078 checkUnnamed3237(o.driverLogLevels); |
| 1075 } | 1079 } |
| 1076 buildCounterLoggingConfiguration--; | 1080 buildCounterLoggingConfiguration--; |
| 1077 } | 1081 } |
| 1078 | 1082 |
| 1079 core.int buildCounterManagedGroupConfiguration = 0; | 1083 core.int buildCounterManagedGroupConfiguration = 0; |
| 1080 buildManagedGroupConfiguration() { | 1084 buildManagedGroupConfiguration() { |
| 1081 var o = new api.ManagedGroupConfiguration(); | 1085 var o = new api.ManagedGroupConfiguration(); |
| 1082 buildCounterManagedGroupConfiguration++; | 1086 buildCounterManagedGroupConfiguration++; |
| 1083 if (buildCounterManagedGroupConfiguration < 3) { | 1087 if (buildCounterManagedGroupConfiguration < 3) { |
| 1084 o.instanceGroupManagerName = "foo"; | 1088 o.instanceGroupManagerName = "foo"; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 1111 | 1115 |
| 1112 checkNodeInitializationAction(api.NodeInitializationAction o) { | 1116 checkNodeInitializationAction(api.NodeInitializationAction o) { |
| 1113 buildCounterNodeInitializationAction++; | 1117 buildCounterNodeInitializationAction++; |
| 1114 if (buildCounterNodeInitializationAction < 3) { | 1118 if (buildCounterNodeInitializationAction < 3) { |
| 1115 unittest.expect(o.executableFile, unittest.equals('foo')); | 1119 unittest.expect(o.executableFile, unittest.equals('foo')); |
| 1116 unittest.expect(o.executionTimeout, unittest.equals('foo')); | 1120 unittest.expect(o.executionTimeout, unittest.equals('foo')); |
| 1117 } | 1121 } |
| 1118 buildCounterNodeInitializationAction--; | 1122 buildCounterNodeInitializationAction--; |
| 1119 } | 1123 } |
| 1120 | 1124 |
| 1121 buildUnnamed3146() { | 1125 buildUnnamed3238() { |
| 1122 var o = new core.Map<core.String, core.Object>(); | 1126 var o = new core.Map<core.String, core.Object>(); |
| 1123 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1127 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1124 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1128 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1125 return o; | 1129 return o; |
| 1126 } | 1130 } |
| 1127 | 1131 |
| 1128 checkUnnamed3146(core.Map<core.String, core.Object> o) { | 1132 checkUnnamed3238(core.Map<core.String, core.Object> o) { |
| 1129 unittest.expect(o, unittest.hasLength(2)); | 1133 unittest.expect(o, unittest.hasLength(2)); |
| 1130 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')); |
| 1131 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')); |
| 1132 } | 1136 } |
| 1133 | 1137 |
| 1134 buildUnnamed3147() { | 1138 buildUnnamed3239() { |
| 1135 var o = new core.Map<core.String, core.Object>(); | 1139 var o = new core.Map<core.String, core.Object>(); |
| 1136 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1140 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1137 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1141 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1138 return o; | 1142 return o; |
| 1139 } | 1143 } |
| 1140 | 1144 |
| 1141 checkUnnamed3147(core.Map<core.String, core.Object> o) { | 1145 checkUnnamed3239(core.Map<core.String, core.Object> o) { |
| 1142 unittest.expect(o, unittest.hasLength(2)); | 1146 unittest.expect(o, unittest.hasLength(2)); |
| 1143 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')); |
| 1144 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')); |
| 1145 } | 1149 } |
| 1146 | 1150 |
| 1147 core.int buildCounterOperation = 0; | 1151 core.int buildCounterOperation = 0; |
| 1148 buildOperation() { | 1152 buildOperation() { |
| 1149 var o = new api.Operation(); | 1153 var o = new api.Operation(); |
| 1150 buildCounterOperation++; | 1154 buildCounterOperation++; |
| 1151 if (buildCounterOperation < 3) { | 1155 if (buildCounterOperation < 3) { |
| 1152 o.done = true; | 1156 o.done = true; |
| 1153 o.error = buildStatus(); | 1157 o.error = buildStatus(); |
| 1154 o.metadata = buildUnnamed3146(); | 1158 o.metadata = buildUnnamed3238(); |
| 1155 o.name = "foo"; | 1159 o.name = "foo"; |
| 1156 o.response = buildUnnamed3147(); | 1160 o.response = buildUnnamed3239(); |
| 1157 } | 1161 } |
| 1158 buildCounterOperation--; | 1162 buildCounterOperation--; |
| 1159 return o; | 1163 return o; |
| 1160 } | 1164 } |
| 1161 | 1165 |
| 1162 checkOperation(api.Operation o) { | 1166 checkOperation(api.Operation o) { |
| 1163 buildCounterOperation++; | 1167 buildCounterOperation++; |
| 1164 if (buildCounterOperation < 3) { | 1168 if (buildCounterOperation < 3) { |
| 1165 unittest.expect(o.done, unittest.isTrue); | 1169 unittest.expect(o.done, unittest.isTrue); |
| 1166 checkStatus(o.error); | 1170 checkStatus(o.error); |
| 1167 checkUnnamed3146(o.metadata); | 1171 checkUnnamed3238(o.metadata); |
| 1168 unittest.expect(o.name, unittest.equals('foo')); | 1172 unittest.expect(o.name, unittest.equals('foo')); |
| 1169 checkUnnamed3147(o.response); | 1173 checkUnnamed3239(o.response); |
| 1170 } | 1174 } |
| 1171 buildCounterOperation--; | 1175 buildCounterOperation--; |
| 1172 } | 1176 } |
| 1173 | 1177 |
| 1174 buildUnnamed3148() { | 1178 buildUnnamed3240() { |
| 1175 var o = new core.List<api.OperationStatus>(); | 1179 var o = new core.List<api.OperationStatus>(); |
| 1176 o.add(buildOperationStatus()); | 1180 o.add(buildOperationStatus()); |
| 1177 o.add(buildOperationStatus()); | 1181 o.add(buildOperationStatus()); |
| 1178 return o; | 1182 return o; |
| 1179 } | 1183 } |
| 1180 | 1184 |
| 1181 checkUnnamed3148(core.List<api.OperationStatus> o) { | 1185 checkUnnamed3240(core.List<api.OperationStatus> o) { |
| 1182 unittest.expect(o, unittest.hasLength(2)); | 1186 unittest.expect(o, unittest.hasLength(2)); |
| 1183 checkOperationStatus(o[0]); | 1187 checkOperationStatus(o[0]); |
| 1184 checkOperationStatus(o[1]); | 1188 checkOperationStatus(o[1]); |
| 1185 } | 1189 } |
| 1186 | 1190 |
| 1187 buildUnnamed3149() { | 1191 buildUnnamed3241() { |
| 1188 var o = new core.List<core.String>(); | 1192 var o = new core.List<core.String>(); |
| 1189 o.add("foo"); | 1193 o.add("foo"); |
| 1190 o.add("foo"); | 1194 o.add("foo"); |
| 1191 return o; | 1195 return o; |
| 1192 } | 1196 } |
| 1193 | 1197 |
| 1194 checkUnnamed3149(core.List<core.String> o) { | 1198 checkUnnamed3241(core.List<core.String> o) { |
| 1195 unittest.expect(o, unittest.hasLength(2)); | 1199 unittest.expect(o, unittest.hasLength(2)); |
| 1196 unittest.expect(o[0], unittest.equals('foo')); | 1200 unittest.expect(o[0], unittest.equals('foo')); |
| 1197 unittest.expect(o[1], unittest.equals('foo')); | 1201 unittest.expect(o[1], unittest.equals('foo')); |
| 1198 } | 1202 } |
| 1199 | 1203 |
| 1200 core.int buildCounterOperationMetadata = 0; | 1204 core.int buildCounterOperationMetadata = 0; |
| 1201 buildOperationMetadata() { | 1205 buildOperationMetadata() { |
| 1202 var o = new api.OperationMetadata(); | 1206 var o = new api.OperationMetadata(); |
| 1203 buildCounterOperationMetadata++; | 1207 buildCounterOperationMetadata++; |
| 1204 if (buildCounterOperationMetadata < 3) { | 1208 if (buildCounterOperationMetadata < 3) { |
| 1205 o.clusterName = "foo"; | 1209 o.clusterName = "foo"; |
| 1206 o.clusterUuid = "foo"; | 1210 o.clusterUuid = "foo"; |
| 1207 o.description = "foo"; | 1211 o.description = "foo"; |
| 1208 o.operationType = "foo"; | 1212 o.operationType = "foo"; |
| 1209 o.status = buildOperationStatus(); | 1213 o.status = buildOperationStatus(); |
| 1210 o.statusHistory = buildUnnamed3148(); | 1214 o.statusHistory = buildUnnamed3240(); |
| 1211 o.warnings = buildUnnamed3149(); | 1215 o.warnings = buildUnnamed3241(); |
| 1212 } | 1216 } |
| 1213 buildCounterOperationMetadata--; | 1217 buildCounterOperationMetadata--; |
| 1214 return o; | 1218 return o; |
| 1215 } | 1219 } |
| 1216 | 1220 |
| 1217 checkOperationMetadata(api.OperationMetadata o) { | 1221 checkOperationMetadata(api.OperationMetadata o) { |
| 1218 buildCounterOperationMetadata++; | 1222 buildCounterOperationMetadata++; |
| 1219 if (buildCounterOperationMetadata < 3) { | 1223 if (buildCounterOperationMetadata < 3) { |
| 1220 unittest.expect(o.clusterName, unittest.equals('foo')); | 1224 unittest.expect(o.clusterName, unittest.equals('foo')); |
| 1221 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 1225 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
| 1222 unittest.expect(o.description, unittest.equals('foo')); | 1226 unittest.expect(o.description, unittest.equals('foo')); |
| 1223 unittest.expect(o.operationType, unittest.equals('foo')); | 1227 unittest.expect(o.operationType, unittest.equals('foo')); |
| 1224 checkOperationStatus(o.status); | 1228 checkOperationStatus(o.status); |
| 1225 checkUnnamed3148(o.statusHistory); | 1229 checkUnnamed3240(o.statusHistory); |
| 1226 checkUnnamed3149(o.warnings); | 1230 checkUnnamed3241(o.warnings); |
| 1227 } | 1231 } |
| 1228 buildCounterOperationMetadata--; | 1232 buildCounterOperationMetadata--; |
| 1229 } | 1233 } |
| 1230 | 1234 |
| 1231 core.int buildCounterOperationStatus = 0; | 1235 core.int buildCounterOperationStatus = 0; |
| 1232 buildOperationStatus() { | 1236 buildOperationStatus() { |
| 1233 var o = new api.OperationStatus(); | 1237 var o = new api.OperationStatus(); |
| 1234 buildCounterOperationStatus++; | 1238 buildCounterOperationStatus++; |
| 1235 if (buildCounterOperationStatus < 3) { | 1239 if (buildCounterOperationStatus < 3) { |
| 1236 o.details = "foo"; | 1240 o.details = "foo"; |
| 1237 o.innerState = "foo"; | 1241 o.innerState = "foo"; |
| 1238 o.state = "foo"; | 1242 o.state = "foo"; |
| 1239 o.stateStartTime = "foo"; | 1243 o.stateStartTime = "foo"; |
| 1240 } | 1244 } |
| 1241 buildCounterOperationStatus--; | 1245 buildCounterOperationStatus--; |
| 1242 return o; | 1246 return o; |
| 1243 } | 1247 } |
| 1244 | 1248 |
| 1245 checkOperationStatus(api.OperationStatus o) { | 1249 checkOperationStatus(api.OperationStatus o) { |
| 1246 buildCounterOperationStatus++; | 1250 buildCounterOperationStatus++; |
| 1247 if (buildCounterOperationStatus < 3) { | 1251 if (buildCounterOperationStatus < 3) { |
| 1248 unittest.expect(o.details, unittest.equals('foo')); | 1252 unittest.expect(o.details, unittest.equals('foo')); |
| 1249 unittest.expect(o.innerState, unittest.equals('foo')); | 1253 unittest.expect(o.innerState, unittest.equals('foo')); |
| 1250 unittest.expect(o.state, unittest.equals('foo')); | 1254 unittest.expect(o.state, unittest.equals('foo')); |
| 1251 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 1255 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
| 1252 } | 1256 } |
| 1253 buildCounterOperationStatus--; | 1257 buildCounterOperationStatus--; |
| 1254 } | 1258 } |
| 1255 | 1259 |
| 1256 buildUnnamed3150() { | 1260 buildUnnamed3242() { |
| 1257 var o = new core.List<core.String>(); | 1261 var o = new core.List<core.String>(); |
| 1258 o.add("foo"); | 1262 o.add("foo"); |
| 1259 o.add("foo"); | 1263 o.add("foo"); |
| 1260 return o; | 1264 return o; |
| 1261 } | 1265 } |
| 1262 | 1266 |
| 1263 checkUnnamed3150(core.List<core.String> o) { | 1267 checkUnnamed3242(core.List<core.String> o) { |
| 1264 unittest.expect(o, unittest.hasLength(2)); | 1268 unittest.expect(o, unittest.hasLength(2)); |
| 1265 unittest.expect(o[0], unittest.equals('foo')); | 1269 unittest.expect(o[0], unittest.equals('foo')); |
| 1266 unittest.expect(o[1], unittest.equals('foo')); | 1270 unittest.expect(o[1], unittest.equals('foo')); |
| 1267 } | 1271 } |
| 1268 | 1272 |
| 1269 buildUnnamed3151() { | 1273 buildUnnamed3243() { |
| 1270 var o = new core.Map<core.String, core.String>(); | 1274 var o = new core.Map<core.String, core.String>(); |
| 1271 o["x"] = "foo"; | 1275 o["x"] = "foo"; |
| 1272 o["y"] = "foo"; | 1276 o["y"] = "foo"; |
| 1273 return o; | 1277 return o; |
| 1274 } | 1278 } |
| 1275 | 1279 |
| 1276 checkUnnamed3151(core.Map<core.String, core.String> o) { | 1280 checkUnnamed3243(core.Map<core.String, core.String> o) { |
| 1277 unittest.expect(o, unittest.hasLength(2)); | 1281 unittest.expect(o, unittest.hasLength(2)); |
| 1278 unittest.expect(o["x"], unittest.equals('foo')); | 1282 unittest.expect(o["x"], unittest.equals('foo')); |
| 1279 unittest.expect(o["y"], unittest.equals('foo')); | 1283 unittest.expect(o["y"], unittest.equals('foo')); |
| 1280 } | 1284 } |
| 1281 | 1285 |
| 1282 buildUnnamed3152() { | 1286 buildUnnamed3244() { |
| 1283 var o = new core.Map<core.String, core.String>(); | 1287 var o = new core.Map<core.String, core.String>(); |
| 1284 o["x"] = "foo"; | 1288 o["x"] = "foo"; |
| 1285 o["y"] = "foo"; | 1289 o["y"] = "foo"; |
| 1286 return o; | 1290 return o; |
| 1287 } | 1291 } |
| 1288 | 1292 |
| 1289 checkUnnamed3152(core.Map<core.String, core.String> o) { | 1293 checkUnnamed3244(core.Map<core.String, core.String> o) { |
| 1290 unittest.expect(o, unittest.hasLength(2)); | 1294 unittest.expect(o, unittest.hasLength(2)); |
| 1291 unittest.expect(o["x"], unittest.equals('foo')); | 1295 unittest.expect(o["x"], unittest.equals('foo')); |
| 1292 unittest.expect(o["y"], unittest.equals('foo')); | 1296 unittest.expect(o["y"], unittest.equals('foo')); |
| 1293 } | 1297 } |
| 1294 | 1298 |
| 1295 core.int buildCounterPigJob = 0; | 1299 core.int buildCounterPigJob = 0; |
| 1296 buildPigJob() { | 1300 buildPigJob() { |
| 1297 var o = new api.PigJob(); | 1301 var o = new api.PigJob(); |
| 1298 buildCounterPigJob++; | 1302 buildCounterPigJob++; |
| 1299 if (buildCounterPigJob < 3) { | 1303 if (buildCounterPigJob < 3) { |
| 1300 o.continueOnFailure = true; | 1304 o.continueOnFailure = true; |
| 1301 o.jarFileUris = buildUnnamed3150(); | 1305 o.jarFileUris = buildUnnamed3242(); |
| 1302 o.loggingConfiguration = buildLoggingConfiguration(); | 1306 o.loggingConfiguration = buildLoggingConfiguration(); |
| 1303 o.properties = buildUnnamed3151(); | 1307 o.properties = buildUnnamed3243(); |
| 1304 o.queryFileUri = "foo"; | 1308 o.queryFileUri = "foo"; |
| 1305 o.queryList = buildQueryList(); | 1309 o.queryList = buildQueryList(); |
| 1306 o.scriptVariables = buildUnnamed3152(); | 1310 o.scriptVariables = buildUnnamed3244(); |
| 1307 } | 1311 } |
| 1308 buildCounterPigJob--; | 1312 buildCounterPigJob--; |
| 1309 return o; | 1313 return o; |
| 1310 } | 1314 } |
| 1311 | 1315 |
| 1312 checkPigJob(api.PigJob o) { | 1316 checkPigJob(api.PigJob o) { |
| 1313 buildCounterPigJob++; | 1317 buildCounterPigJob++; |
| 1314 if (buildCounterPigJob < 3) { | 1318 if (buildCounterPigJob < 3) { |
| 1315 unittest.expect(o.continueOnFailure, unittest.isTrue); | 1319 unittest.expect(o.continueOnFailure, unittest.isTrue); |
| 1316 checkUnnamed3150(o.jarFileUris); | 1320 checkUnnamed3242(o.jarFileUris); |
| 1317 checkLoggingConfiguration(o.loggingConfiguration); | 1321 checkLoggingConfiguration(o.loggingConfiguration); |
| 1318 checkUnnamed3151(o.properties); | 1322 checkUnnamed3243(o.properties); |
| 1319 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1323 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
| 1320 checkQueryList(o.queryList); | 1324 checkQueryList(o.queryList); |
| 1321 checkUnnamed3152(o.scriptVariables); | 1325 checkUnnamed3244(o.scriptVariables); |
| 1322 } | 1326 } |
| 1323 buildCounterPigJob--; | 1327 buildCounterPigJob--; |
| 1324 } | 1328 } |
| 1325 | 1329 |
| 1326 buildUnnamed3153() { | 1330 buildUnnamed3245() { |
| 1327 var o = new core.List<core.String>(); | 1331 var o = new core.List<core.String>(); |
| 1328 o.add("foo"); | 1332 o.add("foo"); |
| 1329 o.add("foo"); | 1333 o.add("foo"); |
| 1330 return o; | 1334 return o; |
| 1331 } | 1335 } |
| 1332 | 1336 |
| 1333 checkUnnamed3153(core.List<core.String> o) { | 1337 checkUnnamed3245(core.List<core.String> o) { |
| 1334 unittest.expect(o, unittest.hasLength(2)); | 1338 unittest.expect(o, unittest.hasLength(2)); |
| 1335 unittest.expect(o[0], unittest.equals('foo')); | 1339 unittest.expect(o[0], unittest.equals('foo')); |
| 1336 unittest.expect(o[1], unittest.equals('foo')); | 1340 unittest.expect(o[1], unittest.equals('foo')); |
| 1337 } | 1341 } |
| 1338 | 1342 |
| 1339 buildUnnamed3154() { | 1343 buildUnnamed3246() { |
| 1340 var o = new core.List<core.String>(); | 1344 var o = new core.List<core.String>(); |
| 1341 o.add("foo"); | 1345 o.add("foo"); |
| 1342 o.add("foo"); | 1346 o.add("foo"); |
| 1343 return o; | 1347 return o; |
| 1344 } | 1348 } |
| 1345 | 1349 |
| 1346 checkUnnamed3154(core.List<core.String> o) { | 1350 checkUnnamed3246(core.List<core.String> o) { |
| 1347 unittest.expect(o, unittest.hasLength(2)); | 1351 unittest.expect(o, unittest.hasLength(2)); |
| 1348 unittest.expect(o[0], unittest.equals('foo')); | 1352 unittest.expect(o[0], unittest.equals('foo')); |
| 1349 unittest.expect(o[1], unittest.equals('foo')); | 1353 unittest.expect(o[1], unittest.equals('foo')); |
| 1350 } | 1354 } |
| 1351 | 1355 |
| 1352 buildUnnamed3155() { | 1356 buildUnnamed3247() { |
| 1353 var o = new core.List<core.String>(); | 1357 var o = new core.List<core.String>(); |
| 1354 o.add("foo"); | 1358 o.add("foo"); |
| 1355 o.add("foo"); | 1359 o.add("foo"); |
| 1356 return o; | 1360 return o; |
| 1357 } | 1361 } |
| 1358 | 1362 |
| 1359 checkUnnamed3155(core.List<core.String> o) { | 1363 checkUnnamed3247(core.List<core.String> o) { |
| 1360 unittest.expect(o, unittest.hasLength(2)); | 1364 unittest.expect(o, unittest.hasLength(2)); |
| 1361 unittest.expect(o[0], unittest.equals('foo')); | 1365 unittest.expect(o[0], unittest.equals('foo')); |
| 1362 unittest.expect(o[1], unittest.equals('foo')); | 1366 unittest.expect(o[1], unittest.equals('foo')); |
| 1363 } | 1367 } |
| 1364 | 1368 |
| 1365 buildUnnamed3156() { | 1369 buildUnnamed3248() { |
| 1366 var o = new core.List<core.String>(); | 1370 var o = new core.List<core.String>(); |
| 1367 o.add("foo"); | 1371 o.add("foo"); |
| 1368 o.add("foo"); | 1372 o.add("foo"); |
| 1369 return o; | 1373 return o; |
| 1370 } | 1374 } |
| 1371 | 1375 |
| 1372 checkUnnamed3156(core.List<core.String> o) { | 1376 checkUnnamed3248(core.List<core.String> o) { |
| 1373 unittest.expect(o, unittest.hasLength(2)); | 1377 unittest.expect(o, unittest.hasLength(2)); |
| 1374 unittest.expect(o[0], unittest.equals('foo')); | 1378 unittest.expect(o[0], unittest.equals('foo')); |
| 1375 unittest.expect(o[1], unittest.equals('foo')); | 1379 unittest.expect(o[1], unittest.equals('foo')); |
| 1376 } | 1380 } |
| 1377 | 1381 |
| 1378 buildUnnamed3157() { | 1382 buildUnnamed3249() { |
| 1379 var o = new core.Map<core.String, core.String>(); | 1383 var o = new core.Map<core.String, core.String>(); |
| 1380 o["x"] = "foo"; | 1384 o["x"] = "foo"; |
| 1381 o["y"] = "foo"; | 1385 o["y"] = "foo"; |
| 1382 return o; | 1386 return o; |
| 1383 } | 1387 } |
| 1384 | 1388 |
| 1385 checkUnnamed3157(core.Map<core.String, core.String> o) { | 1389 checkUnnamed3249(core.Map<core.String, core.String> o) { |
| 1386 unittest.expect(o, unittest.hasLength(2)); | 1390 unittest.expect(o, unittest.hasLength(2)); |
| 1387 unittest.expect(o["x"], unittest.equals('foo')); | 1391 unittest.expect(o["x"], unittest.equals('foo')); |
| 1388 unittest.expect(o["y"], unittest.equals('foo')); | 1392 unittest.expect(o["y"], unittest.equals('foo')); |
| 1389 } | 1393 } |
| 1390 | 1394 |
| 1391 buildUnnamed3158() { | 1395 buildUnnamed3250() { |
| 1392 var o = new core.List<core.String>(); | 1396 var o = new core.List<core.String>(); |
| 1393 o.add("foo"); | 1397 o.add("foo"); |
| 1394 o.add("foo"); | 1398 o.add("foo"); |
| 1395 return o; | 1399 return o; |
| 1396 } | 1400 } |
| 1397 | 1401 |
| 1398 checkUnnamed3158(core.List<core.String> o) { | 1402 checkUnnamed3250(core.List<core.String> o) { |
| 1399 unittest.expect(o, unittest.hasLength(2)); | 1403 unittest.expect(o, unittest.hasLength(2)); |
| 1400 unittest.expect(o[0], unittest.equals('foo')); | 1404 unittest.expect(o[0], unittest.equals('foo')); |
| 1401 unittest.expect(o[1], unittest.equals('foo')); | 1405 unittest.expect(o[1], unittest.equals('foo')); |
| 1402 } | 1406 } |
| 1403 | 1407 |
| 1404 core.int buildCounterPySparkJob = 0; | 1408 core.int buildCounterPySparkJob = 0; |
| 1405 buildPySparkJob() { | 1409 buildPySparkJob() { |
| 1406 var o = new api.PySparkJob(); | 1410 var o = new api.PySparkJob(); |
| 1407 buildCounterPySparkJob++; | 1411 buildCounterPySparkJob++; |
| 1408 if (buildCounterPySparkJob < 3) { | 1412 if (buildCounterPySparkJob < 3) { |
| 1409 o.archiveUris = buildUnnamed3153(); | 1413 o.archiveUris = buildUnnamed3245(); |
| 1410 o.args = buildUnnamed3154(); | 1414 o.args = buildUnnamed3246(); |
| 1411 o.fileUris = buildUnnamed3155(); | 1415 o.fileUris = buildUnnamed3247(); |
| 1412 o.jarFileUris = buildUnnamed3156(); | 1416 o.jarFileUris = buildUnnamed3248(); |
| 1413 o.loggingConfiguration = buildLoggingConfiguration(); | 1417 o.loggingConfiguration = buildLoggingConfiguration(); |
| 1414 o.mainPythonFileUri = "foo"; | 1418 o.mainPythonFileUri = "foo"; |
| 1415 o.properties = buildUnnamed3157(); | 1419 o.properties = buildUnnamed3249(); |
| 1416 o.pythonFileUris = buildUnnamed3158(); | 1420 o.pythonFileUris = buildUnnamed3250(); |
| 1417 } | 1421 } |
| 1418 buildCounterPySparkJob--; | 1422 buildCounterPySparkJob--; |
| 1419 return o; | 1423 return o; |
| 1420 } | 1424 } |
| 1421 | 1425 |
| 1422 checkPySparkJob(api.PySparkJob o) { | 1426 checkPySparkJob(api.PySparkJob o) { |
| 1423 buildCounterPySparkJob++; | 1427 buildCounterPySparkJob++; |
| 1424 if (buildCounterPySparkJob < 3) { | 1428 if (buildCounterPySparkJob < 3) { |
| 1425 checkUnnamed3153(o.archiveUris); | 1429 checkUnnamed3245(o.archiveUris); |
| 1426 checkUnnamed3154(o.args); | 1430 checkUnnamed3246(o.args); |
| 1427 checkUnnamed3155(o.fileUris); | 1431 checkUnnamed3247(o.fileUris); |
| 1428 checkUnnamed3156(o.jarFileUris); | 1432 checkUnnamed3248(o.jarFileUris); |
| 1429 checkLoggingConfiguration(o.loggingConfiguration); | 1433 checkLoggingConfiguration(o.loggingConfiguration); |
| 1430 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); | 1434 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); |
| 1431 checkUnnamed3157(o.properties); | 1435 checkUnnamed3249(o.properties); |
| 1432 checkUnnamed3158(o.pythonFileUris); | 1436 checkUnnamed3250(o.pythonFileUris); |
| 1433 } | 1437 } |
| 1434 buildCounterPySparkJob--; | 1438 buildCounterPySparkJob--; |
| 1435 } | 1439 } |
| 1436 | 1440 |
| 1437 buildUnnamed3159() { | 1441 buildUnnamed3251() { |
| 1438 var o = new core.List<core.String>(); | 1442 var o = new core.List<core.String>(); |
| 1439 o.add("foo"); | 1443 o.add("foo"); |
| 1440 o.add("foo"); | 1444 o.add("foo"); |
| 1441 return o; | 1445 return o; |
| 1442 } | 1446 } |
| 1443 | 1447 |
| 1444 checkUnnamed3159(core.List<core.String> o) { | 1448 checkUnnamed3251(core.List<core.String> o) { |
| 1445 unittest.expect(o, unittest.hasLength(2)); | 1449 unittest.expect(o, unittest.hasLength(2)); |
| 1446 unittest.expect(o[0], unittest.equals('foo')); | 1450 unittest.expect(o[0], unittest.equals('foo')); |
| 1447 unittest.expect(o[1], unittest.equals('foo')); | 1451 unittest.expect(o[1], unittest.equals('foo')); |
| 1448 } | 1452 } |
| 1449 | 1453 |
| 1450 core.int buildCounterQueryList = 0; | 1454 core.int buildCounterQueryList = 0; |
| 1451 buildQueryList() { | 1455 buildQueryList() { |
| 1452 var o = new api.QueryList(); | 1456 var o = new api.QueryList(); |
| 1453 buildCounterQueryList++; | 1457 buildCounterQueryList++; |
| 1454 if (buildCounterQueryList < 3) { | 1458 if (buildCounterQueryList < 3) { |
| 1455 o.queries = buildUnnamed3159(); | 1459 o.queries = buildUnnamed3251(); |
| 1456 } | 1460 } |
| 1457 buildCounterQueryList--; | 1461 buildCounterQueryList--; |
| 1458 return o; | 1462 return o; |
| 1459 } | 1463 } |
| 1460 | 1464 |
| 1461 checkQueryList(api.QueryList o) { | 1465 checkQueryList(api.QueryList o) { |
| 1462 buildCounterQueryList++; | 1466 buildCounterQueryList++; |
| 1463 if (buildCounterQueryList < 3) { | 1467 if (buildCounterQueryList < 3) { |
| 1464 checkUnnamed3159(o.queries); | 1468 checkUnnamed3251(o.queries); |
| 1465 } | 1469 } |
| 1466 buildCounterQueryList--; | 1470 buildCounterQueryList--; |
| 1467 } | 1471 } |
| 1468 | 1472 |
| 1469 buildUnnamed3160() { | 1473 buildUnnamed3252() { |
| 1470 var o = new core.Map<core.String, core.String>(); | 1474 var o = new core.Map<core.String, core.String>(); |
| 1471 o["x"] = "foo"; | 1475 o["x"] = "foo"; |
| 1472 o["y"] = "foo"; | 1476 o["y"] = "foo"; |
| 1473 return o; | 1477 return o; |
| 1474 } | 1478 } |
| 1475 | 1479 |
| 1476 checkUnnamed3160(core.Map<core.String, core.String> o) { | 1480 checkUnnamed3252(core.Map<core.String, core.String> o) { |
| 1477 unittest.expect(o, unittest.hasLength(2)); | 1481 unittest.expect(o, unittest.hasLength(2)); |
| 1478 unittest.expect(o["x"], unittest.equals('foo')); | 1482 unittest.expect(o["x"], unittest.equals('foo')); |
| 1479 unittest.expect(o["y"], unittest.equals('foo')); | 1483 unittest.expect(o["y"], unittest.equals('foo')); |
| 1480 } | 1484 } |
| 1481 | 1485 |
| 1482 core.int buildCounterSoftwareConfiguration = 0; | 1486 core.int buildCounterSoftwareConfiguration = 0; |
| 1483 buildSoftwareConfiguration() { | 1487 buildSoftwareConfiguration() { |
| 1484 var o = new api.SoftwareConfiguration(); | 1488 var o = new api.SoftwareConfiguration(); |
| 1485 buildCounterSoftwareConfiguration++; | 1489 buildCounterSoftwareConfiguration++; |
| 1486 if (buildCounterSoftwareConfiguration < 3) { | 1490 if (buildCounterSoftwareConfiguration < 3) { |
| 1487 o.imageVersion = "foo"; | 1491 o.imageVersion = "foo"; |
| 1488 o.properties = buildUnnamed3160(); | 1492 o.properties = buildUnnamed3252(); |
| 1489 } | 1493 } |
| 1490 buildCounterSoftwareConfiguration--; | 1494 buildCounterSoftwareConfiguration--; |
| 1491 return o; | 1495 return o; |
| 1492 } | 1496 } |
| 1493 | 1497 |
| 1494 checkSoftwareConfiguration(api.SoftwareConfiguration o) { | 1498 checkSoftwareConfiguration(api.SoftwareConfiguration o) { |
| 1495 buildCounterSoftwareConfiguration++; | 1499 buildCounterSoftwareConfiguration++; |
| 1496 if (buildCounterSoftwareConfiguration < 3) { | 1500 if (buildCounterSoftwareConfiguration < 3) { |
| 1497 unittest.expect(o.imageVersion, unittest.equals('foo')); | 1501 unittest.expect(o.imageVersion, unittest.equals('foo')); |
| 1498 checkUnnamed3160(o.properties); | 1502 checkUnnamed3252(o.properties); |
| 1499 } | 1503 } |
| 1500 buildCounterSoftwareConfiguration--; | 1504 buildCounterSoftwareConfiguration--; |
| 1501 } | 1505 } |
| 1502 | 1506 |
| 1503 buildUnnamed3161() { | 1507 buildUnnamed3253() { |
| 1504 var o = new core.List<core.String>(); | 1508 var o = new core.List<core.String>(); |
| 1505 o.add("foo"); | 1509 o.add("foo"); |
| 1506 o.add("foo"); | 1510 o.add("foo"); |
| 1507 return o; | 1511 return o; |
| 1508 } | 1512 } |
| 1509 | 1513 |
| 1510 checkUnnamed3161(core.List<core.String> o) { | 1514 checkUnnamed3253(core.List<core.String> o) { |
| 1511 unittest.expect(o, unittest.hasLength(2)); | 1515 unittest.expect(o, unittest.hasLength(2)); |
| 1512 unittest.expect(o[0], unittest.equals('foo')); | 1516 unittest.expect(o[0], unittest.equals('foo')); |
| 1513 unittest.expect(o[1], unittest.equals('foo')); | 1517 unittest.expect(o[1], unittest.equals('foo')); |
| 1514 } | 1518 } |
| 1515 | 1519 |
| 1516 buildUnnamed3162() { | 1520 buildUnnamed3254() { |
| 1517 var o = new core.List<core.String>(); | 1521 var o = new core.List<core.String>(); |
| 1518 o.add("foo"); | 1522 o.add("foo"); |
| 1519 o.add("foo"); | 1523 o.add("foo"); |
| 1520 return o; | 1524 return o; |
| 1521 } | 1525 } |
| 1522 | 1526 |
| 1523 checkUnnamed3162(core.List<core.String> o) { | 1527 checkUnnamed3254(core.List<core.String> o) { |
| 1524 unittest.expect(o, unittest.hasLength(2)); | 1528 unittest.expect(o, unittest.hasLength(2)); |
| 1525 unittest.expect(o[0], unittest.equals('foo')); | 1529 unittest.expect(o[0], unittest.equals('foo')); |
| 1526 unittest.expect(o[1], unittest.equals('foo')); | 1530 unittest.expect(o[1], unittest.equals('foo')); |
| 1527 } | 1531 } |
| 1528 | 1532 |
| 1529 buildUnnamed3163() { | 1533 buildUnnamed3255() { |
| 1530 var o = new core.List<core.String>(); | 1534 var o = new core.List<core.String>(); |
| 1531 o.add("foo"); | 1535 o.add("foo"); |
| 1532 o.add("foo"); | 1536 o.add("foo"); |
| 1533 return o; | 1537 return o; |
| 1534 } | 1538 } |
| 1535 | 1539 |
| 1536 checkUnnamed3163(core.List<core.String> o) { | 1540 checkUnnamed3255(core.List<core.String> o) { |
| 1537 unittest.expect(o, unittest.hasLength(2)); | 1541 unittest.expect(o, unittest.hasLength(2)); |
| 1538 unittest.expect(o[0], unittest.equals('foo')); | 1542 unittest.expect(o[0], unittest.equals('foo')); |
| 1539 unittest.expect(o[1], unittest.equals('foo')); | 1543 unittest.expect(o[1], unittest.equals('foo')); |
| 1540 } | 1544 } |
| 1541 | 1545 |
| 1542 buildUnnamed3164() { | 1546 buildUnnamed3256() { |
| 1543 var o = new core.List<core.String>(); | 1547 var o = new core.List<core.String>(); |
| 1544 o.add("foo"); | 1548 o.add("foo"); |
| 1545 o.add("foo"); | 1549 o.add("foo"); |
| 1546 return o; | 1550 return o; |
| 1547 } | 1551 } |
| 1548 | 1552 |
| 1549 checkUnnamed3164(core.List<core.String> o) { | 1553 checkUnnamed3256(core.List<core.String> o) { |
| 1550 unittest.expect(o, unittest.hasLength(2)); | 1554 unittest.expect(o, unittest.hasLength(2)); |
| 1551 unittest.expect(o[0], unittest.equals('foo')); | 1555 unittest.expect(o[0], unittest.equals('foo')); |
| 1552 unittest.expect(o[1], unittest.equals('foo')); | 1556 unittest.expect(o[1], unittest.equals('foo')); |
| 1553 } | 1557 } |
| 1554 | 1558 |
| 1555 buildUnnamed3165() { | 1559 buildUnnamed3257() { |
| 1556 var o = new core.Map<core.String, core.String>(); | 1560 var o = new core.Map<core.String, core.String>(); |
| 1557 o["x"] = "foo"; | 1561 o["x"] = "foo"; |
| 1558 o["y"] = "foo"; | 1562 o["y"] = "foo"; |
| 1559 return o; | 1563 return o; |
| 1560 } | 1564 } |
| 1561 | 1565 |
| 1562 checkUnnamed3165(core.Map<core.String, core.String> o) { | 1566 checkUnnamed3257(core.Map<core.String, core.String> o) { |
| 1563 unittest.expect(o, unittest.hasLength(2)); | 1567 unittest.expect(o, unittest.hasLength(2)); |
| 1564 unittest.expect(o["x"], unittest.equals('foo')); | 1568 unittest.expect(o["x"], unittest.equals('foo')); |
| 1565 unittest.expect(o["y"], unittest.equals('foo')); | 1569 unittest.expect(o["y"], unittest.equals('foo')); |
| 1566 } | 1570 } |
| 1567 | 1571 |
| 1568 core.int buildCounterSparkJob = 0; | 1572 core.int buildCounterSparkJob = 0; |
| 1569 buildSparkJob() { | 1573 buildSparkJob() { |
| 1570 var o = new api.SparkJob(); | 1574 var o = new api.SparkJob(); |
| 1571 buildCounterSparkJob++; | 1575 buildCounterSparkJob++; |
| 1572 if (buildCounterSparkJob < 3) { | 1576 if (buildCounterSparkJob < 3) { |
| 1573 o.archiveUris = buildUnnamed3161(); | 1577 o.archiveUris = buildUnnamed3253(); |
| 1574 o.args = buildUnnamed3162(); | 1578 o.args = buildUnnamed3254(); |
| 1575 o.fileUris = buildUnnamed3163(); | 1579 o.fileUris = buildUnnamed3255(); |
| 1576 o.jarFileUris = buildUnnamed3164(); | 1580 o.jarFileUris = buildUnnamed3256(); |
| 1577 o.loggingConfiguration = buildLoggingConfiguration(); | 1581 o.loggingConfiguration = buildLoggingConfiguration(); |
| 1578 o.mainClass = "foo"; | 1582 o.mainClass = "foo"; |
| 1579 o.mainJarFileUri = "foo"; | 1583 o.mainJarFileUri = "foo"; |
| 1580 o.properties = buildUnnamed3165(); | 1584 o.properties = buildUnnamed3257(); |
| 1581 } | 1585 } |
| 1582 buildCounterSparkJob--; | 1586 buildCounterSparkJob--; |
| 1583 return o; | 1587 return o; |
| 1584 } | 1588 } |
| 1585 | 1589 |
| 1586 checkSparkJob(api.SparkJob o) { | 1590 checkSparkJob(api.SparkJob o) { |
| 1587 buildCounterSparkJob++; | 1591 buildCounterSparkJob++; |
| 1588 if (buildCounterSparkJob < 3) { | 1592 if (buildCounterSparkJob < 3) { |
| 1589 checkUnnamed3161(o.archiveUris); | 1593 checkUnnamed3253(o.archiveUris); |
| 1590 checkUnnamed3162(o.args); | 1594 checkUnnamed3254(o.args); |
| 1591 checkUnnamed3163(o.fileUris); | 1595 checkUnnamed3255(o.fileUris); |
| 1592 checkUnnamed3164(o.jarFileUris); | 1596 checkUnnamed3256(o.jarFileUris); |
| 1593 checkLoggingConfiguration(o.loggingConfiguration); | 1597 checkLoggingConfiguration(o.loggingConfiguration); |
| 1594 unittest.expect(o.mainClass, unittest.equals('foo')); | 1598 unittest.expect(o.mainClass, unittest.equals('foo')); |
| 1595 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 1599 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
| 1596 checkUnnamed3165(o.properties); | 1600 checkUnnamed3257(o.properties); |
| 1597 } | 1601 } |
| 1598 buildCounterSparkJob--; | 1602 buildCounterSparkJob--; |
| 1599 } | 1603 } |
| 1600 | 1604 |
| 1601 buildUnnamed3166() { | 1605 buildUnnamed3258() { |
| 1602 var o = new core.List<core.String>(); | 1606 var o = new core.List<core.String>(); |
| 1603 o.add("foo"); | 1607 o.add("foo"); |
| 1604 o.add("foo"); | 1608 o.add("foo"); |
| 1605 return o; | 1609 return o; |
| 1606 } | 1610 } |
| 1607 | 1611 |
| 1608 checkUnnamed3166(core.List<core.String> o) { | 1612 checkUnnamed3258(core.List<core.String> o) { |
| 1609 unittest.expect(o, unittest.hasLength(2)); | 1613 unittest.expect(o, unittest.hasLength(2)); |
| 1610 unittest.expect(o[0], unittest.equals('foo')); | 1614 unittest.expect(o[0], unittest.equals('foo')); |
| 1611 unittest.expect(o[1], unittest.equals('foo')); | 1615 unittest.expect(o[1], unittest.equals('foo')); |
| 1612 } | 1616 } |
| 1613 | 1617 |
| 1614 buildUnnamed3167() { | 1618 buildUnnamed3259() { |
| 1615 var o = new core.Map<core.String, core.String>(); | 1619 var o = new core.Map<core.String, core.String>(); |
| 1616 o["x"] = "foo"; | 1620 o["x"] = "foo"; |
| 1617 o["y"] = "foo"; | 1621 o["y"] = "foo"; |
| 1618 return o; | 1622 return o; |
| 1619 } | 1623 } |
| 1620 | 1624 |
| 1621 checkUnnamed3167(core.Map<core.String, core.String> o) { | 1625 checkUnnamed3259(core.Map<core.String, core.String> o) { |
| 1622 unittest.expect(o, unittest.hasLength(2)); | 1626 unittest.expect(o, unittest.hasLength(2)); |
| 1623 unittest.expect(o["x"], unittest.equals('foo')); | 1627 unittest.expect(o["x"], unittest.equals('foo')); |
| 1624 unittest.expect(o["y"], unittest.equals('foo')); | 1628 unittest.expect(o["y"], unittest.equals('foo')); |
| 1625 } | 1629 } |
| 1626 | 1630 |
| 1627 buildUnnamed3168() { | 1631 buildUnnamed3260() { |
| 1628 var o = new core.Map<core.String, core.String>(); | 1632 var o = new core.Map<core.String, core.String>(); |
| 1629 o["x"] = "foo"; | 1633 o["x"] = "foo"; |
| 1630 o["y"] = "foo"; | 1634 o["y"] = "foo"; |
| 1631 return o; | 1635 return o; |
| 1632 } | 1636 } |
| 1633 | 1637 |
| 1634 checkUnnamed3168(core.Map<core.String, core.String> o) { | 1638 checkUnnamed3260(core.Map<core.String, core.String> o) { |
| 1635 unittest.expect(o, unittest.hasLength(2)); | 1639 unittest.expect(o, unittest.hasLength(2)); |
| 1636 unittest.expect(o["x"], unittest.equals('foo')); | 1640 unittest.expect(o["x"], unittest.equals('foo')); |
| 1637 unittest.expect(o["y"], unittest.equals('foo')); | 1641 unittest.expect(o["y"], unittest.equals('foo')); |
| 1638 } | 1642 } |
| 1639 | 1643 |
| 1640 core.int buildCounterSparkSqlJob = 0; | 1644 core.int buildCounterSparkSqlJob = 0; |
| 1641 buildSparkSqlJob() { | 1645 buildSparkSqlJob() { |
| 1642 var o = new api.SparkSqlJob(); | 1646 var o = new api.SparkSqlJob(); |
| 1643 buildCounterSparkSqlJob++; | 1647 buildCounterSparkSqlJob++; |
| 1644 if (buildCounterSparkSqlJob < 3) { | 1648 if (buildCounterSparkSqlJob < 3) { |
| 1645 o.jarFileUris = buildUnnamed3166(); | 1649 o.jarFileUris = buildUnnamed3258(); |
| 1646 o.loggingConfiguration = buildLoggingConfiguration(); | 1650 o.loggingConfiguration = buildLoggingConfiguration(); |
| 1647 o.properties = buildUnnamed3167(); | 1651 o.properties = buildUnnamed3259(); |
| 1648 o.queryFileUri = "foo"; | 1652 o.queryFileUri = "foo"; |
| 1649 o.queryList = buildQueryList(); | 1653 o.queryList = buildQueryList(); |
| 1650 o.scriptVariables = buildUnnamed3168(); | 1654 o.scriptVariables = buildUnnamed3260(); |
| 1651 } | 1655 } |
| 1652 buildCounterSparkSqlJob--; | 1656 buildCounterSparkSqlJob--; |
| 1653 return o; | 1657 return o; |
| 1654 } | 1658 } |
| 1655 | 1659 |
| 1656 checkSparkSqlJob(api.SparkSqlJob o) { | 1660 checkSparkSqlJob(api.SparkSqlJob o) { |
| 1657 buildCounterSparkSqlJob++; | 1661 buildCounterSparkSqlJob++; |
| 1658 if (buildCounterSparkSqlJob < 3) { | 1662 if (buildCounterSparkSqlJob < 3) { |
| 1659 checkUnnamed3166(o.jarFileUris); | 1663 checkUnnamed3258(o.jarFileUris); |
| 1660 checkLoggingConfiguration(o.loggingConfiguration); | 1664 checkLoggingConfiguration(o.loggingConfiguration); |
| 1661 checkUnnamed3167(o.properties); | 1665 checkUnnamed3259(o.properties); |
| 1662 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1666 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
| 1663 checkQueryList(o.queryList); | 1667 checkQueryList(o.queryList); |
| 1664 checkUnnamed3168(o.scriptVariables); | 1668 checkUnnamed3260(o.scriptVariables); |
| 1665 } | 1669 } |
| 1666 buildCounterSparkSqlJob--; | 1670 buildCounterSparkSqlJob--; |
| 1667 } | 1671 } |
| 1668 | 1672 |
| 1669 buildUnnamed3169() { | 1673 buildUnnamed3261() { |
| 1670 var o = new core.Map<core.String, core.Object>(); | 1674 var o = new core.Map<core.String, core.Object>(); |
| 1671 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1675 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1672 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1676 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1673 return o; | 1677 return o; |
| 1674 } | 1678 } |
| 1675 | 1679 |
| 1676 checkUnnamed3169(core.Map<core.String, core.Object> o) { | 1680 checkUnnamed3261(core.Map<core.String, core.Object> o) { |
| 1677 unittest.expect(o, unittest.hasLength(2)); | 1681 unittest.expect(o, unittest.hasLength(2)); |
| 1678 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')); |
| 1679 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')); |
| 1680 } | 1684 } |
| 1681 | 1685 |
| 1682 buildUnnamed3170() { | 1686 buildUnnamed3262() { |
| 1683 var o = new core.List<core.Map<core.String, core.Object>>(); | 1687 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 1684 o.add(buildUnnamed3169()); | 1688 o.add(buildUnnamed3261()); |
| 1685 o.add(buildUnnamed3169()); | 1689 o.add(buildUnnamed3261()); |
| 1686 return o; | 1690 return o; |
| 1687 } | 1691 } |
| 1688 | 1692 |
| 1689 checkUnnamed3170(core.List<core.Map<core.String, core.Object>> o) { | 1693 checkUnnamed3262(core.List<core.Map<core.String, core.Object>> o) { |
| 1690 unittest.expect(o, unittest.hasLength(2)); | 1694 unittest.expect(o, unittest.hasLength(2)); |
| 1691 checkUnnamed3169(o[0]); | 1695 checkUnnamed3261(o[0]); |
| 1692 checkUnnamed3169(o[1]); | 1696 checkUnnamed3261(o[1]); |
| 1693 } | 1697 } |
| 1694 | 1698 |
| 1695 core.int buildCounterStatus = 0; | 1699 core.int buildCounterStatus = 0; |
| 1696 buildStatus() { | 1700 buildStatus() { |
| 1697 var o = new api.Status(); | 1701 var o = new api.Status(); |
| 1698 buildCounterStatus++; | 1702 buildCounterStatus++; |
| 1699 if (buildCounterStatus < 3) { | 1703 if (buildCounterStatus < 3) { |
| 1700 o.code = 42; | 1704 o.code = 42; |
| 1701 o.details = buildUnnamed3170(); | 1705 o.details = buildUnnamed3262(); |
| 1702 o.message = "foo"; | 1706 o.message = "foo"; |
| 1703 } | 1707 } |
| 1704 buildCounterStatus--; | 1708 buildCounterStatus--; |
| 1705 return o; | 1709 return o; |
| 1706 } | 1710 } |
| 1707 | 1711 |
| 1708 checkStatus(api.Status o) { | 1712 checkStatus(api.Status o) { |
| 1709 buildCounterStatus++; | 1713 buildCounterStatus++; |
| 1710 if (buildCounterStatus < 3) { | 1714 if (buildCounterStatus < 3) { |
| 1711 unittest.expect(o.code, unittest.equals(42)); | 1715 unittest.expect(o.code, unittest.equals(42)); |
| 1712 checkUnnamed3170(o.details); | 1716 checkUnnamed3262(o.details); |
| 1713 unittest.expect(o.message, unittest.equals('foo')); | 1717 unittest.expect(o.message, unittest.equals('foo')); |
| 1714 } | 1718 } |
| 1715 buildCounterStatus--; | 1719 buildCounterStatus--; |
| 1716 } | 1720 } |
| 1717 | 1721 |
| 1718 core.int buildCounterSubmitJobRequest = 0; | 1722 core.int buildCounterSubmitJobRequest = 0; |
| 1719 buildSubmitJobRequest() { | 1723 buildSubmitJobRequest() { |
| 1720 var o = new api.SubmitJobRequest(); | 1724 var o = new api.SubmitJobRequest(); |
| 1721 buildCounterSubmitJobRequest++; | 1725 buildCounterSubmitJobRequest++; |
| 1722 if (buildCounterSubmitJobRequest < 3) { | 1726 if (buildCounterSubmitJobRequest < 3) { |
| (...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2551 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) { |
| 2552 checkCluster(response); | 2556 checkCluster(response); |
| 2553 }))); | 2557 }))); |
| 2554 }); | 2558 }); |
| 2555 | 2559 |
| 2556 unittest.test("method--list", () { | 2560 unittest.test("method--list", () { |
| 2557 | 2561 |
| 2558 var mock = new HttpServerMock(); | 2562 var mock = new HttpServerMock(); |
| 2559 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; | 2563 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; |
| 2560 var arg_projectId = "foo"; | 2564 var arg_projectId = "foo"; |
| 2561 var arg_filter = "foo"; | |
| 2562 var arg_pageToken = "foo"; | 2565 var arg_pageToken = "foo"; |
| 2563 var arg_pageSize = 42; | 2566 var arg_pageSize = 42; |
| 2567 var arg_filter = "foo"; |
| 2564 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2568 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2565 var path = (req.url).path; | 2569 var path = (req.url).path; |
| 2566 var pathOffset = 0; | 2570 var pathOffset = 0; |
| 2567 var index; | 2571 var index; |
| 2568 var subPart; | 2572 var subPart; |
| 2569 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2573 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2570 pathOffset += 1; | 2574 pathOffset += 1; |
| 2571 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/")); |
| 2572 pathOffset += 17; | 2576 pathOffset += 17; |
| 2573 index = path.indexOf("/clusters", pathOffset); | 2577 index = path.indexOf("/clusters", pathOffset); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 2587 if (n == "false") return false; | 2591 if (n == "false") return false; |
| 2588 if (n == null) return null; | 2592 if (n == null) return null; |
| 2589 throw new core.ArgumentError("Invalid boolean: $n"); | 2593 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2590 } | 2594 } |
| 2591 if (query.length > 0) { | 2595 if (query.length > 0) { |
| 2592 for (var part in query.split("&")) { | 2596 for (var part in query.split("&")) { |
| 2593 var keyvalue = part.split("="); | 2597 var keyvalue = part.split("="); |
| 2594 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])); |
| 2595 } | 2599 } |
| 2596 } | 2600 } |
| 2597 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
| 2598 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2601 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2599 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2602 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 2603 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 2600 | 2604 |
| 2601 | 2605 |
| 2602 var h = { | 2606 var h = { |
| 2603 "content-type" : "application/json; charset=utf-8", | 2607 "content-type" : "application/json; charset=utf-8", |
| 2604 }; | 2608 }; |
| 2605 var resp = convert.JSON.encode(buildListClustersResponse()); | 2609 var resp = convert.JSON.encode(buildListClustersResponse()); |
| 2606 return new async.Future.value(stringResponse(200, h, resp)); | 2610 return new async.Future.value(stringResponse(200, h, resp)); |
| 2607 }), true); | 2611 }), true); |
| 2608 res.list(arg_projectId, filter: arg_filter, pageToken: arg_pageToken, page
Size: arg_pageSize).then(unittest.expectAsync(((api.ListClustersResponse respons
e) { | 2612 res.list(arg_projectId, pageToken: arg_pageToken, pageSize: arg_pageSize,
filter: arg_filter).then(unittest.expectAsync(((api.ListClustersResponse respons
e) { |
| 2609 checkListClustersResponse(response); | 2613 checkListClustersResponse(response); |
| 2610 }))); | 2614 }))); |
| 2611 }); | 2615 }); |
| 2612 | 2616 |
| 2613 unittest.test("method--patch", () { | 2617 unittest.test("method--patch", () { |
| 2614 | 2618 |
| 2615 var mock = new HttpServerMock(); | 2619 var mock = new HttpServerMock(); |
| 2616 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; | 2620 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; |
| 2617 var arg_request = buildCluster(); | 2621 var arg_request = buildCluster(); |
| 2618 var arg_projectId = "foo"; | 2622 var arg_projectId = "foo"; |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2846 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) { |
| 2847 checkJob(response); | 2851 checkJob(response); |
| 2848 }))); | 2852 }))); |
| 2849 }); | 2853 }); |
| 2850 | 2854 |
| 2851 unittest.test("method--list", () { | 2855 unittest.test("method--list", () { |
| 2852 | 2856 |
| 2853 var mock = new HttpServerMock(); | 2857 var mock = new HttpServerMock(); |
| 2854 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; | 2858 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; |
| 2855 var arg_projectId = "foo"; | 2859 var arg_projectId = "foo"; |
| 2856 var arg_filter = "foo"; | |
| 2857 var arg_jobStateMatcher = "foo"; | |
| 2858 var arg_pageToken = "foo"; | 2860 var arg_pageToken = "foo"; |
| 2859 var arg_pageSize = 42; | 2861 var arg_pageSize = 42; |
| 2860 var arg_clusterName = "foo"; | 2862 var arg_clusterName = "foo"; |
| 2863 var arg_filter = "foo"; |
| 2864 var arg_jobStateMatcher = "foo"; |
| 2861 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2865 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2862 var path = (req.url).path; | 2866 var path = (req.url).path; |
| 2863 var pathOffset = 0; | 2867 var pathOffset = 0; |
| 2864 var index; | 2868 var index; |
| 2865 var subPart; | 2869 var subPart; |
| 2866 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2870 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2867 pathOffset += 1; | 2871 pathOffset += 1; |
| 2868 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/")); |
| 2869 pathOffset += 17; | 2873 pathOffset += 17; |
| 2870 index = path.indexOf("/jobs", pathOffset); | 2874 index = path.indexOf("/jobs", pathOffset); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 2884 if (n == "false") return false; | 2888 if (n == "false") return false; |
| 2885 if (n == null) return null; | 2889 if (n == null) return null; |
| 2886 throw new core.ArgumentError("Invalid boolean: $n"); | 2890 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2887 } | 2891 } |
| 2888 if (query.length > 0) { | 2892 if (query.length > 0) { |
| 2889 for (var part in query.split("&")) { | 2893 for (var part in query.split("&")) { |
| 2890 var keyvalue = part.split("="); | 2894 var keyvalue = part.split("="); |
| 2891 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])); |
| 2892 } | 2896 } |
| 2893 } | 2897 } |
| 2894 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
| 2895 unittest.expect(queryMap["jobStateMatcher"].first, unittest.equals(arg_j
obStateMatcher)); | |
| 2896 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2898 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2897 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2899 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 2898 unittest.expect(queryMap["clusterName"].first, unittest.equals(arg_clust
erName)); | 2900 unittest.expect(queryMap["clusterName"].first, unittest.equals(arg_clust
erName)); |
| 2901 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 2902 unittest.expect(queryMap["jobStateMatcher"].first, unittest.equals(arg_j
obStateMatcher)); |
| 2899 | 2903 |
| 2900 | 2904 |
| 2901 var h = { | 2905 var h = { |
| 2902 "content-type" : "application/json; charset=utf-8", | 2906 "content-type" : "application/json; charset=utf-8", |
| 2903 }; | 2907 }; |
| 2904 var resp = convert.JSON.encode(buildListJobsResponse()); | 2908 var resp = convert.JSON.encode(buildListJobsResponse()); |
| 2905 return new async.Future.value(stringResponse(200, h, resp)); | 2909 return new async.Future.value(stringResponse(200, h, resp)); |
| 2906 }), true); | 2910 }), true); |
| 2907 res.list(arg_projectId, filter: arg_filter, jobStateMatcher: arg_jobStateM
atcher, pageToken: arg_pageToken, pageSize: arg_pageSize, clusterName: arg_clust
erName).then(unittest.expectAsync(((api.ListJobsResponse response) { | 2911 res.list(arg_projectId, pageToken: arg_pageToken, pageSize: arg_pageSize,
clusterName: arg_clusterName, filter: arg_filter, jobStateMatcher: arg_jobStateM
atcher).then(unittest.expectAsync(((api.ListJobsResponse response) { |
| 2908 checkListJobsResponse(response); | 2912 checkListJobsResponse(response); |
| 2909 }))); | 2913 }))); |
| 2910 }); | 2914 }); |
| 2911 | 2915 |
| 2912 unittest.test("method--patch", () { | 2916 unittest.test("method--patch", () { |
| 2913 | 2917 |
| 2914 var mock = new HttpServerMock(); | 2918 var mock = new HttpServerMock(); |
| 2915 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; | 2919 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; |
| 2916 var arg_request = buildJob(); | 2920 var arg_request = buildJob(); |
| 2917 var arg_projectId = "foo"; | 2921 var arg_projectId = "foo"; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3023 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) { |
| 3024 checkJob(response); | 3028 checkJob(response); |
| 3025 }))); | 3029 }))); |
| 3026 }); | 3030 }); |
| 3027 | 3031 |
| 3028 }); | 3032 }); |
| 3029 | 3033 |
| 3030 | 3034 |
| 3031 } | 3035 } |
| 3032 | 3036 |
| OLD | NEW |