| OLD | NEW |
| 1 library googleapis_beta.dataproc.v1beta1.test; | 1 library googleapis_beta.dataproc.v1beta1.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 return o; | 78 return o; |
| 79 } | 79 } |
| 80 | 80 |
| 81 checkCancelOperationRequest(api.CancelOperationRequest o) { | 81 checkCancelOperationRequest(api.CancelOperationRequest o) { |
| 82 buildCounterCancelOperationRequest++; | 82 buildCounterCancelOperationRequest++; |
| 83 if (buildCounterCancelOperationRequest < 3) { | 83 if (buildCounterCancelOperationRequest < 3) { |
| 84 } | 84 } |
| 85 buildCounterCancelOperationRequest--; | 85 buildCounterCancelOperationRequest--; |
| 86 } | 86 } |
| 87 | 87 |
| 88 buildUnnamed3649() { | 88 buildUnnamed3481() { |
| 89 var o = new core.Map<core.String, core.String>(); |
| 90 o["x"] = "foo"; |
| 91 o["y"] = "foo"; |
| 92 return o; |
| 93 } |
| 94 |
| 95 checkUnnamed3481(core.Map<core.String, core.String> o) { |
| 96 unittest.expect(o, unittest.hasLength(2)); |
| 97 unittest.expect(o["x"], unittest.equals('foo')); |
| 98 unittest.expect(o["y"], unittest.equals('foo')); |
| 99 } |
| 100 |
| 101 buildUnnamed3482() { |
| 89 var o = new core.List<api.ClusterStatus>(); | 102 var o = new core.List<api.ClusterStatus>(); |
| 90 o.add(buildClusterStatus()); | 103 o.add(buildClusterStatus()); |
| 91 o.add(buildClusterStatus()); | 104 o.add(buildClusterStatus()); |
| 92 return o; | 105 return o; |
| 93 } | 106 } |
| 94 | 107 |
| 95 checkUnnamed3649(core.List<api.ClusterStatus> o) { | 108 checkUnnamed3482(core.List<api.ClusterStatus> o) { |
| 96 unittest.expect(o, unittest.hasLength(2)); | 109 unittest.expect(o, unittest.hasLength(2)); |
| 97 checkClusterStatus(o[0]); | 110 checkClusterStatus(o[0]); |
| 98 checkClusterStatus(o[1]); | 111 checkClusterStatus(o[1]); |
| 99 } | 112 } |
| 100 | 113 |
| 101 core.int buildCounterCluster = 0; | 114 core.int buildCounterCluster = 0; |
| 102 buildCluster() { | 115 buildCluster() { |
| 103 var o = new api.Cluster(); | 116 var o = new api.Cluster(); |
| 104 buildCounterCluster++; | 117 buildCounterCluster++; |
| 105 if (buildCounterCluster < 3) { | 118 if (buildCounterCluster < 3) { |
| 106 o.clusterName = "foo"; | 119 o.clusterName = "foo"; |
| 107 o.clusterUuid = "foo"; | 120 o.clusterUuid = "foo"; |
| 108 o.configuration = buildClusterConfiguration(); | 121 o.configuration = buildClusterConfiguration(); |
| 122 o.labels = buildUnnamed3481(); |
| 123 o.metrics = buildClusterMetrics(); |
| 109 o.projectId = "foo"; | 124 o.projectId = "foo"; |
| 110 o.status = buildClusterStatus(); | 125 o.status = buildClusterStatus(); |
| 111 o.statusHistory = buildUnnamed3649(); | 126 o.statusHistory = buildUnnamed3482(); |
| 112 } | 127 } |
| 113 buildCounterCluster--; | 128 buildCounterCluster--; |
| 114 return o; | 129 return o; |
| 115 } | 130 } |
| 116 | 131 |
| 117 checkCluster(api.Cluster o) { | 132 checkCluster(api.Cluster o) { |
| 118 buildCounterCluster++; | 133 buildCounterCluster++; |
| 119 if (buildCounterCluster < 3) { | 134 if (buildCounterCluster < 3) { |
| 120 unittest.expect(o.clusterName, unittest.equals('foo')); | 135 unittest.expect(o.clusterName, unittest.equals('foo')); |
| 121 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 136 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
| 122 checkClusterConfiguration(o.configuration); | 137 checkClusterConfiguration(o.configuration); |
| 138 checkUnnamed3481(o.labels); |
| 139 checkClusterMetrics(o.metrics); |
| 123 unittest.expect(o.projectId, unittest.equals('foo')); | 140 unittest.expect(o.projectId, unittest.equals('foo')); |
| 124 checkClusterStatus(o.status); | 141 checkClusterStatus(o.status); |
| 125 checkUnnamed3649(o.statusHistory); | 142 checkUnnamed3482(o.statusHistory); |
| 126 } | 143 } |
| 127 buildCounterCluster--; | 144 buildCounterCluster--; |
| 128 } | 145 } |
| 129 | 146 |
| 130 buildUnnamed3650() { | 147 buildUnnamed3483() { |
| 131 var o = new core.List<api.NodeInitializationAction>(); | 148 var o = new core.List<api.NodeInitializationAction>(); |
| 132 o.add(buildNodeInitializationAction()); | 149 o.add(buildNodeInitializationAction()); |
| 133 o.add(buildNodeInitializationAction()); | 150 o.add(buildNodeInitializationAction()); |
| 134 return o; | 151 return o; |
| 135 } | 152 } |
| 136 | 153 |
| 137 checkUnnamed3650(core.List<api.NodeInitializationAction> o) { | 154 checkUnnamed3483(core.List<api.NodeInitializationAction> o) { |
| 138 unittest.expect(o, unittest.hasLength(2)); | 155 unittest.expect(o, unittest.hasLength(2)); |
| 139 checkNodeInitializationAction(o[0]); | 156 checkNodeInitializationAction(o[0]); |
| 140 checkNodeInitializationAction(o[1]); | 157 checkNodeInitializationAction(o[1]); |
| 141 } | 158 } |
| 142 | 159 |
| 143 core.int buildCounterClusterConfiguration = 0; | 160 core.int buildCounterClusterConfiguration = 0; |
| 144 buildClusterConfiguration() { | 161 buildClusterConfiguration() { |
| 145 var o = new api.ClusterConfiguration(); | 162 var o = new api.ClusterConfiguration(); |
| 146 buildCounterClusterConfiguration++; | 163 buildCounterClusterConfiguration++; |
| 147 if (buildCounterClusterConfiguration < 3) { | 164 if (buildCounterClusterConfiguration < 3) { |
| 148 o.configurationBucket = "foo"; | 165 o.configurationBucket = "foo"; |
| 149 o.gceClusterConfiguration = buildGceClusterConfiguration(); | 166 o.gceClusterConfiguration = buildGceClusterConfiguration(); |
| 150 o.initializationActions = buildUnnamed3650(); | 167 o.initializationActions = buildUnnamed3483(); |
| 151 o.masterConfiguration = buildInstanceGroupConfiguration(); | 168 o.masterConfiguration = buildInstanceGroupConfiguration(); |
| 152 o.secondaryWorkerConfiguration = buildInstanceGroupConfiguration(); | 169 o.secondaryWorkerConfiguration = buildInstanceGroupConfiguration(); |
| 153 o.softwareConfiguration = buildSoftwareConfiguration(); | 170 o.softwareConfiguration = buildSoftwareConfiguration(); |
| 154 o.workerConfiguration = buildInstanceGroupConfiguration(); | 171 o.workerConfiguration = buildInstanceGroupConfiguration(); |
| 155 } | 172 } |
| 156 buildCounterClusterConfiguration--; | 173 buildCounterClusterConfiguration--; |
| 157 return o; | 174 return o; |
| 158 } | 175 } |
| 159 | 176 |
| 160 checkClusterConfiguration(api.ClusterConfiguration o) { | 177 checkClusterConfiguration(api.ClusterConfiguration o) { |
| 161 buildCounterClusterConfiguration++; | 178 buildCounterClusterConfiguration++; |
| 162 if (buildCounterClusterConfiguration < 3) { | 179 if (buildCounterClusterConfiguration < 3) { |
| 163 unittest.expect(o.configurationBucket, unittest.equals('foo')); | 180 unittest.expect(o.configurationBucket, unittest.equals('foo')); |
| 164 checkGceClusterConfiguration(o.gceClusterConfiguration); | 181 checkGceClusterConfiguration(o.gceClusterConfiguration); |
| 165 checkUnnamed3650(o.initializationActions); | 182 checkUnnamed3483(o.initializationActions); |
| 166 checkInstanceGroupConfiguration(o.masterConfiguration); | 183 checkInstanceGroupConfiguration(o.masterConfiguration); |
| 167 checkInstanceGroupConfiguration(o.secondaryWorkerConfiguration); | 184 checkInstanceGroupConfiguration(o.secondaryWorkerConfiguration); |
| 168 checkSoftwareConfiguration(o.softwareConfiguration); | 185 checkSoftwareConfiguration(o.softwareConfiguration); |
| 169 checkInstanceGroupConfiguration(o.workerConfiguration); | 186 checkInstanceGroupConfiguration(o.workerConfiguration); |
| 170 } | 187 } |
| 171 buildCounterClusterConfiguration--; | 188 buildCounterClusterConfiguration--; |
| 172 } | 189 } |
| 173 | 190 |
| 174 buildUnnamed3651() { | 191 buildUnnamed3484() { |
| 192 var o = new core.Map<core.String, core.String>(); |
| 193 o["x"] = "foo"; |
| 194 o["y"] = "foo"; |
| 195 return o; |
| 196 } |
| 197 |
| 198 checkUnnamed3484(core.Map<core.String, core.String> o) { |
| 199 unittest.expect(o, unittest.hasLength(2)); |
| 200 unittest.expect(o["x"], unittest.equals('foo')); |
| 201 unittest.expect(o["y"], unittest.equals('foo')); |
| 202 } |
| 203 |
| 204 buildUnnamed3485() { |
| 205 var o = new core.Map<core.String, core.String>(); |
| 206 o["x"] = "foo"; |
| 207 o["y"] = "foo"; |
| 208 return o; |
| 209 } |
| 210 |
| 211 checkUnnamed3485(core.Map<core.String, core.String> o) { |
| 212 unittest.expect(o, unittest.hasLength(2)); |
| 213 unittest.expect(o["x"], unittest.equals('foo')); |
| 214 unittest.expect(o["y"], unittest.equals('foo')); |
| 215 } |
| 216 |
| 217 core.int buildCounterClusterMetrics = 0; |
| 218 buildClusterMetrics() { |
| 219 var o = new api.ClusterMetrics(); |
| 220 buildCounterClusterMetrics++; |
| 221 if (buildCounterClusterMetrics < 3) { |
| 222 o.hdfsMetrics = buildUnnamed3484(); |
| 223 o.yarnMetrics = buildUnnamed3485(); |
| 224 } |
| 225 buildCounterClusterMetrics--; |
| 226 return o; |
| 227 } |
| 228 |
| 229 checkClusterMetrics(api.ClusterMetrics o) { |
| 230 buildCounterClusterMetrics++; |
| 231 if (buildCounterClusterMetrics < 3) { |
| 232 checkUnnamed3484(o.hdfsMetrics); |
| 233 checkUnnamed3485(o.yarnMetrics); |
| 234 } |
| 235 buildCounterClusterMetrics--; |
| 236 } |
| 237 |
| 238 buildUnnamed3486() { |
| 239 var o = new core.Map<core.String, core.String>(); |
| 240 o["x"] = "foo"; |
| 241 o["y"] = "foo"; |
| 242 return o; |
| 243 } |
| 244 |
| 245 checkUnnamed3486(core.Map<core.String, core.String> o) { |
| 246 unittest.expect(o, unittest.hasLength(2)); |
| 247 unittest.expect(o["x"], unittest.equals('foo')); |
| 248 unittest.expect(o["y"], unittest.equals('foo')); |
| 249 } |
| 250 |
| 251 buildUnnamed3487() { |
| 175 var o = new core.List<api.ClusterOperationStatus>(); | 252 var o = new core.List<api.ClusterOperationStatus>(); |
| 176 o.add(buildClusterOperationStatus()); | 253 o.add(buildClusterOperationStatus()); |
| 177 o.add(buildClusterOperationStatus()); | 254 o.add(buildClusterOperationStatus()); |
| 178 return o; | 255 return o; |
| 179 } | 256 } |
| 180 | 257 |
| 181 checkUnnamed3651(core.List<api.ClusterOperationStatus> o) { | 258 checkUnnamed3487(core.List<api.ClusterOperationStatus> o) { |
| 182 unittest.expect(o, unittest.hasLength(2)); | 259 unittest.expect(o, unittest.hasLength(2)); |
| 183 checkClusterOperationStatus(o[0]); | 260 checkClusterOperationStatus(o[0]); |
| 184 checkClusterOperationStatus(o[1]); | 261 checkClusterOperationStatus(o[1]); |
| 185 } | 262 } |
| 186 | 263 |
| 187 core.int buildCounterClusterOperationMetadata = 0; | 264 core.int buildCounterClusterOperationMetadata = 0; |
| 188 buildClusterOperationMetadata() { | 265 buildClusterOperationMetadata() { |
| 189 var o = new api.ClusterOperationMetadata(); | 266 var o = new api.ClusterOperationMetadata(); |
| 190 buildCounterClusterOperationMetadata++; | 267 buildCounterClusterOperationMetadata++; |
| 191 if (buildCounterClusterOperationMetadata < 3) { | 268 if (buildCounterClusterOperationMetadata < 3) { |
| 192 o.clusterName = "foo"; | 269 o.clusterName = "foo"; |
| 193 o.clusterUuid = "foo"; | 270 o.clusterUuid = "foo"; |
| 194 o.description = "foo"; | 271 o.description = "foo"; |
| 272 o.labels = buildUnnamed3486(); |
| 195 o.operationType = "foo"; | 273 o.operationType = "foo"; |
| 196 o.status = buildClusterOperationStatus(); | 274 o.status = buildClusterOperationStatus(); |
| 197 o.statusHistory = buildUnnamed3651(); | 275 o.statusHistory = buildUnnamed3487(); |
| 198 } | 276 } |
| 199 buildCounterClusterOperationMetadata--; | 277 buildCounterClusterOperationMetadata--; |
| 200 return o; | 278 return o; |
| 201 } | 279 } |
| 202 | 280 |
| 203 checkClusterOperationMetadata(api.ClusterOperationMetadata o) { | 281 checkClusterOperationMetadata(api.ClusterOperationMetadata o) { |
| 204 buildCounterClusterOperationMetadata++; | 282 buildCounterClusterOperationMetadata++; |
| 205 if (buildCounterClusterOperationMetadata < 3) { | 283 if (buildCounterClusterOperationMetadata < 3) { |
| 206 unittest.expect(o.clusterName, unittest.equals('foo')); | 284 unittest.expect(o.clusterName, unittest.equals('foo')); |
| 207 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 285 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
| 208 unittest.expect(o.description, unittest.equals('foo')); | 286 unittest.expect(o.description, unittest.equals('foo')); |
| 287 checkUnnamed3486(o.labels); |
| 209 unittest.expect(o.operationType, unittest.equals('foo')); | 288 unittest.expect(o.operationType, unittest.equals('foo')); |
| 210 checkClusterOperationStatus(o.status); | 289 checkClusterOperationStatus(o.status); |
| 211 checkUnnamed3651(o.statusHistory); | 290 checkUnnamed3487(o.statusHistory); |
| 212 } | 291 } |
| 213 buildCounterClusterOperationMetadata--; | 292 buildCounterClusterOperationMetadata--; |
| 214 } | 293 } |
| 215 | 294 |
| 216 core.int buildCounterClusterOperationStatus = 0; | 295 core.int buildCounterClusterOperationStatus = 0; |
| 217 buildClusterOperationStatus() { | 296 buildClusterOperationStatus() { |
| 218 var o = new api.ClusterOperationStatus(); | 297 var o = new api.ClusterOperationStatus(); |
| 219 buildCounterClusterOperationStatus++; | 298 buildCounterClusterOperationStatus++; |
| 220 if (buildCounterClusterOperationStatus < 3) { | 299 if (buildCounterClusterOperationStatus < 3) { |
| 221 o.details = "foo"; | 300 o.details = "foo"; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 return o; | 426 return o; |
| 348 } | 427 } |
| 349 | 428 |
| 350 checkEmpty(api.Empty o) { | 429 checkEmpty(api.Empty o) { |
| 351 buildCounterEmpty++; | 430 buildCounterEmpty++; |
| 352 if (buildCounterEmpty < 3) { | 431 if (buildCounterEmpty < 3) { |
| 353 } | 432 } |
| 354 buildCounterEmpty--; | 433 buildCounterEmpty--; |
| 355 } | 434 } |
| 356 | 435 |
| 357 buildUnnamed3652() { | 436 buildUnnamed3488() { |
| 358 var o = new core.Map<core.String, core.String>(); | 437 var o = new core.Map<core.String, core.String>(); |
| 359 o["x"] = "foo"; | 438 o["x"] = "foo"; |
| 360 o["y"] = "foo"; | 439 o["y"] = "foo"; |
| 361 return o; | 440 return o; |
| 362 } | 441 } |
| 363 | 442 |
| 364 checkUnnamed3652(core.Map<core.String, core.String> o) { | 443 checkUnnamed3488(core.Map<core.String, core.String> o) { |
| 365 unittest.expect(o, unittest.hasLength(2)); | 444 unittest.expect(o, unittest.hasLength(2)); |
| 366 unittest.expect(o["x"], unittest.equals('foo')); | 445 unittest.expect(o["x"], unittest.equals('foo')); |
| 367 unittest.expect(o["y"], unittest.equals('foo')); | 446 unittest.expect(o["y"], unittest.equals('foo')); |
| 368 } | 447 } |
| 369 | 448 |
| 370 buildUnnamed3653() { | 449 buildUnnamed3489() { |
| 371 var o = new core.List<core.String>(); | 450 var o = new core.List<core.String>(); |
| 372 o.add("foo"); | 451 o.add("foo"); |
| 373 o.add("foo"); | 452 o.add("foo"); |
| 374 return o; | 453 return o; |
| 375 } | 454 } |
| 376 | 455 |
| 377 checkUnnamed3653(core.List<core.String> o) { | 456 checkUnnamed3489(core.List<core.String> o) { |
| 378 unittest.expect(o, unittest.hasLength(2)); | 457 unittest.expect(o, unittest.hasLength(2)); |
| 379 unittest.expect(o[0], unittest.equals('foo')); | 458 unittest.expect(o[0], unittest.equals('foo')); |
| 380 unittest.expect(o[1], unittest.equals('foo')); | 459 unittest.expect(o[1], unittest.equals('foo')); |
| 381 } | 460 } |
| 382 | 461 |
| 383 buildUnnamed3654() { | 462 buildUnnamed3490() { |
| 384 var o = new core.List<core.String>(); | 463 var o = new core.List<core.String>(); |
| 385 o.add("foo"); | 464 o.add("foo"); |
| 386 o.add("foo"); | 465 o.add("foo"); |
| 387 return o; | 466 return o; |
| 388 } | 467 } |
| 389 | 468 |
| 390 checkUnnamed3654(core.List<core.String> o) { | 469 checkUnnamed3490(core.List<core.String> o) { |
| 391 unittest.expect(o, unittest.hasLength(2)); | 470 unittest.expect(o, unittest.hasLength(2)); |
| 392 unittest.expect(o[0], unittest.equals('foo')); | 471 unittest.expect(o[0], unittest.equals('foo')); |
| 393 unittest.expect(o[1], unittest.equals('foo')); | 472 unittest.expect(o[1], unittest.equals('foo')); |
| 394 } | 473 } |
| 395 | 474 |
| 396 core.int buildCounterGceClusterConfiguration = 0; | 475 core.int buildCounterGceClusterConfiguration = 0; |
| 397 buildGceClusterConfiguration() { | 476 buildGceClusterConfiguration() { |
| 398 var o = new api.GceClusterConfiguration(); | 477 var o = new api.GceClusterConfiguration(); |
| 399 buildCounterGceClusterConfiguration++; | 478 buildCounterGceClusterConfiguration++; |
| 400 if (buildCounterGceClusterConfiguration < 3) { | 479 if (buildCounterGceClusterConfiguration < 3) { |
| 401 o.metadata = buildUnnamed3652(); | 480 o.internalIpOnly = true; |
| 481 o.metadata = buildUnnamed3488(); |
| 402 o.networkUri = "foo"; | 482 o.networkUri = "foo"; |
| 403 o.serviceAccountScopes = buildUnnamed3653(); | 483 o.serviceAccountScopes = buildUnnamed3489(); |
| 404 o.subnetworkUri = "foo"; | 484 o.subnetworkUri = "foo"; |
| 405 o.tags = buildUnnamed3654(); | 485 o.tags = buildUnnamed3490(); |
| 406 o.zoneUri = "foo"; | 486 o.zoneUri = "foo"; |
| 407 } | 487 } |
| 408 buildCounterGceClusterConfiguration--; | 488 buildCounterGceClusterConfiguration--; |
| 409 return o; | 489 return o; |
| 410 } | 490 } |
| 411 | 491 |
| 412 checkGceClusterConfiguration(api.GceClusterConfiguration o) { | 492 checkGceClusterConfiguration(api.GceClusterConfiguration o) { |
| 413 buildCounterGceClusterConfiguration++; | 493 buildCounterGceClusterConfiguration++; |
| 414 if (buildCounterGceClusterConfiguration < 3) { | 494 if (buildCounterGceClusterConfiguration < 3) { |
| 415 checkUnnamed3652(o.metadata); | 495 unittest.expect(o.internalIpOnly, unittest.isTrue); |
| 496 checkUnnamed3488(o.metadata); |
| 416 unittest.expect(o.networkUri, unittest.equals('foo')); | 497 unittest.expect(o.networkUri, unittest.equals('foo')); |
| 417 checkUnnamed3653(o.serviceAccountScopes); | 498 checkUnnamed3489(o.serviceAccountScopes); |
| 418 unittest.expect(o.subnetworkUri, unittest.equals('foo')); | 499 unittest.expect(o.subnetworkUri, unittest.equals('foo')); |
| 419 checkUnnamed3654(o.tags); | 500 checkUnnamed3490(o.tags); |
| 420 unittest.expect(o.zoneUri, unittest.equals('foo')); | 501 unittest.expect(o.zoneUri, unittest.equals('foo')); |
| 421 } | 502 } |
| 422 buildCounterGceClusterConfiguration--; | 503 buildCounterGceClusterConfiguration--; |
| 423 } | 504 } |
| 424 | 505 |
| 425 buildUnnamed3655() { | 506 buildUnnamed3491() { |
| 426 var o = new core.List<core.String>(); | 507 var o = new core.List<core.String>(); |
| 427 o.add("foo"); | 508 o.add("foo"); |
| 428 o.add("foo"); | 509 o.add("foo"); |
| 429 return o; | 510 return o; |
| 430 } | 511 } |
| 431 | 512 |
| 432 checkUnnamed3655(core.List<core.String> o) { | 513 checkUnnamed3491(core.List<core.String> o) { |
| 433 unittest.expect(o, unittest.hasLength(2)); | 514 unittest.expect(o, unittest.hasLength(2)); |
| 434 unittest.expect(o[0], unittest.equals('foo')); | 515 unittest.expect(o[0], unittest.equals('foo')); |
| 435 unittest.expect(o[1], unittest.equals('foo')); | 516 unittest.expect(o[1], unittest.equals('foo')); |
| 436 } | 517 } |
| 437 | 518 |
| 438 buildUnnamed3656() { | 519 buildUnnamed3492() { |
| 439 var o = new core.List<core.String>(); | 520 var o = new core.List<core.String>(); |
| 440 o.add("foo"); | 521 o.add("foo"); |
| 441 o.add("foo"); | 522 o.add("foo"); |
| 442 return o; | 523 return o; |
| 443 } | 524 } |
| 444 | 525 |
| 445 checkUnnamed3656(core.List<core.String> o) { | 526 checkUnnamed3492(core.List<core.String> o) { |
| 446 unittest.expect(o, unittest.hasLength(2)); | 527 unittest.expect(o, unittest.hasLength(2)); |
| 447 unittest.expect(o[0], unittest.equals('foo')); | 528 unittest.expect(o[0], unittest.equals('foo')); |
| 448 unittest.expect(o[1], unittest.equals('foo')); | 529 unittest.expect(o[1], unittest.equals('foo')); |
| 449 } | 530 } |
| 450 | 531 |
| 451 buildUnnamed3657() { | 532 buildUnnamed3493() { |
| 452 var o = new core.List<core.String>(); | 533 var o = new core.List<core.String>(); |
| 453 o.add("foo"); | 534 o.add("foo"); |
| 454 o.add("foo"); | 535 o.add("foo"); |
| 455 return o; | 536 return o; |
| 456 } | 537 } |
| 457 | 538 |
| 458 checkUnnamed3657(core.List<core.String> o) { | 539 checkUnnamed3493(core.List<core.String> o) { |
| 459 unittest.expect(o, unittest.hasLength(2)); | 540 unittest.expect(o, unittest.hasLength(2)); |
| 460 unittest.expect(o[0], unittest.equals('foo')); | 541 unittest.expect(o[0], unittest.equals('foo')); |
| 461 unittest.expect(o[1], unittest.equals('foo')); | 542 unittest.expect(o[1], unittest.equals('foo')); |
| 462 } | 543 } |
| 463 | 544 |
| 464 buildUnnamed3658() { | 545 buildUnnamed3494() { |
| 465 var o = new core.List<core.String>(); | 546 var o = new core.List<core.String>(); |
| 466 o.add("foo"); | 547 o.add("foo"); |
| 467 o.add("foo"); | 548 o.add("foo"); |
| 468 return o; | 549 return o; |
| 469 } | 550 } |
| 470 | 551 |
| 471 checkUnnamed3658(core.List<core.String> o) { | 552 checkUnnamed3494(core.List<core.String> o) { |
| 472 unittest.expect(o, unittest.hasLength(2)); | 553 unittest.expect(o, unittest.hasLength(2)); |
| 473 unittest.expect(o[0], unittest.equals('foo')); | 554 unittest.expect(o[0], unittest.equals('foo')); |
| 474 unittest.expect(o[1], unittest.equals('foo')); | 555 unittest.expect(o[1], unittest.equals('foo')); |
| 475 } | 556 } |
| 476 | 557 |
| 477 buildUnnamed3659() { | 558 buildUnnamed3495() { |
| 478 var o = new core.Map<core.String, core.String>(); | 559 var o = new core.Map<core.String, core.String>(); |
| 479 o["x"] = "foo"; | 560 o["x"] = "foo"; |
| 480 o["y"] = "foo"; | 561 o["y"] = "foo"; |
| 481 return o; | 562 return o; |
| 482 } | 563 } |
| 483 | 564 |
| 484 checkUnnamed3659(core.Map<core.String, core.String> o) { | 565 checkUnnamed3495(core.Map<core.String, core.String> o) { |
| 485 unittest.expect(o, unittest.hasLength(2)); | 566 unittest.expect(o, unittest.hasLength(2)); |
| 486 unittest.expect(o["x"], unittest.equals('foo')); | 567 unittest.expect(o["x"], unittest.equals('foo')); |
| 487 unittest.expect(o["y"], unittest.equals('foo')); | 568 unittest.expect(o["y"], unittest.equals('foo')); |
| 488 } | 569 } |
| 489 | 570 |
| 490 core.int buildCounterHadoopJob = 0; | 571 core.int buildCounterHadoopJob = 0; |
| 491 buildHadoopJob() { | 572 buildHadoopJob() { |
| 492 var o = new api.HadoopJob(); | 573 var o = new api.HadoopJob(); |
| 493 buildCounterHadoopJob++; | 574 buildCounterHadoopJob++; |
| 494 if (buildCounterHadoopJob < 3) { | 575 if (buildCounterHadoopJob < 3) { |
| 495 o.archiveUris = buildUnnamed3655(); | 576 o.archiveUris = buildUnnamed3491(); |
| 496 o.args = buildUnnamed3656(); | 577 o.args = buildUnnamed3492(); |
| 497 o.fileUris = buildUnnamed3657(); | 578 o.fileUris = buildUnnamed3493(); |
| 498 o.jarFileUris = buildUnnamed3658(); | 579 o.jarFileUris = buildUnnamed3494(); |
| 499 o.loggingConfiguration = buildLoggingConfiguration(); | 580 o.loggingConfiguration = buildLoggingConfiguration(); |
| 500 o.mainClass = "foo"; | 581 o.mainClass = "foo"; |
| 501 o.mainJarFileUri = "foo"; | 582 o.mainJarFileUri = "foo"; |
| 502 o.properties = buildUnnamed3659(); | 583 o.properties = buildUnnamed3495(); |
| 503 } | 584 } |
| 504 buildCounterHadoopJob--; | 585 buildCounterHadoopJob--; |
| 505 return o; | 586 return o; |
| 506 } | 587 } |
| 507 | 588 |
| 508 checkHadoopJob(api.HadoopJob o) { | 589 checkHadoopJob(api.HadoopJob o) { |
| 509 buildCounterHadoopJob++; | 590 buildCounterHadoopJob++; |
| 510 if (buildCounterHadoopJob < 3) { | 591 if (buildCounterHadoopJob < 3) { |
| 511 checkUnnamed3655(o.archiveUris); | 592 checkUnnamed3491(o.archiveUris); |
| 512 checkUnnamed3656(o.args); | 593 checkUnnamed3492(o.args); |
| 513 checkUnnamed3657(o.fileUris); | 594 checkUnnamed3493(o.fileUris); |
| 514 checkUnnamed3658(o.jarFileUris); | 595 checkUnnamed3494(o.jarFileUris); |
| 515 checkLoggingConfiguration(o.loggingConfiguration); | 596 checkLoggingConfiguration(o.loggingConfiguration); |
| 516 unittest.expect(o.mainClass, unittest.equals('foo')); | 597 unittest.expect(o.mainClass, unittest.equals('foo')); |
| 517 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 598 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
| 518 checkUnnamed3659(o.properties); | 599 checkUnnamed3495(o.properties); |
| 519 } | 600 } |
| 520 buildCounterHadoopJob--; | 601 buildCounterHadoopJob--; |
| 521 } | 602 } |
| 522 | 603 |
| 523 buildUnnamed3660() { | 604 buildUnnamed3496() { |
| 524 var o = new core.List<core.String>(); | 605 var o = new core.List<core.String>(); |
| 525 o.add("foo"); | 606 o.add("foo"); |
| 526 o.add("foo"); | 607 o.add("foo"); |
| 527 return o; | 608 return o; |
| 528 } | 609 } |
| 529 | 610 |
| 530 checkUnnamed3660(core.List<core.String> o) { | 611 checkUnnamed3496(core.List<core.String> o) { |
| 531 unittest.expect(o, unittest.hasLength(2)); | 612 unittest.expect(o, unittest.hasLength(2)); |
| 532 unittest.expect(o[0], unittest.equals('foo')); | 613 unittest.expect(o[0], unittest.equals('foo')); |
| 533 unittest.expect(o[1], unittest.equals('foo')); | 614 unittest.expect(o[1], unittest.equals('foo')); |
| 534 } | 615 } |
| 535 | 616 |
| 536 buildUnnamed3661() { | 617 buildUnnamed3497() { |
| 537 var o = new core.Map<core.String, core.String>(); | 618 var o = new core.Map<core.String, core.String>(); |
| 538 o["x"] = "foo"; | 619 o["x"] = "foo"; |
| 539 o["y"] = "foo"; | 620 o["y"] = "foo"; |
| 540 return o; | 621 return o; |
| 541 } | 622 } |
| 542 | 623 |
| 543 checkUnnamed3661(core.Map<core.String, core.String> o) { | 624 checkUnnamed3497(core.Map<core.String, core.String> o) { |
| 544 unittest.expect(o, unittest.hasLength(2)); | 625 unittest.expect(o, unittest.hasLength(2)); |
| 545 unittest.expect(o["x"], unittest.equals('foo')); | 626 unittest.expect(o["x"], unittest.equals('foo')); |
| 546 unittest.expect(o["y"], unittest.equals('foo')); | 627 unittest.expect(o["y"], unittest.equals('foo')); |
| 547 } | 628 } |
| 548 | 629 |
| 549 buildUnnamed3662() { | 630 buildUnnamed3498() { |
| 550 var o = new core.Map<core.String, core.String>(); | 631 var o = new core.Map<core.String, core.String>(); |
| 551 o["x"] = "foo"; | 632 o["x"] = "foo"; |
| 552 o["y"] = "foo"; | 633 o["y"] = "foo"; |
| 553 return o; | 634 return o; |
| 554 } | 635 } |
| 555 | 636 |
| 556 checkUnnamed3662(core.Map<core.String, core.String> o) { | 637 checkUnnamed3498(core.Map<core.String, core.String> o) { |
| 557 unittest.expect(o, unittest.hasLength(2)); | 638 unittest.expect(o, unittest.hasLength(2)); |
| 558 unittest.expect(o["x"], unittest.equals('foo')); | 639 unittest.expect(o["x"], unittest.equals('foo')); |
| 559 unittest.expect(o["y"], unittest.equals('foo')); | 640 unittest.expect(o["y"], unittest.equals('foo')); |
| 560 } | 641 } |
| 561 | 642 |
| 562 core.int buildCounterHiveJob = 0; | 643 core.int buildCounterHiveJob = 0; |
| 563 buildHiveJob() { | 644 buildHiveJob() { |
| 564 var o = new api.HiveJob(); | 645 var o = new api.HiveJob(); |
| 565 buildCounterHiveJob++; | 646 buildCounterHiveJob++; |
| 566 if (buildCounterHiveJob < 3) { | 647 if (buildCounterHiveJob < 3) { |
| 567 o.continueOnFailure = true; | 648 o.continueOnFailure = true; |
| 568 o.jarFileUris = buildUnnamed3660(); | 649 o.jarFileUris = buildUnnamed3496(); |
| 569 o.properties = buildUnnamed3661(); | 650 o.properties = buildUnnamed3497(); |
| 570 o.queryFileUri = "foo"; | 651 o.queryFileUri = "foo"; |
| 571 o.queryList = buildQueryList(); | 652 o.queryList = buildQueryList(); |
| 572 o.scriptVariables = buildUnnamed3662(); | 653 o.scriptVariables = buildUnnamed3498(); |
| 573 } | 654 } |
| 574 buildCounterHiveJob--; | 655 buildCounterHiveJob--; |
| 575 return o; | 656 return o; |
| 576 } | 657 } |
| 577 | 658 |
| 578 checkHiveJob(api.HiveJob o) { | 659 checkHiveJob(api.HiveJob o) { |
| 579 buildCounterHiveJob++; | 660 buildCounterHiveJob++; |
| 580 if (buildCounterHiveJob < 3) { | 661 if (buildCounterHiveJob < 3) { |
| 581 unittest.expect(o.continueOnFailure, unittest.isTrue); | 662 unittest.expect(o.continueOnFailure, unittest.isTrue); |
| 582 checkUnnamed3660(o.jarFileUris); | 663 checkUnnamed3496(o.jarFileUris); |
| 583 checkUnnamed3661(o.properties); | 664 checkUnnamed3497(o.properties); |
| 584 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 665 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
| 585 checkQueryList(o.queryList); | 666 checkQueryList(o.queryList); |
| 586 checkUnnamed3662(o.scriptVariables); | 667 checkUnnamed3498(o.scriptVariables); |
| 587 } | 668 } |
| 588 buildCounterHiveJob--; | 669 buildCounterHiveJob--; |
| 589 } | 670 } |
| 590 | 671 |
| 591 buildUnnamed3663() { | 672 buildUnnamed3499() { |
| 592 var o = new core.List<core.String>(); | 673 var o = new core.List<core.String>(); |
| 593 o.add("foo"); | 674 o.add("foo"); |
| 594 o.add("foo"); | 675 o.add("foo"); |
| 595 return o; | 676 return o; |
| 596 } | 677 } |
| 597 | 678 |
| 598 checkUnnamed3663(core.List<core.String> o) { | 679 checkUnnamed3499(core.List<core.String> o) { |
| 599 unittest.expect(o, unittest.hasLength(2)); | 680 unittest.expect(o, unittest.hasLength(2)); |
| 600 unittest.expect(o[0], unittest.equals('foo')); | 681 unittest.expect(o[0], unittest.equals('foo')); |
| 601 unittest.expect(o[1], unittest.equals('foo')); | 682 unittest.expect(o[1], unittest.equals('foo')); |
| 602 } | 683 } |
| 603 | 684 |
| 604 core.int buildCounterInstanceGroupConfiguration = 0; | 685 core.int buildCounterInstanceGroupConfiguration = 0; |
| 605 buildInstanceGroupConfiguration() { | 686 buildInstanceGroupConfiguration() { |
| 606 var o = new api.InstanceGroupConfiguration(); | 687 var o = new api.InstanceGroupConfiguration(); |
| 607 buildCounterInstanceGroupConfiguration++; | 688 buildCounterInstanceGroupConfiguration++; |
| 608 if (buildCounterInstanceGroupConfiguration < 3) { | 689 if (buildCounterInstanceGroupConfiguration < 3) { |
| 609 o.diskConfiguration = buildDiskConfiguration(); | 690 o.diskConfiguration = buildDiskConfiguration(); |
| 610 o.imageUri = "foo"; | 691 o.imageUri = "foo"; |
| 611 o.instanceNames = buildUnnamed3663(); | 692 o.instanceNames = buildUnnamed3499(); |
| 612 o.isPreemptible = true; | 693 o.isPreemptible = true; |
| 613 o.machineTypeUri = "foo"; | 694 o.machineTypeUri = "foo"; |
| 614 o.managedGroupConfiguration = buildManagedGroupConfiguration(); | 695 o.managedGroupConfiguration = buildManagedGroupConfiguration(); |
| 615 o.numInstances = 42; | 696 o.numInstances = 42; |
| 616 } | 697 } |
| 617 buildCounterInstanceGroupConfiguration--; | 698 buildCounterInstanceGroupConfiguration--; |
| 618 return o; | 699 return o; |
| 619 } | 700 } |
| 620 | 701 |
| 621 checkInstanceGroupConfiguration(api.InstanceGroupConfiguration o) { | 702 checkInstanceGroupConfiguration(api.InstanceGroupConfiguration o) { |
| 622 buildCounterInstanceGroupConfiguration++; | 703 buildCounterInstanceGroupConfiguration++; |
| 623 if (buildCounterInstanceGroupConfiguration < 3) { | 704 if (buildCounterInstanceGroupConfiguration < 3) { |
| 624 checkDiskConfiguration(o.diskConfiguration); | 705 checkDiskConfiguration(o.diskConfiguration); |
| 625 unittest.expect(o.imageUri, unittest.equals('foo')); | 706 unittest.expect(o.imageUri, unittest.equals('foo')); |
| 626 checkUnnamed3663(o.instanceNames); | 707 checkUnnamed3499(o.instanceNames); |
| 627 unittest.expect(o.isPreemptible, unittest.isTrue); | 708 unittest.expect(o.isPreemptible, unittest.isTrue); |
| 628 unittest.expect(o.machineTypeUri, unittest.equals('foo')); | 709 unittest.expect(o.machineTypeUri, unittest.equals('foo')); |
| 629 checkManagedGroupConfiguration(o.managedGroupConfiguration); | 710 checkManagedGroupConfiguration(o.managedGroupConfiguration); |
| 630 unittest.expect(o.numInstances, unittest.equals(42)); | 711 unittest.expect(o.numInstances, unittest.equals(42)); |
| 631 } | 712 } |
| 632 buildCounterInstanceGroupConfiguration--; | 713 buildCounterInstanceGroupConfiguration--; |
| 633 } | 714 } |
| 634 | 715 |
| 635 buildUnnamed3664() { | 716 buildUnnamed3500() { |
| 717 var o = new core.Map<core.String, core.String>(); |
| 718 o["x"] = "foo"; |
| 719 o["y"] = "foo"; |
| 720 return o; |
| 721 } |
| 722 |
| 723 checkUnnamed3500(core.Map<core.String, core.String> o) { |
| 724 unittest.expect(o, unittest.hasLength(2)); |
| 725 unittest.expect(o["x"], unittest.equals('foo')); |
| 726 unittest.expect(o["y"], unittest.equals('foo')); |
| 727 } |
| 728 |
| 729 buildUnnamed3501() { |
| 636 var o = new core.List<api.JobStatus>(); | 730 var o = new core.List<api.JobStatus>(); |
| 637 o.add(buildJobStatus()); | 731 o.add(buildJobStatus()); |
| 638 o.add(buildJobStatus()); | 732 o.add(buildJobStatus()); |
| 639 return o; | 733 return o; |
| 640 } | 734 } |
| 641 | 735 |
| 642 checkUnnamed3664(core.List<api.JobStatus> o) { | 736 checkUnnamed3501(core.List<api.JobStatus> o) { |
| 643 unittest.expect(o, unittest.hasLength(2)); | 737 unittest.expect(o, unittest.hasLength(2)); |
| 644 checkJobStatus(o[0]); | 738 checkJobStatus(o[0]); |
| 645 checkJobStatus(o[1]); | 739 checkJobStatus(o[1]); |
| 646 } | 740 } |
| 647 | 741 |
| 648 buildUnnamed3665() { | 742 buildUnnamed3502() { |
| 649 var o = new core.List<api.YarnApplication>(); | 743 var o = new core.List<api.YarnApplication>(); |
| 650 o.add(buildYarnApplication()); | 744 o.add(buildYarnApplication()); |
| 651 o.add(buildYarnApplication()); | 745 o.add(buildYarnApplication()); |
| 652 return o; | 746 return o; |
| 653 } | 747 } |
| 654 | 748 |
| 655 checkUnnamed3665(core.List<api.YarnApplication> o) { | 749 checkUnnamed3502(core.List<api.YarnApplication> o) { |
| 656 unittest.expect(o, unittest.hasLength(2)); | 750 unittest.expect(o, unittest.hasLength(2)); |
| 657 checkYarnApplication(o[0]); | 751 checkYarnApplication(o[0]); |
| 658 checkYarnApplication(o[1]); | 752 checkYarnApplication(o[1]); |
| 659 } | 753 } |
| 660 | 754 |
| 661 core.int buildCounterJob = 0; | 755 core.int buildCounterJob = 0; |
| 662 buildJob() { | 756 buildJob() { |
| 663 var o = new api.Job(); | 757 var o = new api.Job(); |
| 664 buildCounterJob++; | 758 buildCounterJob++; |
| 665 if (buildCounterJob < 3) { | 759 if (buildCounterJob < 3) { |
| 666 o.driverControlFilesUri = "foo"; | 760 o.driverControlFilesUri = "foo"; |
| 667 o.driverInputResourceUri = "foo"; | 761 o.driverInputResourceUri = "foo"; |
| 668 o.driverOutputResourceUri = "foo"; | 762 o.driverOutputResourceUri = "foo"; |
| 669 o.hadoopJob = buildHadoopJob(); | 763 o.hadoopJob = buildHadoopJob(); |
| 670 o.hiveJob = buildHiveJob(); | 764 o.hiveJob = buildHiveJob(); |
| 671 o.interactive = true; | 765 o.interactive = true; |
| 766 o.labels = buildUnnamed3500(); |
| 672 o.pigJob = buildPigJob(); | 767 o.pigJob = buildPigJob(); |
| 673 o.placement = buildJobPlacement(); | 768 o.placement = buildJobPlacement(); |
| 674 o.pysparkJob = buildPySparkJob(); | 769 o.pysparkJob = buildPySparkJob(); |
| 675 o.reference = buildJobReference(); | 770 o.reference = buildJobReference(); |
| 676 o.sparkJob = buildSparkJob(); | 771 o.sparkJob = buildSparkJob(); |
| 677 o.sparkSqlJob = buildSparkSqlJob(); | 772 o.sparkSqlJob = buildSparkSqlJob(); |
| 678 o.status = buildJobStatus(); | 773 o.status = buildJobStatus(); |
| 679 o.statusHistory = buildUnnamed3664(); | 774 o.statusHistory = buildUnnamed3501(); |
| 680 o.submittedBy = "foo"; | 775 o.submittedBy = "foo"; |
| 681 o.yarnApplications = buildUnnamed3665(); | 776 o.yarnApplications = buildUnnamed3502(); |
| 682 } | 777 } |
| 683 buildCounterJob--; | 778 buildCounterJob--; |
| 684 return o; | 779 return o; |
| 685 } | 780 } |
| 686 | 781 |
| 687 checkJob(api.Job o) { | 782 checkJob(api.Job o) { |
| 688 buildCounterJob++; | 783 buildCounterJob++; |
| 689 if (buildCounterJob < 3) { | 784 if (buildCounterJob < 3) { |
| 690 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); | 785 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); |
| 691 unittest.expect(o.driverInputResourceUri, unittest.equals('foo')); | 786 unittest.expect(o.driverInputResourceUri, unittest.equals('foo')); |
| 692 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); | 787 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); |
| 693 checkHadoopJob(o.hadoopJob); | 788 checkHadoopJob(o.hadoopJob); |
| 694 checkHiveJob(o.hiveJob); | 789 checkHiveJob(o.hiveJob); |
| 695 unittest.expect(o.interactive, unittest.isTrue); | 790 unittest.expect(o.interactive, unittest.isTrue); |
| 791 checkUnnamed3500(o.labels); |
| 696 checkPigJob(o.pigJob); | 792 checkPigJob(o.pigJob); |
| 697 checkJobPlacement(o.placement); | 793 checkJobPlacement(o.placement); |
| 698 checkPySparkJob(o.pysparkJob); | 794 checkPySparkJob(o.pysparkJob); |
| 699 checkJobReference(o.reference); | 795 checkJobReference(o.reference); |
| 700 checkSparkJob(o.sparkJob); | 796 checkSparkJob(o.sparkJob); |
| 701 checkSparkSqlJob(o.sparkSqlJob); | 797 checkSparkSqlJob(o.sparkSqlJob); |
| 702 checkJobStatus(o.status); | 798 checkJobStatus(o.status); |
| 703 checkUnnamed3664(o.statusHistory); | 799 checkUnnamed3501(o.statusHistory); |
| 704 unittest.expect(o.submittedBy, unittest.equals('foo')); | 800 unittest.expect(o.submittedBy, unittest.equals('foo')); |
| 705 checkUnnamed3665(o.yarnApplications); | 801 checkUnnamed3502(o.yarnApplications); |
| 706 } | 802 } |
| 707 buildCounterJob--; | 803 buildCounterJob--; |
| 708 } | 804 } |
| 709 | 805 |
| 710 core.int buildCounterJobPlacement = 0; | 806 core.int buildCounterJobPlacement = 0; |
| 711 buildJobPlacement() { | 807 buildJobPlacement() { |
| 712 var o = new api.JobPlacement(); | 808 var o = new api.JobPlacement(); |
| 713 buildCounterJobPlacement++; | 809 buildCounterJobPlacement++; |
| 714 if (buildCounterJobPlacement < 3) { | 810 if (buildCounterJobPlacement < 3) { |
| 715 o.clusterName = "foo"; | 811 o.clusterName = "foo"; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 765 checkJobStatus(api.JobStatus o) { | 861 checkJobStatus(api.JobStatus o) { |
| 766 buildCounterJobStatus++; | 862 buildCounterJobStatus++; |
| 767 if (buildCounterJobStatus < 3) { | 863 if (buildCounterJobStatus < 3) { |
| 768 unittest.expect(o.details, unittest.equals('foo')); | 864 unittest.expect(o.details, unittest.equals('foo')); |
| 769 unittest.expect(o.state, unittest.equals('foo')); | 865 unittest.expect(o.state, unittest.equals('foo')); |
| 770 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 866 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
| 771 } | 867 } |
| 772 buildCounterJobStatus--; | 868 buildCounterJobStatus--; |
| 773 } | 869 } |
| 774 | 870 |
| 775 buildUnnamed3666() { | 871 buildUnnamed3503() { |
| 776 var o = new core.List<api.Cluster>(); | 872 var o = new core.List<api.Cluster>(); |
| 777 o.add(buildCluster()); | 873 o.add(buildCluster()); |
| 778 o.add(buildCluster()); | 874 o.add(buildCluster()); |
| 779 return o; | 875 return o; |
| 780 } | 876 } |
| 781 | 877 |
| 782 checkUnnamed3666(core.List<api.Cluster> o) { | 878 checkUnnamed3503(core.List<api.Cluster> o) { |
| 783 unittest.expect(o, unittest.hasLength(2)); | 879 unittest.expect(o, unittest.hasLength(2)); |
| 784 checkCluster(o[0]); | 880 checkCluster(o[0]); |
| 785 checkCluster(o[1]); | 881 checkCluster(o[1]); |
| 786 } | 882 } |
| 787 | 883 |
| 788 core.int buildCounterListClustersResponse = 0; | 884 core.int buildCounterListClustersResponse = 0; |
| 789 buildListClustersResponse() { | 885 buildListClustersResponse() { |
| 790 var o = new api.ListClustersResponse(); | 886 var o = new api.ListClustersResponse(); |
| 791 buildCounterListClustersResponse++; | 887 buildCounterListClustersResponse++; |
| 792 if (buildCounterListClustersResponse < 3) { | 888 if (buildCounterListClustersResponse < 3) { |
| 793 o.clusters = buildUnnamed3666(); | 889 o.clusters = buildUnnamed3503(); |
| 794 o.nextPageToken = "foo"; | 890 o.nextPageToken = "foo"; |
| 795 } | 891 } |
| 796 buildCounterListClustersResponse--; | 892 buildCounterListClustersResponse--; |
| 797 return o; | 893 return o; |
| 798 } | 894 } |
| 799 | 895 |
| 800 checkListClustersResponse(api.ListClustersResponse o) { | 896 checkListClustersResponse(api.ListClustersResponse o) { |
| 801 buildCounterListClustersResponse++; | 897 buildCounterListClustersResponse++; |
| 802 if (buildCounterListClustersResponse < 3) { | 898 if (buildCounterListClustersResponse < 3) { |
| 803 checkUnnamed3666(o.clusters); | 899 checkUnnamed3503(o.clusters); |
| 804 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 900 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 805 } | 901 } |
| 806 buildCounterListClustersResponse--; | 902 buildCounterListClustersResponse--; |
| 807 } | 903 } |
| 808 | 904 |
| 809 buildUnnamed3667() { | 905 buildUnnamed3504() { |
| 810 var o = new core.List<api.Job>(); | 906 var o = new core.List<api.Job>(); |
| 811 o.add(buildJob()); | 907 o.add(buildJob()); |
| 812 o.add(buildJob()); | 908 o.add(buildJob()); |
| 813 return o; | 909 return o; |
| 814 } | 910 } |
| 815 | 911 |
| 816 checkUnnamed3667(core.List<api.Job> o) { | 912 checkUnnamed3504(core.List<api.Job> o) { |
| 817 unittest.expect(o, unittest.hasLength(2)); | 913 unittest.expect(o, unittest.hasLength(2)); |
| 818 checkJob(o[0]); | 914 checkJob(o[0]); |
| 819 checkJob(o[1]); | 915 checkJob(o[1]); |
| 820 } | 916 } |
| 821 | 917 |
| 822 core.int buildCounterListJobsResponse = 0; | 918 core.int buildCounterListJobsResponse = 0; |
| 823 buildListJobsResponse() { | 919 buildListJobsResponse() { |
| 824 var o = new api.ListJobsResponse(); | 920 var o = new api.ListJobsResponse(); |
| 825 buildCounterListJobsResponse++; | 921 buildCounterListJobsResponse++; |
| 826 if (buildCounterListJobsResponse < 3) { | 922 if (buildCounterListJobsResponse < 3) { |
| 827 o.jobs = buildUnnamed3667(); | 923 o.jobs = buildUnnamed3504(); |
| 828 o.nextPageToken = "foo"; | 924 o.nextPageToken = "foo"; |
| 829 } | 925 } |
| 830 buildCounterListJobsResponse--; | 926 buildCounterListJobsResponse--; |
| 831 return o; | 927 return o; |
| 832 } | 928 } |
| 833 | 929 |
| 834 checkListJobsResponse(api.ListJobsResponse o) { | 930 checkListJobsResponse(api.ListJobsResponse o) { |
| 835 buildCounterListJobsResponse++; | 931 buildCounterListJobsResponse++; |
| 836 if (buildCounterListJobsResponse < 3) { | 932 if (buildCounterListJobsResponse < 3) { |
| 837 checkUnnamed3667(o.jobs); | 933 checkUnnamed3504(o.jobs); |
| 838 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 934 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 839 } | 935 } |
| 840 buildCounterListJobsResponse--; | 936 buildCounterListJobsResponse--; |
| 841 } | 937 } |
| 842 | 938 |
| 843 buildUnnamed3668() { | 939 buildUnnamed3505() { |
| 844 var o = new core.List<api.Operation>(); | 940 var o = new core.List<api.Operation>(); |
| 845 o.add(buildOperation()); | 941 o.add(buildOperation()); |
| 846 o.add(buildOperation()); | 942 o.add(buildOperation()); |
| 847 return o; | 943 return o; |
| 848 } | 944 } |
| 849 | 945 |
| 850 checkUnnamed3668(core.List<api.Operation> o) { | 946 checkUnnamed3505(core.List<api.Operation> o) { |
| 851 unittest.expect(o, unittest.hasLength(2)); | 947 unittest.expect(o, unittest.hasLength(2)); |
| 852 checkOperation(o[0]); | 948 checkOperation(o[0]); |
| 853 checkOperation(o[1]); | 949 checkOperation(o[1]); |
| 854 } | 950 } |
| 855 | 951 |
| 856 core.int buildCounterListOperationsResponse = 0; | 952 core.int buildCounterListOperationsResponse = 0; |
| 857 buildListOperationsResponse() { | 953 buildListOperationsResponse() { |
| 858 var o = new api.ListOperationsResponse(); | 954 var o = new api.ListOperationsResponse(); |
| 859 buildCounterListOperationsResponse++; | 955 buildCounterListOperationsResponse++; |
| 860 if (buildCounterListOperationsResponse < 3) { | 956 if (buildCounterListOperationsResponse < 3) { |
| 861 o.nextPageToken = "foo"; | 957 o.nextPageToken = "foo"; |
| 862 o.operations = buildUnnamed3668(); | 958 o.operations = buildUnnamed3505(); |
| 863 } | 959 } |
| 864 buildCounterListOperationsResponse--; | 960 buildCounterListOperationsResponse--; |
| 865 return o; | 961 return o; |
| 866 } | 962 } |
| 867 | 963 |
| 868 checkListOperationsResponse(api.ListOperationsResponse o) { | 964 checkListOperationsResponse(api.ListOperationsResponse o) { |
| 869 buildCounterListOperationsResponse++; | 965 buildCounterListOperationsResponse++; |
| 870 if (buildCounterListOperationsResponse < 3) { | 966 if (buildCounterListOperationsResponse < 3) { |
| 871 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 967 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 872 checkUnnamed3668(o.operations); | 968 checkUnnamed3505(o.operations); |
| 873 } | 969 } |
| 874 buildCounterListOperationsResponse--; | 970 buildCounterListOperationsResponse--; |
| 875 } | 971 } |
| 876 | 972 |
| 877 buildUnnamed3669() { | 973 buildUnnamed3506() { |
| 878 var o = new core.Map<core.String, core.String>(); | 974 var o = new core.Map<core.String, core.String>(); |
| 879 o["x"] = "foo"; | 975 o["x"] = "foo"; |
| 880 o["y"] = "foo"; | 976 o["y"] = "foo"; |
| 881 return o; | 977 return o; |
| 882 } | 978 } |
| 883 | 979 |
| 884 checkUnnamed3669(core.Map<core.String, core.String> o) { | 980 checkUnnamed3506(core.Map<core.String, core.String> o) { |
| 885 unittest.expect(o, unittest.hasLength(2)); | 981 unittest.expect(o, unittest.hasLength(2)); |
| 886 unittest.expect(o["x"], unittest.equals('foo')); | 982 unittest.expect(o["x"], unittest.equals('foo')); |
| 887 unittest.expect(o["y"], unittest.equals('foo')); | 983 unittest.expect(o["y"], unittest.equals('foo')); |
| 888 } | 984 } |
| 889 | 985 |
| 890 core.int buildCounterLoggingConfiguration = 0; | 986 core.int buildCounterLoggingConfiguration = 0; |
| 891 buildLoggingConfiguration() { | 987 buildLoggingConfiguration() { |
| 892 var o = new api.LoggingConfiguration(); | 988 var o = new api.LoggingConfiguration(); |
| 893 buildCounterLoggingConfiguration++; | 989 buildCounterLoggingConfiguration++; |
| 894 if (buildCounterLoggingConfiguration < 3) { | 990 if (buildCounterLoggingConfiguration < 3) { |
| 895 o.driverLogLevels = buildUnnamed3669(); | 991 o.driverLogLevels = buildUnnamed3506(); |
| 896 } | 992 } |
| 897 buildCounterLoggingConfiguration--; | 993 buildCounterLoggingConfiguration--; |
| 898 return o; | 994 return o; |
| 899 } | 995 } |
| 900 | 996 |
| 901 checkLoggingConfiguration(api.LoggingConfiguration o) { | 997 checkLoggingConfiguration(api.LoggingConfiguration o) { |
| 902 buildCounterLoggingConfiguration++; | 998 buildCounterLoggingConfiguration++; |
| 903 if (buildCounterLoggingConfiguration < 3) { | 999 if (buildCounterLoggingConfiguration < 3) { |
| 904 checkUnnamed3669(o.driverLogLevels); | 1000 checkUnnamed3506(o.driverLogLevels); |
| 905 } | 1001 } |
| 906 buildCounterLoggingConfiguration--; | 1002 buildCounterLoggingConfiguration--; |
| 907 } | 1003 } |
| 908 | 1004 |
| 909 core.int buildCounterManagedGroupConfiguration = 0; | 1005 core.int buildCounterManagedGroupConfiguration = 0; |
| 910 buildManagedGroupConfiguration() { | 1006 buildManagedGroupConfiguration() { |
| 911 var o = new api.ManagedGroupConfiguration(); | 1007 var o = new api.ManagedGroupConfiguration(); |
| 912 buildCounterManagedGroupConfiguration++; | 1008 buildCounterManagedGroupConfiguration++; |
| 913 if (buildCounterManagedGroupConfiguration < 3) { | 1009 if (buildCounterManagedGroupConfiguration < 3) { |
| 914 o.instanceGroupManagerName = "foo"; | 1010 o.instanceGroupManagerName = "foo"; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 941 | 1037 |
| 942 checkNodeInitializationAction(api.NodeInitializationAction o) { | 1038 checkNodeInitializationAction(api.NodeInitializationAction o) { |
| 943 buildCounterNodeInitializationAction++; | 1039 buildCounterNodeInitializationAction++; |
| 944 if (buildCounterNodeInitializationAction < 3) { | 1040 if (buildCounterNodeInitializationAction < 3) { |
| 945 unittest.expect(o.executableFile, unittest.equals('foo')); | 1041 unittest.expect(o.executableFile, unittest.equals('foo')); |
| 946 unittest.expect(o.executionTimeout, unittest.equals('foo')); | 1042 unittest.expect(o.executionTimeout, unittest.equals('foo')); |
| 947 } | 1043 } |
| 948 buildCounterNodeInitializationAction--; | 1044 buildCounterNodeInitializationAction--; |
| 949 } | 1045 } |
| 950 | 1046 |
| 951 buildUnnamed3670() { | 1047 buildUnnamed3507() { |
| 952 var o = new core.Map<core.String, core.Object>(); | 1048 var o = new core.Map<core.String, core.Object>(); |
| 953 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1049 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 954 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1050 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 955 return o; | 1051 return o; |
| 956 } | 1052 } |
| 957 | 1053 |
| 958 checkUnnamed3670(core.Map<core.String, core.Object> o) { | 1054 checkUnnamed3507(core.Map<core.String, core.Object> o) { |
| 959 unittest.expect(o, unittest.hasLength(2)); | 1055 unittest.expect(o, unittest.hasLength(2)); |
| 960 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')); | 1056 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); |
| 961 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')); | 1057 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); |
| 962 } | 1058 } |
| 963 | 1059 |
| 964 buildUnnamed3671() { | 1060 buildUnnamed3508() { |
| 965 var o = new core.Map<core.String, core.Object>(); | 1061 var o = new core.Map<core.String, core.Object>(); |
| 966 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1062 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 967 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1063 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 968 return o; | 1064 return o; |
| 969 } | 1065 } |
| 970 | 1066 |
| 971 checkUnnamed3671(core.Map<core.String, core.Object> o) { | 1067 checkUnnamed3508(core.Map<core.String, core.Object> o) { |
| 972 unittest.expect(o, unittest.hasLength(2)); | 1068 unittest.expect(o, unittest.hasLength(2)); |
| 973 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')); | 1069 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); |
| 974 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')); | 1070 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); |
| 975 } | 1071 } |
| 976 | 1072 |
| 977 core.int buildCounterOperation = 0; | 1073 core.int buildCounterOperation = 0; |
| 978 buildOperation() { | 1074 buildOperation() { |
| 979 var o = new api.Operation(); | 1075 var o = new api.Operation(); |
| 980 buildCounterOperation++; | 1076 buildCounterOperation++; |
| 981 if (buildCounterOperation < 3) { | 1077 if (buildCounterOperation < 3) { |
| 982 o.done = true; | 1078 o.done = true; |
| 983 o.error = buildStatus(); | 1079 o.error = buildStatus(); |
| 984 o.metadata = buildUnnamed3670(); | 1080 o.metadata = buildUnnamed3507(); |
| 985 o.name = "foo"; | 1081 o.name = "foo"; |
| 986 o.response = buildUnnamed3671(); | 1082 o.response = buildUnnamed3508(); |
| 987 } | 1083 } |
| 988 buildCounterOperation--; | 1084 buildCounterOperation--; |
| 989 return o; | 1085 return o; |
| 990 } | 1086 } |
| 991 | 1087 |
| 992 checkOperation(api.Operation o) { | 1088 checkOperation(api.Operation o) { |
| 993 buildCounterOperation++; | 1089 buildCounterOperation++; |
| 994 if (buildCounterOperation < 3) { | 1090 if (buildCounterOperation < 3) { |
| 995 unittest.expect(o.done, unittest.isTrue); | 1091 unittest.expect(o.done, unittest.isTrue); |
| 996 checkStatus(o.error); | 1092 checkStatus(o.error); |
| 997 checkUnnamed3670(o.metadata); | 1093 checkUnnamed3507(o.metadata); |
| 998 unittest.expect(o.name, unittest.equals('foo')); | 1094 unittest.expect(o.name, unittest.equals('foo')); |
| 999 checkUnnamed3671(o.response); | 1095 checkUnnamed3508(o.response); |
| 1000 } | 1096 } |
| 1001 buildCounterOperation--; | 1097 buildCounterOperation--; |
| 1002 } | 1098 } |
| 1003 | 1099 |
| 1004 buildUnnamed3672() { | 1100 buildUnnamed3509() { |
| 1005 var o = new core.List<api.OperationStatus>(); | 1101 var o = new core.List<api.OperationStatus>(); |
| 1006 o.add(buildOperationStatus()); | 1102 o.add(buildOperationStatus()); |
| 1007 o.add(buildOperationStatus()); | 1103 o.add(buildOperationStatus()); |
| 1008 return o; | 1104 return o; |
| 1009 } | 1105 } |
| 1010 | 1106 |
| 1011 checkUnnamed3672(core.List<api.OperationStatus> o) { | 1107 checkUnnamed3509(core.List<api.OperationStatus> o) { |
| 1012 unittest.expect(o, unittest.hasLength(2)); | 1108 unittest.expect(o, unittest.hasLength(2)); |
| 1013 checkOperationStatus(o[0]); | 1109 checkOperationStatus(o[0]); |
| 1014 checkOperationStatus(o[1]); | 1110 checkOperationStatus(o[1]); |
| 1015 } | 1111 } |
| 1016 | 1112 |
| 1017 core.int buildCounterOperationMetadata = 0; | 1113 core.int buildCounterOperationMetadata = 0; |
| 1018 buildOperationMetadata() { | 1114 buildOperationMetadata() { |
| 1019 var o = new api.OperationMetadata(); | 1115 var o = new api.OperationMetadata(); |
| 1020 buildCounterOperationMetadata++; | 1116 buildCounterOperationMetadata++; |
| 1021 if (buildCounterOperationMetadata < 3) { | 1117 if (buildCounterOperationMetadata < 3) { |
| 1022 o.clusterName = "foo"; | 1118 o.clusterName = "foo"; |
| 1023 o.clusterUuid = "foo"; | 1119 o.clusterUuid = "foo"; |
| 1024 o.description = "foo"; | 1120 o.description = "foo"; |
| 1025 o.details = "foo"; | 1121 o.details = "foo"; |
| 1026 o.endTime = "foo"; | 1122 o.endTime = "foo"; |
| 1027 o.innerState = "foo"; | 1123 o.innerState = "foo"; |
| 1028 o.insertTime = "foo"; | 1124 o.insertTime = "foo"; |
| 1029 o.operationType = "foo"; | 1125 o.operationType = "foo"; |
| 1030 o.startTime = "foo"; | 1126 o.startTime = "foo"; |
| 1031 o.state = "foo"; | 1127 o.state = "foo"; |
| 1032 o.status = buildOperationStatus(); | 1128 o.status = buildOperationStatus(); |
| 1033 o.statusHistory = buildUnnamed3672(); | 1129 o.statusHistory = buildUnnamed3509(); |
| 1034 } | 1130 } |
| 1035 buildCounterOperationMetadata--; | 1131 buildCounterOperationMetadata--; |
| 1036 return o; | 1132 return o; |
| 1037 } | 1133 } |
| 1038 | 1134 |
| 1039 checkOperationMetadata(api.OperationMetadata o) { | 1135 checkOperationMetadata(api.OperationMetadata o) { |
| 1040 buildCounterOperationMetadata++; | 1136 buildCounterOperationMetadata++; |
| 1041 if (buildCounterOperationMetadata < 3) { | 1137 if (buildCounterOperationMetadata < 3) { |
| 1042 unittest.expect(o.clusterName, unittest.equals('foo')); | 1138 unittest.expect(o.clusterName, unittest.equals('foo')); |
| 1043 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 1139 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
| 1044 unittest.expect(o.description, unittest.equals('foo')); | 1140 unittest.expect(o.description, unittest.equals('foo')); |
| 1045 unittest.expect(o.details, unittest.equals('foo')); | 1141 unittest.expect(o.details, unittest.equals('foo')); |
| 1046 unittest.expect(o.endTime, unittest.equals('foo')); | 1142 unittest.expect(o.endTime, unittest.equals('foo')); |
| 1047 unittest.expect(o.innerState, unittest.equals('foo')); | 1143 unittest.expect(o.innerState, unittest.equals('foo')); |
| 1048 unittest.expect(o.insertTime, unittest.equals('foo')); | 1144 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 1049 unittest.expect(o.operationType, unittest.equals('foo')); | 1145 unittest.expect(o.operationType, unittest.equals('foo')); |
| 1050 unittest.expect(o.startTime, unittest.equals('foo')); | 1146 unittest.expect(o.startTime, unittest.equals('foo')); |
| 1051 unittest.expect(o.state, unittest.equals('foo')); | 1147 unittest.expect(o.state, unittest.equals('foo')); |
| 1052 checkOperationStatus(o.status); | 1148 checkOperationStatus(o.status); |
| 1053 checkUnnamed3672(o.statusHistory); | 1149 checkUnnamed3509(o.statusHistory); |
| 1054 } | 1150 } |
| 1055 buildCounterOperationMetadata--; | 1151 buildCounterOperationMetadata--; |
| 1056 } | 1152 } |
| 1057 | 1153 |
| 1058 core.int buildCounterOperationStatus = 0; | 1154 core.int buildCounterOperationStatus = 0; |
| 1059 buildOperationStatus() { | 1155 buildOperationStatus() { |
| 1060 var o = new api.OperationStatus(); | 1156 var o = new api.OperationStatus(); |
| 1061 buildCounterOperationStatus++; | 1157 buildCounterOperationStatus++; |
| 1062 if (buildCounterOperationStatus < 3) { | 1158 if (buildCounterOperationStatus < 3) { |
| 1063 o.details = "foo"; | 1159 o.details = "foo"; |
| 1064 o.innerState = "foo"; | 1160 o.innerState = "foo"; |
| 1065 o.state = "foo"; | 1161 o.state = "foo"; |
| 1066 o.stateStartTime = "foo"; | 1162 o.stateStartTime = "foo"; |
| 1067 } | 1163 } |
| 1068 buildCounterOperationStatus--; | 1164 buildCounterOperationStatus--; |
| 1069 return o; | 1165 return o; |
| 1070 } | 1166 } |
| 1071 | 1167 |
| 1072 checkOperationStatus(api.OperationStatus o) { | 1168 checkOperationStatus(api.OperationStatus o) { |
| 1073 buildCounterOperationStatus++; | 1169 buildCounterOperationStatus++; |
| 1074 if (buildCounterOperationStatus < 3) { | 1170 if (buildCounterOperationStatus < 3) { |
| 1075 unittest.expect(o.details, unittest.equals('foo')); | 1171 unittest.expect(o.details, unittest.equals('foo')); |
| 1076 unittest.expect(o.innerState, unittest.equals('foo')); | 1172 unittest.expect(o.innerState, unittest.equals('foo')); |
| 1077 unittest.expect(o.state, unittest.equals('foo')); | 1173 unittest.expect(o.state, unittest.equals('foo')); |
| 1078 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 1174 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
| 1079 } | 1175 } |
| 1080 buildCounterOperationStatus--; | 1176 buildCounterOperationStatus--; |
| 1081 } | 1177 } |
| 1082 | 1178 |
| 1083 buildUnnamed3673() { | 1179 buildUnnamed3510() { |
| 1084 var o = new core.List<core.String>(); | 1180 var o = new core.List<core.String>(); |
| 1085 o.add("foo"); | 1181 o.add("foo"); |
| 1086 o.add("foo"); | 1182 o.add("foo"); |
| 1087 return o; | 1183 return o; |
| 1088 } | 1184 } |
| 1089 | 1185 |
| 1090 checkUnnamed3673(core.List<core.String> o) { | 1186 checkUnnamed3510(core.List<core.String> o) { |
| 1091 unittest.expect(o, unittest.hasLength(2)); | 1187 unittest.expect(o, unittest.hasLength(2)); |
| 1092 unittest.expect(o[0], unittest.equals('foo')); | 1188 unittest.expect(o[0], unittest.equals('foo')); |
| 1093 unittest.expect(o[1], unittest.equals('foo')); | 1189 unittest.expect(o[1], unittest.equals('foo')); |
| 1094 } | 1190 } |
| 1095 | 1191 |
| 1096 buildUnnamed3674() { | 1192 buildUnnamed3511() { |
| 1097 var o = new core.Map<core.String, core.String>(); | 1193 var o = new core.Map<core.String, core.String>(); |
| 1098 o["x"] = "foo"; | 1194 o["x"] = "foo"; |
| 1099 o["y"] = "foo"; | 1195 o["y"] = "foo"; |
| 1100 return o; | 1196 return o; |
| 1101 } | 1197 } |
| 1102 | 1198 |
| 1103 checkUnnamed3674(core.Map<core.String, core.String> o) { | 1199 checkUnnamed3511(core.Map<core.String, core.String> o) { |
| 1104 unittest.expect(o, unittest.hasLength(2)); | 1200 unittest.expect(o, unittest.hasLength(2)); |
| 1105 unittest.expect(o["x"], unittest.equals('foo')); | 1201 unittest.expect(o["x"], unittest.equals('foo')); |
| 1106 unittest.expect(o["y"], unittest.equals('foo')); | 1202 unittest.expect(o["y"], unittest.equals('foo')); |
| 1107 } | 1203 } |
| 1108 | 1204 |
| 1109 buildUnnamed3675() { | 1205 buildUnnamed3512() { |
| 1110 var o = new core.Map<core.String, core.String>(); | 1206 var o = new core.Map<core.String, core.String>(); |
| 1111 o["x"] = "foo"; | 1207 o["x"] = "foo"; |
| 1112 o["y"] = "foo"; | 1208 o["y"] = "foo"; |
| 1113 return o; | 1209 return o; |
| 1114 } | 1210 } |
| 1115 | 1211 |
| 1116 checkUnnamed3675(core.Map<core.String, core.String> o) { | 1212 checkUnnamed3512(core.Map<core.String, core.String> o) { |
| 1117 unittest.expect(o, unittest.hasLength(2)); | 1213 unittest.expect(o, unittest.hasLength(2)); |
| 1118 unittest.expect(o["x"], unittest.equals('foo')); | 1214 unittest.expect(o["x"], unittest.equals('foo')); |
| 1119 unittest.expect(o["y"], unittest.equals('foo')); | 1215 unittest.expect(o["y"], unittest.equals('foo')); |
| 1120 } | 1216 } |
| 1121 | 1217 |
| 1122 core.int buildCounterPigJob = 0; | 1218 core.int buildCounterPigJob = 0; |
| 1123 buildPigJob() { | 1219 buildPigJob() { |
| 1124 var o = new api.PigJob(); | 1220 var o = new api.PigJob(); |
| 1125 buildCounterPigJob++; | 1221 buildCounterPigJob++; |
| 1126 if (buildCounterPigJob < 3) { | 1222 if (buildCounterPigJob < 3) { |
| 1127 o.continueOnFailure = true; | 1223 o.continueOnFailure = true; |
| 1128 o.jarFileUris = buildUnnamed3673(); | 1224 o.jarFileUris = buildUnnamed3510(); |
| 1129 o.loggingConfiguration = buildLoggingConfiguration(); | 1225 o.loggingConfiguration = buildLoggingConfiguration(); |
| 1130 o.properties = buildUnnamed3674(); | 1226 o.properties = buildUnnamed3511(); |
| 1131 o.queryFileUri = "foo"; | 1227 o.queryFileUri = "foo"; |
| 1132 o.queryList = buildQueryList(); | 1228 o.queryList = buildQueryList(); |
| 1133 o.scriptVariables = buildUnnamed3675(); | 1229 o.scriptVariables = buildUnnamed3512(); |
| 1134 } | 1230 } |
| 1135 buildCounterPigJob--; | 1231 buildCounterPigJob--; |
| 1136 return o; | 1232 return o; |
| 1137 } | 1233 } |
| 1138 | 1234 |
| 1139 checkPigJob(api.PigJob o) { | 1235 checkPigJob(api.PigJob o) { |
| 1140 buildCounterPigJob++; | 1236 buildCounterPigJob++; |
| 1141 if (buildCounterPigJob < 3) { | 1237 if (buildCounterPigJob < 3) { |
| 1142 unittest.expect(o.continueOnFailure, unittest.isTrue); | 1238 unittest.expect(o.continueOnFailure, unittest.isTrue); |
| 1143 checkUnnamed3673(o.jarFileUris); | 1239 checkUnnamed3510(o.jarFileUris); |
| 1144 checkLoggingConfiguration(o.loggingConfiguration); | 1240 checkLoggingConfiguration(o.loggingConfiguration); |
| 1145 checkUnnamed3674(o.properties); | 1241 checkUnnamed3511(o.properties); |
| 1146 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1242 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
| 1147 checkQueryList(o.queryList); | 1243 checkQueryList(o.queryList); |
| 1148 checkUnnamed3675(o.scriptVariables); | 1244 checkUnnamed3512(o.scriptVariables); |
| 1149 } | 1245 } |
| 1150 buildCounterPigJob--; | 1246 buildCounterPigJob--; |
| 1151 } | 1247 } |
| 1152 | 1248 |
| 1153 buildUnnamed3676() { | 1249 buildUnnamed3513() { |
| 1154 var o = new core.List<core.String>(); | 1250 var o = new core.List<core.String>(); |
| 1155 o.add("foo"); | 1251 o.add("foo"); |
| 1156 o.add("foo"); | 1252 o.add("foo"); |
| 1157 return o; | 1253 return o; |
| 1158 } | 1254 } |
| 1159 | 1255 |
| 1160 checkUnnamed3676(core.List<core.String> o) { | 1256 checkUnnamed3513(core.List<core.String> o) { |
| 1161 unittest.expect(o, unittest.hasLength(2)); | 1257 unittest.expect(o, unittest.hasLength(2)); |
| 1162 unittest.expect(o[0], unittest.equals('foo')); | 1258 unittest.expect(o[0], unittest.equals('foo')); |
| 1163 unittest.expect(o[1], unittest.equals('foo')); | 1259 unittest.expect(o[1], unittest.equals('foo')); |
| 1164 } | 1260 } |
| 1165 | 1261 |
| 1166 buildUnnamed3677() { | 1262 buildUnnamed3514() { |
| 1167 var o = new core.List<core.String>(); | 1263 var o = new core.List<core.String>(); |
| 1168 o.add("foo"); | 1264 o.add("foo"); |
| 1169 o.add("foo"); | 1265 o.add("foo"); |
| 1170 return o; | 1266 return o; |
| 1171 } | 1267 } |
| 1172 | 1268 |
| 1173 checkUnnamed3677(core.List<core.String> o) { | 1269 checkUnnamed3514(core.List<core.String> o) { |
| 1174 unittest.expect(o, unittest.hasLength(2)); | 1270 unittest.expect(o, unittest.hasLength(2)); |
| 1175 unittest.expect(o[0], unittest.equals('foo')); | 1271 unittest.expect(o[0], unittest.equals('foo')); |
| 1176 unittest.expect(o[1], unittest.equals('foo')); | 1272 unittest.expect(o[1], unittest.equals('foo')); |
| 1177 } | 1273 } |
| 1178 | 1274 |
| 1179 buildUnnamed3678() { | 1275 buildUnnamed3515() { |
| 1180 var o = new core.List<core.String>(); | 1276 var o = new core.List<core.String>(); |
| 1181 o.add("foo"); | 1277 o.add("foo"); |
| 1182 o.add("foo"); | 1278 o.add("foo"); |
| 1183 return o; | 1279 return o; |
| 1184 } | 1280 } |
| 1185 | 1281 |
| 1186 checkUnnamed3678(core.List<core.String> o) { | 1282 checkUnnamed3515(core.List<core.String> o) { |
| 1187 unittest.expect(o, unittest.hasLength(2)); | 1283 unittest.expect(o, unittest.hasLength(2)); |
| 1188 unittest.expect(o[0], unittest.equals('foo')); | 1284 unittest.expect(o[0], unittest.equals('foo')); |
| 1189 unittest.expect(o[1], unittest.equals('foo')); | 1285 unittest.expect(o[1], unittest.equals('foo')); |
| 1190 } | 1286 } |
| 1191 | 1287 |
| 1192 buildUnnamed3679() { | 1288 buildUnnamed3516() { |
| 1193 var o = new core.List<core.String>(); | 1289 var o = new core.List<core.String>(); |
| 1194 o.add("foo"); | 1290 o.add("foo"); |
| 1195 o.add("foo"); | 1291 o.add("foo"); |
| 1196 return o; | 1292 return o; |
| 1197 } | 1293 } |
| 1198 | 1294 |
| 1199 checkUnnamed3679(core.List<core.String> o) { | 1295 checkUnnamed3516(core.List<core.String> o) { |
| 1200 unittest.expect(o, unittest.hasLength(2)); | 1296 unittest.expect(o, unittest.hasLength(2)); |
| 1201 unittest.expect(o[0], unittest.equals('foo')); | 1297 unittest.expect(o[0], unittest.equals('foo')); |
| 1202 unittest.expect(o[1], unittest.equals('foo')); | 1298 unittest.expect(o[1], unittest.equals('foo')); |
| 1203 } | 1299 } |
| 1204 | 1300 |
| 1205 buildUnnamed3680() { | 1301 buildUnnamed3517() { |
| 1206 var o = new core.Map<core.String, core.String>(); | 1302 var o = new core.Map<core.String, core.String>(); |
| 1207 o["x"] = "foo"; | 1303 o["x"] = "foo"; |
| 1208 o["y"] = "foo"; | 1304 o["y"] = "foo"; |
| 1209 return o; | 1305 return o; |
| 1210 } | 1306 } |
| 1211 | 1307 |
| 1212 checkUnnamed3680(core.Map<core.String, core.String> o) { | 1308 checkUnnamed3517(core.Map<core.String, core.String> o) { |
| 1213 unittest.expect(o, unittest.hasLength(2)); | 1309 unittest.expect(o, unittest.hasLength(2)); |
| 1214 unittest.expect(o["x"], unittest.equals('foo')); | 1310 unittest.expect(o["x"], unittest.equals('foo')); |
| 1215 unittest.expect(o["y"], unittest.equals('foo')); | 1311 unittest.expect(o["y"], unittest.equals('foo')); |
| 1216 } | 1312 } |
| 1217 | 1313 |
| 1218 buildUnnamed3681() { | 1314 buildUnnamed3518() { |
| 1219 var o = new core.List<core.String>(); | 1315 var o = new core.List<core.String>(); |
| 1220 o.add("foo"); | 1316 o.add("foo"); |
| 1221 o.add("foo"); | 1317 o.add("foo"); |
| 1222 return o; | 1318 return o; |
| 1223 } | 1319 } |
| 1224 | 1320 |
| 1225 checkUnnamed3681(core.List<core.String> o) { | 1321 checkUnnamed3518(core.List<core.String> o) { |
| 1226 unittest.expect(o, unittest.hasLength(2)); | 1322 unittest.expect(o, unittest.hasLength(2)); |
| 1227 unittest.expect(o[0], unittest.equals('foo')); | 1323 unittest.expect(o[0], unittest.equals('foo')); |
| 1228 unittest.expect(o[1], unittest.equals('foo')); | 1324 unittest.expect(o[1], unittest.equals('foo')); |
| 1229 } | 1325 } |
| 1230 | 1326 |
| 1231 core.int buildCounterPySparkJob = 0; | 1327 core.int buildCounterPySparkJob = 0; |
| 1232 buildPySparkJob() { | 1328 buildPySparkJob() { |
| 1233 var o = new api.PySparkJob(); | 1329 var o = new api.PySparkJob(); |
| 1234 buildCounterPySparkJob++; | 1330 buildCounterPySparkJob++; |
| 1235 if (buildCounterPySparkJob < 3) { | 1331 if (buildCounterPySparkJob < 3) { |
| 1236 o.archiveUris = buildUnnamed3676(); | 1332 o.archiveUris = buildUnnamed3513(); |
| 1237 o.args = buildUnnamed3677(); | 1333 o.args = buildUnnamed3514(); |
| 1238 o.fileUris = buildUnnamed3678(); | 1334 o.fileUris = buildUnnamed3515(); |
| 1239 o.jarFileUris = buildUnnamed3679(); | 1335 o.jarFileUris = buildUnnamed3516(); |
| 1240 o.loggingConfiguration = buildLoggingConfiguration(); | 1336 o.loggingConfiguration = buildLoggingConfiguration(); |
| 1241 o.mainPythonFileUri = "foo"; | 1337 o.mainPythonFileUri = "foo"; |
| 1242 o.properties = buildUnnamed3680(); | 1338 o.properties = buildUnnamed3517(); |
| 1243 o.pythonFileUris = buildUnnamed3681(); | 1339 o.pythonFileUris = buildUnnamed3518(); |
| 1244 } | 1340 } |
| 1245 buildCounterPySparkJob--; | 1341 buildCounterPySparkJob--; |
| 1246 return o; | 1342 return o; |
| 1247 } | 1343 } |
| 1248 | 1344 |
| 1249 checkPySparkJob(api.PySparkJob o) { | 1345 checkPySparkJob(api.PySparkJob o) { |
| 1250 buildCounterPySparkJob++; | 1346 buildCounterPySparkJob++; |
| 1251 if (buildCounterPySparkJob < 3) { | 1347 if (buildCounterPySparkJob < 3) { |
| 1252 checkUnnamed3676(o.archiveUris); | 1348 checkUnnamed3513(o.archiveUris); |
| 1253 checkUnnamed3677(o.args); | 1349 checkUnnamed3514(o.args); |
| 1254 checkUnnamed3678(o.fileUris); | 1350 checkUnnamed3515(o.fileUris); |
| 1255 checkUnnamed3679(o.jarFileUris); | 1351 checkUnnamed3516(o.jarFileUris); |
| 1256 checkLoggingConfiguration(o.loggingConfiguration); | 1352 checkLoggingConfiguration(o.loggingConfiguration); |
| 1257 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); | 1353 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); |
| 1258 checkUnnamed3680(o.properties); | 1354 checkUnnamed3517(o.properties); |
| 1259 checkUnnamed3681(o.pythonFileUris); | 1355 checkUnnamed3518(o.pythonFileUris); |
| 1260 } | 1356 } |
| 1261 buildCounterPySparkJob--; | 1357 buildCounterPySparkJob--; |
| 1262 } | 1358 } |
| 1263 | 1359 |
| 1264 buildUnnamed3682() { | 1360 buildUnnamed3519() { |
| 1265 var o = new core.List<core.String>(); | 1361 var o = new core.List<core.String>(); |
| 1266 o.add("foo"); | 1362 o.add("foo"); |
| 1267 o.add("foo"); | 1363 o.add("foo"); |
| 1268 return o; | 1364 return o; |
| 1269 } | 1365 } |
| 1270 | 1366 |
| 1271 checkUnnamed3682(core.List<core.String> o) { | 1367 checkUnnamed3519(core.List<core.String> o) { |
| 1272 unittest.expect(o, unittest.hasLength(2)); | 1368 unittest.expect(o, unittest.hasLength(2)); |
| 1273 unittest.expect(o[0], unittest.equals('foo')); | 1369 unittest.expect(o[0], unittest.equals('foo')); |
| 1274 unittest.expect(o[1], unittest.equals('foo')); | 1370 unittest.expect(o[1], unittest.equals('foo')); |
| 1275 } | 1371 } |
| 1276 | 1372 |
| 1277 core.int buildCounterQueryList = 0; | 1373 core.int buildCounterQueryList = 0; |
| 1278 buildQueryList() { | 1374 buildQueryList() { |
| 1279 var o = new api.QueryList(); | 1375 var o = new api.QueryList(); |
| 1280 buildCounterQueryList++; | 1376 buildCounterQueryList++; |
| 1281 if (buildCounterQueryList < 3) { | 1377 if (buildCounterQueryList < 3) { |
| 1282 o.queries = buildUnnamed3682(); | 1378 o.queries = buildUnnamed3519(); |
| 1283 } | 1379 } |
| 1284 buildCounterQueryList--; | 1380 buildCounterQueryList--; |
| 1285 return o; | 1381 return o; |
| 1286 } | 1382 } |
| 1287 | 1383 |
| 1288 checkQueryList(api.QueryList o) { | 1384 checkQueryList(api.QueryList o) { |
| 1289 buildCounterQueryList++; | 1385 buildCounterQueryList++; |
| 1290 if (buildCounterQueryList < 3) { | 1386 if (buildCounterQueryList < 3) { |
| 1291 checkUnnamed3682(o.queries); | 1387 checkUnnamed3519(o.queries); |
| 1292 } | 1388 } |
| 1293 buildCounterQueryList--; | 1389 buildCounterQueryList--; |
| 1294 } | 1390 } |
| 1295 | 1391 |
| 1296 buildUnnamed3683() { | 1392 buildUnnamed3520() { |
| 1297 var o = new core.Map<core.String, core.String>(); | 1393 var o = new core.Map<core.String, core.String>(); |
| 1298 o["x"] = "foo"; | 1394 o["x"] = "foo"; |
| 1299 o["y"] = "foo"; | 1395 o["y"] = "foo"; |
| 1300 return o; | 1396 return o; |
| 1301 } | 1397 } |
| 1302 | 1398 |
| 1303 checkUnnamed3683(core.Map<core.String, core.String> o) { | 1399 checkUnnamed3520(core.Map<core.String, core.String> o) { |
| 1304 unittest.expect(o, unittest.hasLength(2)); | 1400 unittest.expect(o, unittest.hasLength(2)); |
| 1305 unittest.expect(o["x"], unittest.equals('foo')); | 1401 unittest.expect(o["x"], unittest.equals('foo')); |
| 1306 unittest.expect(o["y"], unittest.equals('foo')); | 1402 unittest.expect(o["y"], unittest.equals('foo')); |
| 1307 } | 1403 } |
| 1308 | 1404 |
| 1309 core.int buildCounterSoftwareConfiguration = 0; | 1405 core.int buildCounterSoftwareConfiguration = 0; |
| 1310 buildSoftwareConfiguration() { | 1406 buildSoftwareConfiguration() { |
| 1311 var o = new api.SoftwareConfiguration(); | 1407 var o = new api.SoftwareConfiguration(); |
| 1312 buildCounterSoftwareConfiguration++; | 1408 buildCounterSoftwareConfiguration++; |
| 1313 if (buildCounterSoftwareConfiguration < 3) { | 1409 if (buildCounterSoftwareConfiguration < 3) { |
| 1314 o.imageVersion = "foo"; | 1410 o.imageVersion = "foo"; |
| 1315 o.properties = buildUnnamed3683(); | 1411 o.properties = buildUnnamed3520(); |
| 1316 } | 1412 } |
| 1317 buildCounterSoftwareConfiguration--; | 1413 buildCounterSoftwareConfiguration--; |
| 1318 return o; | 1414 return o; |
| 1319 } | 1415 } |
| 1320 | 1416 |
| 1321 checkSoftwareConfiguration(api.SoftwareConfiguration o) { | 1417 checkSoftwareConfiguration(api.SoftwareConfiguration o) { |
| 1322 buildCounterSoftwareConfiguration++; | 1418 buildCounterSoftwareConfiguration++; |
| 1323 if (buildCounterSoftwareConfiguration < 3) { | 1419 if (buildCounterSoftwareConfiguration < 3) { |
| 1324 unittest.expect(o.imageVersion, unittest.equals('foo')); | 1420 unittest.expect(o.imageVersion, unittest.equals('foo')); |
| 1325 checkUnnamed3683(o.properties); | 1421 checkUnnamed3520(o.properties); |
| 1326 } | 1422 } |
| 1327 buildCounterSoftwareConfiguration--; | 1423 buildCounterSoftwareConfiguration--; |
| 1328 } | 1424 } |
| 1329 | 1425 |
| 1330 buildUnnamed3684() { | 1426 buildUnnamed3521() { |
| 1331 var o = new core.List<core.String>(); | 1427 var o = new core.List<core.String>(); |
| 1332 o.add("foo"); | 1428 o.add("foo"); |
| 1333 o.add("foo"); | 1429 o.add("foo"); |
| 1334 return o; | 1430 return o; |
| 1335 } | 1431 } |
| 1336 | 1432 |
| 1337 checkUnnamed3684(core.List<core.String> o) { | 1433 checkUnnamed3521(core.List<core.String> o) { |
| 1338 unittest.expect(o, unittest.hasLength(2)); | 1434 unittest.expect(o, unittest.hasLength(2)); |
| 1339 unittest.expect(o[0], unittest.equals('foo')); | 1435 unittest.expect(o[0], unittest.equals('foo')); |
| 1340 unittest.expect(o[1], unittest.equals('foo')); | 1436 unittest.expect(o[1], unittest.equals('foo')); |
| 1341 } | 1437 } |
| 1342 | 1438 |
| 1343 buildUnnamed3685() { | 1439 buildUnnamed3522() { |
| 1344 var o = new core.List<core.String>(); | 1440 var o = new core.List<core.String>(); |
| 1345 o.add("foo"); | 1441 o.add("foo"); |
| 1346 o.add("foo"); | 1442 o.add("foo"); |
| 1347 return o; | 1443 return o; |
| 1348 } | 1444 } |
| 1349 | 1445 |
| 1350 checkUnnamed3685(core.List<core.String> o) { | 1446 checkUnnamed3522(core.List<core.String> o) { |
| 1351 unittest.expect(o, unittest.hasLength(2)); | 1447 unittest.expect(o, unittest.hasLength(2)); |
| 1352 unittest.expect(o[0], unittest.equals('foo')); | 1448 unittest.expect(o[0], unittest.equals('foo')); |
| 1353 unittest.expect(o[1], unittest.equals('foo')); | 1449 unittest.expect(o[1], unittest.equals('foo')); |
| 1354 } | 1450 } |
| 1355 | 1451 |
| 1356 buildUnnamed3686() { | 1452 buildUnnamed3523() { |
| 1357 var o = new core.List<core.String>(); | 1453 var o = new core.List<core.String>(); |
| 1358 o.add("foo"); | 1454 o.add("foo"); |
| 1359 o.add("foo"); | 1455 o.add("foo"); |
| 1360 return o; | 1456 return o; |
| 1361 } | 1457 } |
| 1362 | 1458 |
| 1363 checkUnnamed3686(core.List<core.String> o) { | 1459 checkUnnamed3523(core.List<core.String> o) { |
| 1364 unittest.expect(o, unittest.hasLength(2)); | 1460 unittest.expect(o, unittest.hasLength(2)); |
| 1365 unittest.expect(o[0], unittest.equals('foo')); | 1461 unittest.expect(o[0], unittest.equals('foo')); |
| 1366 unittest.expect(o[1], unittest.equals('foo')); | 1462 unittest.expect(o[1], unittest.equals('foo')); |
| 1367 } | 1463 } |
| 1368 | 1464 |
| 1369 buildUnnamed3687() { | 1465 buildUnnamed3524() { |
| 1370 var o = new core.List<core.String>(); | 1466 var o = new core.List<core.String>(); |
| 1371 o.add("foo"); | 1467 o.add("foo"); |
| 1372 o.add("foo"); | 1468 o.add("foo"); |
| 1373 return o; | 1469 return o; |
| 1374 } | 1470 } |
| 1375 | 1471 |
| 1376 checkUnnamed3687(core.List<core.String> o) { | 1472 checkUnnamed3524(core.List<core.String> o) { |
| 1377 unittest.expect(o, unittest.hasLength(2)); | 1473 unittest.expect(o, unittest.hasLength(2)); |
| 1378 unittest.expect(o[0], unittest.equals('foo')); | 1474 unittest.expect(o[0], unittest.equals('foo')); |
| 1379 unittest.expect(o[1], unittest.equals('foo')); | 1475 unittest.expect(o[1], unittest.equals('foo')); |
| 1380 } | 1476 } |
| 1381 | 1477 |
| 1382 buildUnnamed3688() { | 1478 buildUnnamed3525() { |
| 1383 var o = new core.Map<core.String, core.String>(); | 1479 var o = new core.Map<core.String, core.String>(); |
| 1384 o["x"] = "foo"; | 1480 o["x"] = "foo"; |
| 1385 o["y"] = "foo"; | 1481 o["y"] = "foo"; |
| 1386 return o; | 1482 return o; |
| 1387 } | 1483 } |
| 1388 | 1484 |
| 1389 checkUnnamed3688(core.Map<core.String, core.String> o) { | 1485 checkUnnamed3525(core.Map<core.String, core.String> o) { |
| 1390 unittest.expect(o, unittest.hasLength(2)); | 1486 unittest.expect(o, unittest.hasLength(2)); |
| 1391 unittest.expect(o["x"], unittest.equals('foo')); | 1487 unittest.expect(o["x"], unittest.equals('foo')); |
| 1392 unittest.expect(o["y"], unittest.equals('foo')); | 1488 unittest.expect(o["y"], unittest.equals('foo')); |
| 1393 } | 1489 } |
| 1394 | 1490 |
| 1395 core.int buildCounterSparkJob = 0; | 1491 core.int buildCounterSparkJob = 0; |
| 1396 buildSparkJob() { | 1492 buildSparkJob() { |
| 1397 var o = new api.SparkJob(); | 1493 var o = new api.SparkJob(); |
| 1398 buildCounterSparkJob++; | 1494 buildCounterSparkJob++; |
| 1399 if (buildCounterSparkJob < 3) { | 1495 if (buildCounterSparkJob < 3) { |
| 1400 o.archiveUris = buildUnnamed3684(); | 1496 o.archiveUris = buildUnnamed3521(); |
| 1401 o.args = buildUnnamed3685(); | 1497 o.args = buildUnnamed3522(); |
| 1402 o.fileUris = buildUnnamed3686(); | 1498 o.fileUris = buildUnnamed3523(); |
| 1403 o.jarFileUris = buildUnnamed3687(); | 1499 o.jarFileUris = buildUnnamed3524(); |
| 1404 o.loggingConfiguration = buildLoggingConfiguration(); | 1500 o.loggingConfiguration = buildLoggingConfiguration(); |
| 1405 o.mainClass = "foo"; | 1501 o.mainClass = "foo"; |
| 1406 o.mainJarFileUri = "foo"; | 1502 o.mainJarFileUri = "foo"; |
| 1407 o.properties = buildUnnamed3688(); | 1503 o.properties = buildUnnamed3525(); |
| 1408 } | 1504 } |
| 1409 buildCounterSparkJob--; | 1505 buildCounterSparkJob--; |
| 1410 return o; | 1506 return o; |
| 1411 } | 1507 } |
| 1412 | 1508 |
| 1413 checkSparkJob(api.SparkJob o) { | 1509 checkSparkJob(api.SparkJob o) { |
| 1414 buildCounterSparkJob++; | 1510 buildCounterSparkJob++; |
| 1415 if (buildCounterSparkJob < 3) { | 1511 if (buildCounterSparkJob < 3) { |
| 1416 checkUnnamed3684(o.archiveUris); | 1512 checkUnnamed3521(o.archiveUris); |
| 1417 checkUnnamed3685(o.args); | 1513 checkUnnamed3522(o.args); |
| 1418 checkUnnamed3686(o.fileUris); | 1514 checkUnnamed3523(o.fileUris); |
| 1419 checkUnnamed3687(o.jarFileUris); | 1515 checkUnnamed3524(o.jarFileUris); |
| 1420 checkLoggingConfiguration(o.loggingConfiguration); | 1516 checkLoggingConfiguration(o.loggingConfiguration); |
| 1421 unittest.expect(o.mainClass, unittest.equals('foo')); | 1517 unittest.expect(o.mainClass, unittest.equals('foo')); |
| 1422 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 1518 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
| 1423 checkUnnamed3688(o.properties); | 1519 checkUnnamed3525(o.properties); |
| 1424 } | 1520 } |
| 1425 buildCounterSparkJob--; | 1521 buildCounterSparkJob--; |
| 1426 } | 1522 } |
| 1427 | 1523 |
| 1428 buildUnnamed3689() { | 1524 buildUnnamed3526() { |
| 1429 var o = new core.List<core.String>(); | 1525 var o = new core.List<core.String>(); |
| 1430 o.add("foo"); | 1526 o.add("foo"); |
| 1431 o.add("foo"); | 1527 o.add("foo"); |
| 1432 return o; | 1528 return o; |
| 1433 } | 1529 } |
| 1434 | 1530 |
| 1435 checkUnnamed3689(core.List<core.String> o) { | 1531 checkUnnamed3526(core.List<core.String> o) { |
| 1436 unittest.expect(o, unittest.hasLength(2)); | 1532 unittest.expect(o, unittest.hasLength(2)); |
| 1437 unittest.expect(o[0], unittest.equals('foo')); | 1533 unittest.expect(o[0], unittest.equals('foo')); |
| 1438 unittest.expect(o[1], unittest.equals('foo')); | 1534 unittest.expect(o[1], unittest.equals('foo')); |
| 1439 } | 1535 } |
| 1440 | 1536 |
| 1441 buildUnnamed3690() { | 1537 buildUnnamed3527() { |
| 1442 var o = new core.Map<core.String, core.String>(); | 1538 var o = new core.Map<core.String, core.String>(); |
| 1443 o["x"] = "foo"; | 1539 o["x"] = "foo"; |
| 1444 o["y"] = "foo"; | 1540 o["y"] = "foo"; |
| 1445 return o; | 1541 return o; |
| 1446 } | 1542 } |
| 1447 | 1543 |
| 1448 checkUnnamed3690(core.Map<core.String, core.String> o) { | 1544 checkUnnamed3527(core.Map<core.String, core.String> o) { |
| 1449 unittest.expect(o, unittest.hasLength(2)); | 1545 unittest.expect(o, unittest.hasLength(2)); |
| 1450 unittest.expect(o["x"], unittest.equals('foo')); | 1546 unittest.expect(o["x"], unittest.equals('foo')); |
| 1451 unittest.expect(o["y"], unittest.equals('foo')); | 1547 unittest.expect(o["y"], unittest.equals('foo')); |
| 1452 } | 1548 } |
| 1453 | 1549 |
| 1454 buildUnnamed3691() { | 1550 buildUnnamed3528() { |
| 1455 var o = new core.Map<core.String, core.String>(); | 1551 var o = new core.Map<core.String, core.String>(); |
| 1456 o["x"] = "foo"; | 1552 o["x"] = "foo"; |
| 1457 o["y"] = "foo"; | 1553 o["y"] = "foo"; |
| 1458 return o; | 1554 return o; |
| 1459 } | 1555 } |
| 1460 | 1556 |
| 1461 checkUnnamed3691(core.Map<core.String, core.String> o) { | 1557 checkUnnamed3528(core.Map<core.String, core.String> o) { |
| 1462 unittest.expect(o, unittest.hasLength(2)); | 1558 unittest.expect(o, unittest.hasLength(2)); |
| 1463 unittest.expect(o["x"], unittest.equals('foo')); | 1559 unittest.expect(o["x"], unittest.equals('foo')); |
| 1464 unittest.expect(o["y"], unittest.equals('foo')); | 1560 unittest.expect(o["y"], unittest.equals('foo')); |
| 1465 } | 1561 } |
| 1466 | 1562 |
| 1467 core.int buildCounterSparkSqlJob = 0; | 1563 core.int buildCounterSparkSqlJob = 0; |
| 1468 buildSparkSqlJob() { | 1564 buildSparkSqlJob() { |
| 1469 var o = new api.SparkSqlJob(); | 1565 var o = new api.SparkSqlJob(); |
| 1470 buildCounterSparkSqlJob++; | 1566 buildCounterSparkSqlJob++; |
| 1471 if (buildCounterSparkSqlJob < 3) { | 1567 if (buildCounterSparkSqlJob < 3) { |
| 1472 o.jarFileUris = buildUnnamed3689(); | 1568 o.jarFileUris = buildUnnamed3526(); |
| 1473 o.loggingConfiguration = buildLoggingConfiguration(); | 1569 o.loggingConfiguration = buildLoggingConfiguration(); |
| 1474 o.properties = buildUnnamed3690(); | 1570 o.properties = buildUnnamed3527(); |
| 1475 o.queryFileUri = "foo"; | 1571 o.queryFileUri = "foo"; |
| 1476 o.queryList = buildQueryList(); | 1572 o.queryList = buildQueryList(); |
| 1477 o.scriptVariables = buildUnnamed3691(); | 1573 o.scriptVariables = buildUnnamed3528(); |
| 1478 } | 1574 } |
| 1479 buildCounterSparkSqlJob--; | 1575 buildCounterSparkSqlJob--; |
| 1480 return o; | 1576 return o; |
| 1481 } | 1577 } |
| 1482 | 1578 |
| 1483 checkSparkSqlJob(api.SparkSqlJob o) { | 1579 checkSparkSqlJob(api.SparkSqlJob o) { |
| 1484 buildCounterSparkSqlJob++; | 1580 buildCounterSparkSqlJob++; |
| 1485 if (buildCounterSparkSqlJob < 3) { | 1581 if (buildCounterSparkSqlJob < 3) { |
| 1486 checkUnnamed3689(o.jarFileUris); | 1582 checkUnnamed3526(o.jarFileUris); |
| 1487 checkLoggingConfiguration(o.loggingConfiguration); | 1583 checkLoggingConfiguration(o.loggingConfiguration); |
| 1488 checkUnnamed3690(o.properties); | 1584 checkUnnamed3527(o.properties); |
| 1489 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1585 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
| 1490 checkQueryList(o.queryList); | 1586 checkQueryList(o.queryList); |
| 1491 checkUnnamed3691(o.scriptVariables); | 1587 checkUnnamed3528(o.scriptVariables); |
| 1492 } | 1588 } |
| 1493 buildCounterSparkSqlJob--; | 1589 buildCounterSparkSqlJob--; |
| 1494 } | 1590 } |
| 1495 | 1591 |
| 1496 buildUnnamed3692() { | 1592 buildUnnamed3529() { |
| 1497 var o = new core.Map<core.String, core.Object>(); | 1593 var o = new core.Map<core.String, core.Object>(); |
| 1498 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1594 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1499 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1595 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1500 return o; | 1596 return o; |
| 1501 } | 1597 } |
| 1502 | 1598 |
| 1503 checkUnnamed3692(core.Map<core.String, core.Object> o) { | 1599 checkUnnamed3529(core.Map<core.String, core.Object> o) { |
| 1504 unittest.expect(o, unittest.hasLength(2)); | 1600 unittest.expect(o, unittest.hasLength(2)); |
| 1505 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')); | 1601 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); |
| 1506 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')); | 1602 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); |
| 1507 } | 1603 } |
| 1508 | 1604 |
| 1509 buildUnnamed3693() { | 1605 buildUnnamed3530() { |
| 1510 var o = new core.List<core.Map<core.String, core.Object>>(); | 1606 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 1511 o.add(buildUnnamed3692()); | 1607 o.add(buildUnnamed3529()); |
| 1512 o.add(buildUnnamed3692()); | 1608 o.add(buildUnnamed3529()); |
| 1513 return o; | 1609 return o; |
| 1514 } | 1610 } |
| 1515 | 1611 |
| 1516 checkUnnamed3693(core.List<core.Map<core.String, core.Object>> o) { | 1612 checkUnnamed3530(core.List<core.Map<core.String, core.Object>> o) { |
| 1517 unittest.expect(o, unittest.hasLength(2)); | 1613 unittest.expect(o, unittest.hasLength(2)); |
| 1518 checkUnnamed3692(o[0]); | 1614 checkUnnamed3529(o[0]); |
| 1519 checkUnnamed3692(o[1]); | 1615 checkUnnamed3529(o[1]); |
| 1520 } | 1616 } |
| 1521 | 1617 |
| 1522 core.int buildCounterStatus = 0; | 1618 core.int buildCounterStatus = 0; |
| 1523 buildStatus() { | 1619 buildStatus() { |
| 1524 var o = new api.Status(); | 1620 var o = new api.Status(); |
| 1525 buildCounterStatus++; | 1621 buildCounterStatus++; |
| 1526 if (buildCounterStatus < 3) { | 1622 if (buildCounterStatus < 3) { |
| 1527 o.code = 42; | 1623 o.code = 42; |
| 1528 o.details = buildUnnamed3693(); | 1624 o.details = buildUnnamed3530(); |
| 1529 o.message = "foo"; | 1625 o.message = "foo"; |
| 1530 } | 1626 } |
| 1531 buildCounterStatus--; | 1627 buildCounterStatus--; |
| 1532 return o; | 1628 return o; |
| 1533 } | 1629 } |
| 1534 | 1630 |
| 1535 checkStatus(api.Status o) { | 1631 checkStatus(api.Status o) { |
| 1536 buildCounterStatus++; | 1632 buildCounterStatus++; |
| 1537 if (buildCounterStatus < 3) { | 1633 if (buildCounterStatus < 3) { |
| 1538 unittest.expect(o.code, unittest.equals(42)); | 1634 unittest.expect(o.code, unittest.equals(42)); |
| 1539 checkUnnamed3693(o.details); | 1635 checkUnnamed3530(o.details); |
| 1540 unittest.expect(o.message, unittest.equals('foo')); | 1636 unittest.expect(o.message, unittest.equals('foo')); |
| 1541 } | 1637 } |
| 1542 buildCounterStatus--; | 1638 buildCounterStatus--; |
| 1543 } | 1639 } |
| 1544 | 1640 |
| 1545 core.int buildCounterSubmitJobRequest = 0; | 1641 core.int buildCounterSubmitJobRequest = 0; |
| 1546 buildSubmitJobRequest() { | 1642 buildSubmitJobRequest() { |
| 1547 var o = new api.SubmitJobRequest(); | 1643 var o = new api.SubmitJobRequest(); |
| 1548 buildCounterSubmitJobRequest++; | 1644 buildCounterSubmitJobRequest++; |
| 1549 if (buildCounterSubmitJobRequest < 3) { | 1645 if (buildCounterSubmitJobRequest < 3) { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1617 | 1713 |
| 1618 unittest.group("obj-schema-ClusterConfiguration", () { | 1714 unittest.group("obj-schema-ClusterConfiguration", () { |
| 1619 unittest.test("to-json--from-json", () { | 1715 unittest.test("to-json--from-json", () { |
| 1620 var o = buildClusterConfiguration(); | 1716 var o = buildClusterConfiguration(); |
| 1621 var od = new api.ClusterConfiguration.fromJson(o.toJson()); | 1717 var od = new api.ClusterConfiguration.fromJson(o.toJson()); |
| 1622 checkClusterConfiguration(od); | 1718 checkClusterConfiguration(od); |
| 1623 }); | 1719 }); |
| 1624 }); | 1720 }); |
| 1625 | 1721 |
| 1626 | 1722 |
| 1723 unittest.group("obj-schema-ClusterMetrics", () { |
| 1724 unittest.test("to-json--from-json", () { |
| 1725 var o = buildClusterMetrics(); |
| 1726 var od = new api.ClusterMetrics.fromJson(o.toJson()); |
| 1727 checkClusterMetrics(od); |
| 1728 }); |
| 1729 }); |
| 1730 |
| 1731 |
| 1627 unittest.group("obj-schema-ClusterOperationMetadata", () { | 1732 unittest.group("obj-schema-ClusterOperationMetadata", () { |
| 1628 unittest.test("to-json--from-json", () { | 1733 unittest.test("to-json--from-json", () { |
| 1629 var o = buildClusterOperationMetadata(); | 1734 var o = buildClusterOperationMetadata(); |
| 1630 var od = new api.ClusterOperationMetadata.fromJson(o.toJson()); | 1735 var od = new api.ClusterOperationMetadata.fromJson(o.toJson()); |
| 1631 checkClusterOperationMetadata(od); | 1736 checkClusterOperationMetadata(od); |
| 1632 }); | 1737 }); |
| 1633 }); | 1738 }); |
| 1634 | 1739 |
| 1635 | 1740 |
| 1636 unittest.group("obj-schema-ClusterOperationStatus", () { | 1741 unittest.group("obj-schema-ClusterOperationStatus", () { |
| (...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2351 res.get(arg_projectId, arg_clusterName).then(unittest.expectAsync(((api.Cl
uster response) { | 2456 res.get(arg_projectId, arg_clusterName).then(unittest.expectAsync(((api.Cl
uster response) { |
| 2352 checkCluster(response); | 2457 checkCluster(response); |
| 2353 }))); | 2458 }))); |
| 2354 }); | 2459 }); |
| 2355 | 2460 |
| 2356 unittest.test("method--list", () { | 2461 unittest.test("method--list", () { |
| 2357 | 2462 |
| 2358 var mock = new HttpServerMock(); | 2463 var mock = new HttpServerMock(); |
| 2359 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; | 2464 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; |
| 2360 var arg_projectId = "foo"; | 2465 var arg_projectId = "foo"; |
| 2466 var arg_filter = "foo"; |
| 2361 var arg_pageSize = 42; | 2467 var arg_pageSize = 42; |
| 2362 var arg_pageToken = "foo"; | 2468 var arg_pageToken = "foo"; |
| 2363 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2469 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2364 var path = (req.url).path; | 2470 var path = (req.url).path; |
| 2365 var pathOffset = 0; | 2471 var pathOffset = 0; |
| 2366 var index; | 2472 var index; |
| 2367 var subPart; | 2473 var subPart; |
| 2368 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2474 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2369 pathOffset += 1; | 2475 pathOffset += 1; |
| 2370 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); | 2476 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 2386 if (n == "false") return false; | 2492 if (n == "false") return false; |
| 2387 if (n == null) return null; | 2493 if (n == null) return null; |
| 2388 throw new core.ArgumentError("Invalid boolean: $n"); | 2494 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2389 } | 2495 } |
| 2390 if (query.length > 0) { | 2496 if (query.length > 0) { |
| 2391 for (var part in query.split("&")) { | 2497 for (var part in query.split("&")) { |
| 2392 var keyvalue = part.split("="); | 2498 var keyvalue = part.split("="); |
| 2393 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2499 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2394 } | 2500 } |
| 2395 } | 2501 } |
| 2502 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 2396 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2503 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 2397 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2504 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2398 | 2505 |
| 2399 | 2506 |
| 2400 var h = { | 2507 var h = { |
| 2401 "content-type" : "application/json; charset=utf-8", | 2508 "content-type" : "application/json; charset=utf-8", |
| 2402 }; | 2509 }; |
| 2403 var resp = convert.JSON.encode(buildListClustersResponse()); | 2510 var resp = convert.JSON.encode(buildListClustersResponse()); |
| 2404 return new async.Future.value(stringResponse(200, h, resp)); | 2511 return new async.Future.value(stringResponse(200, h, resp)); |
| 2405 }), true); | 2512 }), true); |
| 2406 res.list(arg_projectId, pageSize: arg_pageSize, pageToken: arg_pageToken).
then(unittest.expectAsync(((api.ListClustersResponse response) { | 2513 res.list(arg_projectId, filter: arg_filter, pageSize: arg_pageSize, pageTo
ken: arg_pageToken).then(unittest.expectAsync(((api.ListClustersResponse respons
e) { |
| 2407 checkListClustersResponse(response); | 2514 checkListClustersResponse(response); |
| 2408 }))); | 2515 }))); |
| 2409 }); | 2516 }); |
| 2410 | 2517 |
| 2411 unittest.test("method--patch", () { | 2518 unittest.test("method--patch", () { |
| 2412 | 2519 |
| 2413 var mock = new HttpServerMock(); | 2520 var mock = new HttpServerMock(); |
| 2414 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; | 2521 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; |
| 2415 var arg_request = buildCluster(); | 2522 var arg_request = buildCluster(); |
| 2416 var arg_projectId = "foo"; | 2523 var arg_projectId = "foo"; |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2648 | 2755 |
| 2649 unittest.test("method--list", () { | 2756 unittest.test("method--list", () { |
| 2650 | 2757 |
| 2651 var mock = new HttpServerMock(); | 2758 var mock = new HttpServerMock(); |
| 2652 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; | 2759 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; |
| 2653 var arg_projectId = "foo"; | 2760 var arg_projectId = "foo"; |
| 2654 var arg_pageSize = 42; | 2761 var arg_pageSize = 42; |
| 2655 var arg_pageToken = "foo"; | 2762 var arg_pageToken = "foo"; |
| 2656 var arg_clusterName = "foo"; | 2763 var arg_clusterName = "foo"; |
| 2657 var arg_jobStateMatcher = "foo"; | 2764 var arg_jobStateMatcher = "foo"; |
| 2765 var arg_filter = "foo"; |
| 2658 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2766 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2659 var path = (req.url).path; | 2767 var path = (req.url).path; |
| 2660 var pathOffset = 0; | 2768 var pathOffset = 0; |
| 2661 var index; | 2769 var index; |
| 2662 var subPart; | 2770 var subPart; |
| 2663 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2771 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2664 pathOffset += 1; | 2772 pathOffset += 1; |
| 2665 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); | 2773 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta1/projects/")); |
| 2666 pathOffset += 17; | 2774 pathOffset += 17; |
| 2667 index = path.indexOf("/jobs", pathOffset); | 2775 index = path.indexOf("/jobs", pathOffset); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 2685 if (query.length > 0) { | 2793 if (query.length > 0) { |
| 2686 for (var part in query.split("&")) { | 2794 for (var part in query.split("&")) { |
| 2687 var keyvalue = part.split("="); | 2795 var keyvalue = part.split("="); |
| 2688 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2796 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2689 } | 2797 } |
| 2690 } | 2798 } |
| 2691 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2799 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 2692 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2800 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2693 unittest.expect(queryMap["clusterName"].first, unittest.equals(arg_clust
erName)); | 2801 unittest.expect(queryMap["clusterName"].first, unittest.equals(arg_clust
erName)); |
| 2694 unittest.expect(queryMap["jobStateMatcher"].first, unittest.equals(arg_j
obStateMatcher)); | 2802 unittest.expect(queryMap["jobStateMatcher"].first, unittest.equals(arg_j
obStateMatcher)); |
| 2803 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 2695 | 2804 |
| 2696 | 2805 |
| 2697 var h = { | 2806 var h = { |
| 2698 "content-type" : "application/json; charset=utf-8", | 2807 "content-type" : "application/json; charset=utf-8", |
| 2699 }; | 2808 }; |
| 2700 var resp = convert.JSON.encode(buildListJobsResponse()); | 2809 var resp = convert.JSON.encode(buildListJobsResponse()); |
| 2701 return new async.Future.value(stringResponse(200, h, resp)); | 2810 return new async.Future.value(stringResponse(200, h, resp)); |
| 2702 }), true); | 2811 }), true); |
| 2703 res.list(arg_projectId, pageSize: arg_pageSize, pageToken: arg_pageToken,
clusterName: arg_clusterName, jobStateMatcher: arg_jobStateMatcher).then(unittes
t.expectAsync(((api.ListJobsResponse response) { | 2812 res.list(arg_projectId, pageSize: arg_pageSize, pageToken: arg_pageToken,
clusterName: arg_clusterName, jobStateMatcher: arg_jobStateMatcher, filter: arg_
filter).then(unittest.expectAsync(((api.ListJobsResponse response) { |
| 2704 checkListJobsResponse(response); | 2813 checkListJobsResponse(response); |
| 2705 }))); | 2814 }))); |
| 2706 }); | 2815 }); |
| 2707 | 2816 |
| 2708 unittest.test("method--submit", () { | 2817 unittest.test("method--submit", () { |
| 2709 | 2818 |
| 2710 var mock = new HttpServerMock(); | 2819 var mock = new HttpServerMock(); |
| 2711 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; | 2820 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; |
| 2712 var arg_request = buildSubmitJobRequest(); | 2821 var arg_request = buildSubmitJobRequest(); |
| 2713 var arg_projectId = "foo"; | 2822 var arg_projectId = "foo"; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2758 res.submit(arg_request, arg_projectId).then(unittest.expectAsync(((api.Job
response) { | 2867 res.submit(arg_request, arg_projectId).then(unittest.expectAsync(((api.Job
response) { |
| 2759 checkJob(response); | 2868 checkJob(response); |
| 2760 }))); | 2869 }))); |
| 2761 }); | 2870 }); |
| 2762 | 2871 |
| 2763 }); | 2872 }); |
| 2764 | 2873 |
| 2765 | 2874 |
| 2766 } | 2875 } |
| 2767 | 2876 |
| OLD | NEW |