| OLD | NEW |
| 1 library googleapis.dataproc.v1.test; | 1 library googleapis.dataproc.v1.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 return o; | 61 return o; |
| 62 } | 62 } |
| 63 | 63 |
| 64 checkCancelJobRequest(api.CancelJobRequest o) { | 64 checkCancelJobRequest(api.CancelJobRequest o) { |
| 65 buildCounterCancelJobRequest++; | 65 buildCounterCancelJobRequest++; |
| 66 if (buildCounterCancelJobRequest < 3) { | 66 if (buildCounterCancelJobRequest < 3) { |
| 67 } | 67 } |
| 68 buildCounterCancelJobRequest--; | 68 buildCounterCancelJobRequest--; |
| 69 } | 69 } |
| 70 | 70 |
| 71 buildUnnamed427() { | 71 buildUnnamed429() { |
| 72 var o = new core.Map<core.String, core.String>(); | 72 var o = new core.Map<core.String, core.String>(); |
| 73 o["x"] = "foo"; | 73 o["x"] = "foo"; |
| 74 o["y"] = "foo"; | 74 o["y"] = "foo"; |
| 75 return o; | 75 return o; |
| 76 } | 76 } |
| 77 | 77 |
| 78 checkUnnamed427(core.Map<core.String, core.String> o) { | 78 checkUnnamed429(core.Map<core.String, core.String> o) { |
| 79 unittest.expect(o, unittest.hasLength(2)); | 79 unittest.expect(o, unittest.hasLength(2)); |
| 80 unittest.expect(o["x"], unittest.equals('foo')); | 80 unittest.expect(o["x"], unittest.equals('foo')); |
| 81 unittest.expect(o["y"], unittest.equals('foo')); | 81 unittest.expect(o["y"], unittest.equals('foo')); |
| 82 } | 82 } |
| 83 | 83 |
| 84 buildUnnamed428() { | 84 buildUnnamed430() { |
| 85 var o = new core.List<api.ClusterStatus>(); | 85 var o = new core.List<api.ClusterStatus>(); |
| 86 o.add(buildClusterStatus()); | 86 o.add(buildClusterStatus()); |
| 87 o.add(buildClusterStatus()); | 87 o.add(buildClusterStatus()); |
| 88 return o; | 88 return o; |
| 89 } | 89 } |
| 90 | 90 |
| 91 checkUnnamed428(core.List<api.ClusterStatus> o) { | 91 checkUnnamed430(core.List<api.ClusterStatus> o) { |
| 92 unittest.expect(o, unittest.hasLength(2)); | 92 unittest.expect(o, unittest.hasLength(2)); |
| 93 checkClusterStatus(o[0]); | 93 checkClusterStatus(o[0]); |
| 94 checkClusterStatus(o[1]); | 94 checkClusterStatus(o[1]); |
| 95 } | 95 } |
| 96 | 96 |
| 97 core.int buildCounterCluster = 0; | 97 core.int buildCounterCluster = 0; |
| 98 buildCluster() { | 98 buildCluster() { |
| 99 var o = new api.Cluster(); | 99 var o = new api.Cluster(); |
| 100 buildCounterCluster++; | 100 buildCounterCluster++; |
| 101 if (buildCounterCluster < 3) { | 101 if (buildCounterCluster < 3) { |
| 102 o.clusterName = "foo"; | 102 o.clusterName = "foo"; |
| 103 o.clusterUuid = "foo"; | 103 o.clusterUuid = "foo"; |
| 104 o.config = buildClusterConfig(); | 104 o.config = buildClusterConfig(); |
| 105 o.labels = buildUnnamed427(); | 105 o.labels = buildUnnamed429(); |
| 106 o.metrics = buildClusterMetrics(); | 106 o.metrics = buildClusterMetrics(); |
| 107 o.projectId = "foo"; | 107 o.projectId = "foo"; |
| 108 o.status = buildClusterStatus(); | 108 o.status = buildClusterStatus(); |
| 109 o.statusHistory = buildUnnamed428(); | 109 o.statusHistory = buildUnnamed430(); |
| 110 } | 110 } |
| 111 buildCounterCluster--; | 111 buildCounterCluster--; |
| 112 return o; | 112 return o; |
| 113 } | 113 } |
| 114 | 114 |
| 115 checkCluster(api.Cluster o) { | 115 checkCluster(api.Cluster o) { |
| 116 buildCounterCluster++; | 116 buildCounterCluster++; |
| 117 if (buildCounterCluster < 3) { | 117 if (buildCounterCluster < 3) { |
| 118 unittest.expect(o.clusterName, unittest.equals('foo')); | 118 unittest.expect(o.clusterName, unittest.equals('foo')); |
| 119 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 119 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
| 120 checkClusterConfig(o.config); | 120 checkClusterConfig(o.config); |
| 121 checkUnnamed427(o.labels); | 121 checkUnnamed429(o.labels); |
| 122 checkClusterMetrics(o.metrics); | 122 checkClusterMetrics(o.metrics); |
| 123 unittest.expect(o.projectId, unittest.equals('foo')); | 123 unittest.expect(o.projectId, unittest.equals('foo')); |
| 124 checkClusterStatus(o.status); | 124 checkClusterStatus(o.status); |
| 125 checkUnnamed428(o.statusHistory); | 125 checkUnnamed430(o.statusHistory); |
| 126 } | 126 } |
| 127 buildCounterCluster--; | 127 buildCounterCluster--; |
| 128 } | 128 } |
| 129 | 129 |
| 130 buildUnnamed429() { | 130 buildUnnamed431() { |
| 131 var o = new core.List<api.NodeInitializationAction>(); | 131 var o = new core.List<api.NodeInitializationAction>(); |
| 132 o.add(buildNodeInitializationAction()); | 132 o.add(buildNodeInitializationAction()); |
| 133 o.add(buildNodeInitializationAction()); | 133 o.add(buildNodeInitializationAction()); |
| 134 return o; | 134 return o; |
| 135 } | 135 } |
| 136 | 136 |
| 137 checkUnnamed429(core.List<api.NodeInitializationAction> o) { | 137 checkUnnamed431(core.List<api.NodeInitializationAction> o) { |
| 138 unittest.expect(o, unittest.hasLength(2)); | 138 unittest.expect(o, unittest.hasLength(2)); |
| 139 checkNodeInitializationAction(o[0]); | 139 checkNodeInitializationAction(o[0]); |
| 140 checkNodeInitializationAction(o[1]); | 140 checkNodeInitializationAction(o[1]); |
| 141 } | 141 } |
| 142 | 142 |
| 143 core.int buildCounterClusterConfig = 0; | 143 core.int buildCounterClusterConfig = 0; |
| 144 buildClusterConfig() { | 144 buildClusterConfig() { |
| 145 var o = new api.ClusterConfig(); | 145 var o = new api.ClusterConfig(); |
| 146 buildCounterClusterConfig++; | 146 buildCounterClusterConfig++; |
| 147 if (buildCounterClusterConfig < 3) { | 147 if (buildCounterClusterConfig < 3) { |
| 148 o.configBucket = "foo"; | 148 o.configBucket = "foo"; |
| 149 o.gceClusterConfig = buildGceClusterConfig(); | 149 o.gceClusterConfig = buildGceClusterConfig(); |
| 150 o.initializationActions = buildUnnamed429(); | 150 o.initializationActions = buildUnnamed431(); |
| 151 o.masterConfig = buildInstanceGroupConfig(); | 151 o.masterConfig = buildInstanceGroupConfig(); |
| 152 o.secondaryWorkerConfig = buildInstanceGroupConfig(); | 152 o.secondaryWorkerConfig = buildInstanceGroupConfig(); |
| 153 o.softwareConfig = buildSoftwareConfig(); | 153 o.softwareConfig = buildSoftwareConfig(); |
| 154 o.workerConfig = buildInstanceGroupConfig(); | 154 o.workerConfig = buildInstanceGroupConfig(); |
| 155 } | 155 } |
| 156 buildCounterClusterConfig--; | 156 buildCounterClusterConfig--; |
| 157 return o; | 157 return o; |
| 158 } | 158 } |
| 159 | 159 |
| 160 checkClusterConfig(api.ClusterConfig o) { | 160 checkClusterConfig(api.ClusterConfig o) { |
| 161 buildCounterClusterConfig++; | 161 buildCounterClusterConfig++; |
| 162 if (buildCounterClusterConfig < 3) { | 162 if (buildCounterClusterConfig < 3) { |
| 163 unittest.expect(o.configBucket, unittest.equals('foo')); | 163 unittest.expect(o.configBucket, unittest.equals('foo')); |
| 164 checkGceClusterConfig(o.gceClusterConfig); | 164 checkGceClusterConfig(o.gceClusterConfig); |
| 165 checkUnnamed429(o.initializationActions); | 165 checkUnnamed431(o.initializationActions); |
| 166 checkInstanceGroupConfig(o.masterConfig); | 166 checkInstanceGroupConfig(o.masterConfig); |
| 167 checkInstanceGroupConfig(o.secondaryWorkerConfig); | 167 checkInstanceGroupConfig(o.secondaryWorkerConfig); |
| 168 checkSoftwareConfig(o.softwareConfig); | 168 checkSoftwareConfig(o.softwareConfig); |
| 169 checkInstanceGroupConfig(o.workerConfig); | 169 checkInstanceGroupConfig(o.workerConfig); |
| 170 } | 170 } |
| 171 buildCounterClusterConfig--; | 171 buildCounterClusterConfig--; |
| 172 } | 172 } |
| 173 | 173 |
| 174 buildUnnamed430() { | 174 buildUnnamed432() { |
| 175 var o = new core.Map<core.String, core.String>(); | 175 var o = new core.Map<core.String, core.String>(); |
| 176 o["x"] = "foo"; | 176 o["x"] = "foo"; |
| 177 o["y"] = "foo"; | 177 o["y"] = "foo"; |
| 178 return o; | 178 return o; |
| 179 } | 179 } |
| 180 | 180 |
| 181 checkUnnamed430(core.Map<core.String, core.String> o) { | 181 checkUnnamed432(core.Map<core.String, core.String> o) { |
| 182 unittest.expect(o, unittest.hasLength(2)); | 182 unittest.expect(o, unittest.hasLength(2)); |
| 183 unittest.expect(o["x"], unittest.equals('foo')); | 183 unittest.expect(o["x"], unittest.equals('foo')); |
| 184 unittest.expect(o["y"], unittest.equals('foo')); | 184 unittest.expect(o["y"], unittest.equals('foo')); |
| 185 } | 185 } |
| 186 | 186 |
| 187 buildUnnamed431() { | 187 buildUnnamed433() { |
| 188 var o = new core.Map<core.String, core.String>(); | 188 var o = new core.Map<core.String, core.String>(); |
| 189 o["x"] = "foo"; | 189 o["x"] = "foo"; |
| 190 o["y"] = "foo"; | 190 o["y"] = "foo"; |
| 191 return o; | 191 return o; |
| 192 } | 192 } |
| 193 | 193 |
| 194 checkUnnamed431(core.Map<core.String, core.String> o) { | 194 checkUnnamed433(core.Map<core.String, core.String> o) { |
| 195 unittest.expect(o, unittest.hasLength(2)); | 195 unittest.expect(o, unittest.hasLength(2)); |
| 196 unittest.expect(o["x"], unittest.equals('foo')); | 196 unittest.expect(o["x"], unittest.equals('foo')); |
| 197 unittest.expect(o["y"], unittest.equals('foo')); | 197 unittest.expect(o["y"], unittest.equals('foo')); |
| 198 } | 198 } |
| 199 | 199 |
| 200 core.int buildCounterClusterMetrics = 0; | 200 core.int buildCounterClusterMetrics = 0; |
| 201 buildClusterMetrics() { | 201 buildClusterMetrics() { |
| 202 var o = new api.ClusterMetrics(); | 202 var o = new api.ClusterMetrics(); |
| 203 buildCounterClusterMetrics++; | 203 buildCounterClusterMetrics++; |
| 204 if (buildCounterClusterMetrics < 3) { | 204 if (buildCounterClusterMetrics < 3) { |
| 205 o.hdfsMetrics = buildUnnamed430(); | 205 o.hdfsMetrics = buildUnnamed432(); |
| 206 o.yarnMetrics = buildUnnamed431(); | 206 o.yarnMetrics = buildUnnamed433(); |
| 207 } | 207 } |
| 208 buildCounterClusterMetrics--; | 208 buildCounterClusterMetrics--; |
| 209 return o; | 209 return o; |
| 210 } | 210 } |
| 211 | 211 |
| 212 checkClusterMetrics(api.ClusterMetrics o) { | 212 checkClusterMetrics(api.ClusterMetrics o) { |
| 213 buildCounterClusterMetrics++; | 213 buildCounterClusterMetrics++; |
| 214 if (buildCounterClusterMetrics < 3) { | 214 if (buildCounterClusterMetrics < 3) { |
| 215 checkUnnamed430(o.hdfsMetrics); | 215 checkUnnamed432(o.hdfsMetrics); |
| 216 checkUnnamed431(o.yarnMetrics); | 216 checkUnnamed433(o.yarnMetrics); |
| 217 } | 217 } |
| 218 buildCounterClusterMetrics--; | 218 buildCounterClusterMetrics--; |
| 219 } | 219 } |
| 220 | 220 |
| 221 buildUnnamed432() { | 221 buildUnnamed434() { |
| 222 var o = new core.Map<core.String, core.String>(); | 222 var o = new core.Map<core.String, core.String>(); |
| 223 o["x"] = "foo"; | 223 o["x"] = "foo"; |
| 224 o["y"] = "foo"; | 224 o["y"] = "foo"; |
| 225 return o; | 225 return o; |
| 226 } | 226 } |
| 227 | 227 |
| 228 checkUnnamed432(core.Map<core.String, core.String> o) { | 228 checkUnnamed434(core.Map<core.String, core.String> o) { |
| 229 unittest.expect(o, unittest.hasLength(2)); | 229 unittest.expect(o, unittest.hasLength(2)); |
| 230 unittest.expect(o["x"], unittest.equals('foo')); | 230 unittest.expect(o["x"], unittest.equals('foo')); |
| 231 unittest.expect(o["y"], unittest.equals('foo')); | 231 unittest.expect(o["y"], unittest.equals('foo')); |
| 232 } | 232 } |
| 233 | 233 |
| 234 buildUnnamed433() { | 234 buildUnnamed435() { |
| 235 var o = new core.List<api.ClusterOperationStatus>(); | 235 var o = new core.List<api.ClusterOperationStatus>(); |
| 236 o.add(buildClusterOperationStatus()); | 236 o.add(buildClusterOperationStatus()); |
| 237 o.add(buildClusterOperationStatus()); | 237 o.add(buildClusterOperationStatus()); |
| 238 return o; | 238 return o; |
| 239 } | 239 } |
| 240 | 240 |
| 241 checkUnnamed433(core.List<api.ClusterOperationStatus> o) { | 241 checkUnnamed435(core.List<api.ClusterOperationStatus> o) { |
| 242 unittest.expect(o, unittest.hasLength(2)); | 242 unittest.expect(o, unittest.hasLength(2)); |
| 243 checkClusterOperationStatus(o[0]); | 243 checkClusterOperationStatus(o[0]); |
| 244 checkClusterOperationStatus(o[1]); | 244 checkClusterOperationStatus(o[1]); |
| 245 } | 245 } |
| 246 | 246 |
| 247 buildUnnamed436() { |
| 248 var o = new core.List<core.String>(); |
| 249 o.add("foo"); |
| 250 o.add("foo"); |
| 251 return o; |
| 252 } |
| 253 |
| 254 checkUnnamed436(core.List<core.String> o) { |
| 255 unittest.expect(o, unittest.hasLength(2)); |
| 256 unittest.expect(o[0], unittest.equals('foo')); |
| 257 unittest.expect(o[1], unittest.equals('foo')); |
| 258 } |
| 259 |
| 247 core.int buildCounterClusterOperationMetadata = 0; | 260 core.int buildCounterClusterOperationMetadata = 0; |
| 248 buildClusterOperationMetadata() { | 261 buildClusterOperationMetadata() { |
| 249 var o = new api.ClusterOperationMetadata(); | 262 var o = new api.ClusterOperationMetadata(); |
| 250 buildCounterClusterOperationMetadata++; | 263 buildCounterClusterOperationMetadata++; |
| 251 if (buildCounterClusterOperationMetadata < 3) { | 264 if (buildCounterClusterOperationMetadata < 3) { |
| 252 o.clusterName = "foo"; | 265 o.clusterName = "foo"; |
| 253 o.clusterUuid = "foo"; | 266 o.clusterUuid = "foo"; |
| 254 o.description = "foo"; | 267 o.description = "foo"; |
| 255 o.labels = buildUnnamed432(); | 268 o.labels = buildUnnamed434(); |
| 256 o.operationType = "foo"; | 269 o.operationType = "foo"; |
| 257 o.status = buildClusterOperationStatus(); | 270 o.status = buildClusterOperationStatus(); |
| 258 o.statusHistory = buildUnnamed433(); | 271 o.statusHistory = buildUnnamed435(); |
| 272 o.warnings = buildUnnamed436(); |
| 259 } | 273 } |
| 260 buildCounterClusterOperationMetadata--; | 274 buildCounterClusterOperationMetadata--; |
| 261 return o; | 275 return o; |
| 262 } | 276 } |
| 263 | 277 |
| 264 checkClusterOperationMetadata(api.ClusterOperationMetadata o) { | 278 checkClusterOperationMetadata(api.ClusterOperationMetadata o) { |
| 265 buildCounterClusterOperationMetadata++; | 279 buildCounterClusterOperationMetadata++; |
| 266 if (buildCounterClusterOperationMetadata < 3) { | 280 if (buildCounterClusterOperationMetadata < 3) { |
| 267 unittest.expect(o.clusterName, unittest.equals('foo')); | 281 unittest.expect(o.clusterName, unittest.equals('foo')); |
| 268 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 282 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
| 269 unittest.expect(o.description, unittest.equals('foo')); | 283 unittest.expect(o.description, unittest.equals('foo')); |
| 270 checkUnnamed432(o.labels); | 284 checkUnnamed434(o.labels); |
| 271 unittest.expect(o.operationType, unittest.equals('foo')); | 285 unittest.expect(o.operationType, unittest.equals('foo')); |
| 272 checkClusterOperationStatus(o.status); | 286 checkClusterOperationStatus(o.status); |
| 273 checkUnnamed433(o.statusHistory); | 287 checkUnnamed435(o.statusHistory); |
| 288 checkUnnamed436(o.warnings); |
| 274 } | 289 } |
| 275 buildCounterClusterOperationMetadata--; | 290 buildCounterClusterOperationMetadata--; |
| 276 } | 291 } |
| 277 | 292 |
| 278 core.int buildCounterClusterOperationStatus = 0; | 293 core.int buildCounterClusterOperationStatus = 0; |
| 279 buildClusterOperationStatus() { | 294 buildClusterOperationStatus() { |
| 280 var o = new api.ClusterOperationStatus(); | 295 var o = new api.ClusterOperationStatus(); |
| 281 buildCounterClusterOperationStatus++; | 296 buildCounterClusterOperationStatus++; |
| 282 if (buildCounterClusterOperationStatus < 3) { | 297 if (buildCounterClusterOperationStatus < 3) { |
| 283 o.details = "foo"; | 298 o.details = "foo"; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 return o; | 424 return o; |
| 410 } | 425 } |
| 411 | 426 |
| 412 checkEmpty(api.Empty o) { | 427 checkEmpty(api.Empty o) { |
| 413 buildCounterEmpty++; | 428 buildCounterEmpty++; |
| 414 if (buildCounterEmpty < 3) { | 429 if (buildCounterEmpty < 3) { |
| 415 } | 430 } |
| 416 buildCounterEmpty--; | 431 buildCounterEmpty--; |
| 417 } | 432 } |
| 418 | 433 |
| 419 buildUnnamed434() { | 434 buildUnnamed437() { |
| 420 var o = new core.Map<core.String, core.String>(); | 435 var o = new core.Map<core.String, core.String>(); |
| 421 o["x"] = "foo"; | 436 o["x"] = "foo"; |
| 422 o["y"] = "foo"; | 437 o["y"] = "foo"; |
| 423 return o; | 438 return o; |
| 424 } | 439 } |
| 425 | 440 |
| 426 checkUnnamed434(core.Map<core.String, core.String> o) { | 441 checkUnnamed437(core.Map<core.String, core.String> o) { |
| 427 unittest.expect(o, unittest.hasLength(2)); | 442 unittest.expect(o, unittest.hasLength(2)); |
| 428 unittest.expect(o["x"], unittest.equals('foo')); | 443 unittest.expect(o["x"], unittest.equals('foo')); |
| 429 unittest.expect(o["y"], unittest.equals('foo')); | 444 unittest.expect(o["y"], unittest.equals('foo')); |
| 430 } | 445 } |
| 431 | 446 |
| 432 buildUnnamed435() { | 447 buildUnnamed438() { |
| 433 var o = new core.List<core.String>(); | 448 var o = new core.List<core.String>(); |
| 434 o.add("foo"); | 449 o.add("foo"); |
| 435 o.add("foo"); | 450 o.add("foo"); |
| 436 return o; | 451 return o; |
| 437 } | 452 } |
| 438 | 453 |
| 439 checkUnnamed435(core.List<core.String> o) { | 454 checkUnnamed438(core.List<core.String> o) { |
| 440 unittest.expect(o, unittest.hasLength(2)); | 455 unittest.expect(o, unittest.hasLength(2)); |
| 441 unittest.expect(o[0], unittest.equals('foo')); | 456 unittest.expect(o[0], unittest.equals('foo')); |
| 442 unittest.expect(o[1], unittest.equals('foo')); | 457 unittest.expect(o[1], unittest.equals('foo')); |
| 443 } | 458 } |
| 444 | 459 |
| 445 buildUnnamed436() { | 460 buildUnnamed439() { |
| 446 var o = new core.List<core.String>(); | 461 var o = new core.List<core.String>(); |
| 447 o.add("foo"); | 462 o.add("foo"); |
| 448 o.add("foo"); | 463 o.add("foo"); |
| 449 return o; | 464 return o; |
| 450 } | 465 } |
| 451 | 466 |
| 452 checkUnnamed436(core.List<core.String> o) { | 467 checkUnnamed439(core.List<core.String> o) { |
| 453 unittest.expect(o, unittest.hasLength(2)); | 468 unittest.expect(o, unittest.hasLength(2)); |
| 454 unittest.expect(o[0], unittest.equals('foo')); | 469 unittest.expect(o[0], unittest.equals('foo')); |
| 455 unittest.expect(o[1], unittest.equals('foo')); | 470 unittest.expect(o[1], unittest.equals('foo')); |
| 456 } | 471 } |
| 457 | 472 |
| 458 core.int buildCounterGceClusterConfig = 0; | 473 core.int buildCounterGceClusterConfig = 0; |
| 459 buildGceClusterConfig() { | 474 buildGceClusterConfig() { |
| 460 var o = new api.GceClusterConfig(); | 475 var o = new api.GceClusterConfig(); |
| 461 buildCounterGceClusterConfig++; | 476 buildCounterGceClusterConfig++; |
| 462 if (buildCounterGceClusterConfig < 3) { | 477 if (buildCounterGceClusterConfig < 3) { |
| 463 o.internalIpOnly = true; | 478 o.internalIpOnly = true; |
| 464 o.metadata = buildUnnamed434(); | 479 o.metadata = buildUnnamed437(); |
| 465 o.networkUri = "foo"; | 480 o.networkUri = "foo"; |
| 466 o.serviceAccountScopes = buildUnnamed435(); | 481 o.serviceAccount = "foo"; |
| 482 o.serviceAccountScopes = buildUnnamed438(); |
| 467 o.subnetworkUri = "foo"; | 483 o.subnetworkUri = "foo"; |
| 468 o.tags = buildUnnamed436(); | 484 o.tags = buildUnnamed439(); |
| 469 o.zoneUri = "foo"; | 485 o.zoneUri = "foo"; |
| 470 } | 486 } |
| 471 buildCounterGceClusterConfig--; | 487 buildCounterGceClusterConfig--; |
| 472 return o; | 488 return o; |
| 473 } | 489 } |
| 474 | 490 |
| 475 checkGceClusterConfig(api.GceClusterConfig o) { | 491 checkGceClusterConfig(api.GceClusterConfig o) { |
| 476 buildCounterGceClusterConfig++; | 492 buildCounterGceClusterConfig++; |
| 477 if (buildCounterGceClusterConfig < 3) { | 493 if (buildCounterGceClusterConfig < 3) { |
| 478 unittest.expect(o.internalIpOnly, unittest.isTrue); | 494 unittest.expect(o.internalIpOnly, unittest.isTrue); |
| 479 checkUnnamed434(o.metadata); | 495 checkUnnamed437(o.metadata); |
| 480 unittest.expect(o.networkUri, unittest.equals('foo')); | 496 unittest.expect(o.networkUri, unittest.equals('foo')); |
| 481 checkUnnamed435(o.serviceAccountScopes); | 497 unittest.expect(o.serviceAccount, unittest.equals('foo')); |
| 498 checkUnnamed438(o.serviceAccountScopes); |
| 482 unittest.expect(o.subnetworkUri, unittest.equals('foo')); | 499 unittest.expect(o.subnetworkUri, unittest.equals('foo')); |
| 483 checkUnnamed436(o.tags); | 500 checkUnnamed439(o.tags); |
| 484 unittest.expect(o.zoneUri, unittest.equals('foo')); | 501 unittest.expect(o.zoneUri, unittest.equals('foo')); |
| 485 } | 502 } |
| 486 buildCounterGceClusterConfig--; | 503 buildCounterGceClusterConfig--; |
| 487 } | 504 } |
| 488 | 505 |
| 489 buildUnnamed437() { | |
| 490 var o = new core.List<core.String>(); | |
| 491 o.add("foo"); | |
| 492 o.add("foo"); | |
| 493 return o; | |
| 494 } | |
| 495 | |
| 496 checkUnnamed437(core.List<core.String> o) { | |
| 497 unittest.expect(o, unittest.hasLength(2)); | |
| 498 unittest.expect(o[0], unittest.equals('foo')); | |
| 499 unittest.expect(o[1], unittest.equals('foo')); | |
| 500 } | |
| 501 | |
| 502 buildUnnamed438() { | |
| 503 var o = new core.List<core.String>(); | |
| 504 o.add("foo"); | |
| 505 o.add("foo"); | |
| 506 return o; | |
| 507 } | |
| 508 | |
| 509 checkUnnamed438(core.List<core.String> o) { | |
| 510 unittest.expect(o, unittest.hasLength(2)); | |
| 511 unittest.expect(o[0], unittest.equals('foo')); | |
| 512 unittest.expect(o[1], unittest.equals('foo')); | |
| 513 } | |
| 514 | |
| 515 buildUnnamed439() { | |
| 516 var o = new core.List<core.String>(); | |
| 517 o.add("foo"); | |
| 518 o.add("foo"); | |
| 519 return o; | |
| 520 } | |
| 521 | |
| 522 checkUnnamed439(core.List<core.String> o) { | |
| 523 unittest.expect(o, unittest.hasLength(2)); | |
| 524 unittest.expect(o[0], unittest.equals('foo')); | |
| 525 unittest.expect(o[1], unittest.equals('foo')); | |
| 526 } | |
| 527 | |
| 528 buildUnnamed440() { | 506 buildUnnamed440() { |
| 529 var o = new core.List<core.String>(); | 507 var o = new core.List<core.String>(); |
| 530 o.add("foo"); | 508 o.add("foo"); |
| 531 o.add("foo"); | 509 o.add("foo"); |
| 532 return o; | 510 return o; |
| 533 } | 511 } |
| 534 | 512 |
| 535 checkUnnamed440(core.List<core.String> o) { | 513 checkUnnamed440(core.List<core.String> o) { |
| 536 unittest.expect(o, unittest.hasLength(2)); | 514 unittest.expect(o, unittest.hasLength(2)); |
| 537 unittest.expect(o[0], unittest.equals('foo')); | 515 unittest.expect(o[0], unittest.equals('foo')); |
| 538 unittest.expect(o[1], unittest.equals('foo')); | 516 unittest.expect(o[1], unittest.equals('foo')); |
| 539 } | 517 } |
| 540 | 518 |
| 541 buildUnnamed441() { | 519 buildUnnamed441() { |
| 520 var o = new core.List<core.String>(); |
| 521 o.add("foo"); |
| 522 o.add("foo"); |
| 523 return o; |
| 524 } |
| 525 |
| 526 checkUnnamed441(core.List<core.String> o) { |
| 527 unittest.expect(o, unittest.hasLength(2)); |
| 528 unittest.expect(o[0], unittest.equals('foo')); |
| 529 unittest.expect(o[1], unittest.equals('foo')); |
| 530 } |
| 531 |
| 532 buildUnnamed442() { |
| 533 var o = new core.List<core.String>(); |
| 534 o.add("foo"); |
| 535 o.add("foo"); |
| 536 return o; |
| 537 } |
| 538 |
| 539 checkUnnamed442(core.List<core.String> o) { |
| 540 unittest.expect(o, unittest.hasLength(2)); |
| 541 unittest.expect(o[0], unittest.equals('foo')); |
| 542 unittest.expect(o[1], unittest.equals('foo')); |
| 543 } |
| 544 |
| 545 buildUnnamed443() { |
| 546 var o = new core.List<core.String>(); |
| 547 o.add("foo"); |
| 548 o.add("foo"); |
| 549 return o; |
| 550 } |
| 551 |
| 552 checkUnnamed443(core.List<core.String> o) { |
| 553 unittest.expect(o, unittest.hasLength(2)); |
| 554 unittest.expect(o[0], unittest.equals('foo')); |
| 555 unittest.expect(o[1], unittest.equals('foo')); |
| 556 } |
| 557 |
| 558 buildUnnamed444() { |
| 542 var o = new core.Map<core.String, core.String>(); | 559 var o = new core.Map<core.String, core.String>(); |
| 543 o["x"] = "foo"; | 560 o["x"] = "foo"; |
| 544 o["y"] = "foo"; | 561 o["y"] = "foo"; |
| 545 return o; | 562 return o; |
| 546 } | 563 } |
| 547 | 564 |
| 548 checkUnnamed441(core.Map<core.String, core.String> o) { | 565 checkUnnamed444(core.Map<core.String, core.String> o) { |
| 549 unittest.expect(o, unittest.hasLength(2)); | 566 unittest.expect(o, unittest.hasLength(2)); |
| 550 unittest.expect(o["x"], unittest.equals('foo')); | 567 unittest.expect(o["x"], unittest.equals('foo')); |
| 551 unittest.expect(o["y"], unittest.equals('foo')); | 568 unittest.expect(o["y"], unittest.equals('foo')); |
| 552 } | 569 } |
| 553 | 570 |
| 554 core.int buildCounterHadoopJob = 0; | 571 core.int buildCounterHadoopJob = 0; |
| 555 buildHadoopJob() { | 572 buildHadoopJob() { |
| 556 var o = new api.HadoopJob(); | 573 var o = new api.HadoopJob(); |
| 557 buildCounterHadoopJob++; | 574 buildCounterHadoopJob++; |
| 558 if (buildCounterHadoopJob < 3) { | 575 if (buildCounterHadoopJob < 3) { |
| 559 o.archiveUris = buildUnnamed437(); | 576 o.archiveUris = buildUnnamed440(); |
| 560 o.args = buildUnnamed438(); | 577 o.args = buildUnnamed441(); |
| 561 o.fileUris = buildUnnamed439(); | 578 o.fileUris = buildUnnamed442(); |
| 562 o.jarFileUris = buildUnnamed440(); | 579 o.jarFileUris = buildUnnamed443(); |
| 563 o.loggingConfig = buildLoggingConfig(); | 580 o.loggingConfig = buildLoggingConfig(); |
| 564 o.mainClass = "foo"; | 581 o.mainClass = "foo"; |
| 565 o.mainJarFileUri = "foo"; | 582 o.mainJarFileUri = "foo"; |
| 566 o.properties = buildUnnamed441(); | 583 o.properties = buildUnnamed444(); |
| 567 } | 584 } |
| 568 buildCounterHadoopJob--; | 585 buildCounterHadoopJob--; |
| 569 return o; | 586 return o; |
| 570 } | 587 } |
| 571 | 588 |
| 572 checkHadoopJob(api.HadoopJob o) { | 589 checkHadoopJob(api.HadoopJob o) { |
| 573 buildCounterHadoopJob++; | 590 buildCounterHadoopJob++; |
| 574 if (buildCounterHadoopJob < 3) { | 591 if (buildCounterHadoopJob < 3) { |
| 575 checkUnnamed437(o.archiveUris); | 592 checkUnnamed440(o.archiveUris); |
| 576 checkUnnamed438(o.args); | 593 checkUnnamed441(o.args); |
| 577 checkUnnamed439(o.fileUris); | 594 checkUnnamed442(o.fileUris); |
| 578 checkUnnamed440(o.jarFileUris); | 595 checkUnnamed443(o.jarFileUris); |
| 579 checkLoggingConfig(o.loggingConfig); | 596 checkLoggingConfig(o.loggingConfig); |
| 580 unittest.expect(o.mainClass, unittest.equals('foo')); | 597 unittest.expect(o.mainClass, unittest.equals('foo')); |
| 581 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 598 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
| 582 checkUnnamed441(o.properties); | 599 checkUnnamed444(o.properties); |
| 583 } | 600 } |
| 584 buildCounterHadoopJob--; | 601 buildCounterHadoopJob--; |
| 585 } | 602 } |
| 586 | 603 |
| 587 buildUnnamed442() { | 604 buildUnnamed445() { |
| 588 var o = new core.List<core.String>(); | 605 var o = new core.List<core.String>(); |
| 589 o.add("foo"); | 606 o.add("foo"); |
| 590 o.add("foo"); | 607 o.add("foo"); |
| 591 return o; | 608 return o; |
| 592 } | 609 } |
| 593 | 610 |
| 594 checkUnnamed442(core.List<core.String> o) { | 611 checkUnnamed445(core.List<core.String> o) { |
| 595 unittest.expect(o, unittest.hasLength(2)); | 612 unittest.expect(o, unittest.hasLength(2)); |
| 596 unittest.expect(o[0], unittest.equals('foo')); | 613 unittest.expect(o[0], unittest.equals('foo')); |
| 597 unittest.expect(o[1], unittest.equals('foo')); | 614 unittest.expect(o[1], unittest.equals('foo')); |
| 598 } | 615 } |
| 599 | 616 |
| 600 buildUnnamed443() { | 617 buildUnnamed446() { |
| 601 var o = new core.Map<core.String, core.String>(); | 618 var o = new core.Map<core.String, core.String>(); |
| 602 o["x"] = "foo"; | 619 o["x"] = "foo"; |
| 603 o["y"] = "foo"; | 620 o["y"] = "foo"; |
| 604 return o; | 621 return o; |
| 605 } | 622 } |
| 606 | 623 |
| 607 checkUnnamed443(core.Map<core.String, core.String> o) { | 624 checkUnnamed446(core.Map<core.String, core.String> o) { |
| 608 unittest.expect(o, unittest.hasLength(2)); | 625 unittest.expect(o, unittest.hasLength(2)); |
| 609 unittest.expect(o["x"], unittest.equals('foo')); | 626 unittest.expect(o["x"], unittest.equals('foo')); |
| 610 unittest.expect(o["y"], unittest.equals('foo')); | 627 unittest.expect(o["y"], unittest.equals('foo')); |
| 611 } | 628 } |
| 612 | 629 |
| 613 buildUnnamed444() { | 630 buildUnnamed447() { |
| 614 var o = new core.Map<core.String, core.String>(); | 631 var o = new core.Map<core.String, core.String>(); |
| 615 o["x"] = "foo"; | 632 o["x"] = "foo"; |
| 616 o["y"] = "foo"; | 633 o["y"] = "foo"; |
| 617 return o; | 634 return o; |
| 618 } | 635 } |
| 619 | 636 |
| 620 checkUnnamed444(core.Map<core.String, core.String> o) { | 637 checkUnnamed447(core.Map<core.String, core.String> o) { |
| 621 unittest.expect(o, unittest.hasLength(2)); | 638 unittest.expect(o, unittest.hasLength(2)); |
| 622 unittest.expect(o["x"], unittest.equals('foo')); | 639 unittest.expect(o["x"], unittest.equals('foo')); |
| 623 unittest.expect(o["y"], unittest.equals('foo')); | 640 unittest.expect(o["y"], unittest.equals('foo')); |
| 624 } | 641 } |
| 625 | 642 |
| 626 core.int buildCounterHiveJob = 0; | 643 core.int buildCounterHiveJob = 0; |
| 627 buildHiveJob() { | 644 buildHiveJob() { |
| 628 var o = new api.HiveJob(); | 645 var o = new api.HiveJob(); |
| 629 buildCounterHiveJob++; | 646 buildCounterHiveJob++; |
| 630 if (buildCounterHiveJob < 3) { | 647 if (buildCounterHiveJob < 3) { |
| 631 o.continueOnFailure = true; | 648 o.continueOnFailure = true; |
| 632 o.jarFileUris = buildUnnamed442(); | 649 o.jarFileUris = buildUnnamed445(); |
| 633 o.properties = buildUnnamed443(); | 650 o.properties = buildUnnamed446(); |
| 634 o.queryFileUri = "foo"; | 651 o.queryFileUri = "foo"; |
| 635 o.queryList = buildQueryList(); | 652 o.queryList = buildQueryList(); |
| 636 o.scriptVariables = buildUnnamed444(); | 653 o.scriptVariables = buildUnnamed447(); |
| 637 } | 654 } |
| 638 buildCounterHiveJob--; | 655 buildCounterHiveJob--; |
| 639 return o; | 656 return o; |
| 640 } | 657 } |
| 641 | 658 |
| 642 checkHiveJob(api.HiveJob o) { | 659 checkHiveJob(api.HiveJob o) { |
| 643 buildCounterHiveJob++; | 660 buildCounterHiveJob++; |
| 644 if (buildCounterHiveJob < 3) { | 661 if (buildCounterHiveJob < 3) { |
| 645 unittest.expect(o.continueOnFailure, unittest.isTrue); | 662 unittest.expect(o.continueOnFailure, unittest.isTrue); |
| 646 checkUnnamed442(o.jarFileUris); | 663 checkUnnamed445(o.jarFileUris); |
| 647 checkUnnamed443(o.properties); | 664 checkUnnamed446(o.properties); |
| 648 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 665 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
| 649 checkQueryList(o.queryList); | 666 checkQueryList(o.queryList); |
| 650 checkUnnamed444(o.scriptVariables); | 667 checkUnnamed447(o.scriptVariables); |
| 651 } | 668 } |
| 652 buildCounterHiveJob--; | 669 buildCounterHiveJob--; |
| 653 } | 670 } |
| 654 | 671 |
| 655 buildUnnamed445() { | 672 buildUnnamed448() { |
| 656 var o = new core.List<core.String>(); | 673 var o = new core.List<core.String>(); |
| 657 o.add("foo"); | 674 o.add("foo"); |
| 658 o.add("foo"); | 675 o.add("foo"); |
| 659 return o; | 676 return o; |
| 660 } | 677 } |
| 661 | 678 |
| 662 checkUnnamed445(core.List<core.String> o) { | 679 checkUnnamed448(core.List<core.String> o) { |
| 663 unittest.expect(o, unittest.hasLength(2)); | 680 unittest.expect(o, unittest.hasLength(2)); |
| 664 unittest.expect(o[0], unittest.equals('foo')); | 681 unittest.expect(o[0], unittest.equals('foo')); |
| 665 unittest.expect(o[1], unittest.equals('foo')); | 682 unittest.expect(o[1], unittest.equals('foo')); |
| 666 } | 683 } |
| 667 | 684 |
| 668 core.int buildCounterInstanceGroupConfig = 0; | 685 core.int buildCounterInstanceGroupConfig = 0; |
| 669 buildInstanceGroupConfig() { | 686 buildInstanceGroupConfig() { |
| 670 var o = new api.InstanceGroupConfig(); | 687 var o = new api.InstanceGroupConfig(); |
| 671 buildCounterInstanceGroupConfig++; | 688 buildCounterInstanceGroupConfig++; |
| 672 if (buildCounterInstanceGroupConfig < 3) { | 689 if (buildCounterInstanceGroupConfig < 3) { |
| 673 o.diskConfig = buildDiskConfig(); | 690 o.diskConfig = buildDiskConfig(); |
| 674 o.imageUri = "foo"; | 691 o.imageUri = "foo"; |
| 675 o.instanceNames = buildUnnamed445(); | 692 o.instanceNames = buildUnnamed448(); |
| 676 o.isPreemptible = true; | 693 o.isPreemptible = true; |
| 677 o.machineTypeUri = "foo"; | 694 o.machineTypeUri = "foo"; |
| 678 o.managedGroupConfig = buildManagedGroupConfig(); | 695 o.managedGroupConfig = buildManagedGroupConfig(); |
| 679 o.numInstances = 42; | 696 o.numInstances = 42; |
| 680 } | 697 } |
| 681 buildCounterInstanceGroupConfig--; | 698 buildCounterInstanceGroupConfig--; |
| 682 return o; | 699 return o; |
| 683 } | 700 } |
| 684 | 701 |
| 685 checkInstanceGroupConfig(api.InstanceGroupConfig o) { | 702 checkInstanceGroupConfig(api.InstanceGroupConfig o) { |
| 686 buildCounterInstanceGroupConfig++; | 703 buildCounterInstanceGroupConfig++; |
| 687 if (buildCounterInstanceGroupConfig < 3) { | 704 if (buildCounterInstanceGroupConfig < 3) { |
| 688 checkDiskConfig(o.diskConfig); | 705 checkDiskConfig(o.diskConfig); |
| 689 unittest.expect(o.imageUri, unittest.equals('foo')); | 706 unittest.expect(o.imageUri, unittest.equals('foo')); |
| 690 checkUnnamed445(o.instanceNames); | 707 checkUnnamed448(o.instanceNames); |
| 691 unittest.expect(o.isPreemptible, unittest.isTrue); | 708 unittest.expect(o.isPreemptible, unittest.isTrue); |
| 692 unittest.expect(o.machineTypeUri, unittest.equals('foo')); | 709 unittest.expect(o.machineTypeUri, unittest.equals('foo')); |
| 693 checkManagedGroupConfig(o.managedGroupConfig); | 710 checkManagedGroupConfig(o.managedGroupConfig); |
| 694 unittest.expect(o.numInstances, unittest.equals(42)); | 711 unittest.expect(o.numInstances, unittest.equals(42)); |
| 695 } | 712 } |
| 696 buildCounterInstanceGroupConfig--; | 713 buildCounterInstanceGroupConfig--; |
| 697 } | 714 } |
| 698 | 715 |
| 699 buildUnnamed446() { | 716 buildUnnamed449() { |
| 700 var o = new core.Map<core.String, core.String>(); | 717 var o = new core.Map<core.String, core.String>(); |
| 701 o["x"] = "foo"; | 718 o["x"] = "foo"; |
| 702 o["y"] = "foo"; | 719 o["y"] = "foo"; |
| 703 return o; | 720 return o; |
| 704 } | 721 } |
| 705 | 722 |
| 706 checkUnnamed446(core.Map<core.String, core.String> o) { | 723 checkUnnamed449(core.Map<core.String, core.String> o) { |
| 707 unittest.expect(o, unittest.hasLength(2)); | 724 unittest.expect(o, unittest.hasLength(2)); |
| 708 unittest.expect(o["x"], unittest.equals('foo')); | 725 unittest.expect(o["x"], unittest.equals('foo')); |
| 709 unittest.expect(o["y"], unittest.equals('foo')); | 726 unittest.expect(o["y"], unittest.equals('foo')); |
| 710 } | 727 } |
| 711 | 728 |
| 712 buildUnnamed447() { | 729 buildUnnamed450() { |
| 713 var o = new core.List<api.JobStatus>(); | 730 var o = new core.List<api.JobStatus>(); |
| 714 o.add(buildJobStatus()); | 731 o.add(buildJobStatus()); |
| 715 o.add(buildJobStatus()); | 732 o.add(buildJobStatus()); |
| 716 return o; | 733 return o; |
| 717 } | 734 } |
| 718 | 735 |
| 719 checkUnnamed447(core.List<api.JobStatus> o) { | 736 checkUnnamed450(core.List<api.JobStatus> o) { |
| 720 unittest.expect(o, unittest.hasLength(2)); | 737 unittest.expect(o, unittest.hasLength(2)); |
| 721 checkJobStatus(o[0]); | 738 checkJobStatus(o[0]); |
| 722 checkJobStatus(o[1]); | 739 checkJobStatus(o[1]); |
| 723 } | 740 } |
| 724 | 741 |
| 725 buildUnnamed448() { | 742 buildUnnamed451() { |
| 726 var o = new core.List<api.YarnApplication>(); | 743 var o = new core.List<api.YarnApplication>(); |
| 727 o.add(buildYarnApplication()); | 744 o.add(buildYarnApplication()); |
| 728 o.add(buildYarnApplication()); | 745 o.add(buildYarnApplication()); |
| 729 return o; | 746 return o; |
| 730 } | 747 } |
| 731 | 748 |
| 732 checkUnnamed448(core.List<api.YarnApplication> o) { | 749 checkUnnamed451(core.List<api.YarnApplication> o) { |
| 733 unittest.expect(o, unittest.hasLength(2)); | 750 unittest.expect(o, unittest.hasLength(2)); |
| 734 checkYarnApplication(o[0]); | 751 checkYarnApplication(o[0]); |
| 735 checkYarnApplication(o[1]); | 752 checkYarnApplication(o[1]); |
| 736 } | 753 } |
| 737 | 754 |
| 738 core.int buildCounterJob = 0; | 755 core.int buildCounterJob = 0; |
| 739 buildJob() { | 756 buildJob() { |
| 740 var o = new api.Job(); | 757 var o = new api.Job(); |
| 741 buildCounterJob++; | 758 buildCounterJob++; |
| 742 if (buildCounterJob < 3) { | 759 if (buildCounterJob < 3) { |
| 743 o.driverControlFilesUri = "foo"; | 760 o.driverControlFilesUri = "foo"; |
| 744 o.driverOutputResourceUri = "foo"; | 761 o.driverOutputResourceUri = "foo"; |
| 745 o.hadoopJob = buildHadoopJob(); | 762 o.hadoopJob = buildHadoopJob(); |
| 746 o.hiveJob = buildHiveJob(); | 763 o.hiveJob = buildHiveJob(); |
| 747 o.labels = buildUnnamed446(); | 764 o.labels = buildUnnamed449(); |
| 748 o.pigJob = buildPigJob(); | 765 o.pigJob = buildPigJob(); |
| 749 o.placement = buildJobPlacement(); | 766 o.placement = buildJobPlacement(); |
| 750 o.pysparkJob = buildPySparkJob(); | 767 o.pysparkJob = buildPySparkJob(); |
| 751 o.reference = buildJobReference(); | 768 o.reference = buildJobReference(); |
| 769 o.scheduling = buildJobScheduling(); |
| 752 o.sparkJob = buildSparkJob(); | 770 o.sparkJob = buildSparkJob(); |
| 753 o.sparkSqlJob = buildSparkSqlJob(); | 771 o.sparkSqlJob = buildSparkSqlJob(); |
| 754 o.status = buildJobStatus(); | 772 o.status = buildJobStatus(); |
| 755 o.statusHistory = buildUnnamed447(); | 773 o.statusHistory = buildUnnamed450(); |
| 756 o.yarnApplications = buildUnnamed448(); | 774 o.yarnApplications = buildUnnamed451(); |
| 757 } | 775 } |
| 758 buildCounterJob--; | 776 buildCounterJob--; |
| 759 return o; | 777 return o; |
| 760 } | 778 } |
| 761 | 779 |
| 762 checkJob(api.Job o) { | 780 checkJob(api.Job o) { |
| 763 buildCounterJob++; | 781 buildCounterJob++; |
| 764 if (buildCounterJob < 3) { | 782 if (buildCounterJob < 3) { |
| 765 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); | 783 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); |
| 766 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); | 784 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); |
| 767 checkHadoopJob(o.hadoopJob); | 785 checkHadoopJob(o.hadoopJob); |
| 768 checkHiveJob(o.hiveJob); | 786 checkHiveJob(o.hiveJob); |
| 769 checkUnnamed446(o.labels); | 787 checkUnnamed449(o.labels); |
| 770 checkPigJob(o.pigJob); | 788 checkPigJob(o.pigJob); |
| 771 checkJobPlacement(o.placement); | 789 checkJobPlacement(o.placement); |
| 772 checkPySparkJob(o.pysparkJob); | 790 checkPySparkJob(o.pysparkJob); |
| 773 checkJobReference(o.reference); | 791 checkJobReference(o.reference); |
| 792 checkJobScheduling(o.scheduling); |
| 774 checkSparkJob(o.sparkJob); | 793 checkSparkJob(o.sparkJob); |
| 775 checkSparkSqlJob(o.sparkSqlJob); | 794 checkSparkSqlJob(o.sparkSqlJob); |
| 776 checkJobStatus(o.status); | 795 checkJobStatus(o.status); |
| 777 checkUnnamed447(o.statusHistory); | 796 checkUnnamed450(o.statusHistory); |
| 778 checkUnnamed448(o.yarnApplications); | 797 checkUnnamed451(o.yarnApplications); |
| 779 } | 798 } |
| 780 buildCounterJob--; | 799 buildCounterJob--; |
| 781 } | 800 } |
| 782 | 801 |
| 783 core.int buildCounterJobPlacement = 0; | 802 core.int buildCounterJobPlacement = 0; |
| 784 buildJobPlacement() { | 803 buildJobPlacement() { |
| 785 var o = new api.JobPlacement(); | 804 var o = new api.JobPlacement(); |
| 786 buildCounterJobPlacement++; | 805 buildCounterJobPlacement++; |
| 787 if (buildCounterJobPlacement < 3) { | 806 if (buildCounterJobPlacement < 3) { |
| 788 o.clusterName = "foo"; | 807 o.clusterName = "foo"; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 815 | 834 |
| 816 checkJobReference(api.JobReference o) { | 835 checkJobReference(api.JobReference o) { |
| 817 buildCounterJobReference++; | 836 buildCounterJobReference++; |
| 818 if (buildCounterJobReference < 3) { | 837 if (buildCounterJobReference < 3) { |
| 819 unittest.expect(o.jobId, unittest.equals('foo')); | 838 unittest.expect(o.jobId, unittest.equals('foo')); |
| 820 unittest.expect(o.projectId, unittest.equals('foo')); | 839 unittest.expect(o.projectId, unittest.equals('foo')); |
| 821 } | 840 } |
| 822 buildCounterJobReference--; | 841 buildCounterJobReference--; |
| 823 } | 842 } |
| 824 | 843 |
| 844 core.int buildCounterJobScheduling = 0; |
| 845 buildJobScheduling() { |
| 846 var o = new api.JobScheduling(); |
| 847 buildCounterJobScheduling++; |
| 848 if (buildCounterJobScheduling < 3) { |
| 849 o.maxFailuresPerHour = 42; |
| 850 } |
| 851 buildCounterJobScheduling--; |
| 852 return o; |
| 853 } |
| 854 |
| 855 checkJobScheduling(api.JobScheduling o) { |
| 856 buildCounterJobScheduling++; |
| 857 if (buildCounterJobScheduling < 3) { |
| 858 unittest.expect(o.maxFailuresPerHour, unittest.equals(42)); |
| 859 } |
| 860 buildCounterJobScheduling--; |
| 861 } |
| 862 |
| 825 core.int buildCounterJobStatus = 0; | 863 core.int buildCounterJobStatus = 0; |
| 826 buildJobStatus() { | 864 buildJobStatus() { |
| 827 var o = new api.JobStatus(); | 865 var o = new api.JobStatus(); |
| 828 buildCounterJobStatus++; | 866 buildCounterJobStatus++; |
| 829 if (buildCounterJobStatus < 3) { | 867 if (buildCounterJobStatus < 3) { |
| 830 o.details = "foo"; | 868 o.details = "foo"; |
| 831 o.state = "foo"; | 869 o.state = "foo"; |
| 832 o.stateStartTime = "foo"; | 870 o.stateStartTime = "foo"; |
| 833 } | 871 } |
| 834 buildCounterJobStatus--; | 872 buildCounterJobStatus--; |
| 835 return o; | 873 return o; |
| 836 } | 874 } |
| 837 | 875 |
| 838 checkJobStatus(api.JobStatus o) { | 876 checkJobStatus(api.JobStatus o) { |
| 839 buildCounterJobStatus++; | 877 buildCounterJobStatus++; |
| 840 if (buildCounterJobStatus < 3) { | 878 if (buildCounterJobStatus < 3) { |
| 841 unittest.expect(o.details, unittest.equals('foo')); | 879 unittest.expect(o.details, unittest.equals('foo')); |
| 842 unittest.expect(o.state, unittest.equals('foo')); | 880 unittest.expect(o.state, unittest.equals('foo')); |
| 843 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 881 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
| 844 } | 882 } |
| 845 buildCounterJobStatus--; | 883 buildCounterJobStatus--; |
| 846 } | 884 } |
| 847 | 885 |
| 848 buildUnnamed449() { | 886 buildUnnamed452() { |
| 849 var o = new core.List<api.Cluster>(); | 887 var o = new core.List<api.Cluster>(); |
| 850 o.add(buildCluster()); | 888 o.add(buildCluster()); |
| 851 o.add(buildCluster()); | 889 o.add(buildCluster()); |
| 852 return o; | 890 return o; |
| 853 } | 891 } |
| 854 | 892 |
| 855 checkUnnamed449(core.List<api.Cluster> o) { | 893 checkUnnamed452(core.List<api.Cluster> o) { |
| 856 unittest.expect(o, unittest.hasLength(2)); | 894 unittest.expect(o, unittest.hasLength(2)); |
| 857 checkCluster(o[0]); | 895 checkCluster(o[0]); |
| 858 checkCluster(o[1]); | 896 checkCluster(o[1]); |
| 859 } | 897 } |
| 860 | 898 |
| 861 core.int buildCounterListClustersResponse = 0; | 899 core.int buildCounterListClustersResponse = 0; |
| 862 buildListClustersResponse() { | 900 buildListClustersResponse() { |
| 863 var o = new api.ListClustersResponse(); | 901 var o = new api.ListClustersResponse(); |
| 864 buildCounterListClustersResponse++; | 902 buildCounterListClustersResponse++; |
| 865 if (buildCounterListClustersResponse < 3) { | 903 if (buildCounterListClustersResponse < 3) { |
| 866 o.clusters = buildUnnamed449(); | 904 o.clusters = buildUnnamed452(); |
| 867 o.nextPageToken = "foo"; | 905 o.nextPageToken = "foo"; |
| 868 } | 906 } |
| 869 buildCounterListClustersResponse--; | 907 buildCounterListClustersResponse--; |
| 870 return o; | 908 return o; |
| 871 } | 909 } |
| 872 | 910 |
| 873 checkListClustersResponse(api.ListClustersResponse o) { | 911 checkListClustersResponse(api.ListClustersResponse o) { |
| 874 buildCounterListClustersResponse++; | 912 buildCounterListClustersResponse++; |
| 875 if (buildCounterListClustersResponse < 3) { | 913 if (buildCounterListClustersResponse < 3) { |
| 876 checkUnnamed449(o.clusters); | 914 checkUnnamed452(o.clusters); |
| 877 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 915 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 878 } | 916 } |
| 879 buildCounterListClustersResponse--; | 917 buildCounterListClustersResponse--; |
| 880 } | 918 } |
| 881 | 919 |
| 882 buildUnnamed450() { | 920 buildUnnamed453() { |
| 883 var o = new core.List<api.Job>(); | 921 var o = new core.List<api.Job>(); |
| 884 o.add(buildJob()); | 922 o.add(buildJob()); |
| 885 o.add(buildJob()); | 923 o.add(buildJob()); |
| 886 return o; | 924 return o; |
| 887 } | 925 } |
| 888 | 926 |
| 889 checkUnnamed450(core.List<api.Job> o) { | 927 checkUnnamed453(core.List<api.Job> o) { |
| 890 unittest.expect(o, unittest.hasLength(2)); | 928 unittest.expect(o, unittest.hasLength(2)); |
| 891 checkJob(o[0]); | 929 checkJob(o[0]); |
| 892 checkJob(o[1]); | 930 checkJob(o[1]); |
| 893 } | 931 } |
| 894 | 932 |
| 895 core.int buildCounterListJobsResponse = 0; | 933 core.int buildCounterListJobsResponse = 0; |
| 896 buildListJobsResponse() { | 934 buildListJobsResponse() { |
| 897 var o = new api.ListJobsResponse(); | 935 var o = new api.ListJobsResponse(); |
| 898 buildCounterListJobsResponse++; | 936 buildCounterListJobsResponse++; |
| 899 if (buildCounterListJobsResponse < 3) { | 937 if (buildCounterListJobsResponse < 3) { |
| 900 o.jobs = buildUnnamed450(); | 938 o.jobs = buildUnnamed453(); |
| 901 o.nextPageToken = "foo"; | 939 o.nextPageToken = "foo"; |
| 902 } | 940 } |
| 903 buildCounterListJobsResponse--; | 941 buildCounterListJobsResponse--; |
| 904 return o; | 942 return o; |
| 905 } | 943 } |
| 906 | 944 |
| 907 checkListJobsResponse(api.ListJobsResponse o) { | 945 checkListJobsResponse(api.ListJobsResponse o) { |
| 908 buildCounterListJobsResponse++; | 946 buildCounterListJobsResponse++; |
| 909 if (buildCounterListJobsResponse < 3) { | 947 if (buildCounterListJobsResponse < 3) { |
| 910 checkUnnamed450(o.jobs); | 948 checkUnnamed453(o.jobs); |
| 911 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 949 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 912 } | 950 } |
| 913 buildCounterListJobsResponse--; | 951 buildCounterListJobsResponse--; |
| 914 } | 952 } |
| 915 | 953 |
| 916 buildUnnamed451() { | 954 buildUnnamed454() { |
| 917 var o = new core.List<api.Operation>(); | 955 var o = new core.List<api.Operation>(); |
| 918 o.add(buildOperation()); | 956 o.add(buildOperation()); |
| 919 o.add(buildOperation()); | 957 o.add(buildOperation()); |
| 920 return o; | 958 return o; |
| 921 } | 959 } |
| 922 | 960 |
| 923 checkUnnamed451(core.List<api.Operation> o) { | 961 checkUnnamed454(core.List<api.Operation> o) { |
| 924 unittest.expect(o, unittest.hasLength(2)); | 962 unittest.expect(o, unittest.hasLength(2)); |
| 925 checkOperation(o[0]); | 963 checkOperation(o[0]); |
| 926 checkOperation(o[1]); | 964 checkOperation(o[1]); |
| 927 } | 965 } |
| 928 | 966 |
| 929 core.int buildCounterListOperationsResponse = 0; | 967 core.int buildCounterListOperationsResponse = 0; |
| 930 buildListOperationsResponse() { | 968 buildListOperationsResponse() { |
| 931 var o = new api.ListOperationsResponse(); | 969 var o = new api.ListOperationsResponse(); |
| 932 buildCounterListOperationsResponse++; | 970 buildCounterListOperationsResponse++; |
| 933 if (buildCounterListOperationsResponse < 3) { | 971 if (buildCounterListOperationsResponse < 3) { |
| 934 o.nextPageToken = "foo"; | 972 o.nextPageToken = "foo"; |
| 935 o.operations = buildUnnamed451(); | 973 o.operations = buildUnnamed454(); |
| 936 } | 974 } |
| 937 buildCounterListOperationsResponse--; | 975 buildCounterListOperationsResponse--; |
| 938 return o; | 976 return o; |
| 939 } | 977 } |
| 940 | 978 |
| 941 checkListOperationsResponse(api.ListOperationsResponse o) { | 979 checkListOperationsResponse(api.ListOperationsResponse o) { |
| 942 buildCounterListOperationsResponse++; | 980 buildCounterListOperationsResponse++; |
| 943 if (buildCounterListOperationsResponse < 3) { | 981 if (buildCounterListOperationsResponse < 3) { |
| 944 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 982 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 945 checkUnnamed451(o.operations); | 983 checkUnnamed454(o.operations); |
| 946 } | 984 } |
| 947 buildCounterListOperationsResponse--; | 985 buildCounterListOperationsResponse--; |
| 948 } | 986 } |
| 949 | 987 |
| 950 buildUnnamed452() { | 988 buildUnnamed455() { |
| 951 var o = new core.Map<core.String, core.String>(); | 989 var o = new core.Map<core.String, core.String>(); |
| 952 o["x"] = "foo"; | 990 o["x"] = "foo"; |
| 953 o["y"] = "foo"; | 991 o["y"] = "foo"; |
| 954 return o; | 992 return o; |
| 955 } | 993 } |
| 956 | 994 |
| 957 checkUnnamed452(core.Map<core.String, core.String> o) { | 995 checkUnnamed455(core.Map<core.String, core.String> o) { |
| 958 unittest.expect(o, unittest.hasLength(2)); | 996 unittest.expect(o, unittest.hasLength(2)); |
| 959 unittest.expect(o["x"], unittest.equals('foo')); | 997 unittest.expect(o["x"], unittest.equals('foo')); |
| 960 unittest.expect(o["y"], unittest.equals('foo')); | 998 unittest.expect(o["y"], unittest.equals('foo')); |
| 961 } | 999 } |
| 962 | 1000 |
| 963 core.int buildCounterLoggingConfig = 0; | 1001 core.int buildCounterLoggingConfig = 0; |
| 964 buildLoggingConfig() { | 1002 buildLoggingConfig() { |
| 965 var o = new api.LoggingConfig(); | 1003 var o = new api.LoggingConfig(); |
| 966 buildCounterLoggingConfig++; | 1004 buildCounterLoggingConfig++; |
| 967 if (buildCounterLoggingConfig < 3) { | 1005 if (buildCounterLoggingConfig < 3) { |
| 968 o.driverLogLevels = buildUnnamed452(); | 1006 o.driverLogLevels = buildUnnamed455(); |
| 969 } | 1007 } |
| 970 buildCounterLoggingConfig--; | 1008 buildCounterLoggingConfig--; |
| 971 return o; | 1009 return o; |
| 972 } | 1010 } |
| 973 | 1011 |
| 974 checkLoggingConfig(api.LoggingConfig o) { | 1012 checkLoggingConfig(api.LoggingConfig o) { |
| 975 buildCounterLoggingConfig++; | 1013 buildCounterLoggingConfig++; |
| 976 if (buildCounterLoggingConfig < 3) { | 1014 if (buildCounterLoggingConfig < 3) { |
| 977 checkUnnamed452(o.driverLogLevels); | 1015 checkUnnamed455(o.driverLogLevels); |
| 978 } | 1016 } |
| 979 buildCounterLoggingConfig--; | 1017 buildCounterLoggingConfig--; |
| 980 } | 1018 } |
| 981 | 1019 |
| 982 core.int buildCounterManagedGroupConfig = 0; | 1020 core.int buildCounterManagedGroupConfig = 0; |
| 983 buildManagedGroupConfig() { | 1021 buildManagedGroupConfig() { |
| 984 var o = new api.ManagedGroupConfig(); | 1022 var o = new api.ManagedGroupConfig(); |
| 985 buildCounterManagedGroupConfig++; | 1023 buildCounterManagedGroupConfig++; |
| 986 if (buildCounterManagedGroupConfig < 3) { | 1024 if (buildCounterManagedGroupConfig < 3) { |
| 987 o.instanceGroupManagerName = "foo"; | 1025 o.instanceGroupManagerName = "foo"; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 1014 | 1052 |
| 1015 checkNodeInitializationAction(api.NodeInitializationAction o) { | 1053 checkNodeInitializationAction(api.NodeInitializationAction o) { |
| 1016 buildCounterNodeInitializationAction++; | 1054 buildCounterNodeInitializationAction++; |
| 1017 if (buildCounterNodeInitializationAction < 3) { | 1055 if (buildCounterNodeInitializationAction < 3) { |
| 1018 unittest.expect(o.executableFile, unittest.equals('foo')); | 1056 unittest.expect(o.executableFile, unittest.equals('foo')); |
| 1019 unittest.expect(o.executionTimeout, unittest.equals('foo')); | 1057 unittest.expect(o.executionTimeout, unittest.equals('foo')); |
| 1020 } | 1058 } |
| 1021 buildCounterNodeInitializationAction--; | 1059 buildCounterNodeInitializationAction--; |
| 1022 } | 1060 } |
| 1023 | 1061 |
| 1024 buildUnnamed453() { | 1062 buildUnnamed456() { |
| 1025 var o = new core.Map<core.String, core.Object>(); | 1063 var o = new core.Map<core.String, core.Object>(); |
| 1026 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1064 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1027 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1065 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1028 return o; | 1066 return o; |
| 1029 } | 1067 } |
| 1030 | 1068 |
| 1031 checkUnnamed453(core.Map<core.String, core.Object> o) { | 1069 checkUnnamed456(core.Map<core.String, core.Object> o) { |
| 1032 unittest.expect(o, unittest.hasLength(2)); | 1070 unittest.expect(o, unittest.hasLength(2)); |
| 1033 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); | 1071 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')); |
| 1034 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); | 1072 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')); |
| 1035 } | 1073 } |
| 1036 | 1074 |
| 1037 buildUnnamed454() { | 1075 buildUnnamed457() { |
| 1038 var o = new core.Map<core.String, core.Object>(); | 1076 var o = new core.Map<core.String, core.Object>(); |
| 1039 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1077 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1040 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1078 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1041 return o; | 1079 return o; |
| 1042 } | 1080 } |
| 1043 | 1081 |
| 1044 checkUnnamed454(core.Map<core.String, core.Object> o) { | 1082 checkUnnamed457(core.Map<core.String, core.Object> o) { |
| 1045 unittest.expect(o, unittest.hasLength(2)); | 1083 unittest.expect(o, unittest.hasLength(2)); |
| 1046 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); | 1084 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')); |
| 1047 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); | 1085 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')); |
| 1048 } | 1086 } |
| 1049 | 1087 |
| 1050 core.int buildCounterOperation = 0; | 1088 core.int buildCounterOperation = 0; |
| 1051 buildOperation() { | 1089 buildOperation() { |
| 1052 var o = new api.Operation(); | 1090 var o = new api.Operation(); |
| 1053 buildCounterOperation++; | 1091 buildCounterOperation++; |
| 1054 if (buildCounterOperation < 3) { | 1092 if (buildCounterOperation < 3) { |
| 1055 o.done = true; | 1093 o.done = true; |
| 1056 o.error = buildStatus(); | 1094 o.error = buildStatus(); |
| 1057 o.metadata = buildUnnamed453(); | 1095 o.metadata = buildUnnamed456(); |
| 1058 o.name = "foo"; | 1096 o.name = "foo"; |
| 1059 o.response = buildUnnamed454(); | 1097 o.response = buildUnnamed457(); |
| 1060 } | 1098 } |
| 1061 buildCounterOperation--; | 1099 buildCounterOperation--; |
| 1062 return o; | 1100 return o; |
| 1063 } | 1101 } |
| 1064 | 1102 |
| 1065 checkOperation(api.Operation o) { | 1103 checkOperation(api.Operation o) { |
| 1066 buildCounterOperation++; | 1104 buildCounterOperation++; |
| 1067 if (buildCounterOperation < 3) { | 1105 if (buildCounterOperation < 3) { |
| 1068 unittest.expect(o.done, unittest.isTrue); | 1106 unittest.expect(o.done, unittest.isTrue); |
| 1069 checkStatus(o.error); | 1107 checkStatus(o.error); |
| 1070 checkUnnamed453(o.metadata); | 1108 checkUnnamed456(o.metadata); |
| 1071 unittest.expect(o.name, unittest.equals('foo')); | 1109 unittest.expect(o.name, unittest.equals('foo')); |
| 1072 checkUnnamed454(o.response); | 1110 checkUnnamed457(o.response); |
| 1073 } | 1111 } |
| 1074 buildCounterOperation--; | 1112 buildCounterOperation--; |
| 1075 } | 1113 } |
| 1076 | 1114 |
| 1077 buildUnnamed455() { | 1115 buildUnnamed458() { |
| 1078 var o = new core.List<api.OperationStatus>(); | 1116 var o = new core.List<api.OperationStatus>(); |
| 1079 o.add(buildOperationStatus()); | 1117 o.add(buildOperationStatus()); |
| 1080 o.add(buildOperationStatus()); | 1118 o.add(buildOperationStatus()); |
| 1081 return o; | 1119 return o; |
| 1082 } | 1120 } |
| 1083 | 1121 |
| 1084 checkUnnamed455(core.List<api.OperationStatus> o) { | 1122 checkUnnamed458(core.List<api.OperationStatus> o) { |
| 1085 unittest.expect(o, unittest.hasLength(2)); | 1123 unittest.expect(o, unittest.hasLength(2)); |
| 1086 checkOperationStatus(o[0]); | 1124 checkOperationStatus(o[0]); |
| 1087 checkOperationStatus(o[1]); | 1125 checkOperationStatus(o[1]); |
| 1088 } | 1126 } |
| 1089 | 1127 |
| 1128 buildUnnamed459() { |
| 1129 var o = new core.List<core.String>(); |
| 1130 o.add("foo"); |
| 1131 o.add("foo"); |
| 1132 return o; |
| 1133 } |
| 1134 |
| 1135 checkUnnamed459(core.List<core.String> o) { |
| 1136 unittest.expect(o, unittest.hasLength(2)); |
| 1137 unittest.expect(o[0], unittest.equals('foo')); |
| 1138 unittest.expect(o[1], unittest.equals('foo')); |
| 1139 } |
| 1140 |
| 1090 core.int buildCounterOperationMetadata = 0; | 1141 core.int buildCounterOperationMetadata = 0; |
| 1091 buildOperationMetadata() { | 1142 buildOperationMetadata() { |
| 1092 var o = new api.OperationMetadata(); | 1143 var o = new api.OperationMetadata(); |
| 1093 buildCounterOperationMetadata++; | 1144 buildCounterOperationMetadata++; |
| 1094 if (buildCounterOperationMetadata < 3) { | 1145 if (buildCounterOperationMetadata < 3) { |
| 1095 o.clusterName = "foo"; | 1146 o.clusterName = "foo"; |
| 1096 o.clusterUuid = "foo"; | 1147 o.clusterUuid = "foo"; |
| 1097 o.description = "foo"; | 1148 o.description = "foo"; |
| 1098 o.details = "foo"; | 1149 o.details = "foo"; |
| 1099 o.endTime = "foo"; | 1150 o.endTime = "foo"; |
| 1100 o.innerState = "foo"; | 1151 o.innerState = "foo"; |
| 1101 o.insertTime = "foo"; | 1152 o.insertTime = "foo"; |
| 1102 o.operationType = "foo"; | 1153 o.operationType = "foo"; |
| 1103 o.startTime = "foo"; | 1154 o.startTime = "foo"; |
| 1104 o.state = "foo"; | 1155 o.state = "foo"; |
| 1105 o.status = buildOperationStatus(); | 1156 o.status = buildOperationStatus(); |
| 1106 o.statusHistory = buildUnnamed455(); | 1157 o.statusHistory = buildUnnamed458(); |
| 1158 o.warnings = buildUnnamed459(); |
| 1107 } | 1159 } |
| 1108 buildCounterOperationMetadata--; | 1160 buildCounterOperationMetadata--; |
| 1109 return o; | 1161 return o; |
| 1110 } | 1162 } |
| 1111 | 1163 |
| 1112 checkOperationMetadata(api.OperationMetadata o) { | 1164 checkOperationMetadata(api.OperationMetadata o) { |
| 1113 buildCounterOperationMetadata++; | 1165 buildCounterOperationMetadata++; |
| 1114 if (buildCounterOperationMetadata < 3) { | 1166 if (buildCounterOperationMetadata < 3) { |
| 1115 unittest.expect(o.clusterName, unittest.equals('foo')); | 1167 unittest.expect(o.clusterName, unittest.equals('foo')); |
| 1116 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 1168 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
| 1117 unittest.expect(o.description, unittest.equals('foo')); | 1169 unittest.expect(o.description, unittest.equals('foo')); |
| 1118 unittest.expect(o.details, unittest.equals('foo')); | 1170 unittest.expect(o.details, unittest.equals('foo')); |
| 1119 unittest.expect(o.endTime, unittest.equals('foo')); | 1171 unittest.expect(o.endTime, unittest.equals('foo')); |
| 1120 unittest.expect(o.innerState, unittest.equals('foo')); | 1172 unittest.expect(o.innerState, unittest.equals('foo')); |
| 1121 unittest.expect(o.insertTime, unittest.equals('foo')); | 1173 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 1122 unittest.expect(o.operationType, unittest.equals('foo')); | 1174 unittest.expect(o.operationType, unittest.equals('foo')); |
| 1123 unittest.expect(o.startTime, unittest.equals('foo')); | 1175 unittest.expect(o.startTime, unittest.equals('foo')); |
| 1124 unittest.expect(o.state, unittest.equals('foo')); | 1176 unittest.expect(o.state, unittest.equals('foo')); |
| 1125 checkOperationStatus(o.status); | 1177 checkOperationStatus(o.status); |
| 1126 checkUnnamed455(o.statusHistory); | 1178 checkUnnamed458(o.statusHistory); |
| 1179 checkUnnamed459(o.warnings); |
| 1127 } | 1180 } |
| 1128 buildCounterOperationMetadata--; | 1181 buildCounterOperationMetadata--; |
| 1129 } | 1182 } |
| 1130 | 1183 |
| 1131 core.int buildCounterOperationStatus = 0; | 1184 core.int buildCounterOperationStatus = 0; |
| 1132 buildOperationStatus() { | 1185 buildOperationStatus() { |
| 1133 var o = new api.OperationStatus(); | 1186 var o = new api.OperationStatus(); |
| 1134 buildCounterOperationStatus++; | 1187 buildCounterOperationStatus++; |
| 1135 if (buildCounterOperationStatus < 3) { | 1188 if (buildCounterOperationStatus < 3) { |
| 1136 o.details = "foo"; | 1189 o.details = "foo"; |
| 1137 o.innerState = "foo"; | 1190 o.innerState = "foo"; |
| 1138 o.state = "foo"; | 1191 o.state = "foo"; |
| 1139 o.stateStartTime = "foo"; | 1192 o.stateStartTime = "foo"; |
| 1140 } | 1193 } |
| 1141 buildCounterOperationStatus--; | 1194 buildCounterOperationStatus--; |
| 1142 return o; | 1195 return o; |
| 1143 } | 1196 } |
| 1144 | 1197 |
| 1145 checkOperationStatus(api.OperationStatus o) { | 1198 checkOperationStatus(api.OperationStatus o) { |
| 1146 buildCounterOperationStatus++; | 1199 buildCounterOperationStatus++; |
| 1147 if (buildCounterOperationStatus < 3) { | 1200 if (buildCounterOperationStatus < 3) { |
| 1148 unittest.expect(o.details, unittest.equals('foo')); | 1201 unittest.expect(o.details, unittest.equals('foo')); |
| 1149 unittest.expect(o.innerState, unittest.equals('foo')); | 1202 unittest.expect(o.innerState, unittest.equals('foo')); |
| 1150 unittest.expect(o.state, unittest.equals('foo')); | 1203 unittest.expect(o.state, unittest.equals('foo')); |
| 1151 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 1204 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
| 1152 } | 1205 } |
| 1153 buildCounterOperationStatus--; | 1206 buildCounterOperationStatus--; |
| 1154 } | 1207 } |
| 1155 | 1208 |
| 1156 buildUnnamed456() { | 1209 buildUnnamed460() { |
| 1157 var o = new core.List<core.String>(); | 1210 var o = new core.List<core.String>(); |
| 1158 o.add("foo"); | 1211 o.add("foo"); |
| 1159 o.add("foo"); | 1212 o.add("foo"); |
| 1160 return o; | 1213 return o; |
| 1161 } | 1214 } |
| 1162 | 1215 |
| 1163 checkUnnamed456(core.List<core.String> o) { | 1216 checkUnnamed460(core.List<core.String> o) { |
| 1164 unittest.expect(o, unittest.hasLength(2)); | 1217 unittest.expect(o, unittest.hasLength(2)); |
| 1165 unittest.expect(o[0], unittest.equals('foo')); | 1218 unittest.expect(o[0], unittest.equals('foo')); |
| 1166 unittest.expect(o[1], unittest.equals('foo')); | 1219 unittest.expect(o[1], unittest.equals('foo')); |
| 1167 } | 1220 } |
| 1168 | 1221 |
| 1169 buildUnnamed457() { | 1222 buildUnnamed461() { |
| 1170 var o = new core.Map<core.String, core.String>(); | 1223 var o = new core.Map<core.String, core.String>(); |
| 1171 o["x"] = "foo"; | 1224 o["x"] = "foo"; |
| 1172 o["y"] = "foo"; | 1225 o["y"] = "foo"; |
| 1173 return o; | 1226 return o; |
| 1174 } | 1227 } |
| 1175 | 1228 |
| 1176 checkUnnamed457(core.Map<core.String, core.String> o) { | 1229 checkUnnamed461(core.Map<core.String, core.String> o) { |
| 1177 unittest.expect(o, unittest.hasLength(2)); | 1230 unittest.expect(o, unittest.hasLength(2)); |
| 1178 unittest.expect(o["x"], unittest.equals('foo')); | 1231 unittest.expect(o["x"], unittest.equals('foo')); |
| 1179 unittest.expect(o["y"], unittest.equals('foo')); | 1232 unittest.expect(o["y"], unittest.equals('foo')); |
| 1180 } | 1233 } |
| 1181 | 1234 |
| 1182 buildUnnamed458() { | 1235 buildUnnamed462() { |
| 1183 var o = new core.Map<core.String, core.String>(); | 1236 var o = new core.Map<core.String, core.String>(); |
| 1184 o["x"] = "foo"; | 1237 o["x"] = "foo"; |
| 1185 o["y"] = "foo"; | 1238 o["y"] = "foo"; |
| 1186 return o; | 1239 return o; |
| 1187 } | 1240 } |
| 1188 | 1241 |
| 1189 checkUnnamed458(core.Map<core.String, core.String> o) { | 1242 checkUnnamed462(core.Map<core.String, core.String> o) { |
| 1190 unittest.expect(o, unittest.hasLength(2)); | 1243 unittest.expect(o, unittest.hasLength(2)); |
| 1191 unittest.expect(o["x"], unittest.equals('foo')); | 1244 unittest.expect(o["x"], unittest.equals('foo')); |
| 1192 unittest.expect(o["y"], unittest.equals('foo')); | 1245 unittest.expect(o["y"], unittest.equals('foo')); |
| 1193 } | 1246 } |
| 1194 | 1247 |
| 1195 core.int buildCounterPigJob = 0; | 1248 core.int buildCounterPigJob = 0; |
| 1196 buildPigJob() { | 1249 buildPigJob() { |
| 1197 var o = new api.PigJob(); | 1250 var o = new api.PigJob(); |
| 1198 buildCounterPigJob++; | 1251 buildCounterPigJob++; |
| 1199 if (buildCounterPigJob < 3) { | 1252 if (buildCounterPigJob < 3) { |
| 1200 o.continueOnFailure = true; | 1253 o.continueOnFailure = true; |
| 1201 o.jarFileUris = buildUnnamed456(); | 1254 o.jarFileUris = buildUnnamed460(); |
| 1202 o.loggingConfig = buildLoggingConfig(); | 1255 o.loggingConfig = buildLoggingConfig(); |
| 1203 o.properties = buildUnnamed457(); | 1256 o.properties = buildUnnamed461(); |
| 1204 o.queryFileUri = "foo"; | 1257 o.queryFileUri = "foo"; |
| 1205 o.queryList = buildQueryList(); | 1258 o.queryList = buildQueryList(); |
| 1206 o.scriptVariables = buildUnnamed458(); | 1259 o.scriptVariables = buildUnnamed462(); |
| 1207 } | 1260 } |
| 1208 buildCounterPigJob--; | 1261 buildCounterPigJob--; |
| 1209 return o; | 1262 return o; |
| 1210 } | 1263 } |
| 1211 | 1264 |
| 1212 checkPigJob(api.PigJob o) { | 1265 checkPigJob(api.PigJob o) { |
| 1213 buildCounterPigJob++; | 1266 buildCounterPigJob++; |
| 1214 if (buildCounterPigJob < 3) { | 1267 if (buildCounterPigJob < 3) { |
| 1215 unittest.expect(o.continueOnFailure, unittest.isTrue); | 1268 unittest.expect(o.continueOnFailure, unittest.isTrue); |
| 1216 checkUnnamed456(o.jarFileUris); | 1269 checkUnnamed460(o.jarFileUris); |
| 1217 checkLoggingConfig(o.loggingConfig); | 1270 checkLoggingConfig(o.loggingConfig); |
| 1218 checkUnnamed457(o.properties); | 1271 checkUnnamed461(o.properties); |
| 1219 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1272 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
| 1220 checkQueryList(o.queryList); | 1273 checkQueryList(o.queryList); |
| 1221 checkUnnamed458(o.scriptVariables); | 1274 checkUnnamed462(o.scriptVariables); |
| 1222 } | 1275 } |
| 1223 buildCounterPigJob--; | 1276 buildCounterPigJob--; |
| 1224 } | 1277 } |
| 1225 | 1278 |
| 1226 buildUnnamed459() { | 1279 buildUnnamed463() { |
| 1227 var o = new core.List<core.String>(); | 1280 var o = new core.List<core.String>(); |
| 1228 o.add("foo"); | 1281 o.add("foo"); |
| 1229 o.add("foo"); | 1282 o.add("foo"); |
| 1230 return o; | 1283 return o; |
| 1231 } | 1284 } |
| 1232 | 1285 |
| 1233 checkUnnamed459(core.List<core.String> o) { | 1286 checkUnnamed463(core.List<core.String> o) { |
| 1234 unittest.expect(o, unittest.hasLength(2)); | 1287 unittest.expect(o, unittest.hasLength(2)); |
| 1235 unittest.expect(o[0], unittest.equals('foo')); | 1288 unittest.expect(o[0], unittest.equals('foo')); |
| 1236 unittest.expect(o[1], unittest.equals('foo')); | 1289 unittest.expect(o[1], unittest.equals('foo')); |
| 1237 } | 1290 } |
| 1238 | 1291 |
| 1239 buildUnnamed460() { | |
| 1240 var o = new core.List<core.String>(); | |
| 1241 o.add("foo"); | |
| 1242 o.add("foo"); | |
| 1243 return o; | |
| 1244 } | |
| 1245 | |
| 1246 checkUnnamed460(core.List<core.String> o) { | |
| 1247 unittest.expect(o, unittest.hasLength(2)); | |
| 1248 unittest.expect(o[0], unittest.equals('foo')); | |
| 1249 unittest.expect(o[1], unittest.equals('foo')); | |
| 1250 } | |
| 1251 | |
| 1252 buildUnnamed461() { | |
| 1253 var o = new core.List<core.String>(); | |
| 1254 o.add("foo"); | |
| 1255 o.add("foo"); | |
| 1256 return o; | |
| 1257 } | |
| 1258 | |
| 1259 checkUnnamed461(core.List<core.String> o) { | |
| 1260 unittest.expect(o, unittest.hasLength(2)); | |
| 1261 unittest.expect(o[0], unittest.equals('foo')); | |
| 1262 unittest.expect(o[1], unittest.equals('foo')); | |
| 1263 } | |
| 1264 | |
| 1265 buildUnnamed462() { | |
| 1266 var o = new core.List<core.String>(); | |
| 1267 o.add("foo"); | |
| 1268 o.add("foo"); | |
| 1269 return o; | |
| 1270 } | |
| 1271 | |
| 1272 checkUnnamed462(core.List<core.String> o) { | |
| 1273 unittest.expect(o, unittest.hasLength(2)); | |
| 1274 unittest.expect(o[0], unittest.equals('foo')); | |
| 1275 unittest.expect(o[1], unittest.equals('foo')); | |
| 1276 } | |
| 1277 | |
| 1278 buildUnnamed463() { | |
| 1279 var o = new core.Map<core.String, core.String>(); | |
| 1280 o["x"] = "foo"; | |
| 1281 o["y"] = "foo"; | |
| 1282 return o; | |
| 1283 } | |
| 1284 | |
| 1285 checkUnnamed463(core.Map<core.String, core.String> o) { | |
| 1286 unittest.expect(o, unittest.hasLength(2)); | |
| 1287 unittest.expect(o["x"], unittest.equals('foo')); | |
| 1288 unittest.expect(o["y"], unittest.equals('foo')); | |
| 1289 } | |
| 1290 | |
| 1291 buildUnnamed464() { | 1292 buildUnnamed464() { |
| 1292 var o = new core.List<core.String>(); | 1293 var o = new core.List<core.String>(); |
| 1293 o.add("foo"); | 1294 o.add("foo"); |
| 1294 o.add("foo"); | 1295 o.add("foo"); |
| 1295 return o; | 1296 return o; |
| 1296 } | 1297 } |
| 1297 | 1298 |
| 1298 checkUnnamed464(core.List<core.String> o) { | 1299 checkUnnamed464(core.List<core.String> o) { |
| 1299 unittest.expect(o, unittest.hasLength(2)); | 1300 unittest.expect(o, unittest.hasLength(2)); |
| 1300 unittest.expect(o[0], unittest.equals('foo')); | 1301 unittest.expect(o[0], unittest.equals('foo')); |
| 1301 unittest.expect(o[1], unittest.equals('foo')); | 1302 unittest.expect(o[1], unittest.equals('foo')); |
| 1303 } |
| 1304 |
| 1305 buildUnnamed465() { |
| 1306 var o = new core.List<core.String>(); |
| 1307 o.add("foo"); |
| 1308 o.add("foo"); |
| 1309 return o; |
| 1310 } |
| 1311 |
| 1312 checkUnnamed465(core.List<core.String> o) { |
| 1313 unittest.expect(o, unittest.hasLength(2)); |
| 1314 unittest.expect(o[0], unittest.equals('foo')); |
| 1315 unittest.expect(o[1], unittest.equals('foo')); |
| 1316 } |
| 1317 |
| 1318 buildUnnamed466() { |
| 1319 var o = new core.List<core.String>(); |
| 1320 o.add("foo"); |
| 1321 o.add("foo"); |
| 1322 return o; |
| 1323 } |
| 1324 |
| 1325 checkUnnamed466(core.List<core.String> o) { |
| 1326 unittest.expect(o, unittest.hasLength(2)); |
| 1327 unittest.expect(o[0], unittest.equals('foo')); |
| 1328 unittest.expect(o[1], unittest.equals('foo')); |
| 1329 } |
| 1330 |
| 1331 buildUnnamed467() { |
| 1332 var o = new core.Map<core.String, core.String>(); |
| 1333 o["x"] = "foo"; |
| 1334 o["y"] = "foo"; |
| 1335 return o; |
| 1336 } |
| 1337 |
| 1338 checkUnnamed467(core.Map<core.String, core.String> o) { |
| 1339 unittest.expect(o, unittest.hasLength(2)); |
| 1340 unittest.expect(o["x"], unittest.equals('foo')); |
| 1341 unittest.expect(o["y"], unittest.equals('foo')); |
| 1342 } |
| 1343 |
| 1344 buildUnnamed468() { |
| 1345 var o = new core.List<core.String>(); |
| 1346 o.add("foo"); |
| 1347 o.add("foo"); |
| 1348 return o; |
| 1349 } |
| 1350 |
| 1351 checkUnnamed468(core.List<core.String> o) { |
| 1352 unittest.expect(o, unittest.hasLength(2)); |
| 1353 unittest.expect(o[0], unittest.equals('foo')); |
| 1354 unittest.expect(o[1], unittest.equals('foo')); |
| 1302 } | 1355 } |
| 1303 | 1356 |
| 1304 core.int buildCounterPySparkJob = 0; | 1357 core.int buildCounterPySparkJob = 0; |
| 1305 buildPySparkJob() { | 1358 buildPySparkJob() { |
| 1306 var o = new api.PySparkJob(); | 1359 var o = new api.PySparkJob(); |
| 1307 buildCounterPySparkJob++; | 1360 buildCounterPySparkJob++; |
| 1308 if (buildCounterPySparkJob < 3) { | 1361 if (buildCounterPySparkJob < 3) { |
| 1309 o.archiveUris = buildUnnamed459(); | 1362 o.archiveUris = buildUnnamed463(); |
| 1310 o.args = buildUnnamed460(); | 1363 o.args = buildUnnamed464(); |
| 1311 o.fileUris = buildUnnamed461(); | 1364 o.fileUris = buildUnnamed465(); |
| 1312 o.jarFileUris = buildUnnamed462(); | 1365 o.jarFileUris = buildUnnamed466(); |
| 1313 o.loggingConfig = buildLoggingConfig(); | 1366 o.loggingConfig = buildLoggingConfig(); |
| 1314 o.mainPythonFileUri = "foo"; | 1367 o.mainPythonFileUri = "foo"; |
| 1315 o.properties = buildUnnamed463(); | 1368 o.properties = buildUnnamed467(); |
| 1316 o.pythonFileUris = buildUnnamed464(); | 1369 o.pythonFileUris = buildUnnamed468(); |
| 1317 } | 1370 } |
| 1318 buildCounterPySparkJob--; | 1371 buildCounterPySparkJob--; |
| 1319 return o; | 1372 return o; |
| 1320 } | 1373 } |
| 1321 | 1374 |
| 1322 checkPySparkJob(api.PySparkJob o) { | 1375 checkPySparkJob(api.PySparkJob o) { |
| 1323 buildCounterPySparkJob++; | 1376 buildCounterPySparkJob++; |
| 1324 if (buildCounterPySparkJob < 3) { | 1377 if (buildCounterPySparkJob < 3) { |
| 1325 checkUnnamed459(o.archiveUris); | 1378 checkUnnamed463(o.archiveUris); |
| 1326 checkUnnamed460(o.args); | 1379 checkUnnamed464(o.args); |
| 1327 checkUnnamed461(o.fileUris); | 1380 checkUnnamed465(o.fileUris); |
| 1328 checkUnnamed462(o.jarFileUris); | 1381 checkUnnamed466(o.jarFileUris); |
| 1329 checkLoggingConfig(o.loggingConfig); | 1382 checkLoggingConfig(o.loggingConfig); |
| 1330 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); | 1383 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); |
| 1331 checkUnnamed463(o.properties); | 1384 checkUnnamed467(o.properties); |
| 1332 checkUnnamed464(o.pythonFileUris); | 1385 checkUnnamed468(o.pythonFileUris); |
| 1333 } | 1386 } |
| 1334 buildCounterPySparkJob--; | 1387 buildCounterPySparkJob--; |
| 1335 } | 1388 } |
| 1336 | 1389 |
| 1337 buildUnnamed465() { | 1390 buildUnnamed469() { |
| 1338 var o = new core.List<core.String>(); | 1391 var o = new core.List<core.String>(); |
| 1339 o.add("foo"); | 1392 o.add("foo"); |
| 1340 o.add("foo"); | 1393 o.add("foo"); |
| 1341 return o; | 1394 return o; |
| 1342 } | 1395 } |
| 1343 | 1396 |
| 1344 checkUnnamed465(core.List<core.String> o) { | 1397 checkUnnamed469(core.List<core.String> o) { |
| 1345 unittest.expect(o, unittest.hasLength(2)); | 1398 unittest.expect(o, unittest.hasLength(2)); |
| 1346 unittest.expect(o[0], unittest.equals('foo')); | 1399 unittest.expect(o[0], unittest.equals('foo')); |
| 1347 unittest.expect(o[1], unittest.equals('foo')); | 1400 unittest.expect(o[1], unittest.equals('foo')); |
| 1348 } | 1401 } |
| 1349 | 1402 |
| 1350 core.int buildCounterQueryList = 0; | 1403 core.int buildCounterQueryList = 0; |
| 1351 buildQueryList() { | 1404 buildQueryList() { |
| 1352 var o = new api.QueryList(); | 1405 var o = new api.QueryList(); |
| 1353 buildCounterQueryList++; | 1406 buildCounterQueryList++; |
| 1354 if (buildCounterQueryList < 3) { | 1407 if (buildCounterQueryList < 3) { |
| 1355 o.queries = buildUnnamed465(); | 1408 o.queries = buildUnnamed469(); |
| 1356 } | 1409 } |
| 1357 buildCounterQueryList--; | 1410 buildCounterQueryList--; |
| 1358 return o; | 1411 return o; |
| 1359 } | 1412 } |
| 1360 | 1413 |
| 1361 checkQueryList(api.QueryList o) { | 1414 checkQueryList(api.QueryList o) { |
| 1362 buildCounterQueryList++; | 1415 buildCounterQueryList++; |
| 1363 if (buildCounterQueryList < 3) { | 1416 if (buildCounterQueryList < 3) { |
| 1364 checkUnnamed465(o.queries); | 1417 checkUnnamed469(o.queries); |
| 1365 } | 1418 } |
| 1366 buildCounterQueryList--; | 1419 buildCounterQueryList--; |
| 1367 } | 1420 } |
| 1368 | 1421 |
| 1369 buildUnnamed466() { | 1422 buildUnnamed470() { |
| 1370 var o = new core.Map<core.String, core.String>(); | 1423 var o = new core.Map<core.String, core.String>(); |
| 1371 o["x"] = "foo"; | 1424 o["x"] = "foo"; |
| 1372 o["y"] = "foo"; | 1425 o["y"] = "foo"; |
| 1373 return o; | 1426 return o; |
| 1374 } | 1427 } |
| 1375 | 1428 |
| 1376 checkUnnamed466(core.Map<core.String, core.String> o) { | 1429 checkUnnamed470(core.Map<core.String, core.String> o) { |
| 1377 unittest.expect(o, unittest.hasLength(2)); | 1430 unittest.expect(o, unittest.hasLength(2)); |
| 1378 unittest.expect(o["x"], unittest.equals('foo')); | 1431 unittest.expect(o["x"], unittest.equals('foo')); |
| 1379 unittest.expect(o["y"], unittest.equals('foo')); | 1432 unittest.expect(o["y"], unittest.equals('foo')); |
| 1380 } | 1433 } |
| 1381 | 1434 |
| 1382 core.int buildCounterSoftwareConfig = 0; | 1435 core.int buildCounterSoftwareConfig = 0; |
| 1383 buildSoftwareConfig() { | 1436 buildSoftwareConfig() { |
| 1384 var o = new api.SoftwareConfig(); | 1437 var o = new api.SoftwareConfig(); |
| 1385 buildCounterSoftwareConfig++; | 1438 buildCounterSoftwareConfig++; |
| 1386 if (buildCounterSoftwareConfig < 3) { | 1439 if (buildCounterSoftwareConfig < 3) { |
| 1387 o.imageVersion = "foo"; | 1440 o.imageVersion = "foo"; |
| 1388 o.properties = buildUnnamed466(); | 1441 o.properties = buildUnnamed470(); |
| 1389 } | 1442 } |
| 1390 buildCounterSoftwareConfig--; | 1443 buildCounterSoftwareConfig--; |
| 1391 return o; | 1444 return o; |
| 1392 } | 1445 } |
| 1393 | 1446 |
| 1394 checkSoftwareConfig(api.SoftwareConfig o) { | 1447 checkSoftwareConfig(api.SoftwareConfig o) { |
| 1395 buildCounterSoftwareConfig++; | 1448 buildCounterSoftwareConfig++; |
| 1396 if (buildCounterSoftwareConfig < 3) { | 1449 if (buildCounterSoftwareConfig < 3) { |
| 1397 unittest.expect(o.imageVersion, unittest.equals('foo')); | 1450 unittest.expect(o.imageVersion, unittest.equals('foo')); |
| 1398 checkUnnamed466(o.properties); | 1451 checkUnnamed470(o.properties); |
| 1399 } | 1452 } |
| 1400 buildCounterSoftwareConfig--; | 1453 buildCounterSoftwareConfig--; |
| 1401 } | 1454 } |
| 1402 | 1455 |
| 1403 buildUnnamed467() { | 1456 buildUnnamed471() { |
| 1404 var o = new core.List<core.String>(); | 1457 var o = new core.List<core.String>(); |
| 1405 o.add("foo"); | 1458 o.add("foo"); |
| 1406 o.add("foo"); | 1459 o.add("foo"); |
| 1407 return o; | 1460 return o; |
| 1408 } | 1461 } |
| 1409 | 1462 |
| 1410 checkUnnamed467(core.List<core.String> o) { | 1463 checkUnnamed471(core.List<core.String> o) { |
| 1411 unittest.expect(o, unittest.hasLength(2)); | 1464 unittest.expect(o, unittest.hasLength(2)); |
| 1412 unittest.expect(o[0], unittest.equals('foo')); | 1465 unittest.expect(o[0], unittest.equals('foo')); |
| 1413 unittest.expect(o[1], unittest.equals('foo')); | 1466 unittest.expect(o[1], unittest.equals('foo')); |
| 1414 } | 1467 } |
| 1415 | 1468 |
| 1416 buildUnnamed468() { | 1469 buildUnnamed472() { |
| 1417 var o = new core.List<core.String>(); | 1470 var o = new core.List<core.String>(); |
| 1418 o.add("foo"); | 1471 o.add("foo"); |
| 1419 o.add("foo"); | 1472 o.add("foo"); |
| 1420 return o; | 1473 return o; |
| 1421 } | 1474 } |
| 1422 | 1475 |
| 1423 checkUnnamed468(core.List<core.String> o) { | 1476 checkUnnamed472(core.List<core.String> o) { |
| 1424 unittest.expect(o, unittest.hasLength(2)); | 1477 unittest.expect(o, unittest.hasLength(2)); |
| 1425 unittest.expect(o[0], unittest.equals('foo')); | 1478 unittest.expect(o[0], unittest.equals('foo')); |
| 1426 unittest.expect(o[1], unittest.equals('foo')); | 1479 unittest.expect(o[1], unittest.equals('foo')); |
| 1427 } | 1480 } |
| 1428 | 1481 |
| 1429 buildUnnamed469() { | 1482 buildUnnamed473() { |
| 1430 var o = new core.List<core.String>(); | 1483 var o = new core.List<core.String>(); |
| 1431 o.add("foo"); | 1484 o.add("foo"); |
| 1432 o.add("foo"); | 1485 o.add("foo"); |
| 1433 return o; | 1486 return o; |
| 1434 } | 1487 } |
| 1435 | 1488 |
| 1436 checkUnnamed469(core.List<core.String> o) { | 1489 checkUnnamed473(core.List<core.String> o) { |
| 1437 unittest.expect(o, unittest.hasLength(2)); | 1490 unittest.expect(o, unittest.hasLength(2)); |
| 1438 unittest.expect(o[0], unittest.equals('foo')); | 1491 unittest.expect(o[0], unittest.equals('foo')); |
| 1439 unittest.expect(o[1], unittest.equals('foo')); | 1492 unittest.expect(o[1], unittest.equals('foo')); |
| 1440 } | 1493 } |
| 1441 | 1494 |
| 1442 buildUnnamed470() { | 1495 buildUnnamed474() { |
| 1443 var o = new core.List<core.String>(); | 1496 var o = new core.List<core.String>(); |
| 1444 o.add("foo"); | 1497 o.add("foo"); |
| 1445 o.add("foo"); | 1498 o.add("foo"); |
| 1446 return o; | 1499 return o; |
| 1447 } | 1500 } |
| 1448 | 1501 |
| 1449 checkUnnamed470(core.List<core.String> o) { | 1502 checkUnnamed474(core.List<core.String> o) { |
| 1450 unittest.expect(o, unittest.hasLength(2)); | 1503 unittest.expect(o, unittest.hasLength(2)); |
| 1451 unittest.expect(o[0], unittest.equals('foo')); | 1504 unittest.expect(o[0], unittest.equals('foo')); |
| 1452 unittest.expect(o[1], unittest.equals('foo')); | 1505 unittest.expect(o[1], unittest.equals('foo')); |
| 1453 } | 1506 } |
| 1454 | 1507 |
| 1455 buildUnnamed471() { | 1508 buildUnnamed475() { |
| 1456 var o = new core.Map<core.String, core.String>(); | 1509 var o = new core.Map<core.String, core.String>(); |
| 1457 o["x"] = "foo"; | 1510 o["x"] = "foo"; |
| 1458 o["y"] = "foo"; | 1511 o["y"] = "foo"; |
| 1459 return o; | 1512 return o; |
| 1460 } | 1513 } |
| 1461 | 1514 |
| 1462 checkUnnamed471(core.Map<core.String, core.String> o) { | 1515 checkUnnamed475(core.Map<core.String, core.String> o) { |
| 1463 unittest.expect(o, unittest.hasLength(2)); | 1516 unittest.expect(o, unittest.hasLength(2)); |
| 1464 unittest.expect(o["x"], unittest.equals('foo')); | 1517 unittest.expect(o["x"], unittest.equals('foo')); |
| 1465 unittest.expect(o["y"], unittest.equals('foo')); | 1518 unittest.expect(o["y"], unittest.equals('foo')); |
| 1466 } | 1519 } |
| 1467 | 1520 |
| 1468 core.int buildCounterSparkJob = 0; | 1521 core.int buildCounterSparkJob = 0; |
| 1469 buildSparkJob() { | 1522 buildSparkJob() { |
| 1470 var o = new api.SparkJob(); | 1523 var o = new api.SparkJob(); |
| 1471 buildCounterSparkJob++; | 1524 buildCounterSparkJob++; |
| 1472 if (buildCounterSparkJob < 3) { | 1525 if (buildCounterSparkJob < 3) { |
| 1473 o.archiveUris = buildUnnamed467(); | 1526 o.archiveUris = buildUnnamed471(); |
| 1474 o.args = buildUnnamed468(); | 1527 o.args = buildUnnamed472(); |
| 1475 o.fileUris = buildUnnamed469(); | 1528 o.fileUris = buildUnnamed473(); |
| 1476 o.jarFileUris = buildUnnamed470(); | 1529 o.jarFileUris = buildUnnamed474(); |
| 1477 o.loggingConfig = buildLoggingConfig(); | 1530 o.loggingConfig = buildLoggingConfig(); |
| 1478 o.mainClass = "foo"; | 1531 o.mainClass = "foo"; |
| 1479 o.mainJarFileUri = "foo"; | 1532 o.mainJarFileUri = "foo"; |
| 1480 o.properties = buildUnnamed471(); | 1533 o.properties = buildUnnamed475(); |
| 1481 } | 1534 } |
| 1482 buildCounterSparkJob--; | 1535 buildCounterSparkJob--; |
| 1483 return o; | 1536 return o; |
| 1484 } | 1537 } |
| 1485 | 1538 |
| 1486 checkSparkJob(api.SparkJob o) { | 1539 checkSparkJob(api.SparkJob o) { |
| 1487 buildCounterSparkJob++; | 1540 buildCounterSparkJob++; |
| 1488 if (buildCounterSparkJob < 3) { | 1541 if (buildCounterSparkJob < 3) { |
| 1489 checkUnnamed467(o.archiveUris); | 1542 checkUnnamed471(o.archiveUris); |
| 1490 checkUnnamed468(o.args); | 1543 checkUnnamed472(o.args); |
| 1491 checkUnnamed469(o.fileUris); | 1544 checkUnnamed473(o.fileUris); |
| 1492 checkUnnamed470(o.jarFileUris); | 1545 checkUnnamed474(o.jarFileUris); |
| 1493 checkLoggingConfig(o.loggingConfig); | 1546 checkLoggingConfig(o.loggingConfig); |
| 1494 unittest.expect(o.mainClass, unittest.equals('foo')); | 1547 unittest.expect(o.mainClass, unittest.equals('foo')); |
| 1495 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 1548 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
| 1496 checkUnnamed471(o.properties); | 1549 checkUnnamed475(o.properties); |
| 1497 } | 1550 } |
| 1498 buildCounterSparkJob--; | 1551 buildCounterSparkJob--; |
| 1499 } | 1552 } |
| 1500 | 1553 |
| 1501 buildUnnamed472() { | 1554 buildUnnamed476() { |
| 1502 var o = new core.List<core.String>(); | 1555 var o = new core.List<core.String>(); |
| 1503 o.add("foo"); | 1556 o.add("foo"); |
| 1504 o.add("foo"); | 1557 o.add("foo"); |
| 1505 return o; | 1558 return o; |
| 1506 } | 1559 } |
| 1507 | 1560 |
| 1508 checkUnnamed472(core.List<core.String> o) { | 1561 checkUnnamed476(core.List<core.String> o) { |
| 1509 unittest.expect(o, unittest.hasLength(2)); | 1562 unittest.expect(o, unittest.hasLength(2)); |
| 1510 unittest.expect(o[0], unittest.equals('foo')); | 1563 unittest.expect(o[0], unittest.equals('foo')); |
| 1511 unittest.expect(o[1], unittest.equals('foo')); | 1564 unittest.expect(o[1], unittest.equals('foo')); |
| 1512 } | 1565 } |
| 1513 | 1566 |
| 1514 buildUnnamed473() { | 1567 buildUnnamed477() { |
| 1515 var o = new core.Map<core.String, core.String>(); | 1568 var o = new core.Map<core.String, core.String>(); |
| 1516 o["x"] = "foo"; | 1569 o["x"] = "foo"; |
| 1517 o["y"] = "foo"; | 1570 o["y"] = "foo"; |
| 1518 return o; | 1571 return o; |
| 1519 } | 1572 } |
| 1520 | 1573 |
| 1521 checkUnnamed473(core.Map<core.String, core.String> o) { | 1574 checkUnnamed477(core.Map<core.String, core.String> o) { |
| 1522 unittest.expect(o, unittest.hasLength(2)); | 1575 unittest.expect(o, unittest.hasLength(2)); |
| 1523 unittest.expect(o["x"], unittest.equals('foo')); | 1576 unittest.expect(o["x"], unittest.equals('foo')); |
| 1524 unittest.expect(o["y"], unittest.equals('foo')); | 1577 unittest.expect(o["y"], unittest.equals('foo')); |
| 1525 } | 1578 } |
| 1526 | 1579 |
| 1527 buildUnnamed474() { | 1580 buildUnnamed478() { |
| 1528 var o = new core.Map<core.String, core.String>(); | 1581 var o = new core.Map<core.String, core.String>(); |
| 1529 o["x"] = "foo"; | 1582 o["x"] = "foo"; |
| 1530 o["y"] = "foo"; | 1583 o["y"] = "foo"; |
| 1531 return o; | 1584 return o; |
| 1532 } | 1585 } |
| 1533 | 1586 |
| 1534 checkUnnamed474(core.Map<core.String, core.String> o) { | 1587 checkUnnamed478(core.Map<core.String, core.String> o) { |
| 1535 unittest.expect(o, unittest.hasLength(2)); | 1588 unittest.expect(o, unittest.hasLength(2)); |
| 1536 unittest.expect(o["x"], unittest.equals('foo')); | 1589 unittest.expect(o["x"], unittest.equals('foo')); |
| 1537 unittest.expect(o["y"], unittest.equals('foo')); | 1590 unittest.expect(o["y"], unittest.equals('foo')); |
| 1538 } | 1591 } |
| 1539 | 1592 |
| 1540 core.int buildCounterSparkSqlJob = 0; | 1593 core.int buildCounterSparkSqlJob = 0; |
| 1541 buildSparkSqlJob() { | 1594 buildSparkSqlJob() { |
| 1542 var o = new api.SparkSqlJob(); | 1595 var o = new api.SparkSqlJob(); |
| 1543 buildCounterSparkSqlJob++; | 1596 buildCounterSparkSqlJob++; |
| 1544 if (buildCounterSparkSqlJob < 3) { | 1597 if (buildCounterSparkSqlJob < 3) { |
| 1545 o.jarFileUris = buildUnnamed472(); | 1598 o.jarFileUris = buildUnnamed476(); |
| 1546 o.loggingConfig = buildLoggingConfig(); | 1599 o.loggingConfig = buildLoggingConfig(); |
| 1547 o.properties = buildUnnamed473(); | 1600 o.properties = buildUnnamed477(); |
| 1548 o.queryFileUri = "foo"; | 1601 o.queryFileUri = "foo"; |
| 1549 o.queryList = buildQueryList(); | 1602 o.queryList = buildQueryList(); |
| 1550 o.scriptVariables = buildUnnamed474(); | 1603 o.scriptVariables = buildUnnamed478(); |
| 1551 } | 1604 } |
| 1552 buildCounterSparkSqlJob--; | 1605 buildCounterSparkSqlJob--; |
| 1553 return o; | 1606 return o; |
| 1554 } | 1607 } |
| 1555 | 1608 |
| 1556 checkSparkSqlJob(api.SparkSqlJob o) { | 1609 checkSparkSqlJob(api.SparkSqlJob o) { |
| 1557 buildCounterSparkSqlJob++; | 1610 buildCounterSparkSqlJob++; |
| 1558 if (buildCounterSparkSqlJob < 3) { | 1611 if (buildCounterSparkSqlJob < 3) { |
| 1559 checkUnnamed472(o.jarFileUris); | 1612 checkUnnamed476(o.jarFileUris); |
| 1560 checkLoggingConfig(o.loggingConfig); | 1613 checkLoggingConfig(o.loggingConfig); |
| 1561 checkUnnamed473(o.properties); | 1614 checkUnnamed477(o.properties); |
| 1562 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1615 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
| 1563 checkQueryList(o.queryList); | 1616 checkQueryList(o.queryList); |
| 1564 checkUnnamed474(o.scriptVariables); | 1617 checkUnnamed478(o.scriptVariables); |
| 1565 } | 1618 } |
| 1566 buildCounterSparkSqlJob--; | 1619 buildCounterSparkSqlJob--; |
| 1567 } | 1620 } |
| 1568 | 1621 |
| 1569 buildUnnamed475() { | 1622 buildUnnamed479() { |
| 1570 var o = new core.Map<core.String, core.Object>(); | 1623 var o = new core.Map<core.String, core.Object>(); |
| 1571 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1624 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1572 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1625 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1573 return o; | 1626 return o; |
| 1574 } | 1627 } |
| 1575 | 1628 |
| 1576 checkUnnamed475(core.Map<core.String, core.Object> o) { | 1629 checkUnnamed479(core.Map<core.String, core.Object> o) { |
| 1577 unittest.expect(o, unittest.hasLength(2)); | 1630 unittest.expect(o, unittest.hasLength(2)); |
| 1578 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); | 1631 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')); |
| 1579 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); | 1632 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')); |
| 1580 } | 1633 } |
| 1581 | 1634 |
| 1582 buildUnnamed476() { | 1635 buildUnnamed480() { |
| 1583 var o = new core.List<core.Map<core.String, core.Object>>(); | 1636 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 1584 o.add(buildUnnamed475()); | 1637 o.add(buildUnnamed479()); |
| 1585 o.add(buildUnnamed475()); | 1638 o.add(buildUnnamed479()); |
| 1586 return o; | 1639 return o; |
| 1587 } | 1640 } |
| 1588 | 1641 |
| 1589 checkUnnamed476(core.List<core.Map<core.String, core.Object>> o) { | 1642 checkUnnamed480(core.List<core.Map<core.String, core.Object>> o) { |
| 1590 unittest.expect(o, unittest.hasLength(2)); | 1643 unittest.expect(o, unittest.hasLength(2)); |
| 1591 checkUnnamed475(o[0]); | 1644 checkUnnamed479(o[0]); |
| 1592 checkUnnamed475(o[1]); | 1645 checkUnnamed479(o[1]); |
| 1593 } | 1646 } |
| 1594 | 1647 |
| 1595 core.int buildCounterStatus = 0; | 1648 core.int buildCounterStatus = 0; |
| 1596 buildStatus() { | 1649 buildStatus() { |
| 1597 var o = new api.Status(); | 1650 var o = new api.Status(); |
| 1598 buildCounterStatus++; | 1651 buildCounterStatus++; |
| 1599 if (buildCounterStatus < 3) { | 1652 if (buildCounterStatus < 3) { |
| 1600 o.code = 42; | 1653 o.code = 42; |
| 1601 o.details = buildUnnamed476(); | 1654 o.details = buildUnnamed480(); |
| 1602 o.message = "foo"; | 1655 o.message = "foo"; |
| 1603 } | 1656 } |
| 1604 buildCounterStatus--; | 1657 buildCounterStatus--; |
| 1605 return o; | 1658 return o; |
| 1606 } | 1659 } |
| 1607 | 1660 |
| 1608 checkStatus(api.Status o) { | 1661 checkStatus(api.Status o) { |
| 1609 buildCounterStatus++; | 1662 buildCounterStatus++; |
| 1610 if (buildCounterStatus < 3) { | 1663 if (buildCounterStatus < 3) { |
| 1611 unittest.expect(o.code, unittest.equals(42)); | 1664 unittest.expect(o.code, unittest.equals(42)); |
| 1612 checkUnnamed476(o.details); | 1665 checkUnnamed480(o.details); |
| 1613 unittest.expect(o.message, unittest.equals('foo')); | 1666 unittest.expect(o.message, unittest.equals('foo')); |
| 1614 } | 1667 } |
| 1615 buildCounterStatus--; | 1668 buildCounterStatus--; |
| 1616 } | 1669 } |
| 1617 | 1670 |
| 1618 core.int buildCounterSubmitJobRequest = 0; | 1671 core.int buildCounterSubmitJobRequest = 0; |
| 1619 buildSubmitJobRequest() { | 1672 buildSubmitJobRequest() { |
| 1620 var o = new api.SubmitJobRequest(); | 1673 var o = new api.SubmitJobRequest(); |
| 1621 buildCounterSubmitJobRequest++; | 1674 buildCounterSubmitJobRequest++; |
| 1622 if (buildCounterSubmitJobRequest < 3) { | 1675 if (buildCounterSubmitJobRequest < 3) { |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1825 | 1878 |
| 1826 unittest.group("obj-schema-JobReference", () { | 1879 unittest.group("obj-schema-JobReference", () { |
| 1827 unittest.test("to-json--from-json", () { | 1880 unittest.test("to-json--from-json", () { |
| 1828 var o = buildJobReference(); | 1881 var o = buildJobReference(); |
| 1829 var od = new api.JobReference.fromJson(o.toJson()); | 1882 var od = new api.JobReference.fromJson(o.toJson()); |
| 1830 checkJobReference(od); | 1883 checkJobReference(od); |
| 1831 }); | 1884 }); |
| 1832 }); | 1885 }); |
| 1833 | 1886 |
| 1834 | 1887 |
| 1888 unittest.group("obj-schema-JobScheduling", () { |
| 1889 unittest.test("to-json--from-json", () { |
| 1890 var o = buildJobScheduling(); |
| 1891 var od = new api.JobScheduling.fromJson(o.toJson()); |
| 1892 checkJobScheduling(od); |
| 1893 }); |
| 1894 }); |
| 1895 |
| 1896 |
| 1835 unittest.group("obj-schema-JobStatus", () { | 1897 unittest.group("obj-schema-JobStatus", () { |
| 1836 unittest.test("to-json--from-json", () { | 1898 unittest.test("to-json--from-json", () { |
| 1837 var o = buildJobStatus(); | 1899 var o = buildJobStatus(); |
| 1838 var od = new api.JobStatus.fromJson(o.toJson()); | 1900 var od = new api.JobStatus.fromJson(o.toJson()); |
| 1839 checkJobStatus(od); | 1901 checkJobStatus(od); |
| 1840 }); | 1902 }); |
| 1841 }); | 1903 }); |
| 1842 | 1904 |
| 1843 | 1905 |
| 1844 unittest.group("obj-schema-ListClustersResponse", () { | 1906 unittest.group("obj-schema-ListClustersResponse", () { |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2263 checkCluster(response); | 2325 checkCluster(response); |
| 2264 }))); | 2326 }))); |
| 2265 }); | 2327 }); |
| 2266 | 2328 |
| 2267 unittest.test("method--list", () { | 2329 unittest.test("method--list", () { |
| 2268 | 2330 |
| 2269 var mock = new HttpServerMock(); | 2331 var mock = new HttpServerMock(); |
| 2270 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; | 2332 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; |
| 2271 var arg_projectId = "foo"; | 2333 var arg_projectId = "foo"; |
| 2272 var arg_region = "foo"; | 2334 var arg_region = "foo"; |
| 2335 var arg_pageToken = "foo"; |
| 2336 var arg_pageSize = 42; |
| 2273 var arg_filter = "foo"; | 2337 var arg_filter = "foo"; |
| 2274 var arg_pageSize = 42; | |
| 2275 var arg_pageToken = "foo"; | |
| 2276 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2338 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2277 var path = (req.url).path; | 2339 var path = (req.url).path; |
| 2278 var pathOffset = 0; | 2340 var pathOffset = 0; |
| 2279 var index; | 2341 var index; |
| 2280 var subPart; | 2342 var subPart; |
| 2281 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2343 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2282 pathOffset += 1; | 2344 pathOffset += 1; |
| 2283 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2345 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
| 2284 pathOffset += 12; | 2346 pathOffset += 12; |
| 2285 index = path.indexOf("/regions/", pathOffset); | 2347 index = path.indexOf("/regions/", pathOffset); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 2306 if (n == "false") return false; | 2368 if (n == "false") return false; |
| 2307 if (n == null) return null; | 2369 if (n == null) return null; |
| 2308 throw new core.ArgumentError("Invalid boolean: $n"); | 2370 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2309 } | 2371 } |
| 2310 if (query.length > 0) { | 2372 if (query.length > 0) { |
| 2311 for (var part in query.split("&")) { | 2373 for (var part in query.split("&")) { |
| 2312 var keyvalue = part.split("="); | 2374 var keyvalue = part.split("="); |
| 2313 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2375 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2314 } | 2376 } |
| 2315 } | 2377 } |
| 2378 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2379 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 2316 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 2380 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 2317 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
| 2318 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
| 2319 | 2381 |
| 2320 | 2382 |
| 2321 var h = { | 2383 var h = { |
| 2322 "content-type" : "application/json; charset=utf-8", | 2384 "content-type" : "application/json; charset=utf-8", |
| 2323 }; | 2385 }; |
| 2324 var resp = convert.JSON.encode(buildListClustersResponse()); | 2386 var resp = convert.JSON.encode(buildListClustersResponse()); |
| 2325 return new async.Future.value(stringResponse(200, h, resp)); | 2387 return new async.Future.value(stringResponse(200, h, resp)); |
| 2326 }), true); | 2388 }), true); |
| 2327 res.list(arg_projectId, arg_region, filter: arg_filter, pageSize: arg_page
Size, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListClustersResp
onse response) { | 2389 res.list(arg_projectId, arg_region, pageToken: arg_pageToken, pageSize: ar
g_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.ListClustersResp
onse response) { |
| 2328 checkListClustersResponse(response); | 2390 checkListClustersResponse(response); |
| 2329 }))); | 2391 }))); |
| 2330 }); | 2392 }); |
| 2331 | 2393 |
| 2332 unittest.test("method--patch", () { | 2394 unittest.test("method--patch", () { |
| 2333 | 2395 |
| 2334 var mock = new HttpServerMock(); | 2396 var mock = new HttpServerMock(); |
| 2335 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; | 2397 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; |
| 2336 var arg_request = buildCluster(); | 2398 var arg_request = buildCluster(); |
| 2337 var arg_projectId = "foo"; | 2399 var arg_projectId = "foo"; |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2598 checkJob(response); | 2660 checkJob(response); |
| 2599 }))); | 2661 }))); |
| 2600 }); | 2662 }); |
| 2601 | 2663 |
| 2602 unittest.test("method--list", () { | 2664 unittest.test("method--list", () { |
| 2603 | 2665 |
| 2604 var mock = new HttpServerMock(); | 2666 var mock = new HttpServerMock(); |
| 2605 api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).project
s.regions.jobs; | 2667 api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).project
s.regions.jobs; |
| 2606 var arg_projectId = "foo"; | 2668 var arg_projectId = "foo"; |
| 2607 var arg_region = "foo"; | 2669 var arg_region = "foo"; |
| 2670 var arg_pageToken = "foo"; |
| 2608 var arg_pageSize = 42; | 2671 var arg_pageSize = 42; |
| 2609 var arg_pageToken = "foo"; | |
| 2610 var arg_clusterName = "foo"; | 2672 var arg_clusterName = "foo"; |
| 2673 var arg_filter = "foo"; |
| 2611 var arg_jobStateMatcher = "foo"; | 2674 var arg_jobStateMatcher = "foo"; |
| 2612 var arg_filter = "foo"; | |
| 2613 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2675 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2614 var path = (req.url).path; | 2676 var path = (req.url).path; |
| 2615 var pathOffset = 0; | 2677 var pathOffset = 0; |
| 2616 var index; | 2678 var index; |
| 2617 var subPart; | 2679 var subPart; |
| 2618 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2680 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2619 pathOffset += 1; | 2681 pathOffset += 1; |
| 2620 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2682 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
| 2621 pathOffset += 12; | 2683 pathOffset += 12; |
| 2622 index = path.indexOf("/regions/", pathOffset); | 2684 index = path.indexOf("/regions/", pathOffset); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 2643 if (n == "false") return false; | 2705 if (n == "false") return false; |
| 2644 if (n == null) return null; | 2706 if (n == null) return null; |
| 2645 throw new core.ArgumentError("Invalid boolean: $n"); | 2707 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2646 } | 2708 } |
| 2647 if (query.length > 0) { | 2709 if (query.length > 0) { |
| 2648 for (var part in query.split("&")) { | 2710 for (var part in query.split("&")) { |
| 2649 var keyvalue = part.split("="); | 2711 var keyvalue = part.split("="); |
| 2650 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2712 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2651 } | 2713 } |
| 2652 } | 2714 } |
| 2715 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2653 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2716 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 2654 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
| 2655 unittest.expect(queryMap["clusterName"].first, unittest.equals(arg_clust
erName)); | 2717 unittest.expect(queryMap["clusterName"].first, unittest.equals(arg_clust
erName)); |
| 2718 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 2656 unittest.expect(queryMap["jobStateMatcher"].first, unittest.equals(arg_j
obStateMatcher)); | 2719 unittest.expect(queryMap["jobStateMatcher"].first, unittest.equals(arg_j
obStateMatcher)); |
| 2657 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
| 2658 | 2720 |
| 2659 | 2721 |
| 2660 var h = { | 2722 var h = { |
| 2661 "content-type" : "application/json; charset=utf-8", | 2723 "content-type" : "application/json; charset=utf-8", |
| 2662 }; | 2724 }; |
| 2663 var resp = convert.JSON.encode(buildListJobsResponse()); | 2725 var resp = convert.JSON.encode(buildListJobsResponse()); |
| 2664 return new async.Future.value(stringResponse(200, h, resp)); | 2726 return new async.Future.value(stringResponse(200, h, resp)); |
| 2665 }), true); | 2727 }), true); |
| 2666 res.list(arg_projectId, arg_region, pageSize: arg_pageSize, pageToken: arg
_pageToken, clusterName: arg_clusterName, jobStateMatcher: arg_jobStateMatcher,
filter: arg_filter).then(unittest.expectAsync(((api.ListJobsResponse response) { | 2728 res.list(arg_projectId, arg_region, pageToken: arg_pageToken, pageSize: ar
g_pageSize, clusterName: arg_clusterName, filter: arg_filter, jobStateMatcher: a
rg_jobStateMatcher).then(unittest.expectAsync(((api.ListJobsResponse response) { |
| 2667 checkListJobsResponse(response); | 2729 checkListJobsResponse(response); |
| 2668 }))); | 2730 }))); |
| 2669 }); | 2731 }); |
| 2670 | 2732 |
| 2733 unittest.test("method--patch", () { |
| 2734 |
| 2735 var mock = new HttpServerMock(); |
| 2736 api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).project
s.regions.jobs; |
| 2737 var arg_request = buildJob(); |
| 2738 var arg_projectId = "foo"; |
| 2739 var arg_region = "foo"; |
| 2740 var arg_jobId = "foo"; |
| 2741 var arg_updateMask = "foo"; |
| 2742 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2743 var obj = new api.Job.fromJson(json); |
| 2744 checkJob(obj); |
| 2745 |
| 2746 var path = (req.url).path; |
| 2747 var pathOffset = 0; |
| 2748 var index; |
| 2749 var subPart; |
| 2750 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2751 pathOffset += 1; |
| 2752 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
| 2753 pathOffset += 12; |
| 2754 index = path.indexOf("/regions/", pathOffset); |
| 2755 unittest.expect(index >= 0, unittest.isTrue); |
| 2756 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2757 pathOffset = index; |
| 2758 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 2759 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/regions/")); |
| 2760 pathOffset += 9; |
| 2761 index = path.indexOf("/jobs/", pathOffset); |
| 2762 unittest.expect(index >= 0, unittest.isTrue); |
| 2763 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2764 pathOffset = index; |
| 2765 unittest.expect(subPart, unittest.equals("$arg_region")); |
| 2766 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/jobs/")); |
| 2767 pathOffset += 6; |
| 2768 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 2769 pathOffset = path.length; |
| 2770 unittest.expect(subPart, unittest.equals("$arg_jobId")); |
| 2771 |
| 2772 var query = (req.url).query; |
| 2773 var queryOffset = 0; |
| 2774 var queryMap = {}; |
| 2775 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2776 parseBool(n) { |
| 2777 if (n == "true") return true; |
| 2778 if (n == "false") return false; |
| 2779 if (n == null) return null; |
| 2780 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2781 } |
| 2782 if (query.length > 0) { |
| 2783 for (var part in query.split("&")) { |
| 2784 var keyvalue = part.split("="); |
| 2785 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2786 } |
| 2787 } |
| 2788 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); |
| 2789 |
| 2790 |
| 2791 var h = { |
| 2792 "content-type" : "application/json; charset=utf-8", |
| 2793 }; |
| 2794 var resp = convert.JSON.encode(buildJob()); |
| 2795 return new async.Future.value(stringResponse(200, h, resp)); |
| 2796 }), true); |
| 2797 res.patch(arg_request, arg_projectId, arg_region, arg_jobId, updateMask: a
rg_updateMask).then(unittest.expectAsync(((api.Job response) { |
| 2798 checkJob(response); |
| 2799 }))); |
| 2800 }); |
| 2801 |
| 2671 unittest.test("method--submit", () { | 2802 unittest.test("method--submit", () { |
| 2672 | 2803 |
| 2673 var mock = new HttpServerMock(); | 2804 var mock = new HttpServerMock(); |
| 2674 api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).project
s.regions.jobs; | 2805 api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).project
s.regions.jobs; |
| 2675 var arg_request = buildSubmitJobRequest(); | 2806 var arg_request = buildSubmitJobRequest(); |
| 2676 var arg_projectId = "foo"; | 2807 var arg_projectId = "foo"; |
| 2677 var arg_region = "foo"; | 2808 var arg_region = "foo"; |
| 2678 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2809 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2679 var obj = new api.SubmitJobRequest.fromJson(json); | 2810 var obj = new api.SubmitJobRequest.fromJson(json); |
| 2680 checkSubmitJobRequest(obj); | 2811 checkSubmitJobRequest(obj); |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2868 res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { | 2999 res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { |
| 2869 checkOperation(response); | 3000 checkOperation(response); |
| 2870 }))); | 3001 }))); |
| 2871 }); | 3002 }); |
| 2872 | 3003 |
| 2873 unittest.test("method--list", () { | 3004 unittest.test("method--list", () { |
| 2874 | 3005 |
| 2875 var mock = new HttpServerMock(); | 3006 var mock = new HttpServerMock(); |
| 2876 api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).p
rojects.regions.operations; | 3007 api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).p
rojects.regions.operations; |
| 2877 var arg_name = "foo"; | 3008 var arg_name = "foo"; |
| 3009 var arg_pageSize = 42; |
| 2878 var arg_filter = "foo"; | 3010 var arg_filter = "foo"; |
| 2879 var arg_pageSize = 42; | |
| 2880 var arg_pageToken = "foo"; | 3011 var arg_pageToken = "foo"; |
| 2881 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3012 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2882 var path = (req.url).path; | 3013 var path = (req.url).path; |
| 2883 var pathOffset = 0; | 3014 var pathOffset = 0; |
| 2884 var index; | 3015 var index; |
| 2885 var subPart; | 3016 var subPart; |
| 2886 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3017 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2887 pathOffset += 1; | 3018 pathOffset += 1; |
| 2888 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 3019 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 2889 pathOffset += 3; | 3020 pathOffset += 3; |
| 2890 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 3021 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 2891 | 3022 |
| 2892 var query = (req.url).query; | 3023 var query = (req.url).query; |
| 2893 var queryOffset = 0; | 3024 var queryOffset = 0; |
| 2894 var queryMap = {}; | 3025 var queryMap = {}; |
| 2895 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3026 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2896 parseBool(n) { | 3027 parseBool(n) { |
| 2897 if (n == "true") return true; | 3028 if (n == "true") return true; |
| 2898 if (n == "false") return false; | 3029 if (n == "false") return false; |
| 2899 if (n == null) return null; | 3030 if (n == null) return null; |
| 2900 throw new core.ArgumentError("Invalid boolean: $n"); | 3031 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2901 } | 3032 } |
| 2902 if (query.length > 0) { | 3033 if (query.length > 0) { |
| 2903 for (var part in query.split("&")) { | 3034 for (var part in query.split("&")) { |
| 2904 var keyvalue = part.split("="); | 3035 var keyvalue = part.split("="); |
| 2905 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3036 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2906 } | 3037 } |
| 2907 } | 3038 } |
| 3039 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 2908 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 3040 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 2909 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
| 2910 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 3041 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2911 | 3042 |
| 2912 | 3043 |
| 2913 var h = { | 3044 var h = { |
| 2914 "content-type" : "application/json; charset=utf-8", | 3045 "content-type" : "application/json; charset=utf-8", |
| 2915 }; | 3046 }; |
| 2916 var resp = convert.JSON.encode(buildListOperationsResponse()); | 3047 var resp = convert.JSON.encode(buildListOperationsResponse()); |
| 2917 return new async.Future.value(stringResponse(200, h, resp)); | 3048 return new async.Future.value(stringResponse(200, h, resp)); |
| 2918 }), true); | 3049 }), true); |
| 2919 res.list(arg_name, filter: arg_filter, pageSize: arg_pageSize, pageToken:
arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response)
{ | 3050 res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken:
arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response)
{ |
| 2920 checkListOperationsResponse(response); | 3051 checkListOperationsResponse(response); |
| 2921 }))); | 3052 }))); |
| 2922 }); | 3053 }); |
| 2923 | 3054 |
| 2924 }); | 3055 }); |
| 2925 | 3056 |
| 2926 | 3057 |
| 2927 } | 3058 } |
| 2928 | 3059 |
| OLD | NEW |