| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 | 47 |
| 48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map headers, core.String body) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } | 52 } |
| 53 | 53 |
| 54 core.int buildCounterAcceleratorConfiguration = 0; |
| 55 buildAcceleratorConfiguration() { |
| 56 var o = new api.AcceleratorConfiguration(); |
| 57 buildCounterAcceleratorConfiguration++; |
| 58 if (buildCounterAcceleratorConfiguration < 3) { |
| 59 o.acceleratorCount = 42; |
| 60 o.acceleratorTypeUri = "foo"; |
| 61 } |
| 62 buildCounterAcceleratorConfiguration--; |
| 63 return o; |
| 64 } |
| 65 |
| 66 checkAcceleratorConfiguration(api.AcceleratorConfiguration o) { |
| 67 buildCounterAcceleratorConfiguration++; |
| 68 if (buildCounterAcceleratorConfiguration < 3) { |
| 69 unittest.expect(o.acceleratorCount, unittest.equals(42)); |
| 70 unittest.expect(o.acceleratorTypeUri, unittest.equals('foo')); |
| 71 } |
| 72 buildCounterAcceleratorConfiguration--; |
| 73 } |
| 74 |
| 54 core.int buildCounterCancelJobRequest = 0; | 75 core.int buildCounterCancelJobRequest = 0; |
| 55 buildCancelJobRequest() { | 76 buildCancelJobRequest() { |
| 56 var o = new api.CancelJobRequest(); | 77 var o = new api.CancelJobRequest(); |
| 57 buildCounterCancelJobRequest++; | 78 buildCounterCancelJobRequest++; |
| 58 if (buildCounterCancelJobRequest < 3) { | 79 if (buildCounterCancelJobRequest < 3) { |
| 59 } | 80 } |
| 60 buildCounterCancelJobRequest--; | 81 buildCounterCancelJobRequest--; |
| 61 return o; | 82 return o; |
| 62 } | 83 } |
| 63 | 84 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 78 return o; | 99 return o; |
| 79 } | 100 } |
| 80 | 101 |
| 81 checkCancelOperationRequest(api.CancelOperationRequest o) { | 102 checkCancelOperationRequest(api.CancelOperationRequest o) { |
| 82 buildCounterCancelOperationRequest++; | 103 buildCounterCancelOperationRequest++; |
| 83 if (buildCounterCancelOperationRequest < 3) { | 104 if (buildCounterCancelOperationRequest < 3) { |
| 84 } | 105 } |
| 85 buildCounterCancelOperationRequest--; | 106 buildCounterCancelOperationRequest--; |
| 86 } | 107 } |
| 87 | 108 |
| 88 buildUnnamed3270() { | 109 buildUnnamed3118() { |
| 89 var o = new core.Map<core.String, core.String>(); | 110 var o = new core.Map<core.String, core.String>(); |
| 90 o["x"] = "foo"; | 111 o["x"] = "foo"; |
| 91 o["y"] = "foo"; | 112 o["y"] = "foo"; |
| 92 return o; | 113 return o; |
| 93 } | 114 } |
| 94 | 115 |
| 95 checkUnnamed3270(core.Map<core.String, core.String> o) { | 116 checkUnnamed3118(core.Map<core.String, core.String> o) { |
| 96 unittest.expect(o, unittest.hasLength(2)); | 117 unittest.expect(o, unittest.hasLength(2)); |
| 97 unittest.expect(o["x"], unittest.equals('foo')); | 118 unittest.expect(o["x"], unittest.equals('foo')); |
| 98 unittest.expect(o["y"], unittest.equals('foo')); | 119 unittest.expect(o["y"], unittest.equals('foo')); |
| 99 } | 120 } |
| 100 | 121 |
| 101 buildUnnamed3271() { | 122 buildUnnamed3119() { |
| 102 var o = new core.List<api.ClusterStatus>(); | 123 var o = new core.List<api.ClusterStatus>(); |
| 103 o.add(buildClusterStatus()); | 124 o.add(buildClusterStatus()); |
| 104 o.add(buildClusterStatus()); | 125 o.add(buildClusterStatus()); |
| 105 return o; | 126 return o; |
| 106 } | 127 } |
| 107 | 128 |
| 108 checkUnnamed3271(core.List<api.ClusterStatus> o) { | 129 checkUnnamed3119(core.List<api.ClusterStatus> o) { |
| 109 unittest.expect(o, unittest.hasLength(2)); | 130 unittest.expect(o, unittest.hasLength(2)); |
| 110 checkClusterStatus(o[0]); | 131 checkClusterStatus(o[0]); |
| 111 checkClusterStatus(o[1]); | 132 checkClusterStatus(o[1]); |
| 112 } | 133 } |
| 113 | 134 |
| 114 core.int buildCounterCluster = 0; | 135 core.int buildCounterCluster = 0; |
| 115 buildCluster() { | 136 buildCluster() { |
| 116 var o = new api.Cluster(); | 137 var o = new api.Cluster(); |
| 117 buildCounterCluster++; | 138 buildCounterCluster++; |
| 118 if (buildCounterCluster < 3) { | 139 if (buildCounterCluster < 3) { |
| 119 o.clusterName = "foo"; | 140 o.clusterName = "foo"; |
| 120 o.clusterUuid = "foo"; | 141 o.clusterUuid = "foo"; |
| 121 o.configuration = buildClusterConfiguration(); | 142 o.configuration = buildClusterConfiguration(); |
| 122 o.labels = buildUnnamed3270(); | 143 o.labels = buildUnnamed3118(); |
| 123 o.metrics = buildClusterMetrics(); | 144 o.metrics = buildClusterMetrics(); |
| 124 o.projectId = "foo"; | 145 o.projectId = "foo"; |
| 125 o.status = buildClusterStatus(); | 146 o.status = buildClusterStatus(); |
| 126 o.statusHistory = buildUnnamed3271(); | 147 o.statusHistory = buildUnnamed3119(); |
| 127 } | 148 } |
| 128 buildCounterCluster--; | 149 buildCounterCluster--; |
| 129 return o; | 150 return o; |
| 130 } | 151 } |
| 131 | 152 |
| 132 checkCluster(api.Cluster o) { | 153 checkCluster(api.Cluster o) { |
| 133 buildCounterCluster++; | 154 buildCounterCluster++; |
| 134 if (buildCounterCluster < 3) { | 155 if (buildCounterCluster < 3) { |
| 135 unittest.expect(o.clusterName, unittest.equals('foo')); | 156 unittest.expect(o.clusterName, unittest.equals('foo')); |
| 136 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 157 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
| 137 checkClusterConfiguration(o.configuration); | 158 checkClusterConfiguration(o.configuration); |
| 138 checkUnnamed3270(o.labels); | 159 checkUnnamed3118(o.labels); |
| 139 checkClusterMetrics(o.metrics); | 160 checkClusterMetrics(o.metrics); |
| 140 unittest.expect(o.projectId, unittest.equals('foo')); | 161 unittest.expect(o.projectId, unittest.equals('foo')); |
| 141 checkClusterStatus(o.status); | 162 checkClusterStatus(o.status); |
| 142 checkUnnamed3271(o.statusHistory); | 163 checkUnnamed3119(o.statusHistory); |
| 143 } | 164 } |
| 144 buildCounterCluster--; | 165 buildCounterCluster--; |
| 145 } | 166 } |
| 146 | 167 |
| 147 buildUnnamed3272() { | 168 buildUnnamed3120() { |
| 148 var o = new core.List<api.NodeInitializationAction>(); | 169 var o = new core.List<api.NodeInitializationAction>(); |
| 149 o.add(buildNodeInitializationAction()); | 170 o.add(buildNodeInitializationAction()); |
| 150 o.add(buildNodeInitializationAction()); | 171 o.add(buildNodeInitializationAction()); |
| 151 return o; | 172 return o; |
| 152 } | 173 } |
| 153 | 174 |
| 154 checkUnnamed3272(core.List<api.NodeInitializationAction> o) { | 175 checkUnnamed3120(core.List<api.NodeInitializationAction> o) { |
| 155 unittest.expect(o, unittest.hasLength(2)); | 176 unittest.expect(o, unittest.hasLength(2)); |
| 156 checkNodeInitializationAction(o[0]); | 177 checkNodeInitializationAction(o[0]); |
| 157 checkNodeInitializationAction(o[1]); | 178 checkNodeInitializationAction(o[1]); |
| 158 } | 179 } |
| 159 | 180 |
| 160 core.int buildCounterClusterConfiguration = 0; | 181 core.int buildCounterClusterConfiguration = 0; |
| 161 buildClusterConfiguration() { | 182 buildClusterConfiguration() { |
| 162 var o = new api.ClusterConfiguration(); | 183 var o = new api.ClusterConfiguration(); |
| 163 buildCounterClusterConfiguration++; | 184 buildCounterClusterConfiguration++; |
| 164 if (buildCounterClusterConfiguration < 3) { | 185 if (buildCounterClusterConfiguration < 3) { |
| 165 o.configurationBucket = "foo"; | 186 o.configurationBucket = "foo"; |
| 166 o.gceClusterConfiguration = buildGceClusterConfiguration(); | 187 o.gceClusterConfiguration = buildGceClusterConfiguration(); |
| 167 o.initializationActions = buildUnnamed3272(); | 188 o.initializationActions = buildUnnamed3120(); |
| 168 o.masterConfiguration = buildInstanceGroupConfiguration(); | 189 o.masterConfiguration = buildInstanceGroupConfiguration(); |
| 169 o.secondaryWorkerConfiguration = buildInstanceGroupConfiguration(); | 190 o.secondaryWorkerConfiguration = buildInstanceGroupConfiguration(); |
| 170 o.softwareConfiguration = buildSoftwareConfiguration(); | 191 o.softwareConfiguration = buildSoftwareConfiguration(); |
| 171 o.workerConfiguration = buildInstanceGroupConfiguration(); | 192 o.workerConfiguration = buildInstanceGroupConfiguration(); |
| 172 } | 193 } |
| 173 buildCounterClusterConfiguration--; | 194 buildCounterClusterConfiguration--; |
| 174 return o; | 195 return o; |
| 175 } | 196 } |
| 176 | 197 |
| 177 checkClusterConfiguration(api.ClusterConfiguration o) { | 198 checkClusterConfiguration(api.ClusterConfiguration o) { |
| 178 buildCounterClusterConfiguration++; | 199 buildCounterClusterConfiguration++; |
| 179 if (buildCounterClusterConfiguration < 3) { | 200 if (buildCounterClusterConfiguration < 3) { |
| 180 unittest.expect(o.configurationBucket, unittest.equals('foo')); | 201 unittest.expect(o.configurationBucket, unittest.equals('foo')); |
| 181 checkGceClusterConfiguration(o.gceClusterConfiguration); | 202 checkGceClusterConfiguration(o.gceClusterConfiguration); |
| 182 checkUnnamed3272(o.initializationActions); | 203 checkUnnamed3120(o.initializationActions); |
| 183 checkInstanceGroupConfiguration(o.masterConfiguration); | 204 checkInstanceGroupConfiguration(o.masterConfiguration); |
| 184 checkInstanceGroupConfiguration(o.secondaryWorkerConfiguration); | 205 checkInstanceGroupConfiguration(o.secondaryWorkerConfiguration); |
| 185 checkSoftwareConfiguration(o.softwareConfiguration); | 206 checkSoftwareConfiguration(o.softwareConfiguration); |
| 186 checkInstanceGroupConfiguration(o.workerConfiguration); | 207 checkInstanceGroupConfiguration(o.workerConfiguration); |
| 187 } | 208 } |
| 188 buildCounterClusterConfiguration--; | 209 buildCounterClusterConfiguration--; |
| 189 } | 210 } |
| 190 | 211 |
| 191 buildUnnamed3273() { | 212 buildUnnamed3121() { |
| 192 var o = new core.Map<core.String, core.String>(); | 213 var o = new core.Map<core.String, core.String>(); |
| 193 o["x"] = "foo"; | 214 o["x"] = "foo"; |
| 194 o["y"] = "foo"; | 215 o["y"] = "foo"; |
| 195 return o; | 216 return o; |
| 196 } | 217 } |
| 197 | 218 |
| 198 checkUnnamed3273(core.Map<core.String, core.String> o) { | 219 checkUnnamed3121(core.Map<core.String, core.String> o) { |
| 199 unittest.expect(o, unittest.hasLength(2)); | 220 unittest.expect(o, unittest.hasLength(2)); |
| 200 unittest.expect(o["x"], unittest.equals('foo')); | 221 unittest.expect(o["x"], unittest.equals('foo')); |
| 201 unittest.expect(o["y"], unittest.equals('foo')); | 222 unittest.expect(o["y"], unittest.equals('foo')); |
| 202 } | 223 } |
| 203 | 224 |
| 204 buildUnnamed3274() { | 225 buildUnnamed3122() { |
| 205 var o = new core.Map<core.String, core.String>(); | 226 var o = new core.Map<core.String, core.String>(); |
| 206 o["x"] = "foo"; | 227 o["x"] = "foo"; |
| 207 o["y"] = "foo"; | 228 o["y"] = "foo"; |
| 208 return o; | 229 return o; |
| 209 } | 230 } |
| 210 | 231 |
| 211 checkUnnamed3274(core.Map<core.String, core.String> o) { | 232 checkUnnamed3122(core.Map<core.String, core.String> o) { |
| 212 unittest.expect(o, unittest.hasLength(2)); | 233 unittest.expect(o, unittest.hasLength(2)); |
| 213 unittest.expect(o["x"], unittest.equals('foo')); | 234 unittest.expect(o["x"], unittest.equals('foo')); |
| 214 unittest.expect(o["y"], unittest.equals('foo')); | 235 unittest.expect(o["y"], unittest.equals('foo')); |
| 215 } | 236 } |
| 216 | 237 |
| 217 core.int buildCounterClusterMetrics = 0; | 238 core.int buildCounterClusterMetrics = 0; |
| 218 buildClusterMetrics() { | 239 buildClusterMetrics() { |
| 219 var o = new api.ClusterMetrics(); | 240 var o = new api.ClusterMetrics(); |
| 220 buildCounterClusterMetrics++; | 241 buildCounterClusterMetrics++; |
| 221 if (buildCounterClusterMetrics < 3) { | 242 if (buildCounterClusterMetrics < 3) { |
| 222 o.hdfsMetrics = buildUnnamed3273(); | 243 o.hdfsMetrics = buildUnnamed3121(); |
| 223 o.yarnMetrics = buildUnnamed3274(); | 244 o.yarnMetrics = buildUnnamed3122(); |
| 224 } | 245 } |
| 225 buildCounterClusterMetrics--; | 246 buildCounterClusterMetrics--; |
| 226 return o; | 247 return o; |
| 227 } | 248 } |
| 228 | 249 |
| 229 checkClusterMetrics(api.ClusterMetrics o) { | 250 checkClusterMetrics(api.ClusterMetrics o) { |
| 230 buildCounterClusterMetrics++; | 251 buildCounterClusterMetrics++; |
| 231 if (buildCounterClusterMetrics < 3) { | 252 if (buildCounterClusterMetrics < 3) { |
| 232 checkUnnamed3273(o.hdfsMetrics); | 253 checkUnnamed3121(o.hdfsMetrics); |
| 233 checkUnnamed3274(o.yarnMetrics); | 254 checkUnnamed3122(o.yarnMetrics); |
| 234 } | 255 } |
| 235 buildCounterClusterMetrics--; | 256 buildCounterClusterMetrics--; |
| 236 } | 257 } |
| 237 | 258 |
| 238 buildUnnamed3275() { | 259 buildUnnamed3123() { |
| 239 var o = new core.Map<core.String, core.String>(); | 260 var o = new core.Map<core.String, core.String>(); |
| 240 o["x"] = "foo"; | 261 o["x"] = "foo"; |
| 241 o["y"] = "foo"; | 262 o["y"] = "foo"; |
| 242 return o; | 263 return o; |
| 243 } | 264 } |
| 244 | 265 |
| 245 checkUnnamed3275(core.Map<core.String, core.String> o) { | 266 checkUnnamed3123(core.Map<core.String, core.String> o) { |
| 246 unittest.expect(o, unittest.hasLength(2)); | 267 unittest.expect(o, unittest.hasLength(2)); |
| 247 unittest.expect(o["x"], unittest.equals('foo')); | 268 unittest.expect(o["x"], unittest.equals('foo')); |
| 248 unittest.expect(o["y"], unittest.equals('foo')); | 269 unittest.expect(o["y"], unittest.equals('foo')); |
| 249 } | 270 } |
| 250 | 271 |
| 251 buildUnnamed3276() { | 272 buildUnnamed3124() { |
| 252 var o = new core.List<api.ClusterOperationStatus>(); | 273 var o = new core.List<api.ClusterOperationStatus>(); |
| 253 o.add(buildClusterOperationStatus()); | 274 o.add(buildClusterOperationStatus()); |
| 254 o.add(buildClusterOperationStatus()); | 275 o.add(buildClusterOperationStatus()); |
| 255 return o; | 276 return o; |
| 256 } | 277 } |
| 257 | 278 |
| 258 checkUnnamed3276(core.List<api.ClusterOperationStatus> o) { | 279 checkUnnamed3124(core.List<api.ClusterOperationStatus> o) { |
| 259 unittest.expect(o, unittest.hasLength(2)); | 280 unittest.expect(o, unittest.hasLength(2)); |
| 260 checkClusterOperationStatus(o[0]); | 281 checkClusterOperationStatus(o[0]); |
| 261 checkClusterOperationStatus(o[1]); | 282 checkClusterOperationStatus(o[1]); |
| 262 } | 283 } |
| 263 | 284 |
| 264 buildUnnamed3277() { | 285 buildUnnamed3125() { |
| 265 var o = new core.List<core.String>(); | 286 var o = new core.List<core.String>(); |
| 266 o.add("foo"); | 287 o.add("foo"); |
| 267 o.add("foo"); | 288 o.add("foo"); |
| 268 return o; | 289 return o; |
| 269 } | 290 } |
| 270 | 291 |
| 271 checkUnnamed3277(core.List<core.String> o) { | 292 checkUnnamed3125(core.List<core.String> o) { |
| 272 unittest.expect(o, unittest.hasLength(2)); | 293 unittest.expect(o, unittest.hasLength(2)); |
| 273 unittest.expect(o[0], unittest.equals('foo')); | 294 unittest.expect(o[0], unittest.equals('foo')); |
| 274 unittest.expect(o[1], unittest.equals('foo')); | 295 unittest.expect(o[1], unittest.equals('foo')); |
| 275 } | 296 } |
| 276 | 297 |
| 277 core.int buildCounterClusterOperationMetadata = 0; | 298 core.int buildCounterClusterOperationMetadata = 0; |
| 278 buildClusterOperationMetadata() { | 299 buildClusterOperationMetadata() { |
| 279 var o = new api.ClusterOperationMetadata(); | 300 var o = new api.ClusterOperationMetadata(); |
| 280 buildCounterClusterOperationMetadata++; | 301 buildCounterClusterOperationMetadata++; |
| 281 if (buildCounterClusterOperationMetadata < 3) { | 302 if (buildCounterClusterOperationMetadata < 3) { |
| 282 o.clusterName = "foo"; | 303 o.clusterName = "foo"; |
| 283 o.clusterUuid = "foo"; | 304 o.clusterUuid = "foo"; |
| 284 o.description = "foo"; | 305 o.description = "foo"; |
| 285 o.labels = buildUnnamed3275(); | 306 o.labels = buildUnnamed3123(); |
| 286 o.operationType = "foo"; | 307 o.operationType = "foo"; |
| 287 o.status = buildClusterOperationStatus(); | 308 o.status = buildClusterOperationStatus(); |
| 288 o.statusHistory = buildUnnamed3276(); | 309 o.statusHistory = buildUnnamed3124(); |
| 289 o.warnings = buildUnnamed3277(); | 310 o.warnings = buildUnnamed3125(); |
| 290 } | 311 } |
| 291 buildCounterClusterOperationMetadata--; | 312 buildCounterClusterOperationMetadata--; |
| 292 return o; | 313 return o; |
| 293 } | 314 } |
| 294 | 315 |
| 295 checkClusterOperationMetadata(api.ClusterOperationMetadata o) { | 316 checkClusterOperationMetadata(api.ClusterOperationMetadata o) { |
| 296 buildCounterClusterOperationMetadata++; | 317 buildCounterClusterOperationMetadata++; |
| 297 if (buildCounterClusterOperationMetadata < 3) { | 318 if (buildCounterClusterOperationMetadata < 3) { |
| 298 unittest.expect(o.clusterName, unittest.equals('foo')); | 319 unittest.expect(o.clusterName, unittest.equals('foo')); |
| 299 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 320 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
| 300 unittest.expect(o.description, unittest.equals('foo')); | 321 unittest.expect(o.description, unittest.equals('foo')); |
| 301 checkUnnamed3275(o.labels); | 322 checkUnnamed3123(o.labels); |
| 302 unittest.expect(o.operationType, unittest.equals('foo')); | 323 unittest.expect(o.operationType, unittest.equals('foo')); |
| 303 checkClusterOperationStatus(o.status); | 324 checkClusterOperationStatus(o.status); |
| 304 checkUnnamed3276(o.statusHistory); | 325 checkUnnamed3124(o.statusHistory); |
| 305 checkUnnamed3277(o.warnings); | 326 checkUnnamed3125(o.warnings); |
| 306 } | 327 } |
| 307 buildCounterClusterOperationMetadata--; | 328 buildCounterClusterOperationMetadata--; |
| 308 } | 329 } |
| 309 | 330 |
| 310 core.int buildCounterClusterOperationStatus = 0; | 331 core.int buildCounterClusterOperationStatus = 0; |
| 311 buildClusterOperationStatus() { | 332 buildClusterOperationStatus() { |
| 312 var o = new api.ClusterOperationStatus(); | 333 var o = new api.ClusterOperationStatus(); |
| 313 buildCounterClusterOperationStatus++; | 334 buildCounterClusterOperationStatus++; |
| 314 if (buildCounterClusterOperationStatus < 3) { | 335 if (buildCounterClusterOperationStatus < 3) { |
| 315 o.details = "foo"; | 336 o.details = "foo"; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 return o; | 462 return o; |
| 442 } | 463 } |
| 443 | 464 |
| 444 checkEmpty(api.Empty o) { | 465 checkEmpty(api.Empty o) { |
| 445 buildCounterEmpty++; | 466 buildCounterEmpty++; |
| 446 if (buildCounterEmpty < 3) { | 467 if (buildCounterEmpty < 3) { |
| 447 } | 468 } |
| 448 buildCounterEmpty--; | 469 buildCounterEmpty--; |
| 449 } | 470 } |
| 450 | 471 |
| 451 buildUnnamed3278() { | 472 buildUnnamed3126() { |
| 452 var o = new core.Map<core.String, core.String>(); | 473 var o = new core.Map<core.String, core.String>(); |
| 453 o["x"] = "foo"; | 474 o["x"] = "foo"; |
| 454 o["y"] = "foo"; | 475 o["y"] = "foo"; |
| 455 return o; | 476 return o; |
| 456 } | 477 } |
| 457 | 478 |
| 458 checkUnnamed3278(core.Map<core.String, core.String> o) { | 479 checkUnnamed3126(core.Map<core.String, core.String> o) { |
| 459 unittest.expect(o, unittest.hasLength(2)); | 480 unittest.expect(o, unittest.hasLength(2)); |
| 460 unittest.expect(o["x"], unittest.equals('foo')); | 481 unittest.expect(o["x"], unittest.equals('foo')); |
| 461 unittest.expect(o["y"], unittest.equals('foo')); | 482 unittest.expect(o["y"], unittest.equals('foo')); |
| 462 } | 483 } |
| 463 | 484 |
| 464 buildUnnamed3279() { | 485 buildUnnamed3127() { |
| 465 var o = new core.List<core.String>(); | 486 var o = new core.List<core.String>(); |
| 466 o.add("foo"); | 487 o.add("foo"); |
| 467 o.add("foo"); | 488 o.add("foo"); |
| 468 return o; | 489 return o; |
| 469 } | 490 } |
| 470 | 491 |
| 471 checkUnnamed3279(core.List<core.String> o) { | 492 checkUnnamed3127(core.List<core.String> o) { |
| 472 unittest.expect(o, unittest.hasLength(2)); | 493 unittest.expect(o, unittest.hasLength(2)); |
| 473 unittest.expect(o[0], unittest.equals('foo')); | 494 unittest.expect(o[0], unittest.equals('foo')); |
| 474 unittest.expect(o[1], unittest.equals('foo')); | 495 unittest.expect(o[1], unittest.equals('foo')); |
| 475 } | 496 } |
| 476 | 497 |
| 477 buildUnnamed3280() { | 498 buildUnnamed3128() { |
| 478 var o = new core.List<core.String>(); | 499 var o = new core.List<core.String>(); |
| 479 o.add("foo"); | 500 o.add("foo"); |
| 480 o.add("foo"); | 501 o.add("foo"); |
| 481 return o; | 502 return o; |
| 482 } | 503 } |
| 483 | 504 |
| 484 checkUnnamed3280(core.List<core.String> o) { | 505 checkUnnamed3128(core.List<core.String> o) { |
| 485 unittest.expect(o, unittest.hasLength(2)); | 506 unittest.expect(o, unittest.hasLength(2)); |
| 486 unittest.expect(o[0], unittest.equals('foo')); | 507 unittest.expect(o[0], unittest.equals('foo')); |
| 487 unittest.expect(o[1], unittest.equals('foo')); | 508 unittest.expect(o[1], unittest.equals('foo')); |
| 488 } | 509 } |
| 489 | 510 |
| 490 core.int buildCounterGceClusterConfiguration = 0; | 511 core.int buildCounterGceClusterConfiguration = 0; |
| 491 buildGceClusterConfiguration() { | 512 buildGceClusterConfiguration() { |
| 492 var o = new api.GceClusterConfiguration(); | 513 var o = new api.GceClusterConfiguration(); |
| 493 buildCounterGceClusterConfiguration++; | 514 buildCounterGceClusterConfiguration++; |
| 494 if (buildCounterGceClusterConfiguration < 3) { | 515 if (buildCounterGceClusterConfiguration < 3) { |
| 495 o.internalIpOnly = true; | 516 o.internalIpOnly = true; |
| 496 o.metadata = buildUnnamed3278(); | 517 o.metadata = buildUnnamed3126(); |
| 497 o.networkUri = "foo"; | 518 o.networkUri = "foo"; |
| 498 o.serviceAccount = "foo"; | 519 o.serviceAccount = "foo"; |
| 499 o.serviceAccountScopes = buildUnnamed3279(); | 520 o.serviceAccountScopes = buildUnnamed3127(); |
| 500 o.subnetworkUri = "foo"; | 521 o.subnetworkUri = "foo"; |
| 501 o.tags = buildUnnamed3280(); | 522 o.tags = buildUnnamed3128(); |
| 502 o.zoneUri = "foo"; | 523 o.zoneUri = "foo"; |
| 503 } | 524 } |
| 504 buildCounterGceClusterConfiguration--; | 525 buildCounterGceClusterConfiguration--; |
| 505 return o; | 526 return o; |
| 506 } | 527 } |
| 507 | 528 |
| 508 checkGceClusterConfiguration(api.GceClusterConfiguration o) { | 529 checkGceClusterConfiguration(api.GceClusterConfiguration o) { |
| 509 buildCounterGceClusterConfiguration++; | 530 buildCounterGceClusterConfiguration++; |
| 510 if (buildCounterGceClusterConfiguration < 3) { | 531 if (buildCounterGceClusterConfiguration < 3) { |
| 511 unittest.expect(o.internalIpOnly, unittest.isTrue); | 532 unittest.expect(o.internalIpOnly, unittest.isTrue); |
| 512 checkUnnamed3278(o.metadata); | 533 checkUnnamed3126(o.metadata); |
| 513 unittest.expect(o.networkUri, unittest.equals('foo')); | 534 unittest.expect(o.networkUri, unittest.equals('foo')); |
| 514 unittest.expect(o.serviceAccount, unittest.equals('foo')); | 535 unittest.expect(o.serviceAccount, unittest.equals('foo')); |
| 515 checkUnnamed3279(o.serviceAccountScopes); | 536 checkUnnamed3127(o.serviceAccountScopes); |
| 516 unittest.expect(o.subnetworkUri, unittest.equals('foo')); | 537 unittest.expect(o.subnetworkUri, unittest.equals('foo')); |
| 517 checkUnnamed3280(o.tags); | 538 checkUnnamed3128(o.tags); |
| 518 unittest.expect(o.zoneUri, unittest.equals('foo')); | 539 unittest.expect(o.zoneUri, unittest.equals('foo')); |
| 519 } | 540 } |
| 520 buildCounterGceClusterConfiguration--; | 541 buildCounterGceClusterConfiguration--; |
| 521 } | 542 } |
| 522 | 543 |
| 523 buildUnnamed3281() { | 544 buildUnnamed3129() { |
| 524 var o = new core.List<core.String>(); | 545 var o = new core.List<core.String>(); |
| 525 o.add("foo"); | 546 o.add("foo"); |
| 526 o.add("foo"); | 547 o.add("foo"); |
| 527 return o; | 548 return o; |
| 528 } | 549 } |
| 529 | 550 |
| 530 checkUnnamed3281(core.List<core.String> o) { | 551 checkUnnamed3129(core.List<core.String> o) { |
| 531 unittest.expect(o, unittest.hasLength(2)); | 552 unittest.expect(o, unittest.hasLength(2)); |
| 532 unittest.expect(o[0], unittest.equals('foo')); | 553 unittest.expect(o[0], unittest.equals('foo')); |
| 533 unittest.expect(o[1], unittest.equals('foo')); | 554 unittest.expect(o[1], unittest.equals('foo')); |
| 534 } | 555 } |
| 535 | 556 |
| 536 buildUnnamed3282() { | 557 buildUnnamed3130() { |
| 537 var o = new core.List<core.String>(); | 558 var o = new core.List<core.String>(); |
| 538 o.add("foo"); | 559 o.add("foo"); |
| 539 o.add("foo"); | 560 o.add("foo"); |
| 540 return o; | 561 return o; |
| 541 } | 562 } |
| 542 | 563 |
| 543 checkUnnamed3282(core.List<core.String> o) { | 564 checkUnnamed3130(core.List<core.String> o) { |
| 544 unittest.expect(o, unittest.hasLength(2)); | 565 unittest.expect(o, unittest.hasLength(2)); |
| 545 unittest.expect(o[0], unittest.equals('foo')); | 566 unittest.expect(o[0], unittest.equals('foo')); |
| 546 unittest.expect(o[1], unittest.equals('foo')); | 567 unittest.expect(o[1], unittest.equals('foo')); |
| 547 } | 568 } |
| 548 | 569 |
| 549 buildUnnamed3283() { | 570 buildUnnamed3131() { |
| 550 var o = new core.List<core.String>(); | 571 var o = new core.List<core.String>(); |
| 551 o.add("foo"); | 572 o.add("foo"); |
| 552 o.add("foo"); | 573 o.add("foo"); |
| 553 return o; | 574 return o; |
| 554 } | 575 } |
| 555 | 576 |
| 556 checkUnnamed3283(core.List<core.String> o) { | 577 checkUnnamed3131(core.List<core.String> o) { |
| 557 unittest.expect(o, unittest.hasLength(2)); | 578 unittest.expect(o, unittest.hasLength(2)); |
| 558 unittest.expect(o[0], unittest.equals('foo')); | 579 unittest.expect(o[0], unittest.equals('foo')); |
| 559 unittest.expect(o[1], unittest.equals('foo')); | 580 unittest.expect(o[1], unittest.equals('foo')); |
| 560 } | 581 } |
| 561 | 582 |
| 562 buildUnnamed3284() { | 583 buildUnnamed3132() { |
| 563 var o = new core.List<core.String>(); | 584 var o = new core.List<core.String>(); |
| 564 o.add("foo"); | 585 o.add("foo"); |
| 565 o.add("foo"); | 586 o.add("foo"); |
| 566 return o; | 587 return o; |
| 567 } | 588 } |
| 568 | 589 |
| 569 checkUnnamed3284(core.List<core.String> o) { | 590 checkUnnamed3132(core.List<core.String> o) { |
| 570 unittest.expect(o, unittest.hasLength(2)); | 591 unittest.expect(o, unittest.hasLength(2)); |
| 571 unittest.expect(o[0], unittest.equals('foo')); | 592 unittest.expect(o[0], unittest.equals('foo')); |
| 572 unittest.expect(o[1], unittest.equals('foo')); | 593 unittest.expect(o[1], unittest.equals('foo')); |
| 573 } | 594 } |
| 574 | 595 |
| 575 buildUnnamed3285() { | 596 buildUnnamed3133() { |
| 576 var o = new core.Map<core.String, core.String>(); | 597 var o = new core.Map<core.String, core.String>(); |
| 577 o["x"] = "foo"; | 598 o["x"] = "foo"; |
| 578 o["y"] = "foo"; | 599 o["y"] = "foo"; |
| 579 return o; | 600 return o; |
| 580 } | 601 } |
| 581 | 602 |
| 582 checkUnnamed3285(core.Map<core.String, core.String> o) { | 603 checkUnnamed3133(core.Map<core.String, core.String> o) { |
| 583 unittest.expect(o, unittest.hasLength(2)); | 604 unittest.expect(o, unittest.hasLength(2)); |
| 584 unittest.expect(o["x"], unittest.equals('foo')); | 605 unittest.expect(o["x"], unittest.equals('foo')); |
| 585 unittest.expect(o["y"], unittest.equals('foo')); | 606 unittest.expect(o["y"], unittest.equals('foo')); |
| 586 } | 607 } |
| 587 | 608 |
| 588 core.int buildCounterHadoopJob = 0; | 609 core.int buildCounterHadoopJob = 0; |
| 589 buildHadoopJob() { | 610 buildHadoopJob() { |
| 590 var o = new api.HadoopJob(); | 611 var o = new api.HadoopJob(); |
| 591 buildCounterHadoopJob++; | 612 buildCounterHadoopJob++; |
| 592 if (buildCounterHadoopJob < 3) { | 613 if (buildCounterHadoopJob < 3) { |
| 593 o.archiveUris = buildUnnamed3281(); | 614 o.archiveUris = buildUnnamed3129(); |
| 594 o.args = buildUnnamed3282(); | 615 o.args = buildUnnamed3130(); |
| 595 o.fileUris = buildUnnamed3283(); | 616 o.fileUris = buildUnnamed3131(); |
| 596 o.jarFileUris = buildUnnamed3284(); | 617 o.jarFileUris = buildUnnamed3132(); |
| 597 o.loggingConfiguration = buildLoggingConfiguration(); | 618 o.loggingConfiguration = buildLoggingConfiguration(); |
| 598 o.mainClass = "foo"; | 619 o.mainClass = "foo"; |
| 599 o.mainJarFileUri = "foo"; | 620 o.mainJarFileUri = "foo"; |
| 600 o.properties = buildUnnamed3285(); | 621 o.properties = buildUnnamed3133(); |
| 601 } | 622 } |
| 602 buildCounterHadoopJob--; | 623 buildCounterHadoopJob--; |
| 603 return o; | 624 return o; |
| 604 } | 625 } |
| 605 | 626 |
| 606 checkHadoopJob(api.HadoopJob o) { | 627 checkHadoopJob(api.HadoopJob o) { |
| 607 buildCounterHadoopJob++; | 628 buildCounterHadoopJob++; |
| 608 if (buildCounterHadoopJob < 3) { | 629 if (buildCounterHadoopJob < 3) { |
| 609 checkUnnamed3281(o.archiveUris); | 630 checkUnnamed3129(o.archiveUris); |
| 610 checkUnnamed3282(o.args); | 631 checkUnnamed3130(o.args); |
| 611 checkUnnamed3283(o.fileUris); | 632 checkUnnamed3131(o.fileUris); |
| 612 checkUnnamed3284(o.jarFileUris); | 633 checkUnnamed3132(o.jarFileUris); |
| 613 checkLoggingConfiguration(o.loggingConfiguration); | 634 checkLoggingConfiguration(o.loggingConfiguration); |
| 614 unittest.expect(o.mainClass, unittest.equals('foo')); | 635 unittest.expect(o.mainClass, unittest.equals('foo')); |
| 615 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 636 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
| 616 checkUnnamed3285(o.properties); | 637 checkUnnamed3133(o.properties); |
| 617 } | 638 } |
| 618 buildCounterHadoopJob--; | 639 buildCounterHadoopJob--; |
| 619 } | 640 } |
| 620 | 641 |
| 621 buildUnnamed3286() { | 642 buildUnnamed3134() { |
| 622 var o = new core.List<core.String>(); | 643 var o = new core.List<core.String>(); |
| 623 o.add("foo"); | 644 o.add("foo"); |
| 624 o.add("foo"); | 645 o.add("foo"); |
| 625 return o; | 646 return o; |
| 626 } | 647 } |
| 627 | 648 |
| 628 checkUnnamed3286(core.List<core.String> o) { | 649 checkUnnamed3134(core.List<core.String> o) { |
| 629 unittest.expect(o, unittest.hasLength(2)); | 650 unittest.expect(o, unittest.hasLength(2)); |
| 630 unittest.expect(o[0], unittest.equals('foo')); | 651 unittest.expect(o[0], unittest.equals('foo')); |
| 631 unittest.expect(o[1], unittest.equals('foo')); | 652 unittest.expect(o[1], unittest.equals('foo')); |
| 632 } | 653 } |
| 633 | 654 |
| 634 buildUnnamed3287() { | 655 buildUnnamed3135() { |
| 635 var o = new core.Map<core.String, core.String>(); | 656 var o = new core.Map<core.String, core.String>(); |
| 636 o["x"] = "foo"; | 657 o["x"] = "foo"; |
| 637 o["y"] = "foo"; | 658 o["y"] = "foo"; |
| 638 return o; | 659 return o; |
| 639 } | 660 } |
| 640 | 661 |
| 641 checkUnnamed3287(core.Map<core.String, core.String> o) { | 662 checkUnnamed3135(core.Map<core.String, core.String> o) { |
| 642 unittest.expect(o, unittest.hasLength(2)); | 663 unittest.expect(o, unittest.hasLength(2)); |
| 643 unittest.expect(o["x"], unittest.equals('foo')); | 664 unittest.expect(o["x"], unittest.equals('foo')); |
| 644 unittest.expect(o["y"], unittest.equals('foo')); | 665 unittest.expect(o["y"], unittest.equals('foo')); |
| 645 } | 666 } |
| 646 | 667 |
| 647 buildUnnamed3288() { | 668 buildUnnamed3136() { |
| 648 var o = new core.Map<core.String, core.String>(); | 669 var o = new core.Map<core.String, core.String>(); |
| 649 o["x"] = "foo"; | 670 o["x"] = "foo"; |
| 650 o["y"] = "foo"; | 671 o["y"] = "foo"; |
| 651 return o; | 672 return o; |
| 652 } | 673 } |
| 653 | 674 |
| 654 checkUnnamed3288(core.Map<core.String, core.String> o) { | 675 checkUnnamed3136(core.Map<core.String, core.String> o) { |
| 655 unittest.expect(o, unittest.hasLength(2)); | 676 unittest.expect(o, unittest.hasLength(2)); |
| 656 unittest.expect(o["x"], unittest.equals('foo')); | 677 unittest.expect(o["x"], unittest.equals('foo')); |
| 657 unittest.expect(o["y"], unittest.equals('foo')); | 678 unittest.expect(o["y"], unittest.equals('foo')); |
| 658 } | 679 } |
| 659 | 680 |
| 660 core.int buildCounterHiveJob = 0; | 681 core.int buildCounterHiveJob = 0; |
| 661 buildHiveJob() { | 682 buildHiveJob() { |
| 662 var o = new api.HiveJob(); | 683 var o = new api.HiveJob(); |
| 663 buildCounterHiveJob++; | 684 buildCounterHiveJob++; |
| 664 if (buildCounterHiveJob < 3) { | 685 if (buildCounterHiveJob < 3) { |
| 665 o.continueOnFailure = true; | 686 o.continueOnFailure = true; |
| 666 o.jarFileUris = buildUnnamed3286(); | 687 o.jarFileUris = buildUnnamed3134(); |
| 667 o.properties = buildUnnamed3287(); | 688 o.properties = buildUnnamed3135(); |
| 668 o.queryFileUri = "foo"; | 689 o.queryFileUri = "foo"; |
| 669 o.queryList = buildQueryList(); | 690 o.queryList = buildQueryList(); |
| 670 o.scriptVariables = buildUnnamed3288(); | 691 o.scriptVariables = buildUnnamed3136(); |
| 671 } | 692 } |
| 672 buildCounterHiveJob--; | 693 buildCounterHiveJob--; |
| 673 return o; | 694 return o; |
| 674 } | 695 } |
| 675 | 696 |
| 676 checkHiveJob(api.HiveJob o) { | 697 checkHiveJob(api.HiveJob o) { |
| 677 buildCounterHiveJob++; | 698 buildCounterHiveJob++; |
| 678 if (buildCounterHiveJob < 3) { | 699 if (buildCounterHiveJob < 3) { |
| 679 unittest.expect(o.continueOnFailure, unittest.isTrue); | 700 unittest.expect(o.continueOnFailure, unittest.isTrue); |
| 680 checkUnnamed3286(o.jarFileUris); | 701 checkUnnamed3134(o.jarFileUris); |
| 681 checkUnnamed3287(o.properties); | 702 checkUnnamed3135(o.properties); |
| 682 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 703 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
| 683 checkQueryList(o.queryList); | 704 checkQueryList(o.queryList); |
| 684 checkUnnamed3288(o.scriptVariables); | 705 checkUnnamed3136(o.scriptVariables); |
| 685 } | 706 } |
| 686 buildCounterHiveJob--; | 707 buildCounterHiveJob--; |
| 687 } | 708 } |
| 688 | 709 |
| 689 buildUnnamed3289() { | 710 buildUnnamed3137() { |
| 711 var o = new core.List<api.AcceleratorConfiguration>(); |
| 712 o.add(buildAcceleratorConfiguration()); |
| 713 o.add(buildAcceleratorConfiguration()); |
| 714 return o; |
| 715 } |
| 716 |
| 717 checkUnnamed3137(core.List<api.AcceleratorConfiguration> o) { |
| 718 unittest.expect(o, unittest.hasLength(2)); |
| 719 checkAcceleratorConfiguration(o[0]); |
| 720 checkAcceleratorConfiguration(o[1]); |
| 721 } |
| 722 |
| 723 buildUnnamed3138() { |
| 690 var o = new core.List<core.String>(); | 724 var o = new core.List<core.String>(); |
| 691 o.add("foo"); | 725 o.add("foo"); |
| 692 o.add("foo"); | 726 o.add("foo"); |
| 693 return o; | 727 return o; |
| 694 } | 728 } |
| 695 | 729 |
| 696 checkUnnamed3289(core.List<core.String> o) { | 730 checkUnnamed3138(core.List<core.String> o) { |
| 697 unittest.expect(o, unittest.hasLength(2)); | 731 unittest.expect(o, unittest.hasLength(2)); |
| 698 unittest.expect(o[0], unittest.equals('foo')); | 732 unittest.expect(o[0], unittest.equals('foo')); |
| 699 unittest.expect(o[1], unittest.equals('foo')); | 733 unittest.expect(o[1], unittest.equals('foo')); |
| 700 } | 734 } |
| 701 | 735 |
| 702 core.int buildCounterInstanceGroupConfiguration = 0; | 736 core.int buildCounterInstanceGroupConfiguration = 0; |
| 703 buildInstanceGroupConfiguration() { | 737 buildInstanceGroupConfiguration() { |
| 704 var o = new api.InstanceGroupConfiguration(); | 738 var o = new api.InstanceGroupConfiguration(); |
| 705 buildCounterInstanceGroupConfiguration++; | 739 buildCounterInstanceGroupConfiguration++; |
| 706 if (buildCounterInstanceGroupConfiguration < 3) { | 740 if (buildCounterInstanceGroupConfiguration < 3) { |
| 741 o.accelerators = buildUnnamed3137(); |
| 707 o.diskConfiguration = buildDiskConfiguration(); | 742 o.diskConfiguration = buildDiskConfiguration(); |
| 708 o.imageUri = "foo"; | 743 o.imageUri = "foo"; |
| 709 o.instanceNames = buildUnnamed3289(); | 744 o.instanceNames = buildUnnamed3138(); |
| 710 o.isPreemptible = true; | 745 o.isPreemptible = true; |
| 711 o.machineTypeUri = "foo"; | 746 o.machineTypeUri = "foo"; |
| 712 o.managedGroupConfiguration = buildManagedGroupConfiguration(); | 747 o.managedGroupConfiguration = buildManagedGroupConfiguration(); |
| 713 o.numInstances = 42; | 748 o.numInstances = 42; |
| 714 } | 749 } |
| 715 buildCounterInstanceGroupConfiguration--; | 750 buildCounterInstanceGroupConfiguration--; |
| 716 return o; | 751 return o; |
| 717 } | 752 } |
| 718 | 753 |
| 719 checkInstanceGroupConfiguration(api.InstanceGroupConfiguration o) { | 754 checkInstanceGroupConfiguration(api.InstanceGroupConfiguration o) { |
| 720 buildCounterInstanceGroupConfiguration++; | 755 buildCounterInstanceGroupConfiguration++; |
| 721 if (buildCounterInstanceGroupConfiguration < 3) { | 756 if (buildCounterInstanceGroupConfiguration < 3) { |
| 757 checkUnnamed3137(o.accelerators); |
| 722 checkDiskConfiguration(o.diskConfiguration); | 758 checkDiskConfiguration(o.diskConfiguration); |
| 723 unittest.expect(o.imageUri, unittest.equals('foo')); | 759 unittest.expect(o.imageUri, unittest.equals('foo')); |
| 724 checkUnnamed3289(o.instanceNames); | 760 checkUnnamed3138(o.instanceNames); |
| 725 unittest.expect(o.isPreemptible, unittest.isTrue); | 761 unittest.expect(o.isPreemptible, unittest.isTrue); |
| 726 unittest.expect(o.machineTypeUri, unittest.equals('foo')); | 762 unittest.expect(o.machineTypeUri, unittest.equals('foo')); |
| 727 checkManagedGroupConfiguration(o.managedGroupConfiguration); | 763 checkManagedGroupConfiguration(o.managedGroupConfiguration); |
| 728 unittest.expect(o.numInstances, unittest.equals(42)); | 764 unittest.expect(o.numInstances, unittest.equals(42)); |
| 729 } | 765 } |
| 730 buildCounterInstanceGroupConfiguration--; | 766 buildCounterInstanceGroupConfiguration--; |
| 731 } | 767 } |
| 732 | 768 |
| 733 buildUnnamed3290() { | 769 buildUnnamed3139() { |
| 734 var o = new core.Map<core.String, core.String>(); | 770 var o = new core.Map<core.String, core.String>(); |
| 735 o["x"] = "foo"; | 771 o["x"] = "foo"; |
| 736 o["y"] = "foo"; | 772 o["y"] = "foo"; |
| 737 return o; | 773 return o; |
| 738 } | 774 } |
| 739 | 775 |
| 740 checkUnnamed3290(core.Map<core.String, core.String> o) { | 776 checkUnnamed3139(core.Map<core.String, core.String> o) { |
| 741 unittest.expect(o, unittest.hasLength(2)); | 777 unittest.expect(o, unittest.hasLength(2)); |
| 742 unittest.expect(o["x"], unittest.equals('foo')); | 778 unittest.expect(o["x"], unittest.equals('foo')); |
| 743 unittest.expect(o["y"], unittest.equals('foo')); | 779 unittest.expect(o["y"], unittest.equals('foo')); |
| 744 } | 780 } |
| 745 | 781 |
| 746 buildUnnamed3291() { | 782 buildUnnamed3140() { |
| 747 var o = new core.List<api.JobStatus>(); | 783 var o = new core.List<api.JobStatus>(); |
| 748 o.add(buildJobStatus()); | 784 o.add(buildJobStatus()); |
| 749 o.add(buildJobStatus()); | 785 o.add(buildJobStatus()); |
| 750 return o; | 786 return o; |
| 751 } | 787 } |
| 752 | 788 |
| 753 checkUnnamed3291(core.List<api.JobStatus> o) { | 789 checkUnnamed3140(core.List<api.JobStatus> o) { |
| 754 unittest.expect(o, unittest.hasLength(2)); | 790 unittest.expect(o, unittest.hasLength(2)); |
| 755 checkJobStatus(o[0]); | 791 checkJobStatus(o[0]); |
| 756 checkJobStatus(o[1]); | 792 checkJobStatus(o[1]); |
| 757 } | 793 } |
| 758 | 794 |
| 759 buildUnnamed3292() { | 795 buildUnnamed3141() { |
| 760 var o = new core.List<api.YarnApplication>(); | 796 var o = new core.List<api.YarnApplication>(); |
| 761 o.add(buildYarnApplication()); | 797 o.add(buildYarnApplication()); |
| 762 o.add(buildYarnApplication()); | 798 o.add(buildYarnApplication()); |
| 763 return o; | 799 return o; |
| 764 } | 800 } |
| 765 | 801 |
| 766 checkUnnamed3292(core.List<api.YarnApplication> o) { | 802 checkUnnamed3141(core.List<api.YarnApplication> o) { |
| 767 unittest.expect(o, unittest.hasLength(2)); | 803 unittest.expect(o, unittest.hasLength(2)); |
| 768 checkYarnApplication(o[0]); | 804 checkYarnApplication(o[0]); |
| 769 checkYarnApplication(o[1]); | 805 checkYarnApplication(o[1]); |
| 770 } | 806 } |
| 771 | 807 |
| 772 core.int buildCounterJob = 0; | 808 core.int buildCounterJob = 0; |
| 773 buildJob() { | 809 buildJob() { |
| 774 var o = new api.Job(); | 810 var o = new api.Job(); |
| 775 buildCounterJob++; | 811 buildCounterJob++; |
| 776 if (buildCounterJob < 3) { | 812 if (buildCounterJob < 3) { |
| 777 o.driverControlFilesUri = "foo"; | 813 o.driverControlFilesUri = "foo"; |
| 778 o.driverInputResourceUri = "foo"; | 814 o.driverInputResourceUri = "foo"; |
| 779 o.driverOutputResourceUri = "foo"; | 815 o.driverOutputResourceUri = "foo"; |
| 780 o.hadoopJob = buildHadoopJob(); | 816 o.hadoopJob = buildHadoopJob(); |
| 781 o.hiveJob = buildHiveJob(); | 817 o.hiveJob = buildHiveJob(); |
| 782 o.interactive = true; | 818 o.interactive = true; |
| 783 o.labels = buildUnnamed3290(); | 819 o.labels = buildUnnamed3139(); |
| 784 o.pigJob = buildPigJob(); | 820 o.pigJob = buildPigJob(); |
| 785 o.placement = buildJobPlacement(); | 821 o.placement = buildJobPlacement(); |
| 786 o.pysparkJob = buildPySparkJob(); | 822 o.pysparkJob = buildPySparkJob(); |
| 787 o.reference = buildJobReference(); | 823 o.reference = buildJobReference(); |
| 788 o.scheduling = buildJobScheduling(); | 824 o.scheduling = buildJobScheduling(); |
| 789 o.sparkJob = buildSparkJob(); | 825 o.sparkJob = buildSparkJob(); |
| 790 o.sparkSqlJob = buildSparkSqlJob(); | 826 o.sparkSqlJob = buildSparkSqlJob(); |
| 791 o.status = buildJobStatus(); | 827 o.status = buildJobStatus(); |
| 792 o.statusHistory = buildUnnamed3291(); | 828 o.statusHistory = buildUnnamed3140(); |
| 793 o.submittedBy = "foo"; | 829 o.submittedBy = "foo"; |
| 794 o.yarnApplications = buildUnnamed3292(); | 830 o.yarnApplications = buildUnnamed3141(); |
| 795 } | 831 } |
| 796 buildCounterJob--; | 832 buildCounterJob--; |
| 797 return o; | 833 return o; |
| 798 } | 834 } |
| 799 | 835 |
| 800 checkJob(api.Job o) { | 836 checkJob(api.Job o) { |
| 801 buildCounterJob++; | 837 buildCounterJob++; |
| 802 if (buildCounterJob < 3) { | 838 if (buildCounterJob < 3) { |
| 803 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); | 839 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); |
| 804 unittest.expect(o.driverInputResourceUri, unittest.equals('foo')); | 840 unittest.expect(o.driverInputResourceUri, unittest.equals('foo')); |
| 805 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); | 841 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); |
| 806 checkHadoopJob(o.hadoopJob); | 842 checkHadoopJob(o.hadoopJob); |
| 807 checkHiveJob(o.hiveJob); | 843 checkHiveJob(o.hiveJob); |
| 808 unittest.expect(o.interactive, unittest.isTrue); | 844 unittest.expect(o.interactive, unittest.isTrue); |
| 809 checkUnnamed3290(o.labels); | 845 checkUnnamed3139(o.labels); |
| 810 checkPigJob(o.pigJob); | 846 checkPigJob(o.pigJob); |
| 811 checkJobPlacement(o.placement); | 847 checkJobPlacement(o.placement); |
| 812 checkPySparkJob(o.pysparkJob); | 848 checkPySparkJob(o.pysparkJob); |
| 813 checkJobReference(o.reference); | 849 checkJobReference(o.reference); |
| 814 checkJobScheduling(o.scheduling); | 850 checkJobScheduling(o.scheduling); |
| 815 checkSparkJob(o.sparkJob); | 851 checkSparkJob(o.sparkJob); |
| 816 checkSparkSqlJob(o.sparkSqlJob); | 852 checkSparkSqlJob(o.sparkSqlJob); |
| 817 checkJobStatus(o.status); | 853 checkJobStatus(o.status); |
| 818 checkUnnamed3291(o.statusHistory); | 854 checkUnnamed3140(o.statusHistory); |
| 819 unittest.expect(o.submittedBy, unittest.equals('foo')); | 855 unittest.expect(o.submittedBy, unittest.equals('foo')); |
| 820 checkUnnamed3292(o.yarnApplications); | 856 checkUnnamed3141(o.yarnApplications); |
| 821 } | 857 } |
| 822 buildCounterJob--; | 858 buildCounterJob--; |
| 823 } | 859 } |
| 824 | 860 |
| 825 core.int buildCounterJobPlacement = 0; | 861 core.int buildCounterJobPlacement = 0; |
| 826 buildJobPlacement() { | 862 buildJobPlacement() { |
| 827 var o = new api.JobPlacement(); | 863 var o = new api.JobPlacement(); |
| 828 buildCounterJobPlacement++; | 864 buildCounterJobPlacement++; |
| 829 if (buildCounterJobPlacement < 3) { | 865 if (buildCounterJobPlacement < 3) { |
| 830 o.clusterName = "foo"; | 866 o.clusterName = "foo"; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 899 checkJobStatus(api.JobStatus o) { | 935 checkJobStatus(api.JobStatus o) { |
| 900 buildCounterJobStatus++; | 936 buildCounterJobStatus++; |
| 901 if (buildCounterJobStatus < 3) { | 937 if (buildCounterJobStatus < 3) { |
| 902 unittest.expect(o.details, unittest.equals('foo')); | 938 unittest.expect(o.details, unittest.equals('foo')); |
| 903 unittest.expect(o.state, unittest.equals('foo')); | 939 unittest.expect(o.state, unittest.equals('foo')); |
| 904 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 940 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
| 905 } | 941 } |
| 906 buildCounterJobStatus--; | 942 buildCounterJobStatus--; |
| 907 } | 943 } |
| 908 | 944 |
| 909 buildUnnamed3293() { | 945 buildUnnamed3142() { |
| 910 var o = new core.List<api.Cluster>(); | 946 var o = new core.List<api.Cluster>(); |
| 911 o.add(buildCluster()); | 947 o.add(buildCluster()); |
| 912 o.add(buildCluster()); | 948 o.add(buildCluster()); |
| 913 return o; | 949 return o; |
| 914 } | 950 } |
| 915 | 951 |
| 916 checkUnnamed3293(core.List<api.Cluster> o) { | 952 checkUnnamed3142(core.List<api.Cluster> o) { |
| 917 unittest.expect(o, unittest.hasLength(2)); | 953 unittest.expect(o, unittest.hasLength(2)); |
| 918 checkCluster(o[0]); | 954 checkCluster(o[0]); |
| 919 checkCluster(o[1]); | 955 checkCluster(o[1]); |
| 920 } | 956 } |
| 921 | 957 |
| 922 core.int buildCounterListClustersResponse = 0; | 958 core.int buildCounterListClustersResponse = 0; |
| 923 buildListClustersResponse() { | 959 buildListClustersResponse() { |
| 924 var o = new api.ListClustersResponse(); | 960 var o = new api.ListClustersResponse(); |
| 925 buildCounterListClustersResponse++; | 961 buildCounterListClustersResponse++; |
| 926 if (buildCounterListClustersResponse < 3) { | 962 if (buildCounterListClustersResponse < 3) { |
| 927 o.clusters = buildUnnamed3293(); | 963 o.clusters = buildUnnamed3142(); |
| 928 o.nextPageToken = "foo"; | 964 o.nextPageToken = "foo"; |
| 929 } | 965 } |
| 930 buildCounterListClustersResponse--; | 966 buildCounterListClustersResponse--; |
| 931 return o; | 967 return o; |
| 932 } | 968 } |
| 933 | 969 |
| 934 checkListClustersResponse(api.ListClustersResponse o) { | 970 checkListClustersResponse(api.ListClustersResponse o) { |
| 935 buildCounterListClustersResponse++; | 971 buildCounterListClustersResponse++; |
| 936 if (buildCounterListClustersResponse < 3) { | 972 if (buildCounterListClustersResponse < 3) { |
| 937 checkUnnamed3293(o.clusters); | 973 checkUnnamed3142(o.clusters); |
| 938 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 974 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 939 } | 975 } |
| 940 buildCounterListClustersResponse--; | 976 buildCounterListClustersResponse--; |
| 941 } | 977 } |
| 942 | 978 |
| 943 buildUnnamed3294() { | 979 buildUnnamed3143() { |
| 944 var o = new core.List<api.Job>(); | 980 var o = new core.List<api.Job>(); |
| 945 o.add(buildJob()); | 981 o.add(buildJob()); |
| 946 o.add(buildJob()); | 982 o.add(buildJob()); |
| 947 return o; | 983 return o; |
| 948 } | 984 } |
| 949 | 985 |
| 950 checkUnnamed3294(core.List<api.Job> o) { | 986 checkUnnamed3143(core.List<api.Job> o) { |
| 951 unittest.expect(o, unittest.hasLength(2)); | 987 unittest.expect(o, unittest.hasLength(2)); |
| 952 checkJob(o[0]); | 988 checkJob(o[0]); |
| 953 checkJob(o[1]); | 989 checkJob(o[1]); |
| 954 } | 990 } |
| 955 | 991 |
| 956 core.int buildCounterListJobsResponse = 0; | 992 core.int buildCounterListJobsResponse = 0; |
| 957 buildListJobsResponse() { | 993 buildListJobsResponse() { |
| 958 var o = new api.ListJobsResponse(); | 994 var o = new api.ListJobsResponse(); |
| 959 buildCounterListJobsResponse++; | 995 buildCounterListJobsResponse++; |
| 960 if (buildCounterListJobsResponse < 3) { | 996 if (buildCounterListJobsResponse < 3) { |
| 961 o.jobs = buildUnnamed3294(); | 997 o.jobs = buildUnnamed3143(); |
| 962 o.nextPageToken = "foo"; | 998 o.nextPageToken = "foo"; |
| 963 } | 999 } |
| 964 buildCounterListJobsResponse--; | 1000 buildCounterListJobsResponse--; |
| 965 return o; | 1001 return o; |
| 966 } | 1002 } |
| 967 | 1003 |
| 968 checkListJobsResponse(api.ListJobsResponse o) { | 1004 checkListJobsResponse(api.ListJobsResponse o) { |
| 969 buildCounterListJobsResponse++; | 1005 buildCounterListJobsResponse++; |
| 970 if (buildCounterListJobsResponse < 3) { | 1006 if (buildCounterListJobsResponse < 3) { |
| 971 checkUnnamed3294(o.jobs); | 1007 checkUnnamed3143(o.jobs); |
| 972 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1008 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 973 } | 1009 } |
| 974 buildCounterListJobsResponse--; | 1010 buildCounterListJobsResponse--; |
| 975 } | 1011 } |
| 976 | 1012 |
| 977 buildUnnamed3295() { | 1013 buildUnnamed3144() { |
| 978 var o = new core.List<api.Operation>(); | 1014 var o = new core.List<api.Operation>(); |
| 979 o.add(buildOperation()); | 1015 o.add(buildOperation()); |
| 980 o.add(buildOperation()); | 1016 o.add(buildOperation()); |
| 981 return o; | 1017 return o; |
| 982 } | 1018 } |
| 983 | 1019 |
| 984 checkUnnamed3295(core.List<api.Operation> o) { | 1020 checkUnnamed3144(core.List<api.Operation> o) { |
| 985 unittest.expect(o, unittest.hasLength(2)); | 1021 unittest.expect(o, unittest.hasLength(2)); |
| 986 checkOperation(o[0]); | 1022 checkOperation(o[0]); |
| 987 checkOperation(o[1]); | 1023 checkOperation(o[1]); |
| 988 } | 1024 } |
| 989 | 1025 |
| 990 core.int buildCounterListOperationsResponse = 0; | 1026 core.int buildCounterListOperationsResponse = 0; |
| 991 buildListOperationsResponse() { | 1027 buildListOperationsResponse() { |
| 992 var o = new api.ListOperationsResponse(); | 1028 var o = new api.ListOperationsResponse(); |
| 993 buildCounterListOperationsResponse++; | 1029 buildCounterListOperationsResponse++; |
| 994 if (buildCounterListOperationsResponse < 3) { | 1030 if (buildCounterListOperationsResponse < 3) { |
| 995 o.nextPageToken = "foo"; | 1031 o.nextPageToken = "foo"; |
| 996 o.operations = buildUnnamed3295(); | 1032 o.operations = buildUnnamed3144(); |
| 997 } | 1033 } |
| 998 buildCounterListOperationsResponse--; | 1034 buildCounterListOperationsResponse--; |
| 999 return o; | 1035 return o; |
| 1000 } | 1036 } |
| 1001 | 1037 |
| 1002 checkListOperationsResponse(api.ListOperationsResponse o) { | 1038 checkListOperationsResponse(api.ListOperationsResponse o) { |
| 1003 buildCounterListOperationsResponse++; | 1039 buildCounterListOperationsResponse++; |
| 1004 if (buildCounterListOperationsResponse < 3) { | 1040 if (buildCounterListOperationsResponse < 3) { |
| 1005 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1041 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1006 checkUnnamed3295(o.operations); | 1042 checkUnnamed3144(o.operations); |
| 1007 } | 1043 } |
| 1008 buildCounterListOperationsResponse--; | 1044 buildCounterListOperationsResponse--; |
| 1009 } | 1045 } |
| 1010 | 1046 |
| 1011 buildUnnamed3296() { | 1047 buildUnnamed3145() { |
| 1012 var o = new core.Map<core.String, core.String>(); | 1048 var o = new core.Map<core.String, core.String>(); |
| 1013 o["x"] = "foo"; | 1049 o["x"] = "foo"; |
| 1014 o["y"] = "foo"; | 1050 o["y"] = "foo"; |
| 1015 return o; | 1051 return o; |
| 1016 } | 1052 } |
| 1017 | 1053 |
| 1018 checkUnnamed3296(core.Map<core.String, core.String> o) { | 1054 checkUnnamed3145(core.Map<core.String, core.String> o) { |
| 1019 unittest.expect(o, unittest.hasLength(2)); | 1055 unittest.expect(o, unittest.hasLength(2)); |
| 1020 unittest.expect(o["x"], unittest.equals('foo')); | 1056 unittest.expect(o["x"], unittest.equals('foo')); |
| 1021 unittest.expect(o["y"], unittest.equals('foo')); | 1057 unittest.expect(o["y"], unittest.equals('foo')); |
| 1022 } | 1058 } |
| 1023 | 1059 |
| 1024 core.int buildCounterLoggingConfiguration = 0; | 1060 core.int buildCounterLoggingConfiguration = 0; |
| 1025 buildLoggingConfiguration() { | 1061 buildLoggingConfiguration() { |
| 1026 var o = new api.LoggingConfiguration(); | 1062 var o = new api.LoggingConfiguration(); |
| 1027 buildCounterLoggingConfiguration++; | 1063 buildCounterLoggingConfiguration++; |
| 1028 if (buildCounterLoggingConfiguration < 3) { | 1064 if (buildCounterLoggingConfiguration < 3) { |
| 1029 o.driverLogLevels = buildUnnamed3296(); | 1065 o.driverLogLevels = buildUnnamed3145(); |
| 1030 } | 1066 } |
| 1031 buildCounterLoggingConfiguration--; | 1067 buildCounterLoggingConfiguration--; |
| 1032 return o; | 1068 return o; |
| 1033 } | 1069 } |
| 1034 | 1070 |
| 1035 checkLoggingConfiguration(api.LoggingConfiguration o) { | 1071 checkLoggingConfiguration(api.LoggingConfiguration o) { |
| 1036 buildCounterLoggingConfiguration++; | 1072 buildCounterLoggingConfiguration++; |
| 1037 if (buildCounterLoggingConfiguration < 3) { | 1073 if (buildCounterLoggingConfiguration < 3) { |
| 1038 checkUnnamed3296(o.driverLogLevels); | 1074 checkUnnamed3145(o.driverLogLevels); |
| 1039 } | 1075 } |
| 1040 buildCounterLoggingConfiguration--; | 1076 buildCounterLoggingConfiguration--; |
| 1041 } | 1077 } |
| 1042 | 1078 |
| 1043 core.int buildCounterManagedGroupConfiguration = 0; | 1079 core.int buildCounterManagedGroupConfiguration = 0; |
| 1044 buildManagedGroupConfiguration() { | 1080 buildManagedGroupConfiguration() { |
| 1045 var o = new api.ManagedGroupConfiguration(); | 1081 var o = new api.ManagedGroupConfiguration(); |
| 1046 buildCounterManagedGroupConfiguration++; | 1082 buildCounterManagedGroupConfiguration++; |
| 1047 if (buildCounterManagedGroupConfiguration < 3) { | 1083 if (buildCounterManagedGroupConfiguration < 3) { |
| 1048 o.instanceGroupManagerName = "foo"; | 1084 o.instanceGroupManagerName = "foo"; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 1075 | 1111 |
| 1076 checkNodeInitializationAction(api.NodeInitializationAction o) { | 1112 checkNodeInitializationAction(api.NodeInitializationAction o) { |
| 1077 buildCounterNodeInitializationAction++; | 1113 buildCounterNodeInitializationAction++; |
| 1078 if (buildCounterNodeInitializationAction < 3) { | 1114 if (buildCounterNodeInitializationAction < 3) { |
| 1079 unittest.expect(o.executableFile, unittest.equals('foo')); | 1115 unittest.expect(o.executableFile, unittest.equals('foo')); |
| 1080 unittest.expect(o.executionTimeout, unittest.equals('foo')); | 1116 unittest.expect(o.executionTimeout, unittest.equals('foo')); |
| 1081 } | 1117 } |
| 1082 buildCounterNodeInitializationAction--; | 1118 buildCounterNodeInitializationAction--; |
| 1083 } | 1119 } |
| 1084 | 1120 |
| 1085 buildUnnamed3297() { | 1121 buildUnnamed3146() { |
| 1086 var o = new core.Map<core.String, core.Object>(); | 1122 var o = new core.Map<core.String, core.Object>(); |
| 1087 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1123 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1088 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1124 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1089 return o; | 1125 return o; |
| 1090 } | 1126 } |
| 1091 | 1127 |
| 1092 checkUnnamed3297(core.Map<core.String, core.Object> o) { | 1128 checkUnnamed3146(core.Map<core.String, core.Object> o) { |
| 1093 unittest.expect(o, unittest.hasLength(2)); | 1129 unittest.expect(o, unittest.hasLength(2)); |
| 1094 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); | 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')); |
| 1095 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); | 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')); |
| 1096 } | 1132 } |
| 1097 | 1133 |
| 1098 buildUnnamed3298() { | 1134 buildUnnamed3147() { |
| 1099 var o = new core.Map<core.String, core.Object>(); | 1135 var o = new core.Map<core.String, core.Object>(); |
| 1100 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1136 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1101 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1137 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1102 return o; | 1138 return o; |
| 1103 } | 1139 } |
| 1104 | 1140 |
| 1105 checkUnnamed3298(core.Map<core.String, core.Object> o) { | 1141 checkUnnamed3147(core.Map<core.String, core.Object> o) { |
| 1106 unittest.expect(o, unittest.hasLength(2)); | 1142 unittest.expect(o, unittest.hasLength(2)); |
| 1107 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); | 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')); |
| 1108 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); | 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')); |
| 1109 } | 1145 } |
| 1110 | 1146 |
| 1111 core.int buildCounterOperation = 0; | 1147 core.int buildCounterOperation = 0; |
| 1112 buildOperation() { | 1148 buildOperation() { |
| 1113 var o = new api.Operation(); | 1149 var o = new api.Operation(); |
| 1114 buildCounterOperation++; | 1150 buildCounterOperation++; |
| 1115 if (buildCounterOperation < 3) { | 1151 if (buildCounterOperation < 3) { |
| 1116 o.done = true; | 1152 o.done = true; |
| 1117 o.error = buildStatus(); | 1153 o.error = buildStatus(); |
| 1118 o.metadata = buildUnnamed3297(); | 1154 o.metadata = buildUnnamed3146(); |
| 1119 o.name = "foo"; | 1155 o.name = "foo"; |
| 1120 o.response = buildUnnamed3298(); | 1156 o.response = buildUnnamed3147(); |
| 1121 } | 1157 } |
| 1122 buildCounterOperation--; | 1158 buildCounterOperation--; |
| 1123 return o; | 1159 return o; |
| 1124 } | 1160 } |
| 1125 | 1161 |
| 1126 checkOperation(api.Operation o) { | 1162 checkOperation(api.Operation o) { |
| 1127 buildCounterOperation++; | 1163 buildCounterOperation++; |
| 1128 if (buildCounterOperation < 3) { | 1164 if (buildCounterOperation < 3) { |
| 1129 unittest.expect(o.done, unittest.isTrue); | 1165 unittest.expect(o.done, unittest.isTrue); |
| 1130 checkStatus(o.error); | 1166 checkStatus(o.error); |
| 1131 checkUnnamed3297(o.metadata); | 1167 checkUnnamed3146(o.metadata); |
| 1132 unittest.expect(o.name, unittest.equals('foo')); | 1168 unittest.expect(o.name, unittest.equals('foo')); |
| 1133 checkUnnamed3298(o.response); | 1169 checkUnnamed3147(o.response); |
| 1134 } | 1170 } |
| 1135 buildCounterOperation--; | 1171 buildCounterOperation--; |
| 1136 } | 1172 } |
| 1137 | 1173 |
| 1138 buildUnnamed3299() { | 1174 buildUnnamed3148() { |
| 1139 var o = new core.List<api.OperationStatus>(); | 1175 var o = new core.List<api.OperationStatus>(); |
| 1140 o.add(buildOperationStatus()); | 1176 o.add(buildOperationStatus()); |
| 1141 o.add(buildOperationStatus()); | 1177 o.add(buildOperationStatus()); |
| 1142 return o; | 1178 return o; |
| 1143 } | 1179 } |
| 1144 | 1180 |
| 1145 checkUnnamed3299(core.List<api.OperationStatus> o) { | 1181 checkUnnamed3148(core.List<api.OperationStatus> o) { |
| 1146 unittest.expect(o, unittest.hasLength(2)); | 1182 unittest.expect(o, unittest.hasLength(2)); |
| 1147 checkOperationStatus(o[0]); | 1183 checkOperationStatus(o[0]); |
| 1148 checkOperationStatus(o[1]); | 1184 checkOperationStatus(o[1]); |
| 1149 } | 1185 } |
| 1150 | 1186 |
| 1151 buildUnnamed3300() { | 1187 buildUnnamed3149() { |
| 1152 var o = new core.List<core.String>(); | 1188 var o = new core.List<core.String>(); |
| 1153 o.add("foo"); | 1189 o.add("foo"); |
| 1154 o.add("foo"); | 1190 o.add("foo"); |
| 1155 return o; | 1191 return o; |
| 1156 } | 1192 } |
| 1157 | 1193 |
| 1158 checkUnnamed3300(core.List<core.String> o) { | 1194 checkUnnamed3149(core.List<core.String> o) { |
| 1159 unittest.expect(o, unittest.hasLength(2)); | 1195 unittest.expect(o, unittest.hasLength(2)); |
| 1160 unittest.expect(o[0], unittest.equals('foo')); | 1196 unittest.expect(o[0], unittest.equals('foo')); |
| 1161 unittest.expect(o[1], unittest.equals('foo')); | 1197 unittest.expect(o[1], unittest.equals('foo')); |
| 1162 } | 1198 } |
| 1163 | 1199 |
| 1164 core.int buildCounterOperationMetadata = 0; | 1200 core.int buildCounterOperationMetadata = 0; |
| 1165 buildOperationMetadata() { | 1201 buildOperationMetadata() { |
| 1166 var o = new api.OperationMetadata(); | 1202 var o = new api.OperationMetadata(); |
| 1167 buildCounterOperationMetadata++; | 1203 buildCounterOperationMetadata++; |
| 1168 if (buildCounterOperationMetadata < 3) { | 1204 if (buildCounterOperationMetadata < 3) { |
| 1169 o.clusterName = "foo"; | 1205 o.clusterName = "foo"; |
| 1170 o.clusterUuid = "foo"; | 1206 o.clusterUuid = "foo"; |
| 1171 o.description = "foo"; | 1207 o.description = "foo"; |
| 1172 o.details = "foo"; | |
| 1173 o.endTime = "foo"; | |
| 1174 o.innerState = "foo"; | |
| 1175 o.insertTime = "foo"; | |
| 1176 o.operationType = "foo"; | 1208 o.operationType = "foo"; |
| 1177 o.startTime = "foo"; | |
| 1178 o.state = "foo"; | |
| 1179 o.status = buildOperationStatus(); | 1209 o.status = buildOperationStatus(); |
| 1180 o.statusHistory = buildUnnamed3299(); | 1210 o.statusHistory = buildUnnamed3148(); |
| 1181 o.warnings = buildUnnamed3300(); | 1211 o.warnings = buildUnnamed3149(); |
| 1182 } | 1212 } |
| 1183 buildCounterOperationMetadata--; | 1213 buildCounterOperationMetadata--; |
| 1184 return o; | 1214 return o; |
| 1185 } | 1215 } |
| 1186 | 1216 |
| 1187 checkOperationMetadata(api.OperationMetadata o) { | 1217 checkOperationMetadata(api.OperationMetadata o) { |
| 1188 buildCounterOperationMetadata++; | 1218 buildCounterOperationMetadata++; |
| 1189 if (buildCounterOperationMetadata < 3) { | 1219 if (buildCounterOperationMetadata < 3) { |
| 1190 unittest.expect(o.clusterName, unittest.equals('foo')); | 1220 unittest.expect(o.clusterName, unittest.equals('foo')); |
| 1191 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 1221 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
| 1192 unittest.expect(o.description, unittest.equals('foo')); | 1222 unittest.expect(o.description, unittest.equals('foo')); |
| 1193 unittest.expect(o.details, unittest.equals('foo')); | |
| 1194 unittest.expect(o.endTime, unittest.equals('foo')); | |
| 1195 unittest.expect(o.innerState, unittest.equals('foo')); | |
| 1196 unittest.expect(o.insertTime, unittest.equals('foo')); | |
| 1197 unittest.expect(o.operationType, unittest.equals('foo')); | 1223 unittest.expect(o.operationType, unittest.equals('foo')); |
| 1198 unittest.expect(o.startTime, unittest.equals('foo')); | |
| 1199 unittest.expect(o.state, unittest.equals('foo')); | |
| 1200 checkOperationStatus(o.status); | 1224 checkOperationStatus(o.status); |
| 1201 checkUnnamed3299(o.statusHistory); | 1225 checkUnnamed3148(o.statusHistory); |
| 1202 checkUnnamed3300(o.warnings); | 1226 checkUnnamed3149(o.warnings); |
| 1203 } | 1227 } |
| 1204 buildCounterOperationMetadata--; | 1228 buildCounterOperationMetadata--; |
| 1205 } | 1229 } |
| 1206 | 1230 |
| 1207 core.int buildCounterOperationStatus = 0; | 1231 core.int buildCounterOperationStatus = 0; |
| 1208 buildOperationStatus() { | 1232 buildOperationStatus() { |
| 1209 var o = new api.OperationStatus(); | 1233 var o = new api.OperationStatus(); |
| 1210 buildCounterOperationStatus++; | 1234 buildCounterOperationStatus++; |
| 1211 if (buildCounterOperationStatus < 3) { | 1235 if (buildCounterOperationStatus < 3) { |
| 1212 o.details = "foo"; | 1236 o.details = "foo"; |
| 1213 o.innerState = "foo"; | 1237 o.innerState = "foo"; |
| 1214 o.state = "foo"; | 1238 o.state = "foo"; |
| 1215 o.stateStartTime = "foo"; | 1239 o.stateStartTime = "foo"; |
| 1216 } | 1240 } |
| 1217 buildCounterOperationStatus--; | 1241 buildCounterOperationStatus--; |
| 1218 return o; | 1242 return o; |
| 1219 } | 1243 } |
| 1220 | 1244 |
| 1221 checkOperationStatus(api.OperationStatus o) { | 1245 checkOperationStatus(api.OperationStatus o) { |
| 1222 buildCounterOperationStatus++; | 1246 buildCounterOperationStatus++; |
| 1223 if (buildCounterOperationStatus < 3) { | 1247 if (buildCounterOperationStatus < 3) { |
| 1224 unittest.expect(o.details, unittest.equals('foo')); | 1248 unittest.expect(o.details, unittest.equals('foo')); |
| 1225 unittest.expect(o.innerState, unittest.equals('foo')); | 1249 unittest.expect(o.innerState, unittest.equals('foo')); |
| 1226 unittest.expect(o.state, unittest.equals('foo')); | 1250 unittest.expect(o.state, unittest.equals('foo')); |
| 1227 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 1251 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
| 1228 } | 1252 } |
| 1229 buildCounterOperationStatus--; | 1253 buildCounterOperationStatus--; |
| 1230 } | 1254 } |
| 1231 | 1255 |
| 1232 buildUnnamed3301() { | 1256 buildUnnamed3150() { |
| 1233 var o = new core.List<core.String>(); | 1257 var o = new core.List<core.String>(); |
| 1234 o.add("foo"); | 1258 o.add("foo"); |
| 1235 o.add("foo"); | 1259 o.add("foo"); |
| 1236 return o; | 1260 return o; |
| 1237 } | 1261 } |
| 1238 | 1262 |
| 1239 checkUnnamed3301(core.List<core.String> o) { | 1263 checkUnnamed3150(core.List<core.String> o) { |
| 1240 unittest.expect(o, unittest.hasLength(2)); | 1264 unittest.expect(o, unittest.hasLength(2)); |
| 1241 unittest.expect(o[0], unittest.equals('foo')); | 1265 unittest.expect(o[0], unittest.equals('foo')); |
| 1242 unittest.expect(o[1], unittest.equals('foo')); | 1266 unittest.expect(o[1], unittest.equals('foo')); |
| 1243 } | 1267 } |
| 1244 | 1268 |
| 1245 buildUnnamed3302() { | 1269 buildUnnamed3151() { |
| 1246 var o = new core.Map<core.String, core.String>(); | 1270 var o = new core.Map<core.String, core.String>(); |
| 1247 o["x"] = "foo"; | 1271 o["x"] = "foo"; |
| 1248 o["y"] = "foo"; | 1272 o["y"] = "foo"; |
| 1249 return o; | 1273 return o; |
| 1250 } | 1274 } |
| 1251 | 1275 |
| 1252 checkUnnamed3302(core.Map<core.String, core.String> o) { | 1276 checkUnnamed3151(core.Map<core.String, core.String> o) { |
| 1253 unittest.expect(o, unittest.hasLength(2)); | 1277 unittest.expect(o, unittest.hasLength(2)); |
| 1254 unittest.expect(o["x"], unittest.equals('foo')); | 1278 unittest.expect(o["x"], unittest.equals('foo')); |
| 1255 unittest.expect(o["y"], unittest.equals('foo')); | 1279 unittest.expect(o["y"], unittest.equals('foo')); |
| 1256 } | 1280 } |
| 1257 | 1281 |
| 1258 buildUnnamed3303() { | 1282 buildUnnamed3152() { |
| 1259 var o = new core.Map<core.String, core.String>(); | 1283 var o = new core.Map<core.String, core.String>(); |
| 1260 o["x"] = "foo"; | 1284 o["x"] = "foo"; |
| 1261 o["y"] = "foo"; | 1285 o["y"] = "foo"; |
| 1262 return o; | 1286 return o; |
| 1263 } | 1287 } |
| 1264 | 1288 |
| 1265 checkUnnamed3303(core.Map<core.String, core.String> o) { | 1289 checkUnnamed3152(core.Map<core.String, core.String> o) { |
| 1266 unittest.expect(o, unittest.hasLength(2)); | 1290 unittest.expect(o, unittest.hasLength(2)); |
| 1267 unittest.expect(o["x"], unittest.equals('foo')); | 1291 unittest.expect(o["x"], unittest.equals('foo')); |
| 1268 unittest.expect(o["y"], unittest.equals('foo')); | 1292 unittest.expect(o["y"], unittest.equals('foo')); |
| 1269 } | 1293 } |
| 1270 | 1294 |
| 1271 core.int buildCounterPigJob = 0; | 1295 core.int buildCounterPigJob = 0; |
| 1272 buildPigJob() { | 1296 buildPigJob() { |
| 1273 var o = new api.PigJob(); | 1297 var o = new api.PigJob(); |
| 1274 buildCounterPigJob++; | 1298 buildCounterPigJob++; |
| 1275 if (buildCounterPigJob < 3) { | 1299 if (buildCounterPigJob < 3) { |
| 1276 o.continueOnFailure = true; | 1300 o.continueOnFailure = true; |
| 1277 o.jarFileUris = buildUnnamed3301(); | 1301 o.jarFileUris = buildUnnamed3150(); |
| 1278 o.loggingConfiguration = buildLoggingConfiguration(); | 1302 o.loggingConfiguration = buildLoggingConfiguration(); |
| 1279 o.properties = buildUnnamed3302(); | 1303 o.properties = buildUnnamed3151(); |
| 1280 o.queryFileUri = "foo"; | 1304 o.queryFileUri = "foo"; |
| 1281 o.queryList = buildQueryList(); | 1305 o.queryList = buildQueryList(); |
| 1282 o.scriptVariables = buildUnnamed3303(); | 1306 o.scriptVariables = buildUnnamed3152(); |
| 1283 } | 1307 } |
| 1284 buildCounterPigJob--; | 1308 buildCounterPigJob--; |
| 1285 return o; | 1309 return o; |
| 1286 } | 1310 } |
| 1287 | 1311 |
| 1288 checkPigJob(api.PigJob o) { | 1312 checkPigJob(api.PigJob o) { |
| 1289 buildCounterPigJob++; | 1313 buildCounterPigJob++; |
| 1290 if (buildCounterPigJob < 3) { | 1314 if (buildCounterPigJob < 3) { |
| 1291 unittest.expect(o.continueOnFailure, unittest.isTrue); | 1315 unittest.expect(o.continueOnFailure, unittest.isTrue); |
| 1292 checkUnnamed3301(o.jarFileUris); | 1316 checkUnnamed3150(o.jarFileUris); |
| 1293 checkLoggingConfiguration(o.loggingConfiguration); | 1317 checkLoggingConfiguration(o.loggingConfiguration); |
| 1294 checkUnnamed3302(o.properties); | 1318 checkUnnamed3151(o.properties); |
| 1295 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1319 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
| 1296 checkQueryList(o.queryList); | 1320 checkQueryList(o.queryList); |
| 1297 checkUnnamed3303(o.scriptVariables); | 1321 checkUnnamed3152(o.scriptVariables); |
| 1298 } | 1322 } |
| 1299 buildCounterPigJob--; | 1323 buildCounterPigJob--; |
| 1300 } | 1324 } |
| 1301 | 1325 |
| 1302 buildUnnamed3304() { | 1326 buildUnnamed3153() { |
| 1303 var o = new core.List<core.String>(); | 1327 var o = new core.List<core.String>(); |
| 1304 o.add("foo"); | 1328 o.add("foo"); |
| 1305 o.add("foo"); | 1329 o.add("foo"); |
| 1306 return o; | 1330 return o; |
| 1307 } | 1331 } |
| 1308 | 1332 |
| 1309 checkUnnamed3304(core.List<core.String> o) { | 1333 checkUnnamed3153(core.List<core.String> o) { |
| 1310 unittest.expect(o, unittest.hasLength(2)); | 1334 unittest.expect(o, unittest.hasLength(2)); |
| 1311 unittest.expect(o[0], unittest.equals('foo')); | 1335 unittest.expect(o[0], unittest.equals('foo')); |
| 1312 unittest.expect(o[1], unittest.equals('foo')); | 1336 unittest.expect(o[1], unittest.equals('foo')); |
| 1313 } | 1337 } |
| 1314 | 1338 |
| 1315 buildUnnamed3305() { | 1339 buildUnnamed3154() { |
| 1316 var o = new core.List<core.String>(); | 1340 var o = new core.List<core.String>(); |
| 1317 o.add("foo"); | 1341 o.add("foo"); |
| 1318 o.add("foo"); | 1342 o.add("foo"); |
| 1319 return o; | 1343 return o; |
| 1320 } | 1344 } |
| 1321 | 1345 |
| 1322 checkUnnamed3305(core.List<core.String> o) { | 1346 checkUnnamed3154(core.List<core.String> o) { |
| 1323 unittest.expect(o, unittest.hasLength(2)); | 1347 unittest.expect(o, unittest.hasLength(2)); |
| 1324 unittest.expect(o[0], unittest.equals('foo')); | 1348 unittest.expect(o[0], unittest.equals('foo')); |
| 1325 unittest.expect(o[1], unittest.equals('foo')); | 1349 unittest.expect(o[1], unittest.equals('foo')); |
| 1326 } | 1350 } |
| 1327 | 1351 |
| 1328 buildUnnamed3306() { | 1352 buildUnnamed3155() { |
| 1329 var o = new core.List<core.String>(); | 1353 var o = new core.List<core.String>(); |
| 1330 o.add("foo"); | 1354 o.add("foo"); |
| 1331 o.add("foo"); | 1355 o.add("foo"); |
| 1332 return o; | 1356 return o; |
| 1333 } | 1357 } |
| 1334 | 1358 |
| 1335 checkUnnamed3306(core.List<core.String> o) { | 1359 checkUnnamed3155(core.List<core.String> o) { |
| 1336 unittest.expect(o, unittest.hasLength(2)); | 1360 unittest.expect(o, unittest.hasLength(2)); |
| 1337 unittest.expect(o[0], unittest.equals('foo')); | 1361 unittest.expect(o[0], unittest.equals('foo')); |
| 1338 unittest.expect(o[1], unittest.equals('foo')); | 1362 unittest.expect(o[1], unittest.equals('foo')); |
| 1339 } | 1363 } |
| 1340 | 1364 |
| 1341 buildUnnamed3307() { | 1365 buildUnnamed3156() { |
| 1342 var o = new core.List<core.String>(); | 1366 var o = new core.List<core.String>(); |
| 1343 o.add("foo"); | 1367 o.add("foo"); |
| 1344 o.add("foo"); | 1368 o.add("foo"); |
| 1345 return o; | 1369 return o; |
| 1346 } | 1370 } |
| 1347 | 1371 |
| 1348 checkUnnamed3307(core.List<core.String> o) { | 1372 checkUnnamed3156(core.List<core.String> o) { |
| 1349 unittest.expect(o, unittest.hasLength(2)); | 1373 unittest.expect(o, unittest.hasLength(2)); |
| 1350 unittest.expect(o[0], unittest.equals('foo')); | 1374 unittest.expect(o[0], unittest.equals('foo')); |
| 1351 unittest.expect(o[1], unittest.equals('foo')); | 1375 unittest.expect(o[1], unittest.equals('foo')); |
| 1352 } | 1376 } |
| 1353 | 1377 |
| 1354 buildUnnamed3308() { | 1378 buildUnnamed3157() { |
| 1355 var o = new core.Map<core.String, core.String>(); | 1379 var o = new core.Map<core.String, core.String>(); |
| 1356 o["x"] = "foo"; | 1380 o["x"] = "foo"; |
| 1357 o["y"] = "foo"; | 1381 o["y"] = "foo"; |
| 1358 return o; | 1382 return o; |
| 1359 } | 1383 } |
| 1360 | 1384 |
| 1361 checkUnnamed3308(core.Map<core.String, core.String> o) { | 1385 checkUnnamed3157(core.Map<core.String, core.String> o) { |
| 1362 unittest.expect(o, unittest.hasLength(2)); | 1386 unittest.expect(o, unittest.hasLength(2)); |
| 1363 unittest.expect(o["x"], unittest.equals('foo')); | 1387 unittest.expect(o["x"], unittest.equals('foo')); |
| 1364 unittest.expect(o["y"], unittest.equals('foo')); | 1388 unittest.expect(o["y"], unittest.equals('foo')); |
| 1365 } | 1389 } |
| 1366 | 1390 |
| 1367 buildUnnamed3309() { | 1391 buildUnnamed3158() { |
| 1368 var o = new core.List<core.String>(); | 1392 var o = new core.List<core.String>(); |
| 1369 o.add("foo"); | 1393 o.add("foo"); |
| 1370 o.add("foo"); | 1394 o.add("foo"); |
| 1371 return o; | 1395 return o; |
| 1372 } | 1396 } |
| 1373 | 1397 |
| 1374 checkUnnamed3309(core.List<core.String> o) { | 1398 checkUnnamed3158(core.List<core.String> o) { |
| 1375 unittest.expect(o, unittest.hasLength(2)); | 1399 unittest.expect(o, unittest.hasLength(2)); |
| 1376 unittest.expect(o[0], unittest.equals('foo')); | 1400 unittest.expect(o[0], unittest.equals('foo')); |
| 1377 unittest.expect(o[1], unittest.equals('foo')); | 1401 unittest.expect(o[1], unittest.equals('foo')); |
| 1378 } | 1402 } |
| 1379 | 1403 |
| 1380 core.int buildCounterPySparkJob = 0; | 1404 core.int buildCounterPySparkJob = 0; |
| 1381 buildPySparkJob() { | 1405 buildPySparkJob() { |
| 1382 var o = new api.PySparkJob(); | 1406 var o = new api.PySparkJob(); |
| 1383 buildCounterPySparkJob++; | 1407 buildCounterPySparkJob++; |
| 1384 if (buildCounterPySparkJob < 3) { | 1408 if (buildCounterPySparkJob < 3) { |
| 1385 o.archiveUris = buildUnnamed3304(); | 1409 o.archiveUris = buildUnnamed3153(); |
| 1386 o.args = buildUnnamed3305(); | 1410 o.args = buildUnnamed3154(); |
| 1387 o.fileUris = buildUnnamed3306(); | 1411 o.fileUris = buildUnnamed3155(); |
| 1388 o.jarFileUris = buildUnnamed3307(); | 1412 o.jarFileUris = buildUnnamed3156(); |
| 1389 o.loggingConfiguration = buildLoggingConfiguration(); | 1413 o.loggingConfiguration = buildLoggingConfiguration(); |
| 1390 o.mainPythonFileUri = "foo"; | 1414 o.mainPythonFileUri = "foo"; |
| 1391 o.properties = buildUnnamed3308(); | 1415 o.properties = buildUnnamed3157(); |
| 1392 o.pythonFileUris = buildUnnamed3309(); | 1416 o.pythonFileUris = buildUnnamed3158(); |
| 1393 } | 1417 } |
| 1394 buildCounterPySparkJob--; | 1418 buildCounterPySparkJob--; |
| 1395 return o; | 1419 return o; |
| 1396 } | 1420 } |
| 1397 | 1421 |
| 1398 checkPySparkJob(api.PySparkJob o) { | 1422 checkPySparkJob(api.PySparkJob o) { |
| 1399 buildCounterPySparkJob++; | 1423 buildCounterPySparkJob++; |
| 1400 if (buildCounterPySparkJob < 3) { | 1424 if (buildCounterPySparkJob < 3) { |
| 1401 checkUnnamed3304(o.archiveUris); | 1425 checkUnnamed3153(o.archiveUris); |
| 1402 checkUnnamed3305(o.args); | 1426 checkUnnamed3154(o.args); |
| 1403 checkUnnamed3306(o.fileUris); | 1427 checkUnnamed3155(o.fileUris); |
| 1404 checkUnnamed3307(o.jarFileUris); | 1428 checkUnnamed3156(o.jarFileUris); |
| 1405 checkLoggingConfiguration(o.loggingConfiguration); | 1429 checkLoggingConfiguration(o.loggingConfiguration); |
| 1406 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); | 1430 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); |
| 1407 checkUnnamed3308(o.properties); | 1431 checkUnnamed3157(o.properties); |
| 1408 checkUnnamed3309(o.pythonFileUris); | 1432 checkUnnamed3158(o.pythonFileUris); |
| 1409 } | 1433 } |
| 1410 buildCounterPySparkJob--; | 1434 buildCounterPySparkJob--; |
| 1411 } | 1435 } |
| 1412 | 1436 |
| 1413 buildUnnamed3310() { | 1437 buildUnnamed3159() { |
| 1414 var o = new core.List<core.String>(); | 1438 var o = new core.List<core.String>(); |
| 1415 o.add("foo"); | 1439 o.add("foo"); |
| 1416 o.add("foo"); | 1440 o.add("foo"); |
| 1417 return o; | 1441 return o; |
| 1418 } | 1442 } |
| 1419 | 1443 |
| 1420 checkUnnamed3310(core.List<core.String> o) { | 1444 checkUnnamed3159(core.List<core.String> o) { |
| 1421 unittest.expect(o, unittest.hasLength(2)); | 1445 unittest.expect(o, unittest.hasLength(2)); |
| 1422 unittest.expect(o[0], unittest.equals('foo')); | 1446 unittest.expect(o[0], unittest.equals('foo')); |
| 1423 unittest.expect(o[1], unittest.equals('foo')); | 1447 unittest.expect(o[1], unittest.equals('foo')); |
| 1424 } | 1448 } |
| 1425 | 1449 |
| 1426 core.int buildCounterQueryList = 0; | 1450 core.int buildCounterQueryList = 0; |
| 1427 buildQueryList() { | 1451 buildQueryList() { |
| 1428 var o = new api.QueryList(); | 1452 var o = new api.QueryList(); |
| 1429 buildCounterQueryList++; | 1453 buildCounterQueryList++; |
| 1430 if (buildCounterQueryList < 3) { | 1454 if (buildCounterQueryList < 3) { |
| 1431 o.queries = buildUnnamed3310(); | 1455 o.queries = buildUnnamed3159(); |
| 1432 } | 1456 } |
| 1433 buildCounterQueryList--; | 1457 buildCounterQueryList--; |
| 1434 return o; | 1458 return o; |
| 1435 } | 1459 } |
| 1436 | 1460 |
| 1437 checkQueryList(api.QueryList o) { | 1461 checkQueryList(api.QueryList o) { |
| 1438 buildCounterQueryList++; | 1462 buildCounterQueryList++; |
| 1439 if (buildCounterQueryList < 3) { | 1463 if (buildCounterQueryList < 3) { |
| 1440 checkUnnamed3310(o.queries); | 1464 checkUnnamed3159(o.queries); |
| 1441 } | 1465 } |
| 1442 buildCounterQueryList--; | 1466 buildCounterQueryList--; |
| 1443 } | 1467 } |
| 1444 | 1468 |
| 1445 buildUnnamed3311() { | 1469 buildUnnamed3160() { |
| 1446 var o = new core.Map<core.String, core.String>(); | 1470 var o = new core.Map<core.String, core.String>(); |
| 1447 o["x"] = "foo"; | 1471 o["x"] = "foo"; |
| 1448 o["y"] = "foo"; | 1472 o["y"] = "foo"; |
| 1449 return o; | 1473 return o; |
| 1450 } | 1474 } |
| 1451 | 1475 |
| 1452 checkUnnamed3311(core.Map<core.String, core.String> o) { | 1476 checkUnnamed3160(core.Map<core.String, core.String> o) { |
| 1453 unittest.expect(o, unittest.hasLength(2)); | 1477 unittest.expect(o, unittest.hasLength(2)); |
| 1454 unittest.expect(o["x"], unittest.equals('foo')); | 1478 unittest.expect(o["x"], unittest.equals('foo')); |
| 1455 unittest.expect(o["y"], unittest.equals('foo')); | 1479 unittest.expect(o["y"], unittest.equals('foo')); |
| 1456 } | 1480 } |
| 1457 | 1481 |
| 1458 core.int buildCounterSoftwareConfiguration = 0; | 1482 core.int buildCounterSoftwareConfiguration = 0; |
| 1459 buildSoftwareConfiguration() { | 1483 buildSoftwareConfiguration() { |
| 1460 var o = new api.SoftwareConfiguration(); | 1484 var o = new api.SoftwareConfiguration(); |
| 1461 buildCounterSoftwareConfiguration++; | 1485 buildCounterSoftwareConfiguration++; |
| 1462 if (buildCounterSoftwareConfiguration < 3) { | 1486 if (buildCounterSoftwareConfiguration < 3) { |
| 1463 o.imageVersion = "foo"; | 1487 o.imageVersion = "foo"; |
| 1464 o.properties = buildUnnamed3311(); | 1488 o.properties = buildUnnamed3160(); |
| 1465 } | 1489 } |
| 1466 buildCounterSoftwareConfiguration--; | 1490 buildCounterSoftwareConfiguration--; |
| 1467 return o; | 1491 return o; |
| 1468 } | 1492 } |
| 1469 | 1493 |
| 1470 checkSoftwareConfiguration(api.SoftwareConfiguration o) { | 1494 checkSoftwareConfiguration(api.SoftwareConfiguration o) { |
| 1471 buildCounterSoftwareConfiguration++; | 1495 buildCounterSoftwareConfiguration++; |
| 1472 if (buildCounterSoftwareConfiguration < 3) { | 1496 if (buildCounterSoftwareConfiguration < 3) { |
| 1473 unittest.expect(o.imageVersion, unittest.equals('foo')); | 1497 unittest.expect(o.imageVersion, unittest.equals('foo')); |
| 1474 checkUnnamed3311(o.properties); | 1498 checkUnnamed3160(o.properties); |
| 1475 } | 1499 } |
| 1476 buildCounterSoftwareConfiguration--; | 1500 buildCounterSoftwareConfiguration--; |
| 1477 } | 1501 } |
| 1478 | 1502 |
| 1479 buildUnnamed3312() { | 1503 buildUnnamed3161() { |
| 1480 var o = new core.List<core.String>(); | 1504 var o = new core.List<core.String>(); |
| 1481 o.add("foo"); | 1505 o.add("foo"); |
| 1482 o.add("foo"); | 1506 o.add("foo"); |
| 1483 return o; | 1507 return o; |
| 1484 } | 1508 } |
| 1485 | 1509 |
| 1486 checkUnnamed3312(core.List<core.String> o) { | 1510 checkUnnamed3161(core.List<core.String> o) { |
| 1487 unittest.expect(o, unittest.hasLength(2)); | 1511 unittest.expect(o, unittest.hasLength(2)); |
| 1488 unittest.expect(o[0], unittest.equals('foo')); | 1512 unittest.expect(o[0], unittest.equals('foo')); |
| 1489 unittest.expect(o[1], unittest.equals('foo')); | 1513 unittest.expect(o[1], unittest.equals('foo')); |
| 1490 } | 1514 } |
| 1491 | 1515 |
| 1492 buildUnnamed3313() { | 1516 buildUnnamed3162() { |
| 1493 var o = new core.List<core.String>(); | 1517 var o = new core.List<core.String>(); |
| 1494 o.add("foo"); | 1518 o.add("foo"); |
| 1495 o.add("foo"); | 1519 o.add("foo"); |
| 1496 return o; | 1520 return o; |
| 1497 } | 1521 } |
| 1498 | 1522 |
| 1499 checkUnnamed3313(core.List<core.String> o) { | 1523 checkUnnamed3162(core.List<core.String> o) { |
| 1500 unittest.expect(o, unittest.hasLength(2)); | 1524 unittest.expect(o, unittest.hasLength(2)); |
| 1501 unittest.expect(o[0], unittest.equals('foo')); | 1525 unittest.expect(o[0], unittest.equals('foo')); |
| 1502 unittest.expect(o[1], unittest.equals('foo')); | 1526 unittest.expect(o[1], unittest.equals('foo')); |
| 1503 } | 1527 } |
| 1504 | 1528 |
| 1505 buildUnnamed3314() { | 1529 buildUnnamed3163() { |
| 1506 var o = new core.List<core.String>(); | 1530 var o = new core.List<core.String>(); |
| 1507 o.add("foo"); | 1531 o.add("foo"); |
| 1508 o.add("foo"); | 1532 o.add("foo"); |
| 1509 return o; | 1533 return o; |
| 1510 } | 1534 } |
| 1511 | 1535 |
| 1512 checkUnnamed3314(core.List<core.String> o) { | 1536 checkUnnamed3163(core.List<core.String> o) { |
| 1513 unittest.expect(o, unittest.hasLength(2)); | 1537 unittest.expect(o, unittest.hasLength(2)); |
| 1514 unittest.expect(o[0], unittest.equals('foo')); | 1538 unittest.expect(o[0], unittest.equals('foo')); |
| 1515 unittest.expect(o[1], unittest.equals('foo')); | 1539 unittest.expect(o[1], unittest.equals('foo')); |
| 1516 } | 1540 } |
| 1517 | 1541 |
| 1518 buildUnnamed3315() { | 1542 buildUnnamed3164() { |
| 1519 var o = new core.List<core.String>(); | 1543 var o = new core.List<core.String>(); |
| 1520 o.add("foo"); | 1544 o.add("foo"); |
| 1521 o.add("foo"); | 1545 o.add("foo"); |
| 1522 return o; | 1546 return o; |
| 1523 } | 1547 } |
| 1524 | 1548 |
| 1525 checkUnnamed3315(core.List<core.String> o) { | 1549 checkUnnamed3164(core.List<core.String> o) { |
| 1526 unittest.expect(o, unittest.hasLength(2)); | 1550 unittest.expect(o, unittest.hasLength(2)); |
| 1527 unittest.expect(o[0], unittest.equals('foo')); | 1551 unittest.expect(o[0], unittest.equals('foo')); |
| 1528 unittest.expect(o[1], unittest.equals('foo')); | 1552 unittest.expect(o[1], unittest.equals('foo')); |
| 1529 } | 1553 } |
| 1530 | 1554 |
| 1531 buildUnnamed3316() { | 1555 buildUnnamed3165() { |
| 1532 var o = new core.Map<core.String, core.String>(); | 1556 var o = new core.Map<core.String, core.String>(); |
| 1533 o["x"] = "foo"; | 1557 o["x"] = "foo"; |
| 1534 o["y"] = "foo"; | 1558 o["y"] = "foo"; |
| 1535 return o; | 1559 return o; |
| 1536 } | 1560 } |
| 1537 | 1561 |
| 1538 checkUnnamed3316(core.Map<core.String, core.String> o) { | 1562 checkUnnamed3165(core.Map<core.String, core.String> o) { |
| 1539 unittest.expect(o, unittest.hasLength(2)); | 1563 unittest.expect(o, unittest.hasLength(2)); |
| 1540 unittest.expect(o["x"], unittest.equals('foo')); | 1564 unittest.expect(o["x"], unittest.equals('foo')); |
| 1541 unittest.expect(o["y"], unittest.equals('foo')); | 1565 unittest.expect(o["y"], unittest.equals('foo')); |
| 1542 } | 1566 } |
| 1543 | 1567 |
| 1544 core.int buildCounterSparkJob = 0; | 1568 core.int buildCounterSparkJob = 0; |
| 1545 buildSparkJob() { | 1569 buildSparkJob() { |
| 1546 var o = new api.SparkJob(); | 1570 var o = new api.SparkJob(); |
| 1547 buildCounterSparkJob++; | 1571 buildCounterSparkJob++; |
| 1548 if (buildCounterSparkJob < 3) { | 1572 if (buildCounterSparkJob < 3) { |
| 1549 o.archiveUris = buildUnnamed3312(); | 1573 o.archiveUris = buildUnnamed3161(); |
| 1550 o.args = buildUnnamed3313(); | 1574 o.args = buildUnnamed3162(); |
| 1551 o.fileUris = buildUnnamed3314(); | 1575 o.fileUris = buildUnnamed3163(); |
| 1552 o.jarFileUris = buildUnnamed3315(); | 1576 o.jarFileUris = buildUnnamed3164(); |
| 1553 o.loggingConfiguration = buildLoggingConfiguration(); | 1577 o.loggingConfiguration = buildLoggingConfiguration(); |
| 1554 o.mainClass = "foo"; | 1578 o.mainClass = "foo"; |
| 1555 o.mainJarFileUri = "foo"; | 1579 o.mainJarFileUri = "foo"; |
| 1556 o.properties = buildUnnamed3316(); | 1580 o.properties = buildUnnamed3165(); |
| 1557 } | 1581 } |
| 1558 buildCounterSparkJob--; | 1582 buildCounterSparkJob--; |
| 1559 return o; | 1583 return o; |
| 1560 } | 1584 } |
| 1561 | 1585 |
| 1562 checkSparkJob(api.SparkJob o) { | 1586 checkSparkJob(api.SparkJob o) { |
| 1563 buildCounterSparkJob++; | 1587 buildCounterSparkJob++; |
| 1564 if (buildCounterSparkJob < 3) { | 1588 if (buildCounterSparkJob < 3) { |
| 1565 checkUnnamed3312(o.archiveUris); | 1589 checkUnnamed3161(o.archiveUris); |
| 1566 checkUnnamed3313(o.args); | 1590 checkUnnamed3162(o.args); |
| 1567 checkUnnamed3314(o.fileUris); | 1591 checkUnnamed3163(o.fileUris); |
| 1568 checkUnnamed3315(o.jarFileUris); | 1592 checkUnnamed3164(o.jarFileUris); |
| 1569 checkLoggingConfiguration(o.loggingConfiguration); | 1593 checkLoggingConfiguration(o.loggingConfiguration); |
| 1570 unittest.expect(o.mainClass, unittest.equals('foo')); | 1594 unittest.expect(o.mainClass, unittest.equals('foo')); |
| 1571 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 1595 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
| 1572 checkUnnamed3316(o.properties); | 1596 checkUnnamed3165(o.properties); |
| 1573 } | 1597 } |
| 1574 buildCounterSparkJob--; | 1598 buildCounterSparkJob--; |
| 1575 } | 1599 } |
| 1576 | 1600 |
| 1577 buildUnnamed3317() { | 1601 buildUnnamed3166() { |
| 1578 var o = new core.List<core.String>(); | 1602 var o = new core.List<core.String>(); |
| 1579 o.add("foo"); | 1603 o.add("foo"); |
| 1580 o.add("foo"); | 1604 o.add("foo"); |
| 1581 return o; | 1605 return o; |
| 1582 } | 1606 } |
| 1583 | 1607 |
| 1584 checkUnnamed3317(core.List<core.String> o) { | 1608 checkUnnamed3166(core.List<core.String> o) { |
| 1585 unittest.expect(o, unittest.hasLength(2)); | 1609 unittest.expect(o, unittest.hasLength(2)); |
| 1586 unittest.expect(o[0], unittest.equals('foo')); | 1610 unittest.expect(o[0], unittest.equals('foo')); |
| 1587 unittest.expect(o[1], unittest.equals('foo')); | 1611 unittest.expect(o[1], unittest.equals('foo')); |
| 1588 } | 1612 } |
| 1589 | 1613 |
| 1590 buildUnnamed3318() { | 1614 buildUnnamed3167() { |
| 1591 var o = new core.Map<core.String, core.String>(); | 1615 var o = new core.Map<core.String, core.String>(); |
| 1592 o["x"] = "foo"; | 1616 o["x"] = "foo"; |
| 1593 o["y"] = "foo"; | 1617 o["y"] = "foo"; |
| 1594 return o; | 1618 return o; |
| 1595 } | 1619 } |
| 1596 | 1620 |
| 1597 checkUnnamed3318(core.Map<core.String, core.String> o) { | 1621 checkUnnamed3167(core.Map<core.String, core.String> o) { |
| 1598 unittest.expect(o, unittest.hasLength(2)); | 1622 unittest.expect(o, unittest.hasLength(2)); |
| 1599 unittest.expect(o["x"], unittest.equals('foo')); | 1623 unittest.expect(o["x"], unittest.equals('foo')); |
| 1600 unittest.expect(o["y"], unittest.equals('foo')); | 1624 unittest.expect(o["y"], unittest.equals('foo')); |
| 1601 } | 1625 } |
| 1602 | 1626 |
| 1603 buildUnnamed3319() { | 1627 buildUnnamed3168() { |
| 1604 var o = new core.Map<core.String, core.String>(); | 1628 var o = new core.Map<core.String, core.String>(); |
| 1605 o["x"] = "foo"; | 1629 o["x"] = "foo"; |
| 1606 o["y"] = "foo"; | 1630 o["y"] = "foo"; |
| 1607 return o; | 1631 return o; |
| 1608 } | 1632 } |
| 1609 | 1633 |
| 1610 checkUnnamed3319(core.Map<core.String, core.String> o) { | 1634 checkUnnamed3168(core.Map<core.String, core.String> o) { |
| 1611 unittest.expect(o, unittest.hasLength(2)); | 1635 unittest.expect(o, unittest.hasLength(2)); |
| 1612 unittest.expect(o["x"], unittest.equals('foo')); | 1636 unittest.expect(o["x"], unittest.equals('foo')); |
| 1613 unittest.expect(o["y"], unittest.equals('foo')); | 1637 unittest.expect(o["y"], unittest.equals('foo')); |
| 1614 } | 1638 } |
| 1615 | 1639 |
| 1616 core.int buildCounterSparkSqlJob = 0; | 1640 core.int buildCounterSparkSqlJob = 0; |
| 1617 buildSparkSqlJob() { | 1641 buildSparkSqlJob() { |
| 1618 var o = new api.SparkSqlJob(); | 1642 var o = new api.SparkSqlJob(); |
| 1619 buildCounterSparkSqlJob++; | 1643 buildCounterSparkSqlJob++; |
| 1620 if (buildCounterSparkSqlJob < 3) { | 1644 if (buildCounterSparkSqlJob < 3) { |
| 1621 o.jarFileUris = buildUnnamed3317(); | 1645 o.jarFileUris = buildUnnamed3166(); |
| 1622 o.loggingConfiguration = buildLoggingConfiguration(); | 1646 o.loggingConfiguration = buildLoggingConfiguration(); |
| 1623 o.properties = buildUnnamed3318(); | 1647 o.properties = buildUnnamed3167(); |
| 1624 o.queryFileUri = "foo"; | 1648 o.queryFileUri = "foo"; |
| 1625 o.queryList = buildQueryList(); | 1649 o.queryList = buildQueryList(); |
| 1626 o.scriptVariables = buildUnnamed3319(); | 1650 o.scriptVariables = buildUnnamed3168(); |
| 1627 } | 1651 } |
| 1628 buildCounterSparkSqlJob--; | 1652 buildCounterSparkSqlJob--; |
| 1629 return o; | 1653 return o; |
| 1630 } | 1654 } |
| 1631 | 1655 |
| 1632 checkSparkSqlJob(api.SparkSqlJob o) { | 1656 checkSparkSqlJob(api.SparkSqlJob o) { |
| 1633 buildCounterSparkSqlJob++; | 1657 buildCounterSparkSqlJob++; |
| 1634 if (buildCounterSparkSqlJob < 3) { | 1658 if (buildCounterSparkSqlJob < 3) { |
| 1635 checkUnnamed3317(o.jarFileUris); | 1659 checkUnnamed3166(o.jarFileUris); |
| 1636 checkLoggingConfiguration(o.loggingConfiguration); | 1660 checkLoggingConfiguration(o.loggingConfiguration); |
| 1637 checkUnnamed3318(o.properties); | 1661 checkUnnamed3167(o.properties); |
| 1638 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1662 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
| 1639 checkQueryList(o.queryList); | 1663 checkQueryList(o.queryList); |
| 1640 checkUnnamed3319(o.scriptVariables); | 1664 checkUnnamed3168(o.scriptVariables); |
| 1641 } | 1665 } |
| 1642 buildCounterSparkSqlJob--; | 1666 buildCounterSparkSqlJob--; |
| 1643 } | 1667 } |
| 1644 | 1668 |
| 1645 buildUnnamed3320() { | 1669 buildUnnamed3169() { |
| 1646 var o = new core.Map<core.String, core.Object>(); | 1670 var o = new core.Map<core.String, core.Object>(); |
| 1647 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1671 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1648 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1672 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1649 return o; | 1673 return o; |
| 1650 } | 1674 } |
| 1651 | 1675 |
| 1652 checkUnnamed3320(core.Map<core.String, core.Object> o) { | 1676 checkUnnamed3169(core.Map<core.String, core.Object> o) { |
| 1653 unittest.expect(o, unittest.hasLength(2)); | 1677 unittest.expect(o, unittest.hasLength(2)); |
| 1654 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); | 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')); |
| 1655 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); | 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')); |
| 1656 } | 1680 } |
| 1657 | 1681 |
| 1658 buildUnnamed3321() { | 1682 buildUnnamed3170() { |
| 1659 var o = new core.List<core.Map<core.String, core.Object>>(); | 1683 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 1660 o.add(buildUnnamed3320()); | 1684 o.add(buildUnnamed3169()); |
| 1661 o.add(buildUnnamed3320()); | 1685 o.add(buildUnnamed3169()); |
| 1662 return o; | 1686 return o; |
| 1663 } | 1687 } |
| 1664 | 1688 |
| 1665 checkUnnamed3321(core.List<core.Map<core.String, core.Object>> o) { | 1689 checkUnnamed3170(core.List<core.Map<core.String, core.Object>> o) { |
| 1666 unittest.expect(o, unittest.hasLength(2)); | 1690 unittest.expect(o, unittest.hasLength(2)); |
| 1667 checkUnnamed3320(o[0]); | 1691 checkUnnamed3169(o[0]); |
| 1668 checkUnnamed3320(o[1]); | 1692 checkUnnamed3169(o[1]); |
| 1669 } | 1693 } |
| 1670 | 1694 |
| 1671 core.int buildCounterStatus = 0; | 1695 core.int buildCounterStatus = 0; |
| 1672 buildStatus() { | 1696 buildStatus() { |
| 1673 var o = new api.Status(); | 1697 var o = new api.Status(); |
| 1674 buildCounterStatus++; | 1698 buildCounterStatus++; |
| 1675 if (buildCounterStatus < 3) { | 1699 if (buildCounterStatus < 3) { |
| 1676 o.code = 42; | 1700 o.code = 42; |
| 1677 o.details = buildUnnamed3321(); | 1701 o.details = buildUnnamed3170(); |
| 1678 o.message = "foo"; | 1702 o.message = "foo"; |
| 1679 } | 1703 } |
| 1680 buildCounterStatus--; | 1704 buildCounterStatus--; |
| 1681 return o; | 1705 return o; |
| 1682 } | 1706 } |
| 1683 | 1707 |
| 1684 checkStatus(api.Status o) { | 1708 checkStatus(api.Status o) { |
| 1685 buildCounterStatus++; | 1709 buildCounterStatus++; |
| 1686 if (buildCounterStatus < 3) { | 1710 if (buildCounterStatus < 3) { |
| 1687 unittest.expect(o.code, unittest.equals(42)); | 1711 unittest.expect(o.code, unittest.equals(42)); |
| 1688 checkUnnamed3321(o.details); | 1712 checkUnnamed3170(o.details); |
| 1689 unittest.expect(o.message, unittest.equals('foo')); | 1713 unittest.expect(o.message, unittest.equals('foo')); |
| 1690 } | 1714 } |
| 1691 buildCounterStatus--; | 1715 buildCounterStatus--; |
| 1692 } | 1716 } |
| 1693 | 1717 |
| 1694 core.int buildCounterSubmitJobRequest = 0; | 1718 core.int buildCounterSubmitJobRequest = 0; |
| 1695 buildSubmitJobRequest() { | 1719 buildSubmitJobRequest() { |
| 1696 var o = new api.SubmitJobRequest(); | 1720 var o = new api.SubmitJobRequest(); |
| 1697 buildCounterSubmitJobRequest++; | 1721 buildCounterSubmitJobRequest++; |
| 1698 if (buildCounterSubmitJobRequest < 3) { | 1722 if (buildCounterSubmitJobRequest < 3) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1730 unittest.expect(o.name, unittest.equals('foo')); | 1754 unittest.expect(o.name, unittest.equals('foo')); |
| 1731 unittest.expect(o.progress, unittest.equals(42.0)); | 1755 unittest.expect(o.progress, unittest.equals(42.0)); |
| 1732 unittest.expect(o.state, unittest.equals('foo')); | 1756 unittest.expect(o.state, unittest.equals('foo')); |
| 1733 unittest.expect(o.trackingUrl, unittest.equals('foo')); | 1757 unittest.expect(o.trackingUrl, unittest.equals('foo')); |
| 1734 } | 1758 } |
| 1735 buildCounterYarnApplication--; | 1759 buildCounterYarnApplication--; |
| 1736 } | 1760 } |
| 1737 | 1761 |
| 1738 | 1762 |
| 1739 main() { | 1763 main() { |
| 1764 unittest.group("obj-schema-AcceleratorConfiguration", () { |
| 1765 unittest.test("to-json--from-json", () { |
| 1766 var o = buildAcceleratorConfiguration(); |
| 1767 var od = new api.AcceleratorConfiguration.fromJson(o.toJson()); |
| 1768 checkAcceleratorConfiguration(od); |
| 1769 }); |
| 1770 }); |
| 1771 |
| 1772 |
| 1740 unittest.group("obj-schema-CancelJobRequest", () { | 1773 unittest.group("obj-schema-CancelJobRequest", () { |
| 1741 unittest.test("to-json--from-json", () { | 1774 unittest.test("to-json--from-json", () { |
| 1742 var o = buildCancelJobRequest(); | 1775 var o = buildCancelJobRequest(); |
| 1743 var od = new api.CancelJobRequest.fromJson(o.toJson()); | 1776 var od = new api.CancelJobRequest.fromJson(o.toJson()); |
| 1744 checkCancelJobRequest(od); | 1777 checkCancelJobRequest(od); |
| 1745 }); | 1778 }); |
| 1746 }); | 1779 }); |
| 1747 | 1780 |
| 1748 | 1781 |
| 1749 unittest.group("obj-schema-CancelOperationRequest", () { | 1782 unittest.group("obj-schema-CancelOperationRequest", () { |
| (...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2813 res.get(arg_projectId, arg_jobId).then(unittest.expectAsync(((api.Job resp
onse) { | 2846 res.get(arg_projectId, arg_jobId).then(unittest.expectAsync(((api.Job resp
onse) { |
| 2814 checkJob(response); | 2847 checkJob(response); |
| 2815 }))); | 2848 }))); |
| 2816 }); | 2849 }); |
| 2817 | 2850 |
| 2818 unittest.test("method--list", () { | 2851 unittest.test("method--list", () { |
| 2819 | 2852 |
| 2820 var mock = new HttpServerMock(); | 2853 var mock = new HttpServerMock(); |
| 2821 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; | 2854 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; |
| 2822 var arg_projectId = "foo"; | 2855 var arg_projectId = "foo"; |
| 2856 var arg_filter = "foo"; |
| 2857 var arg_jobStateMatcher = "foo"; |
| 2823 var arg_pageToken = "foo"; | 2858 var arg_pageToken = "foo"; |
| 2824 var arg_pageSize = 42; | 2859 var arg_pageSize = 42; |
| 2825 var arg_clusterName = "foo"; | 2860 var arg_clusterName = "foo"; |
| 2826 var arg_filter = "foo"; | |
| 2827 var arg_jobStateMatcher = "foo"; | |
| 2828 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2861 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2829 var path = (req.url).path; | 2862 var path = (req.url).path; |
| 2830 var pathOffset = 0; | 2863 var pathOffset = 0; |
| 2831 var index; | 2864 var index; |
| 2832 var subPart; | 2865 var subPart; |
| 2833 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2866 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2834 pathOffset += 1; | 2867 pathOffset += 1; |
| 2835 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); | 2868 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); |
| 2836 pathOffset += 17; | 2869 pathOffset += 17; |
| 2837 index = path.indexOf("/jobs", pathOffset); | 2870 index = path.indexOf("/jobs", pathOffset); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 2851 if (n == "false") return false; | 2884 if (n == "false") return false; |
| 2852 if (n == null) return null; | 2885 if (n == null) return null; |
| 2853 throw new core.ArgumentError("Invalid boolean: $n"); | 2886 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2854 } | 2887 } |
| 2855 if (query.length > 0) { | 2888 if (query.length > 0) { |
| 2856 for (var part in query.split("&")) { | 2889 for (var part in query.split("&")) { |
| 2857 var keyvalue = part.split("="); | 2890 var keyvalue = part.split("="); |
| 2858 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2891 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2859 } | 2892 } |
| 2860 } | 2893 } |
| 2894 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 2895 unittest.expect(queryMap["jobStateMatcher"].first, unittest.equals(arg_j
obStateMatcher)); |
| 2861 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2896 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2862 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2897 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 2863 unittest.expect(queryMap["clusterName"].first, unittest.equals(arg_clust
erName)); | 2898 unittest.expect(queryMap["clusterName"].first, unittest.equals(arg_clust
erName)); |
| 2864 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
| 2865 unittest.expect(queryMap["jobStateMatcher"].first, unittest.equals(arg_j
obStateMatcher)); | |
| 2866 | 2899 |
| 2867 | 2900 |
| 2868 var h = { | 2901 var h = { |
| 2869 "content-type" : "application/json; charset=utf-8", | 2902 "content-type" : "application/json; charset=utf-8", |
| 2870 }; | 2903 }; |
| 2871 var resp = convert.JSON.encode(buildListJobsResponse()); | 2904 var resp = convert.JSON.encode(buildListJobsResponse()); |
| 2872 return new async.Future.value(stringResponse(200, h, resp)); | 2905 return new async.Future.value(stringResponse(200, h, resp)); |
| 2873 }), true); | 2906 }), true); |
| 2874 res.list(arg_projectId, pageToken: arg_pageToken, pageSize: arg_pageSize,
clusterName: arg_clusterName, filter: arg_filter, jobStateMatcher: arg_jobStateM
atcher).then(unittest.expectAsync(((api.ListJobsResponse response) { | 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) { |
| 2875 checkListJobsResponse(response); | 2908 checkListJobsResponse(response); |
| 2876 }))); | 2909 }))); |
| 2877 }); | 2910 }); |
| 2878 | 2911 |
| 2879 unittest.test("method--patch", () { | 2912 unittest.test("method--patch", () { |
| 2880 | 2913 |
| 2881 var mock = new HttpServerMock(); | 2914 var mock = new HttpServerMock(); |
| 2882 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; | 2915 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; |
| 2883 var arg_request = buildJob(); | 2916 var arg_request = buildJob(); |
| 2884 var arg_projectId = "foo"; | 2917 var arg_projectId = "foo"; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2990 res.submit(arg_request, arg_projectId).then(unittest.expectAsync(((api.Job
response) { | 3023 res.submit(arg_request, arg_projectId).then(unittest.expectAsync(((api.Job
response) { |
| 2991 checkJob(response); | 3024 checkJob(response); |
| 2992 }))); | 3025 }))); |
| 2993 }); | 3026 }); |
| 2994 | 3027 |
| 2995 }); | 3028 }); |
| 2996 | 3029 |
| 2997 | 3030 |
| 2998 } | 3031 } |
| 2999 | 3032 |
| OLD | NEW |