| OLD | NEW |
| 1 library googleapis.dataproc.v1.test; | 1 library googleapis.dataproc.v1.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 return o; | 82 return o; |
| 83 } | 83 } |
| 84 | 84 |
| 85 checkCancelJobRequest(api.CancelJobRequest o) { | 85 checkCancelJobRequest(api.CancelJobRequest o) { |
| 86 buildCounterCancelJobRequest++; | 86 buildCounterCancelJobRequest++; |
| 87 if (buildCounterCancelJobRequest < 3) { | 87 if (buildCounterCancelJobRequest < 3) { |
| 88 } | 88 } |
| 89 buildCounterCancelJobRequest--; | 89 buildCounterCancelJobRequest--; |
| 90 } | 90 } |
| 91 | 91 |
| 92 buildUnnamed466() { | 92 buildUnnamed452() { |
| 93 var o = new core.Map<core.String, core.String>(); | 93 var o = new core.Map<core.String, core.String>(); |
| 94 o["x"] = "foo"; | 94 o["x"] = "foo"; |
| 95 o["y"] = "foo"; | 95 o["y"] = "foo"; |
| 96 return o; | 96 return o; |
| 97 } | 97 } |
| 98 | 98 |
| 99 checkUnnamed466(core.Map<core.String, core.String> o) { | 99 checkUnnamed452(core.Map<core.String, core.String> o) { |
| 100 unittest.expect(o, unittest.hasLength(2)); | 100 unittest.expect(o, unittest.hasLength(2)); |
| 101 unittest.expect(o["x"], unittest.equals('foo')); | 101 unittest.expect(o["x"], unittest.equals('foo')); |
| 102 unittest.expect(o["y"], unittest.equals('foo')); | 102 unittest.expect(o["y"], unittest.equals('foo')); |
| 103 } | 103 } |
| 104 | 104 |
| 105 buildUnnamed467() { | 105 buildUnnamed453() { |
| 106 var o = new core.List<api.ClusterStatus>(); | 106 var o = new core.List<api.ClusterStatus>(); |
| 107 o.add(buildClusterStatus()); | 107 o.add(buildClusterStatus()); |
| 108 o.add(buildClusterStatus()); | 108 o.add(buildClusterStatus()); |
| 109 return o; | 109 return o; |
| 110 } | 110 } |
| 111 | 111 |
| 112 checkUnnamed467(core.List<api.ClusterStatus> o) { | 112 checkUnnamed453(core.List<api.ClusterStatus> o) { |
| 113 unittest.expect(o, unittest.hasLength(2)); | 113 unittest.expect(o, unittest.hasLength(2)); |
| 114 checkClusterStatus(o[0]); | 114 checkClusterStatus(o[0]); |
| 115 checkClusterStatus(o[1]); | 115 checkClusterStatus(o[1]); |
| 116 } | 116 } |
| 117 | 117 |
| 118 core.int buildCounterCluster = 0; | 118 core.int buildCounterCluster = 0; |
| 119 buildCluster() { | 119 buildCluster() { |
| 120 var o = new api.Cluster(); | 120 var o = new api.Cluster(); |
| 121 buildCounterCluster++; | 121 buildCounterCluster++; |
| 122 if (buildCounterCluster < 3) { | 122 if (buildCounterCluster < 3) { |
| 123 o.clusterName = "foo"; | 123 o.clusterName = "foo"; |
| 124 o.clusterUuid = "foo"; | 124 o.clusterUuid = "foo"; |
| 125 o.config = buildClusterConfig(); | 125 o.config = buildClusterConfig(); |
| 126 o.labels = buildUnnamed466(); | 126 o.labels = buildUnnamed452(); |
| 127 o.metrics = buildClusterMetrics(); | 127 o.metrics = buildClusterMetrics(); |
| 128 o.projectId = "foo"; | 128 o.projectId = "foo"; |
| 129 o.status = buildClusterStatus(); | 129 o.status = buildClusterStatus(); |
| 130 o.statusHistory = buildUnnamed467(); | 130 o.statusHistory = buildUnnamed453(); |
| 131 } | 131 } |
| 132 buildCounterCluster--; | 132 buildCounterCluster--; |
| 133 return o; | 133 return o; |
| 134 } | 134 } |
| 135 | 135 |
| 136 checkCluster(api.Cluster o) { | 136 checkCluster(api.Cluster o) { |
| 137 buildCounterCluster++; | 137 buildCounterCluster++; |
| 138 if (buildCounterCluster < 3) { | 138 if (buildCounterCluster < 3) { |
| 139 unittest.expect(o.clusterName, unittest.equals('foo')); | 139 unittest.expect(o.clusterName, unittest.equals('foo')); |
| 140 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 140 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
| 141 checkClusterConfig(o.config); | 141 checkClusterConfig(o.config); |
| 142 checkUnnamed466(o.labels); | 142 checkUnnamed452(o.labels); |
| 143 checkClusterMetrics(o.metrics); | 143 checkClusterMetrics(o.metrics); |
| 144 unittest.expect(o.projectId, unittest.equals('foo')); | 144 unittest.expect(o.projectId, unittest.equals('foo')); |
| 145 checkClusterStatus(o.status); | 145 checkClusterStatus(o.status); |
| 146 checkUnnamed467(o.statusHistory); | 146 checkUnnamed453(o.statusHistory); |
| 147 } | 147 } |
| 148 buildCounterCluster--; | 148 buildCounterCluster--; |
| 149 } | 149 } |
| 150 | 150 |
| 151 buildUnnamed468() { | 151 buildUnnamed454() { |
| 152 var o = new core.List<api.NodeInitializationAction>(); | 152 var o = new core.List<api.NodeInitializationAction>(); |
| 153 o.add(buildNodeInitializationAction()); | 153 o.add(buildNodeInitializationAction()); |
| 154 o.add(buildNodeInitializationAction()); | 154 o.add(buildNodeInitializationAction()); |
| 155 return o; | 155 return o; |
| 156 } | 156 } |
| 157 | 157 |
| 158 checkUnnamed468(core.List<api.NodeInitializationAction> o) { | 158 checkUnnamed454(core.List<api.NodeInitializationAction> o) { |
| 159 unittest.expect(o, unittest.hasLength(2)); | 159 unittest.expect(o, unittest.hasLength(2)); |
| 160 checkNodeInitializationAction(o[0]); | 160 checkNodeInitializationAction(o[0]); |
| 161 checkNodeInitializationAction(o[1]); | 161 checkNodeInitializationAction(o[1]); |
| 162 } | 162 } |
| 163 | 163 |
| 164 core.int buildCounterClusterConfig = 0; | 164 core.int buildCounterClusterConfig = 0; |
| 165 buildClusterConfig() { | 165 buildClusterConfig() { |
| 166 var o = new api.ClusterConfig(); | 166 var o = new api.ClusterConfig(); |
| 167 buildCounterClusterConfig++; | 167 buildCounterClusterConfig++; |
| 168 if (buildCounterClusterConfig < 3) { | 168 if (buildCounterClusterConfig < 3) { |
| 169 o.configBucket = "foo"; | 169 o.configBucket = "foo"; |
| 170 o.gceClusterConfig = buildGceClusterConfig(); | 170 o.gceClusterConfig = buildGceClusterConfig(); |
| 171 o.initializationActions = buildUnnamed468(); | 171 o.initializationActions = buildUnnamed454(); |
| 172 o.masterConfig = buildInstanceGroupConfig(); | 172 o.masterConfig = buildInstanceGroupConfig(); |
| 173 o.secondaryWorkerConfig = buildInstanceGroupConfig(); | 173 o.secondaryWorkerConfig = buildInstanceGroupConfig(); |
| 174 o.softwareConfig = buildSoftwareConfig(); | 174 o.softwareConfig = buildSoftwareConfig(); |
| 175 o.workerConfig = buildInstanceGroupConfig(); | 175 o.workerConfig = buildInstanceGroupConfig(); |
| 176 } | 176 } |
| 177 buildCounterClusterConfig--; | 177 buildCounterClusterConfig--; |
| 178 return o; | 178 return o; |
| 179 } | 179 } |
| 180 | 180 |
| 181 checkClusterConfig(api.ClusterConfig o) { | 181 checkClusterConfig(api.ClusterConfig o) { |
| 182 buildCounterClusterConfig++; | 182 buildCounterClusterConfig++; |
| 183 if (buildCounterClusterConfig < 3) { | 183 if (buildCounterClusterConfig < 3) { |
| 184 unittest.expect(o.configBucket, unittest.equals('foo')); | 184 unittest.expect(o.configBucket, unittest.equals('foo')); |
| 185 checkGceClusterConfig(o.gceClusterConfig); | 185 checkGceClusterConfig(o.gceClusterConfig); |
| 186 checkUnnamed468(o.initializationActions); | 186 checkUnnamed454(o.initializationActions); |
| 187 checkInstanceGroupConfig(o.masterConfig); | 187 checkInstanceGroupConfig(o.masterConfig); |
| 188 checkInstanceGroupConfig(o.secondaryWorkerConfig); | 188 checkInstanceGroupConfig(o.secondaryWorkerConfig); |
| 189 checkSoftwareConfig(o.softwareConfig); | 189 checkSoftwareConfig(o.softwareConfig); |
| 190 checkInstanceGroupConfig(o.workerConfig); | 190 checkInstanceGroupConfig(o.workerConfig); |
| 191 } | 191 } |
| 192 buildCounterClusterConfig--; | 192 buildCounterClusterConfig--; |
| 193 } | 193 } |
| 194 | 194 |
| 195 buildUnnamed469() { | 195 buildUnnamed455() { |
| 196 var o = new core.Map<core.String, core.String>(); | 196 var o = new core.Map<core.String, core.String>(); |
| 197 o["x"] = "foo"; | 197 o["x"] = "foo"; |
| 198 o["y"] = "foo"; | 198 o["y"] = "foo"; |
| 199 return o; | 199 return o; |
| 200 } | 200 } |
| 201 | 201 |
| 202 checkUnnamed469(core.Map<core.String, core.String> o) { | 202 checkUnnamed455(core.Map<core.String, core.String> o) { |
| 203 unittest.expect(o, unittest.hasLength(2)); | 203 unittest.expect(o, unittest.hasLength(2)); |
| 204 unittest.expect(o["x"], unittest.equals('foo')); | 204 unittest.expect(o["x"], unittest.equals('foo')); |
| 205 unittest.expect(o["y"], unittest.equals('foo')); | 205 unittest.expect(o["y"], unittest.equals('foo')); |
| 206 } | 206 } |
| 207 | 207 |
| 208 buildUnnamed470() { | 208 buildUnnamed456() { |
| 209 var o = new core.Map<core.String, core.String>(); | 209 var o = new core.Map<core.String, core.String>(); |
| 210 o["x"] = "foo"; | 210 o["x"] = "foo"; |
| 211 o["y"] = "foo"; | 211 o["y"] = "foo"; |
| 212 return o; | 212 return o; |
| 213 } | 213 } |
| 214 | 214 |
| 215 checkUnnamed470(core.Map<core.String, core.String> o) { | 215 checkUnnamed456(core.Map<core.String, core.String> o) { |
| 216 unittest.expect(o, unittest.hasLength(2)); | 216 unittest.expect(o, unittest.hasLength(2)); |
| 217 unittest.expect(o["x"], unittest.equals('foo')); | 217 unittest.expect(o["x"], unittest.equals('foo')); |
| 218 unittest.expect(o["y"], unittest.equals('foo')); | 218 unittest.expect(o["y"], unittest.equals('foo')); |
| 219 } | 219 } |
| 220 | 220 |
| 221 core.int buildCounterClusterMetrics = 0; | 221 core.int buildCounterClusterMetrics = 0; |
| 222 buildClusterMetrics() { | 222 buildClusterMetrics() { |
| 223 var o = new api.ClusterMetrics(); | 223 var o = new api.ClusterMetrics(); |
| 224 buildCounterClusterMetrics++; | 224 buildCounterClusterMetrics++; |
| 225 if (buildCounterClusterMetrics < 3) { | 225 if (buildCounterClusterMetrics < 3) { |
| 226 o.hdfsMetrics = buildUnnamed469(); | 226 o.hdfsMetrics = buildUnnamed455(); |
| 227 o.yarnMetrics = buildUnnamed470(); | 227 o.yarnMetrics = buildUnnamed456(); |
| 228 } | 228 } |
| 229 buildCounterClusterMetrics--; | 229 buildCounterClusterMetrics--; |
| 230 return o; | 230 return o; |
| 231 } | 231 } |
| 232 | 232 |
| 233 checkClusterMetrics(api.ClusterMetrics o) { | 233 checkClusterMetrics(api.ClusterMetrics o) { |
| 234 buildCounterClusterMetrics++; | 234 buildCounterClusterMetrics++; |
| 235 if (buildCounterClusterMetrics < 3) { | 235 if (buildCounterClusterMetrics < 3) { |
| 236 checkUnnamed469(o.hdfsMetrics); | 236 checkUnnamed455(o.hdfsMetrics); |
| 237 checkUnnamed470(o.yarnMetrics); | 237 checkUnnamed456(o.yarnMetrics); |
| 238 } | 238 } |
| 239 buildCounterClusterMetrics--; | 239 buildCounterClusterMetrics--; |
| 240 } | 240 } |
| 241 | 241 |
| 242 buildUnnamed471() { | 242 buildUnnamed457() { |
| 243 var o = new core.Map<core.String, core.String>(); | 243 var o = new core.Map<core.String, core.String>(); |
| 244 o["x"] = "foo"; | 244 o["x"] = "foo"; |
| 245 o["y"] = "foo"; | 245 o["y"] = "foo"; |
| 246 return o; | 246 return o; |
| 247 } | 247 } |
| 248 | 248 |
| 249 checkUnnamed471(core.Map<core.String, core.String> o) { | 249 checkUnnamed457(core.Map<core.String, core.String> o) { |
| 250 unittest.expect(o, unittest.hasLength(2)); | 250 unittest.expect(o, unittest.hasLength(2)); |
| 251 unittest.expect(o["x"], unittest.equals('foo')); | 251 unittest.expect(o["x"], unittest.equals('foo')); |
| 252 unittest.expect(o["y"], unittest.equals('foo')); | 252 unittest.expect(o["y"], unittest.equals('foo')); |
| 253 } | 253 } |
| 254 | 254 |
| 255 buildUnnamed472() { | 255 buildUnnamed458() { |
| 256 var o = new core.List<api.ClusterOperationStatus>(); | 256 var o = new core.List<api.ClusterOperationStatus>(); |
| 257 o.add(buildClusterOperationStatus()); | 257 o.add(buildClusterOperationStatus()); |
| 258 o.add(buildClusterOperationStatus()); | 258 o.add(buildClusterOperationStatus()); |
| 259 return o; | 259 return o; |
| 260 } | 260 } |
| 261 | 261 |
| 262 checkUnnamed472(core.List<api.ClusterOperationStatus> o) { | 262 checkUnnamed458(core.List<api.ClusterOperationStatus> o) { |
| 263 unittest.expect(o, unittest.hasLength(2)); | 263 unittest.expect(o, unittest.hasLength(2)); |
| 264 checkClusterOperationStatus(o[0]); | 264 checkClusterOperationStatus(o[0]); |
| 265 checkClusterOperationStatus(o[1]); | 265 checkClusterOperationStatus(o[1]); |
| 266 } | 266 } |
| 267 | 267 |
| 268 buildUnnamed473() { | 268 buildUnnamed459() { |
| 269 var o = new core.List<core.String>(); | 269 var o = new core.List<core.String>(); |
| 270 o.add("foo"); | 270 o.add("foo"); |
| 271 o.add("foo"); | 271 o.add("foo"); |
| 272 return o; | 272 return o; |
| 273 } | 273 } |
| 274 | 274 |
| 275 checkUnnamed473(core.List<core.String> o) { | 275 checkUnnamed459(core.List<core.String> o) { |
| 276 unittest.expect(o, unittest.hasLength(2)); | 276 unittest.expect(o, unittest.hasLength(2)); |
| 277 unittest.expect(o[0], unittest.equals('foo')); | 277 unittest.expect(o[0], unittest.equals('foo')); |
| 278 unittest.expect(o[1], unittest.equals('foo')); | 278 unittest.expect(o[1], unittest.equals('foo')); |
| 279 } | 279 } |
| 280 | 280 |
| 281 core.int buildCounterClusterOperationMetadata = 0; | 281 core.int buildCounterClusterOperationMetadata = 0; |
| 282 buildClusterOperationMetadata() { | 282 buildClusterOperationMetadata() { |
| 283 var o = new api.ClusterOperationMetadata(); | 283 var o = new api.ClusterOperationMetadata(); |
| 284 buildCounterClusterOperationMetadata++; | 284 buildCounterClusterOperationMetadata++; |
| 285 if (buildCounterClusterOperationMetadata < 3) { | 285 if (buildCounterClusterOperationMetadata < 3) { |
| 286 o.clusterName = "foo"; | 286 o.clusterName = "foo"; |
| 287 o.clusterUuid = "foo"; | 287 o.clusterUuid = "foo"; |
| 288 o.description = "foo"; | 288 o.description = "foo"; |
| 289 o.labels = buildUnnamed471(); | 289 o.labels = buildUnnamed457(); |
| 290 o.operationType = "foo"; | 290 o.operationType = "foo"; |
| 291 o.status = buildClusterOperationStatus(); | 291 o.status = buildClusterOperationStatus(); |
| 292 o.statusHistory = buildUnnamed472(); | 292 o.statusHistory = buildUnnamed458(); |
| 293 o.warnings = buildUnnamed473(); | 293 o.warnings = buildUnnamed459(); |
| 294 } | 294 } |
| 295 buildCounterClusterOperationMetadata--; | 295 buildCounterClusterOperationMetadata--; |
| 296 return o; | 296 return o; |
| 297 } | 297 } |
| 298 | 298 |
| 299 checkClusterOperationMetadata(api.ClusterOperationMetadata o) { | 299 checkClusterOperationMetadata(api.ClusterOperationMetadata o) { |
| 300 buildCounterClusterOperationMetadata++; | 300 buildCounterClusterOperationMetadata++; |
| 301 if (buildCounterClusterOperationMetadata < 3) { | 301 if (buildCounterClusterOperationMetadata < 3) { |
| 302 unittest.expect(o.clusterName, unittest.equals('foo')); | 302 unittest.expect(o.clusterName, unittest.equals('foo')); |
| 303 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 303 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
| 304 unittest.expect(o.description, unittest.equals('foo')); | 304 unittest.expect(o.description, unittest.equals('foo')); |
| 305 checkUnnamed471(o.labels); | 305 checkUnnamed457(o.labels); |
| 306 unittest.expect(o.operationType, unittest.equals('foo')); | 306 unittest.expect(o.operationType, unittest.equals('foo')); |
| 307 checkClusterOperationStatus(o.status); | 307 checkClusterOperationStatus(o.status); |
| 308 checkUnnamed472(o.statusHistory); | 308 checkUnnamed458(o.statusHistory); |
| 309 checkUnnamed473(o.warnings); | 309 checkUnnamed459(o.warnings); |
| 310 } | 310 } |
| 311 buildCounterClusterOperationMetadata--; | 311 buildCounterClusterOperationMetadata--; |
| 312 } | 312 } |
| 313 | 313 |
| 314 core.int buildCounterClusterOperationStatus = 0; | 314 core.int buildCounterClusterOperationStatus = 0; |
| 315 buildClusterOperationStatus() { | 315 buildClusterOperationStatus() { |
| 316 var o = new api.ClusterOperationStatus(); | 316 var o = new api.ClusterOperationStatus(); |
| 317 buildCounterClusterOperationStatus++; | 317 buildCounterClusterOperationStatus++; |
| 318 if (buildCounterClusterOperationStatus < 3) { | 318 if (buildCounterClusterOperationStatus < 3) { |
| 319 o.details = "foo"; | 319 o.details = "foo"; |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 return o; | 447 return o; |
| 448 } | 448 } |
| 449 | 449 |
| 450 checkEmpty(api.Empty o) { | 450 checkEmpty(api.Empty o) { |
| 451 buildCounterEmpty++; | 451 buildCounterEmpty++; |
| 452 if (buildCounterEmpty < 3) { | 452 if (buildCounterEmpty < 3) { |
| 453 } | 453 } |
| 454 buildCounterEmpty--; | 454 buildCounterEmpty--; |
| 455 } | 455 } |
| 456 | 456 |
| 457 buildUnnamed474() { | 457 buildUnnamed460() { |
| 458 var o = new core.Map<core.String, core.String>(); | 458 var o = new core.Map<core.String, core.String>(); |
| 459 o["x"] = "foo"; | 459 o["x"] = "foo"; |
| 460 o["y"] = "foo"; | 460 o["y"] = "foo"; |
| 461 return o; | 461 return o; |
| 462 } | 462 } |
| 463 | 463 |
| 464 checkUnnamed474(core.Map<core.String, core.String> o) { | 464 checkUnnamed460(core.Map<core.String, core.String> o) { |
| 465 unittest.expect(o, unittest.hasLength(2)); | 465 unittest.expect(o, unittest.hasLength(2)); |
| 466 unittest.expect(o["x"], unittest.equals('foo')); | 466 unittest.expect(o["x"], unittest.equals('foo')); |
| 467 unittest.expect(o["y"], unittest.equals('foo')); | 467 unittest.expect(o["y"], unittest.equals('foo')); |
| 468 } | 468 } |
| 469 | 469 |
| 470 buildUnnamed475() { | 470 buildUnnamed461() { |
| 471 var o = new core.List<core.String>(); | 471 var o = new core.List<core.String>(); |
| 472 o.add("foo"); | 472 o.add("foo"); |
| 473 o.add("foo"); | 473 o.add("foo"); |
| 474 return o; | 474 return o; |
| 475 } | 475 } |
| 476 | 476 |
| 477 checkUnnamed475(core.List<core.String> o) { | 477 checkUnnamed461(core.List<core.String> o) { |
| 478 unittest.expect(o, unittest.hasLength(2)); | 478 unittest.expect(o, unittest.hasLength(2)); |
| 479 unittest.expect(o[0], unittest.equals('foo')); | 479 unittest.expect(o[0], unittest.equals('foo')); |
| 480 unittest.expect(o[1], unittest.equals('foo')); | 480 unittest.expect(o[1], unittest.equals('foo')); |
| 481 } | 481 } |
| 482 | 482 |
| 483 buildUnnamed476() { | 483 buildUnnamed462() { |
| 484 var o = new core.List<core.String>(); | 484 var o = new core.List<core.String>(); |
| 485 o.add("foo"); | 485 o.add("foo"); |
| 486 o.add("foo"); | 486 o.add("foo"); |
| 487 return o; | 487 return o; |
| 488 } | 488 } |
| 489 | 489 |
| 490 checkUnnamed476(core.List<core.String> o) { | 490 checkUnnamed462(core.List<core.String> o) { |
| 491 unittest.expect(o, unittest.hasLength(2)); | 491 unittest.expect(o, unittest.hasLength(2)); |
| 492 unittest.expect(o[0], unittest.equals('foo')); | 492 unittest.expect(o[0], unittest.equals('foo')); |
| 493 unittest.expect(o[1], unittest.equals('foo')); | 493 unittest.expect(o[1], unittest.equals('foo')); |
| 494 } | 494 } |
| 495 | 495 |
| 496 core.int buildCounterGceClusterConfig = 0; | 496 core.int buildCounterGceClusterConfig = 0; |
| 497 buildGceClusterConfig() { | 497 buildGceClusterConfig() { |
| 498 var o = new api.GceClusterConfig(); | 498 var o = new api.GceClusterConfig(); |
| 499 buildCounterGceClusterConfig++; | 499 buildCounterGceClusterConfig++; |
| 500 if (buildCounterGceClusterConfig < 3) { | 500 if (buildCounterGceClusterConfig < 3) { |
| 501 o.internalIpOnly = true; | 501 o.internalIpOnly = true; |
| 502 o.metadata = buildUnnamed474(); | 502 o.metadata = buildUnnamed460(); |
| 503 o.networkUri = "foo"; | 503 o.networkUri = "foo"; |
| 504 o.serviceAccount = "foo"; | 504 o.serviceAccount = "foo"; |
| 505 o.serviceAccountScopes = buildUnnamed475(); | 505 o.serviceAccountScopes = buildUnnamed461(); |
| 506 o.subnetworkUri = "foo"; | 506 o.subnetworkUri = "foo"; |
| 507 o.tags = buildUnnamed476(); | 507 o.tags = buildUnnamed462(); |
| 508 o.zoneUri = "foo"; | 508 o.zoneUri = "foo"; |
| 509 } | 509 } |
| 510 buildCounterGceClusterConfig--; | 510 buildCounterGceClusterConfig--; |
| 511 return o; | 511 return o; |
| 512 } | 512 } |
| 513 | 513 |
| 514 checkGceClusterConfig(api.GceClusterConfig o) { | 514 checkGceClusterConfig(api.GceClusterConfig o) { |
| 515 buildCounterGceClusterConfig++; | 515 buildCounterGceClusterConfig++; |
| 516 if (buildCounterGceClusterConfig < 3) { | 516 if (buildCounterGceClusterConfig < 3) { |
| 517 unittest.expect(o.internalIpOnly, unittest.isTrue); | 517 unittest.expect(o.internalIpOnly, unittest.isTrue); |
| 518 checkUnnamed474(o.metadata); | 518 checkUnnamed460(o.metadata); |
| 519 unittest.expect(o.networkUri, unittest.equals('foo')); | 519 unittest.expect(o.networkUri, unittest.equals('foo')); |
| 520 unittest.expect(o.serviceAccount, unittest.equals('foo')); | 520 unittest.expect(o.serviceAccount, unittest.equals('foo')); |
| 521 checkUnnamed475(o.serviceAccountScopes); | 521 checkUnnamed461(o.serviceAccountScopes); |
| 522 unittest.expect(o.subnetworkUri, unittest.equals('foo')); | 522 unittest.expect(o.subnetworkUri, unittest.equals('foo')); |
| 523 checkUnnamed476(o.tags); | 523 checkUnnamed462(o.tags); |
| 524 unittest.expect(o.zoneUri, unittest.equals('foo')); | 524 unittest.expect(o.zoneUri, unittest.equals('foo')); |
| 525 } | 525 } |
| 526 buildCounterGceClusterConfig--; | 526 buildCounterGceClusterConfig--; |
| 527 } | 527 } |
| 528 | 528 |
| 529 buildUnnamed477() { | 529 buildUnnamed463() { |
| 530 var o = new core.List<core.String>(); | 530 var o = new core.List<core.String>(); |
| 531 o.add("foo"); | 531 o.add("foo"); |
| 532 o.add("foo"); | 532 o.add("foo"); |
| 533 return o; | 533 return o; |
| 534 } | 534 } |
| 535 | 535 |
| 536 checkUnnamed477(core.List<core.String> o) { | 536 checkUnnamed463(core.List<core.String> o) { |
| 537 unittest.expect(o, unittest.hasLength(2)); | 537 unittest.expect(o, unittest.hasLength(2)); |
| 538 unittest.expect(o[0], unittest.equals('foo')); | 538 unittest.expect(o[0], unittest.equals('foo')); |
| 539 unittest.expect(o[1], unittest.equals('foo')); | 539 unittest.expect(o[1], unittest.equals('foo')); |
| 540 } | 540 } |
| 541 | 541 |
| 542 buildUnnamed478() { | 542 buildUnnamed464() { |
| 543 var o = new core.List<core.String>(); | 543 var o = new core.List<core.String>(); |
| 544 o.add("foo"); | 544 o.add("foo"); |
| 545 o.add("foo"); | 545 o.add("foo"); |
| 546 return o; | 546 return o; |
| 547 } | 547 } |
| 548 | 548 |
| 549 checkUnnamed478(core.List<core.String> o) { | 549 checkUnnamed464(core.List<core.String> o) { |
| 550 unittest.expect(o, unittest.hasLength(2)); | 550 unittest.expect(o, unittest.hasLength(2)); |
| 551 unittest.expect(o[0], unittest.equals('foo')); | 551 unittest.expect(o[0], unittest.equals('foo')); |
| 552 unittest.expect(o[1], unittest.equals('foo')); | 552 unittest.expect(o[1], unittest.equals('foo')); |
| 553 } | 553 } |
| 554 | 554 |
| 555 buildUnnamed479() { | 555 buildUnnamed465() { |
| 556 var o = new core.List<core.String>(); | 556 var o = new core.List<core.String>(); |
| 557 o.add("foo"); | 557 o.add("foo"); |
| 558 o.add("foo"); | 558 o.add("foo"); |
| 559 return o; | 559 return o; |
| 560 } | 560 } |
| 561 | 561 |
| 562 checkUnnamed479(core.List<core.String> o) { | 562 checkUnnamed465(core.List<core.String> o) { |
| 563 unittest.expect(o, unittest.hasLength(2)); | 563 unittest.expect(o, unittest.hasLength(2)); |
| 564 unittest.expect(o[0], unittest.equals('foo')); | 564 unittest.expect(o[0], unittest.equals('foo')); |
| 565 unittest.expect(o[1], unittest.equals('foo')); | 565 unittest.expect(o[1], unittest.equals('foo')); |
| 566 } | 566 } |
| 567 | 567 |
| 568 buildUnnamed480() { | 568 buildUnnamed466() { |
| 569 var o = new core.List<core.String>(); | 569 var o = new core.List<core.String>(); |
| 570 o.add("foo"); | 570 o.add("foo"); |
| 571 o.add("foo"); | 571 o.add("foo"); |
| 572 return o; | 572 return o; |
| 573 } | 573 } |
| 574 | 574 |
| 575 checkUnnamed480(core.List<core.String> o) { | 575 checkUnnamed466(core.List<core.String> o) { |
| 576 unittest.expect(o, unittest.hasLength(2)); | 576 unittest.expect(o, unittest.hasLength(2)); |
| 577 unittest.expect(o[0], unittest.equals('foo')); | 577 unittest.expect(o[0], unittest.equals('foo')); |
| 578 unittest.expect(o[1], unittest.equals('foo')); | 578 unittest.expect(o[1], unittest.equals('foo')); |
| 579 } | 579 } |
| 580 | 580 |
| 581 buildUnnamed481() { | 581 buildUnnamed467() { |
| 582 var o = new core.Map<core.String, core.String>(); | 582 var o = new core.Map<core.String, core.String>(); |
| 583 o["x"] = "foo"; | 583 o["x"] = "foo"; |
| 584 o["y"] = "foo"; | 584 o["y"] = "foo"; |
| 585 return o; | 585 return o; |
| 586 } | 586 } |
| 587 | 587 |
| 588 checkUnnamed481(core.Map<core.String, core.String> o) { | 588 checkUnnamed467(core.Map<core.String, core.String> o) { |
| 589 unittest.expect(o, unittest.hasLength(2)); | 589 unittest.expect(o, unittest.hasLength(2)); |
| 590 unittest.expect(o["x"], unittest.equals('foo')); | 590 unittest.expect(o["x"], unittest.equals('foo')); |
| 591 unittest.expect(o["y"], unittest.equals('foo')); | 591 unittest.expect(o["y"], unittest.equals('foo')); |
| 592 } | 592 } |
| 593 | 593 |
| 594 core.int buildCounterHadoopJob = 0; | 594 core.int buildCounterHadoopJob = 0; |
| 595 buildHadoopJob() { | 595 buildHadoopJob() { |
| 596 var o = new api.HadoopJob(); | 596 var o = new api.HadoopJob(); |
| 597 buildCounterHadoopJob++; | 597 buildCounterHadoopJob++; |
| 598 if (buildCounterHadoopJob < 3) { | 598 if (buildCounterHadoopJob < 3) { |
| 599 o.archiveUris = buildUnnamed477(); | 599 o.archiveUris = buildUnnamed463(); |
| 600 o.args = buildUnnamed478(); | 600 o.args = buildUnnamed464(); |
| 601 o.fileUris = buildUnnamed479(); | 601 o.fileUris = buildUnnamed465(); |
| 602 o.jarFileUris = buildUnnamed480(); | 602 o.jarFileUris = buildUnnamed466(); |
| 603 o.loggingConfig = buildLoggingConfig(); | 603 o.loggingConfig = buildLoggingConfig(); |
| 604 o.mainClass = "foo"; | 604 o.mainClass = "foo"; |
| 605 o.mainJarFileUri = "foo"; | 605 o.mainJarFileUri = "foo"; |
| 606 o.properties = buildUnnamed481(); | 606 o.properties = buildUnnamed467(); |
| 607 } | 607 } |
| 608 buildCounterHadoopJob--; | 608 buildCounterHadoopJob--; |
| 609 return o; | 609 return o; |
| 610 } | 610 } |
| 611 | 611 |
| 612 checkHadoopJob(api.HadoopJob o) { | 612 checkHadoopJob(api.HadoopJob o) { |
| 613 buildCounterHadoopJob++; | 613 buildCounterHadoopJob++; |
| 614 if (buildCounterHadoopJob < 3) { | 614 if (buildCounterHadoopJob < 3) { |
| 615 checkUnnamed477(o.archiveUris); | 615 checkUnnamed463(o.archiveUris); |
| 616 checkUnnamed478(o.args); | 616 checkUnnamed464(o.args); |
| 617 checkUnnamed479(o.fileUris); | 617 checkUnnamed465(o.fileUris); |
| 618 checkUnnamed480(o.jarFileUris); | 618 checkUnnamed466(o.jarFileUris); |
| 619 checkLoggingConfig(o.loggingConfig); | 619 checkLoggingConfig(o.loggingConfig); |
| 620 unittest.expect(o.mainClass, unittest.equals('foo')); | 620 unittest.expect(o.mainClass, unittest.equals('foo')); |
| 621 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 621 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
| 622 checkUnnamed481(o.properties); | 622 checkUnnamed467(o.properties); |
| 623 } | 623 } |
| 624 buildCounterHadoopJob--; | 624 buildCounterHadoopJob--; |
| 625 } | 625 } |
| 626 | 626 |
| 627 buildUnnamed482() { | 627 buildUnnamed468() { |
| 628 var o = new core.List<core.String>(); | 628 var o = new core.List<core.String>(); |
| 629 o.add("foo"); | 629 o.add("foo"); |
| 630 o.add("foo"); | 630 o.add("foo"); |
| 631 return o; | 631 return o; |
| 632 } | 632 } |
| 633 | 633 |
| 634 checkUnnamed482(core.List<core.String> o) { | 634 checkUnnamed468(core.List<core.String> o) { |
| 635 unittest.expect(o, unittest.hasLength(2)); | 635 unittest.expect(o, unittest.hasLength(2)); |
| 636 unittest.expect(o[0], unittest.equals('foo')); | 636 unittest.expect(o[0], unittest.equals('foo')); |
| 637 unittest.expect(o[1], unittest.equals('foo')); | 637 unittest.expect(o[1], unittest.equals('foo')); |
| 638 } | 638 } |
| 639 | 639 |
| 640 buildUnnamed483() { | 640 buildUnnamed469() { |
| 641 var o = new core.Map<core.String, core.String>(); | 641 var o = new core.Map<core.String, core.String>(); |
| 642 o["x"] = "foo"; | 642 o["x"] = "foo"; |
| 643 o["y"] = "foo"; | 643 o["y"] = "foo"; |
| 644 return o; | 644 return o; |
| 645 } | 645 } |
| 646 | 646 |
| 647 checkUnnamed483(core.Map<core.String, core.String> o) { | 647 checkUnnamed469(core.Map<core.String, core.String> o) { |
| 648 unittest.expect(o, unittest.hasLength(2)); | 648 unittest.expect(o, unittest.hasLength(2)); |
| 649 unittest.expect(o["x"], unittest.equals('foo')); | 649 unittest.expect(o["x"], unittest.equals('foo')); |
| 650 unittest.expect(o["y"], unittest.equals('foo')); | 650 unittest.expect(o["y"], unittest.equals('foo')); |
| 651 } | 651 } |
| 652 | 652 |
| 653 buildUnnamed484() { | 653 buildUnnamed470() { |
| 654 var o = new core.Map<core.String, core.String>(); | 654 var o = new core.Map<core.String, core.String>(); |
| 655 o["x"] = "foo"; | 655 o["x"] = "foo"; |
| 656 o["y"] = "foo"; | 656 o["y"] = "foo"; |
| 657 return o; | 657 return o; |
| 658 } | 658 } |
| 659 | 659 |
| 660 checkUnnamed484(core.Map<core.String, core.String> o) { | 660 checkUnnamed470(core.Map<core.String, core.String> o) { |
| 661 unittest.expect(o, unittest.hasLength(2)); | 661 unittest.expect(o, unittest.hasLength(2)); |
| 662 unittest.expect(o["x"], unittest.equals('foo')); | 662 unittest.expect(o["x"], unittest.equals('foo')); |
| 663 unittest.expect(o["y"], unittest.equals('foo')); | 663 unittest.expect(o["y"], unittest.equals('foo')); |
| 664 } | 664 } |
| 665 | 665 |
| 666 core.int buildCounterHiveJob = 0; | 666 core.int buildCounterHiveJob = 0; |
| 667 buildHiveJob() { | 667 buildHiveJob() { |
| 668 var o = new api.HiveJob(); | 668 var o = new api.HiveJob(); |
| 669 buildCounterHiveJob++; | 669 buildCounterHiveJob++; |
| 670 if (buildCounterHiveJob < 3) { | 670 if (buildCounterHiveJob < 3) { |
| 671 o.continueOnFailure = true; | 671 o.continueOnFailure = true; |
| 672 o.jarFileUris = buildUnnamed482(); | 672 o.jarFileUris = buildUnnamed468(); |
| 673 o.properties = buildUnnamed483(); | 673 o.properties = buildUnnamed469(); |
| 674 o.queryFileUri = "foo"; | 674 o.queryFileUri = "foo"; |
| 675 o.queryList = buildQueryList(); | 675 o.queryList = buildQueryList(); |
| 676 o.scriptVariables = buildUnnamed484(); | 676 o.scriptVariables = buildUnnamed470(); |
| 677 } | 677 } |
| 678 buildCounterHiveJob--; | 678 buildCounterHiveJob--; |
| 679 return o; | 679 return o; |
| 680 } | 680 } |
| 681 | 681 |
| 682 checkHiveJob(api.HiveJob o) { | 682 checkHiveJob(api.HiveJob o) { |
| 683 buildCounterHiveJob++; | 683 buildCounterHiveJob++; |
| 684 if (buildCounterHiveJob < 3) { | 684 if (buildCounterHiveJob < 3) { |
| 685 unittest.expect(o.continueOnFailure, unittest.isTrue); | 685 unittest.expect(o.continueOnFailure, unittest.isTrue); |
| 686 checkUnnamed482(o.jarFileUris); | 686 checkUnnamed468(o.jarFileUris); |
| 687 checkUnnamed483(o.properties); | 687 checkUnnamed469(o.properties); |
| 688 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 688 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
| 689 checkQueryList(o.queryList); | 689 checkQueryList(o.queryList); |
| 690 checkUnnamed484(o.scriptVariables); | 690 checkUnnamed470(o.scriptVariables); |
| 691 } | 691 } |
| 692 buildCounterHiveJob--; | 692 buildCounterHiveJob--; |
| 693 } | 693 } |
| 694 | 694 |
| 695 buildUnnamed485() { | 695 buildUnnamed471() { |
| 696 var o = new core.List<api.AcceleratorConfig>(); | 696 var o = new core.List<api.AcceleratorConfig>(); |
| 697 o.add(buildAcceleratorConfig()); | 697 o.add(buildAcceleratorConfig()); |
| 698 o.add(buildAcceleratorConfig()); | 698 o.add(buildAcceleratorConfig()); |
| 699 return o; | 699 return o; |
| 700 } | 700 } |
| 701 | 701 |
| 702 checkUnnamed485(core.List<api.AcceleratorConfig> o) { | 702 checkUnnamed471(core.List<api.AcceleratorConfig> o) { |
| 703 unittest.expect(o, unittest.hasLength(2)); | 703 unittest.expect(o, unittest.hasLength(2)); |
| 704 checkAcceleratorConfig(o[0]); | 704 checkAcceleratorConfig(o[0]); |
| 705 checkAcceleratorConfig(o[1]); | 705 checkAcceleratorConfig(o[1]); |
| 706 } | 706 } |
| 707 | 707 |
| 708 buildUnnamed486() { | 708 buildUnnamed472() { |
| 709 var o = new core.List<core.String>(); | 709 var o = new core.List<core.String>(); |
| 710 o.add("foo"); | 710 o.add("foo"); |
| 711 o.add("foo"); | 711 o.add("foo"); |
| 712 return o; | 712 return o; |
| 713 } | 713 } |
| 714 | 714 |
| 715 checkUnnamed486(core.List<core.String> o) { | 715 checkUnnamed472(core.List<core.String> o) { |
| 716 unittest.expect(o, unittest.hasLength(2)); | 716 unittest.expect(o, unittest.hasLength(2)); |
| 717 unittest.expect(o[0], unittest.equals('foo')); | 717 unittest.expect(o[0], unittest.equals('foo')); |
| 718 unittest.expect(o[1], unittest.equals('foo')); | 718 unittest.expect(o[1], unittest.equals('foo')); |
| 719 } | 719 } |
| 720 | 720 |
| 721 core.int buildCounterInstanceGroupConfig = 0; | 721 core.int buildCounterInstanceGroupConfig = 0; |
| 722 buildInstanceGroupConfig() { | 722 buildInstanceGroupConfig() { |
| 723 var o = new api.InstanceGroupConfig(); | 723 var o = new api.InstanceGroupConfig(); |
| 724 buildCounterInstanceGroupConfig++; | 724 buildCounterInstanceGroupConfig++; |
| 725 if (buildCounterInstanceGroupConfig < 3) { | 725 if (buildCounterInstanceGroupConfig < 3) { |
| 726 o.accelerators = buildUnnamed485(); | 726 o.accelerators = buildUnnamed471(); |
| 727 o.diskConfig = buildDiskConfig(); | 727 o.diskConfig = buildDiskConfig(); |
| 728 o.imageUri = "foo"; | 728 o.imageUri = "foo"; |
| 729 o.instanceNames = buildUnnamed486(); | 729 o.instanceNames = buildUnnamed472(); |
| 730 o.isPreemptible = true; | 730 o.isPreemptible = true; |
| 731 o.machineTypeUri = "foo"; | 731 o.machineTypeUri = "foo"; |
| 732 o.managedGroupConfig = buildManagedGroupConfig(); | 732 o.managedGroupConfig = buildManagedGroupConfig(); |
| 733 o.numInstances = 42; | 733 o.numInstances = 42; |
| 734 } | 734 } |
| 735 buildCounterInstanceGroupConfig--; | 735 buildCounterInstanceGroupConfig--; |
| 736 return o; | 736 return o; |
| 737 } | 737 } |
| 738 | 738 |
| 739 checkInstanceGroupConfig(api.InstanceGroupConfig o) { | 739 checkInstanceGroupConfig(api.InstanceGroupConfig o) { |
| 740 buildCounterInstanceGroupConfig++; | 740 buildCounterInstanceGroupConfig++; |
| 741 if (buildCounterInstanceGroupConfig < 3) { | 741 if (buildCounterInstanceGroupConfig < 3) { |
| 742 checkUnnamed485(o.accelerators); | 742 checkUnnamed471(o.accelerators); |
| 743 checkDiskConfig(o.diskConfig); | 743 checkDiskConfig(o.diskConfig); |
| 744 unittest.expect(o.imageUri, unittest.equals('foo')); | 744 unittest.expect(o.imageUri, unittest.equals('foo')); |
| 745 checkUnnamed486(o.instanceNames); | 745 checkUnnamed472(o.instanceNames); |
| 746 unittest.expect(o.isPreemptible, unittest.isTrue); | 746 unittest.expect(o.isPreemptible, unittest.isTrue); |
| 747 unittest.expect(o.machineTypeUri, unittest.equals('foo')); | 747 unittest.expect(o.machineTypeUri, unittest.equals('foo')); |
| 748 checkManagedGroupConfig(o.managedGroupConfig); | 748 checkManagedGroupConfig(o.managedGroupConfig); |
| 749 unittest.expect(o.numInstances, unittest.equals(42)); | 749 unittest.expect(o.numInstances, unittest.equals(42)); |
| 750 } | 750 } |
| 751 buildCounterInstanceGroupConfig--; | 751 buildCounterInstanceGroupConfig--; |
| 752 } | 752 } |
| 753 | 753 |
| 754 buildUnnamed487() { | 754 buildUnnamed473() { |
| 755 var o = new core.Map<core.String, core.String>(); | 755 var o = new core.Map<core.String, core.String>(); |
| 756 o["x"] = "foo"; | 756 o["x"] = "foo"; |
| 757 o["y"] = "foo"; | 757 o["y"] = "foo"; |
| 758 return o; | 758 return o; |
| 759 } | 759 } |
| 760 | 760 |
| 761 checkUnnamed487(core.Map<core.String, core.String> o) { | 761 checkUnnamed473(core.Map<core.String, core.String> o) { |
| 762 unittest.expect(o, unittest.hasLength(2)); | 762 unittest.expect(o, unittest.hasLength(2)); |
| 763 unittest.expect(o["x"], unittest.equals('foo')); | 763 unittest.expect(o["x"], unittest.equals('foo')); |
| 764 unittest.expect(o["y"], unittest.equals('foo')); | 764 unittest.expect(o["y"], unittest.equals('foo')); |
| 765 } | 765 } |
| 766 | 766 |
| 767 buildUnnamed488() { | 767 buildUnnamed474() { |
| 768 var o = new core.List<api.JobStatus>(); | 768 var o = new core.List<api.JobStatus>(); |
| 769 o.add(buildJobStatus()); | 769 o.add(buildJobStatus()); |
| 770 o.add(buildJobStatus()); | 770 o.add(buildJobStatus()); |
| 771 return o; | 771 return o; |
| 772 } | 772 } |
| 773 | 773 |
| 774 checkUnnamed488(core.List<api.JobStatus> o) { | 774 checkUnnamed474(core.List<api.JobStatus> o) { |
| 775 unittest.expect(o, unittest.hasLength(2)); | 775 unittest.expect(o, unittest.hasLength(2)); |
| 776 checkJobStatus(o[0]); | 776 checkJobStatus(o[0]); |
| 777 checkJobStatus(o[1]); | 777 checkJobStatus(o[1]); |
| 778 } | 778 } |
| 779 | 779 |
| 780 buildUnnamed489() { | 780 buildUnnamed475() { |
| 781 var o = new core.List<api.YarnApplication>(); | 781 var o = new core.List<api.YarnApplication>(); |
| 782 o.add(buildYarnApplication()); | 782 o.add(buildYarnApplication()); |
| 783 o.add(buildYarnApplication()); | 783 o.add(buildYarnApplication()); |
| 784 return o; | 784 return o; |
| 785 } | 785 } |
| 786 | 786 |
| 787 checkUnnamed489(core.List<api.YarnApplication> o) { | 787 checkUnnamed475(core.List<api.YarnApplication> o) { |
| 788 unittest.expect(o, unittest.hasLength(2)); | 788 unittest.expect(o, unittest.hasLength(2)); |
| 789 checkYarnApplication(o[0]); | 789 checkYarnApplication(o[0]); |
| 790 checkYarnApplication(o[1]); | 790 checkYarnApplication(o[1]); |
| 791 } | 791 } |
| 792 | 792 |
| 793 core.int buildCounterJob = 0; | 793 core.int buildCounterJob = 0; |
| 794 buildJob() { | 794 buildJob() { |
| 795 var o = new api.Job(); | 795 var o = new api.Job(); |
| 796 buildCounterJob++; | 796 buildCounterJob++; |
| 797 if (buildCounterJob < 3) { | 797 if (buildCounterJob < 3) { |
| 798 o.driverControlFilesUri = "foo"; | 798 o.driverControlFilesUri = "foo"; |
| 799 o.driverOutputResourceUri = "foo"; | 799 o.driverOutputResourceUri = "foo"; |
| 800 o.hadoopJob = buildHadoopJob(); | 800 o.hadoopJob = buildHadoopJob(); |
| 801 o.hiveJob = buildHiveJob(); | 801 o.hiveJob = buildHiveJob(); |
| 802 o.labels = buildUnnamed487(); | 802 o.labels = buildUnnamed473(); |
| 803 o.pigJob = buildPigJob(); | 803 o.pigJob = buildPigJob(); |
| 804 o.placement = buildJobPlacement(); | 804 o.placement = buildJobPlacement(); |
| 805 o.pysparkJob = buildPySparkJob(); | 805 o.pysparkJob = buildPySparkJob(); |
| 806 o.reference = buildJobReference(); | 806 o.reference = buildJobReference(); |
| 807 o.scheduling = buildJobScheduling(); | 807 o.scheduling = buildJobScheduling(); |
| 808 o.sparkJob = buildSparkJob(); | 808 o.sparkJob = buildSparkJob(); |
| 809 o.sparkSqlJob = buildSparkSqlJob(); | 809 o.sparkSqlJob = buildSparkSqlJob(); |
| 810 o.status = buildJobStatus(); | 810 o.status = buildJobStatus(); |
| 811 o.statusHistory = buildUnnamed488(); | 811 o.statusHistory = buildUnnamed474(); |
| 812 o.yarnApplications = buildUnnamed489(); | 812 o.yarnApplications = buildUnnamed475(); |
| 813 } | 813 } |
| 814 buildCounterJob--; | 814 buildCounterJob--; |
| 815 return o; | 815 return o; |
| 816 } | 816 } |
| 817 | 817 |
| 818 checkJob(api.Job o) { | 818 checkJob(api.Job o) { |
| 819 buildCounterJob++; | 819 buildCounterJob++; |
| 820 if (buildCounterJob < 3) { | 820 if (buildCounterJob < 3) { |
| 821 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); | 821 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); |
| 822 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); | 822 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); |
| 823 checkHadoopJob(o.hadoopJob); | 823 checkHadoopJob(o.hadoopJob); |
| 824 checkHiveJob(o.hiveJob); | 824 checkHiveJob(o.hiveJob); |
| 825 checkUnnamed487(o.labels); | 825 checkUnnamed473(o.labels); |
| 826 checkPigJob(o.pigJob); | 826 checkPigJob(o.pigJob); |
| 827 checkJobPlacement(o.placement); | 827 checkJobPlacement(o.placement); |
| 828 checkPySparkJob(o.pysparkJob); | 828 checkPySparkJob(o.pysparkJob); |
| 829 checkJobReference(o.reference); | 829 checkJobReference(o.reference); |
| 830 checkJobScheduling(o.scheduling); | 830 checkJobScheduling(o.scheduling); |
| 831 checkSparkJob(o.sparkJob); | 831 checkSparkJob(o.sparkJob); |
| 832 checkSparkSqlJob(o.sparkSqlJob); | 832 checkSparkSqlJob(o.sparkSqlJob); |
| 833 checkJobStatus(o.status); | 833 checkJobStatus(o.status); |
| 834 checkUnnamed488(o.statusHistory); | 834 checkUnnamed474(o.statusHistory); |
| 835 checkUnnamed489(o.yarnApplications); | 835 checkUnnamed475(o.yarnApplications); |
| 836 } | 836 } |
| 837 buildCounterJob--; | 837 buildCounterJob--; |
| 838 } | 838 } |
| 839 | 839 |
| 840 core.int buildCounterJobPlacement = 0; | 840 core.int buildCounterJobPlacement = 0; |
| 841 buildJobPlacement() { | 841 buildJobPlacement() { |
| 842 var o = new api.JobPlacement(); | 842 var o = new api.JobPlacement(); |
| 843 buildCounterJobPlacement++; | 843 buildCounterJobPlacement++; |
| 844 if (buildCounterJobPlacement < 3) { | 844 if (buildCounterJobPlacement < 3) { |
| 845 o.clusterName = "foo"; | 845 o.clusterName = "foo"; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 916 buildCounterJobStatus++; | 916 buildCounterJobStatus++; |
| 917 if (buildCounterJobStatus < 3) { | 917 if (buildCounterJobStatus < 3) { |
| 918 unittest.expect(o.details, unittest.equals('foo')); | 918 unittest.expect(o.details, unittest.equals('foo')); |
| 919 unittest.expect(o.state, unittest.equals('foo')); | 919 unittest.expect(o.state, unittest.equals('foo')); |
| 920 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 920 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
| 921 unittest.expect(o.substate, unittest.equals('foo')); | 921 unittest.expect(o.substate, unittest.equals('foo')); |
| 922 } | 922 } |
| 923 buildCounterJobStatus--; | 923 buildCounterJobStatus--; |
| 924 } | 924 } |
| 925 | 925 |
| 926 buildUnnamed490() { | 926 buildUnnamed476() { |
| 927 var o = new core.List<api.Cluster>(); | 927 var o = new core.List<api.Cluster>(); |
| 928 o.add(buildCluster()); | 928 o.add(buildCluster()); |
| 929 o.add(buildCluster()); | 929 o.add(buildCluster()); |
| 930 return o; | 930 return o; |
| 931 } | 931 } |
| 932 | 932 |
| 933 checkUnnamed490(core.List<api.Cluster> o) { | 933 checkUnnamed476(core.List<api.Cluster> o) { |
| 934 unittest.expect(o, unittest.hasLength(2)); | 934 unittest.expect(o, unittest.hasLength(2)); |
| 935 checkCluster(o[0]); | 935 checkCluster(o[0]); |
| 936 checkCluster(o[1]); | 936 checkCluster(o[1]); |
| 937 } | 937 } |
| 938 | 938 |
| 939 core.int buildCounterListClustersResponse = 0; | 939 core.int buildCounterListClustersResponse = 0; |
| 940 buildListClustersResponse() { | 940 buildListClustersResponse() { |
| 941 var o = new api.ListClustersResponse(); | 941 var o = new api.ListClustersResponse(); |
| 942 buildCounterListClustersResponse++; | 942 buildCounterListClustersResponse++; |
| 943 if (buildCounterListClustersResponse < 3) { | 943 if (buildCounterListClustersResponse < 3) { |
| 944 o.clusters = buildUnnamed490(); | 944 o.clusters = buildUnnamed476(); |
| 945 o.nextPageToken = "foo"; | 945 o.nextPageToken = "foo"; |
| 946 } | 946 } |
| 947 buildCounterListClustersResponse--; | 947 buildCounterListClustersResponse--; |
| 948 return o; | 948 return o; |
| 949 } | 949 } |
| 950 | 950 |
| 951 checkListClustersResponse(api.ListClustersResponse o) { | 951 checkListClustersResponse(api.ListClustersResponse o) { |
| 952 buildCounterListClustersResponse++; | 952 buildCounterListClustersResponse++; |
| 953 if (buildCounterListClustersResponse < 3) { | 953 if (buildCounterListClustersResponse < 3) { |
| 954 checkUnnamed490(o.clusters); | 954 checkUnnamed476(o.clusters); |
| 955 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 955 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 956 } | 956 } |
| 957 buildCounterListClustersResponse--; | 957 buildCounterListClustersResponse--; |
| 958 } | 958 } |
| 959 | 959 |
| 960 buildUnnamed491() { | 960 buildUnnamed477() { |
| 961 var o = new core.List<api.Job>(); | 961 var o = new core.List<api.Job>(); |
| 962 o.add(buildJob()); | 962 o.add(buildJob()); |
| 963 o.add(buildJob()); | 963 o.add(buildJob()); |
| 964 return o; | 964 return o; |
| 965 } | 965 } |
| 966 | 966 |
| 967 checkUnnamed491(core.List<api.Job> o) { | 967 checkUnnamed477(core.List<api.Job> o) { |
| 968 unittest.expect(o, unittest.hasLength(2)); | 968 unittest.expect(o, unittest.hasLength(2)); |
| 969 checkJob(o[0]); | 969 checkJob(o[0]); |
| 970 checkJob(o[1]); | 970 checkJob(o[1]); |
| 971 } | 971 } |
| 972 | 972 |
| 973 core.int buildCounterListJobsResponse = 0; | 973 core.int buildCounterListJobsResponse = 0; |
| 974 buildListJobsResponse() { | 974 buildListJobsResponse() { |
| 975 var o = new api.ListJobsResponse(); | 975 var o = new api.ListJobsResponse(); |
| 976 buildCounterListJobsResponse++; | 976 buildCounterListJobsResponse++; |
| 977 if (buildCounterListJobsResponse < 3) { | 977 if (buildCounterListJobsResponse < 3) { |
| 978 o.jobs = buildUnnamed491(); | 978 o.jobs = buildUnnamed477(); |
| 979 o.nextPageToken = "foo"; | 979 o.nextPageToken = "foo"; |
| 980 } | 980 } |
| 981 buildCounterListJobsResponse--; | 981 buildCounterListJobsResponse--; |
| 982 return o; | 982 return o; |
| 983 } | 983 } |
| 984 | 984 |
| 985 checkListJobsResponse(api.ListJobsResponse o) { | 985 checkListJobsResponse(api.ListJobsResponse o) { |
| 986 buildCounterListJobsResponse++; | 986 buildCounterListJobsResponse++; |
| 987 if (buildCounterListJobsResponse < 3) { | 987 if (buildCounterListJobsResponse < 3) { |
| 988 checkUnnamed491(o.jobs); | 988 checkUnnamed477(o.jobs); |
| 989 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 989 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 990 } | 990 } |
| 991 buildCounterListJobsResponse--; | 991 buildCounterListJobsResponse--; |
| 992 } | 992 } |
| 993 | 993 |
| 994 buildUnnamed492() { | 994 buildUnnamed478() { |
| 995 var o = new core.List<api.Operation>(); | 995 var o = new core.List<api.Operation>(); |
| 996 o.add(buildOperation()); | 996 o.add(buildOperation()); |
| 997 o.add(buildOperation()); | 997 o.add(buildOperation()); |
| 998 return o; | 998 return o; |
| 999 } | 999 } |
| 1000 | 1000 |
| 1001 checkUnnamed492(core.List<api.Operation> o) { | 1001 checkUnnamed478(core.List<api.Operation> o) { |
| 1002 unittest.expect(o, unittest.hasLength(2)); | 1002 unittest.expect(o, unittest.hasLength(2)); |
| 1003 checkOperation(o[0]); | 1003 checkOperation(o[0]); |
| 1004 checkOperation(o[1]); | 1004 checkOperation(o[1]); |
| 1005 } | 1005 } |
| 1006 | 1006 |
| 1007 core.int buildCounterListOperationsResponse = 0; | 1007 core.int buildCounterListOperationsResponse = 0; |
| 1008 buildListOperationsResponse() { | 1008 buildListOperationsResponse() { |
| 1009 var o = new api.ListOperationsResponse(); | 1009 var o = new api.ListOperationsResponse(); |
| 1010 buildCounterListOperationsResponse++; | 1010 buildCounterListOperationsResponse++; |
| 1011 if (buildCounterListOperationsResponse < 3) { | 1011 if (buildCounterListOperationsResponse < 3) { |
| 1012 o.nextPageToken = "foo"; | 1012 o.nextPageToken = "foo"; |
| 1013 o.operations = buildUnnamed492(); | 1013 o.operations = buildUnnamed478(); |
| 1014 } | 1014 } |
| 1015 buildCounterListOperationsResponse--; | 1015 buildCounterListOperationsResponse--; |
| 1016 return o; | 1016 return o; |
| 1017 } | 1017 } |
| 1018 | 1018 |
| 1019 checkListOperationsResponse(api.ListOperationsResponse o) { | 1019 checkListOperationsResponse(api.ListOperationsResponse o) { |
| 1020 buildCounterListOperationsResponse++; | 1020 buildCounterListOperationsResponse++; |
| 1021 if (buildCounterListOperationsResponse < 3) { | 1021 if (buildCounterListOperationsResponse < 3) { |
| 1022 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1022 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1023 checkUnnamed492(o.operations); | 1023 checkUnnamed478(o.operations); |
| 1024 } | 1024 } |
| 1025 buildCounterListOperationsResponse--; | 1025 buildCounterListOperationsResponse--; |
| 1026 } | 1026 } |
| 1027 | 1027 |
| 1028 buildUnnamed493() { | 1028 buildUnnamed479() { |
| 1029 var o = new core.Map<core.String, core.String>(); | 1029 var o = new core.Map<core.String, core.String>(); |
| 1030 o["x"] = "foo"; | 1030 o["x"] = "foo"; |
| 1031 o["y"] = "foo"; | 1031 o["y"] = "foo"; |
| 1032 return o; | 1032 return o; |
| 1033 } | 1033 } |
| 1034 | 1034 |
| 1035 checkUnnamed493(core.Map<core.String, core.String> o) { | 1035 checkUnnamed479(core.Map<core.String, core.String> o) { |
| 1036 unittest.expect(o, unittest.hasLength(2)); | 1036 unittest.expect(o, unittest.hasLength(2)); |
| 1037 unittest.expect(o["x"], unittest.equals('foo')); | 1037 unittest.expect(o["x"], unittest.equals('foo')); |
| 1038 unittest.expect(o["y"], unittest.equals('foo')); | 1038 unittest.expect(o["y"], unittest.equals('foo')); |
| 1039 } | 1039 } |
| 1040 | 1040 |
| 1041 core.int buildCounterLoggingConfig = 0; | 1041 core.int buildCounterLoggingConfig = 0; |
| 1042 buildLoggingConfig() { | 1042 buildLoggingConfig() { |
| 1043 var o = new api.LoggingConfig(); | 1043 var o = new api.LoggingConfig(); |
| 1044 buildCounterLoggingConfig++; | 1044 buildCounterLoggingConfig++; |
| 1045 if (buildCounterLoggingConfig < 3) { | 1045 if (buildCounterLoggingConfig < 3) { |
| 1046 o.driverLogLevels = buildUnnamed493(); | 1046 o.driverLogLevels = buildUnnamed479(); |
| 1047 } | 1047 } |
| 1048 buildCounterLoggingConfig--; | 1048 buildCounterLoggingConfig--; |
| 1049 return o; | 1049 return o; |
| 1050 } | 1050 } |
| 1051 | 1051 |
| 1052 checkLoggingConfig(api.LoggingConfig o) { | 1052 checkLoggingConfig(api.LoggingConfig o) { |
| 1053 buildCounterLoggingConfig++; | 1053 buildCounterLoggingConfig++; |
| 1054 if (buildCounterLoggingConfig < 3) { | 1054 if (buildCounterLoggingConfig < 3) { |
| 1055 checkUnnamed493(o.driverLogLevels); | 1055 checkUnnamed479(o.driverLogLevels); |
| 1056 } | 1056 } |
| 1057 buildCounterLoggingConfig--; | 1057 buildCounterLoggingConfig--; |
| 1058 } | 1058 } |
| 1059 | 1059 |
| 1060 core.int buildCounterManagedGroupConfig = 0; | 1060 core.int buildCounterManagedGroupConfig = 0; |
| 1061 buildManagedGroupConfig() { | 1061 buildManagedGroupConfig() { |
| 1062 var o = new api.ManagedGroupConfig(); | 1062 var o = new api.ManagedGroupConfig(); |
| 1063 buildCounterManagedGroupConfig++; | 1063 buildCounterManagedGroupConfig++; |
| 1064 if (buildCounterManagedGroupConfig < 3) { | 1064 if (buildCounterManagedGroupConfig < 3) { |
| 1065 o.instanceGroupManagerName = "foo"; | 1065 o.instanceGroupManagerName = "foo"; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 1092 | 1092 |
| 1093 checkNodeInitializationAction(api.NodeInitializationAction o) { | 1093 checkNodeInitializationAction(api.NodeInitializationAction o) { |
| 1094 buildCounterNodeInitializationAction++; | 1094 buildCounterNodeInitializationAction++; |
| 1095 if (buildCounterNodeInitializationAction < 3) { | 1095 if (buildCounterNodeInitializationAction < 3) { |
| 1096 unittest.expect(o.executableFile, unittest.equals('foo')); | 1096 unittest.expect(o.executableFile, unittest.equals('foo')); |
| 1097 unittest.expect(o.executionTimeout, unittest.equals('foo')); | 1097 unittest.expect(o.executionTimeout, unittest.equals('foo')); |
| 1098 } | 1098 } |
| 1099 buildCounterNodeInitializationAction--; | 1099 buildCounterNodeInitializationAction--; |
| 1100 } | 1100 } |
| 1101 | 1101 |
| 1102 buildUnnamed494() { | 1102 buildUnnamed480() { |
| 1103 var o = new core.Map<core.String, core.Object>(); | 1103 var o = new core.Map<core.String, core.Object>(); |
| 1104 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1104 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1105 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1105 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1106 return o; | 1106 return o; |
| 1107 } | 1107 } |
| 1108 | 1108 |
| 1109 checkUnnamed494(core.Map<core.String, core.Object> o) { | 1109 checkUnnamed480(core.Map<core.String, core.Object> o) { |
| 1110 unittest.expect(o, unittest.hasLength(2)); | 1110 unittest.expect(o, unittest.hasLength(2)); |
| 1111 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')); | 1111 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')); |
| 1112 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')); | 1112 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')); |
| 1113 } | 1113 } |
| 1114 | 1114 |
| 1115 buildUnnamed495() { | 1115 buildUnnamed481() { |
| 1116 var o = new core.Map<core.String, core.Object>(); | 1116 var o = new core.Map<core.String, core.Object>(); |
| 1117 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1117 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1118 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1118 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1119 return o; | 1119 return o; |
| 1120 } | 1120 } |
| 1121 | 1121 |
| 1122 checkUnnamed495(core.Map<core.String, core.Object> o) { | 1122 checkUnnamed481(core.Map<core.String, core.Object> o) { |
| 1123 unittest.expect(o, unittest.hasLength(2)); | 1123 unittest.expect(o, unittest.hasLength(2)); |
| 1124 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')); | 1124 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')); |
| 1125 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')); | 1125 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')); |
| 1126 } | 1126 } |
| 1127 | 1127 |
| 1128 core.int buildCounterOperation = 0; | 1128 core.int buildCounterOperation = 0; |
| 1129 buildOperation() { | 1129 buildOperation() { |
| 1130 var o = new api.Operation(); | 1130 var o = new api.Operation(); |
| 1131 buildCounterOperation++; | 1131 buildCounterOperation++; |
| 1132 if (buildCounterOperation < 3) { | 1132 if (buildCounterOperation < 3) { |
| 1133 o.done = true; | 1133 o.done = true; |
| 1134 o.error = buildStatus(); | 1134 o.error = buildStatus(); |
| 1135 o.metadata = buildUnnamed494(); | 1135 o.metadata = buildUnnamed480(); |
| 1136 o.name = "foo"; | 1136 o.name = "foo"; |
| 1137 o.response = buildUnnamed495(); | 1137 o.response = buildUnnamed481(); |
| 1138 } | 1138 } |
| 1139 buildCounterOperation--; | 1139 buildCounterOperation--; |
| 1140 return o; | 1140 return o; |
| 1141 } | 1141 } |
| 1142 | 1142 |
| 1143 checkOperation(api.Operation o) { | 1143 checkOperation(api.Operation o) { |
| 1144 buildCounterOperation++; | 1144 buildCounterOperation++; |
| 1145 if (buildCounterOperation < 3) { | 1145 if (buildCounterOperation < 3) { |
| 1146 unittest.expect(o.done, unittest.isTrue); | 1146 unittest.expect(o.done, unittest.isTrue); |
| 1147 checkStatus(o.error); | 1147 checkStatus(o.error); |
| 1148 checkUnnamed494(o.metadata); | 1148 checkUnnamed480(o.metadata); |
| 1149 unittest.expect(o.name, unittest.equals('foo')); | 1149 unittest.expect(o.name, unittest.equals('foo')); |
| 1150 checkUnnamed495(o.response); | 1150 checkUnnamed481(o.response); |
| 1151 } | 1151 } |
| 1152 buildCounterOperation--; | 1152 buildCounterOperation--; |
| 1153 } | 1153 } |
| 1154 | 1154 |
| 1155 buildUnnamed496() { | 1155 buildUnnamed482() { |
| 1156 var o = new core.List<api.OperationStatus>(); | 1156 var o = new core.List<api.OperationStatus>(); |
| 1157 o.add(buildOperationStatus()); | 1157 o.add(buildOperationStatus()); |
| 1158 o.add(buildOperationStatus()); | 1158 o.add(buildOperationStatus()); |
| 1159 return o; | 1159 return o; |
| 1160 } | 1160 } |
| 1161 | 1161 |
| 1162 checkUnnamed496(core.List<api.OperationStatus> o) { | 1162 checkUnnamed482(core.List<api.OperationStatus> o) { |
| 1163 unittest.expect(o, unittest.hasLength(2)); | 1163 unittest.expect(o, unittest.hasLength(2)); |
| 1164 checkOperationStatus(o[0]); | 1164 checkOperationStatus(o[0]); |
| 1165 checkOperationStatus(o[1]); | 1165 checkOperationStatus(o[1]); |
| 1166 } | 1166 } |
| 1167 | 1167 |
| 1168 buildUnnamed497() { | 1168 buildUnnamed483() { |
| 1169 var o = new core.List<core.String>(); | 1169 var o = new core.List<core.String>(); |
| 1170 o.add("foo"); | 1170 o.add("foo"); |
| 1171 o.add("foo"); | 1171 o.add("foo"); |
| 1172 return o; | 1172 return o; |
| 1173 } | 1173 } |
| 1174 | 1174 |
| 1175 checkUnnamed497(core.List<core.String> o) { | 1175 checkUnnamed483(core.List<core.String> o) { |
| 1176 unittest.expect(o, unittest.hasLength(2)); | 1176 unittest.expect(o, unittest.hasLength(2)); |
| 1177 unittest.expect(o[0], unittest.equals('foo')); | 1177 unittest.expect(o[0], unittest.equals('foo')); |
| 1178 unittest.expect(o[1], unittest.equals('foo')); | 1178 unittest.expect(o[1], unittest.equals('foo')); |
| 1179 } | 1179 } |
| 1180 | 1180 |
| 1181 core.int buildCounterOperationMetadata = 0; | 1181 core.int buildCounterOperationMetadata = 0; |
| 1182 buildOperationMetadata() { | 1182 buildOperationMetadata() { |
| 1183 var o = new api.OperationMetadata(); | 1183 var o = new api.OperationMetadata(); |
| 1184 buildCounterOperationMetadata++; | 1184 buildCounterOperationMetadata++; |
| 1185 if (buildCounterOperationMetadata < 3) { | 1185 if (buildCounterOperationMetadata < 3) { |
| 1186 o.clusterName = "foo"; | 1186 o.clusterName = "foo"; |
| 1187 o.clusterUuid = "foo"; | 1187 o.clusterUuid = "foo"; |
| 1188 o.description = "foo"; | 1188 o.description = "foo"; |
| 1189 o.details = "foo"; | 1189 o.details = "foo"; |
| 1190 o.endTime = "foo"; | 1190 o.endTime = "foo"; |
| 1191 o.innerState = "foo"; | 1191 o.innerState = "foo"; |
| 1192 o.insertTime = "foo"; | 1192 o.insertTime = "foo"; |
| 1193 o.operationType = "foo"; | 1193 o.operationType = "foo"; |
| 1194 o.startTime = "foo"; | 1194 o.startTime = "foo"; |
| 1195 o.state = "foo"; | 1195 o.state = "foo"; |
| 1196 o.status = buildOperationStatus(); | 1196 o.status = buildOperationStatus(); |
| 1197 o.statusHistory = buildUnnamed496(); | 1197 o.statusHistory = buildUnnamed482(); |
| 1198 o.warnings = buildUnnamed497(); | 1198 o.warnings = buildUnnamed483(); |
| 1199 } | 1199 } |
| 1200 buildCounterOperationMetadata--; | 1200 buildCounterOperationMetadata--; |
| 1201 return o; | 1201 return o; |
| 1202 } | 1202 } |
| 1203 | 1203 |
| 1204 checkOperationMetadata(api.OperationMetadata o) { | 1204 checkOperationMetadata(api.OperationMetadata o) { |
| 1205 buildCounterOperationMetadata++; | 1205 buildCounterOperationMetadata++; |
| 1206 if (buildCounterOperationMetadata < 3) { | 1206 if (buildCounterOperationMetadata < 3) { |
| 1207 unittest.expect(o.clusterName, unittest.equals('foo')); | 1207 unittest.expect(o.clusterName, unittest.equals('foo')); |
| 1208 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 1208 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
| 1209 unittest.expect(o.description, unittest.equals('foo')); | 1209 unittest.expect(o.description, unittest.equals('foo')); |
| 1210 unittest.expect(o.details, unittest.equals('foo')); | 1210 unittest.expect(o.details, unittest.equals('foo')); |
| 1211 unittest.expect(o.endTime, unittest.equals('foo')); | 1211 unittest.expect(o.endTime, unittest.equals('foo')); |
| 1212 unittest.expect(o.innerState, unittest.equals('foo')); | 1212 unittest.expect(o.innerState, unittest.equals('foo')); |
| 1213 unittest.expect(o.insertTime, unittest.equals('foo')); | 1213 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 1214 unittest.expect(o.operationType, unittest.equals('foo')); | 1214 unittest.expect(o.operationType, unittest.equals('foo')); |
| 1215 unittest.expect(o.startTime, unittest.equals('foo')); | 1215 unittest.expect(o.startTime, unittest.equals('foo')); |
| 1216 unittest.expect(o.state, unittest.equals('foo')); | 1216 unittest.expect(o.state, unittest.equals('foo')); |
| 1217 checkOperationStatus(o.status); | 1217 checkOperationStatus(o.status); |
| 1218 checkUnnamed496(o.statusHistory); | 1218 checkUnnamed482(o.statusHistory); |
| 1219 checkUnnamed497(o.warnings); | 1219 checkUnnamed483(o.warnings); |
| 1220 } | 1220 } |
| 1221 buildCounterOperationMetadata--; | 1221 buildCounterOperationMetadata--; |
| 1222 } | 1222 } |
| 1223 | 1223 |
| 1224 core.int buildCounterOperationStatus = 0; | 1224 core.int buildCounterOperationStatus = 0; |
| 1225 buildOperationStatus() { | 1225 buildOperationStatus() { |
| 1226 var o = new api.OperationStatus(); | 1226 var o = new api.OperationStatus(); |
| 1227 buildCounterOperationStatus++; | 1227 buildCounterOperationStatus++; |
| 1228 if (buildCounterOperationStatus < 3) { | 1228 if (buildCounterOperationStatus < 3) { |
| 1229 o.details = "foo"; | 1229 o.details = "foo"; |
| 1230 o.innerState = "foo"; | 1230 o.innerState = "foo"; |
| 1231 o.state = "foo"; | 1231 o.state = "foo"; |
| 1232 o.stateStartTime = "foo"; | 1232 o.stateStartTime = "foo"; |
| 1233 } | 1233 } |
| 1234 buildCounterOperationStatus--; | 1234 buildCounterOperationStatus--; |
| 1235 return o; | 1235 return o; |
| 1236 } | 1236 } |
| 1237 | 1237 |
| 1238 checkOperationStatus(api.OperationStatus o) { | 1238 checkOperationStatus(api.OperationStatus o) { |
| 1239 buildCounterOperationStatus++; | 1239 buildCounterOperationStatus++; |
| 1240 if (buildCounterOperationStatus < 3) { | 1240 if (buildCounterOperationStatus < 3) { |
| 1241 unittest.expect(o.details, unittest.equals('foo')); | 1241 unittest.expect(o.details, unittest.equals('foo')); |
| 1242 unittest.expect(o.innerState, unittest.equals('foo')); | 1242 unittest.expect(o.innerState, unittest.equals('foo')); |
| 1243 unittest.expect(o.state, unittest.equals('foo')); | 1243 unittest.expect(o.state, unittest.equals('foo')); |
| 1244 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 1244 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
| 1245 } | 1245 } |
| 1246 buildCounterOperationStatus--; | 1246 buildCounterOperationStatus--; |
| 1247 } | 1247 } |
| 1248 | 1248 |
| 1249 buildUnnamed498() { | 1249 buildUnnamed484() { |
| 1250 var o = new core.List<core.String>(); | 1250 var o = new core.List<core.String>(); |
| 1251 o.add("foo"); | 1251 o.add("foo"); |
| 1252 o.add("foo"); | 1252 o.add("foo"); |
| 1253 return o; | 1253 return o; |
| 1254 } | 1254 } |
| 1255 | 1255 |
| 1256 checkUnnamed498(core.List<core.String> o) { | 1256 checkUnnamed484(core.List<core.String> o) { |
| 1257 unittest.expect(o, unittest.hasLength(2)); | 1257 unittest.expect(o, unittest.hasLength(2)); |
| 1258 unittest.expect(o[0], unittest.equals('foo')); | 1258 unittest.expect(o[0], unittest.equals('foo')); |
| 1259 unittest.expect(o[1], unittest.equals('foo')); | 1259 unittest.expect(o[1], unittest.equals('foo')); |
| 1260 } | 1260 } |
| 1261 | 1261 |
| 1262 buildUnnamed499() { | 1262 buildUnnamed485() { |
| 1263 var o = new core.Map<core.String, core.String>(); | 1263 var o = new core.Map<core.String, core.String>(); |
| 1264 o["x"] = "foo"; | 1264 o["x"] = "foo"; |
| 1265 o["y"] = "foo"; | 1265 o["y"] = "foo"; |
| 1266 return o; | 1266 return o; |
| 1267 } | 1267 } |
| 1268 | 1268 |
| 1269 checkUnnamed499(core.Map<core.String, core.String> o) { | 1269 checkUnnamed485(core.Map<core.String, core.String> o) { |
| 1270 unittest.expect(o, unittest.hasLength(2)); | 1270 unittest.expect(o, unittest.hasLength(2)); |
| 1271 unittest.expect(o["x"], unittest.equals('foo')); | 1271 unittest.expect(o["x"], unittest.equals('foo')); |
| 1272 unittest.expect(o["y"], unittest.equals('foo')); | 1272 unittest.expect(o["y"], unittest.equals('foo')); |
| 1273 } | 1273 } |
| 1274 | 1274 |
| 1275 buildUnnamed500() { | 1275 buildUnnamed486() { |
| 1276 var o = new core.Map<core.String, core.String>(); | 1276 var o = new core.Map<core.String, core.String>(); |
| 1277 o["x"] = "foo"; | 1277 o["x"] = "foo"; |
| 1278 o["y"] = "foo"; | 1278 o["y"] = "foo"; |
| 1279 return o; | 1279 return o; |
| 1280 } | 1280 } |
| 1281 | 1281 |
| 1282 checkUnnamed500(core.Map<core.String, core.String> o) { | 1282 checkUnnamed486(core.Map<core.String, core.String> o) { |
| 1283 unittest.expect(o, unittest.hasLength(2)); | 1283 unittest.expect(o, unittest.hasLength(2)); |
| 1284 unittest.expect(o["x"], unittest.equals('foo')); | 1284 unittest.expect(o["x"], unittest.equals('foo')); |
| 1285 unittest.expect(o["y"], unittest.equals('foo')); | 1285 unittest.expect(o["y"], unittest.equals('foo')); |
| 1286 } | 1286 } |
| 1287 | 1287 |
| 1288 core.int buildCounterPigJob = 0; | 1288 core.int buildCounterPigJob = 0; |
| 1289 buildPigJob() { | 1289 buildPigJob() { |
| 1290 var o = new api.PigJob(); | 1290 var o = new api.PigJob(); |
| 1291 buildCounterPigJob++; | 1291 buildCounterPigJob++; |
| 1292 if (buildCounterPigJob < 3) { | 1292 if (buildCounterPigJob < 3) { |
| 1293 o.continueOnFailure = true; | 1293 o.continueOnFailure = true; |
| 1294 o.jarFileUris = buildUnnamed498(); | 1294 o.jarFileUris = buildUnnamed484(); |
| 1295 o.loggingConfig = buildLoggingConfig(); | 1295 o.loggingConfig = buildLoggingConfig(); |
| 1296 o.properties = buildUnnamed499(); | 1296 o.properties = buildUnnamed485(); |
| 1297 o.queryFileUri = "foo"; | 1297 o.queryFileUri = "foo"; |
| 1298 o.queryList = buildQueryList(); | 1298 o.queryList = buildQueryList(); |
| 1299 o.scriptVariables = buildUnnamed500(); | 1299 o.scriptVariables = buildUnnamed486(); |
| 1300 } | 1300 } |
| 1301 buildCounterPigJob--; | 1301 buildCounterPigJob--; |
| 1302 return o; | 1302 return o; |
| 1303 } | 1303 } |
| 1304 | 1304 |
| 1305 checkPigJob(api.PigJob o) { | 1305 checkPigJob(api.PigJob o) { |
| 1306 buildCounterPigJob++; | 1306 buildCounterPigJob++; |
| 1307 if (buildCounterPigJob < 3) { | 1307 if (buildCounterPigJob < 3) { |
| 1308 unittest.expect(o.continueOnFailure, unittest.isTrue); | 1308 unittest.expect(o.continueOnFailure, unittest.isTrue); |
| 1309 checkUnnamed498(o.jarFileUris); | 1309 checkUnnamed484(o.jarFileUris); |
| 1310 checkLoggingConfig(o.loggingConfig); | 1310 checkLoggingConfig(o.loggingConfig); |
| 1311 checkUnnamed499(o.properties); | 1311 checkUnnamed485(o.properties); |
| 1312 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1312 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
| 1313 checkQueryList(o.queryList); | 1313 checkQueryList(o.queryList); |
| 1314 checkUnnamed500(o.scriptVariables); | 1314 checkUnnamed486(o.scriptVariables); |
| 1315 } | 1315 } |
| 1316 buildCounterPigJob--; | 1316 buildCounterPigJob--; |
| 1317 } | 1317 } |
| 1318 | 1318 |
| 1319 buildUnnamed501() { | 1319 buildUnnamed487() { |
| 1320 var o = new core.List<core.String>(); | 1320 var o = new core.List<core.String>(); |
| 1321 o.add("foo"); | 1321 o.add("foo"); |
| 1322 o.add("foo"); | 1322 o.add("foo"); |
| 1323 return o; | 1323 return o; |
| 1324 } | 1324 } |
| 1325 | 1325 |
| 1326 checkUnnamed501(core.List<core.String> o) { | 1326 checkUnnamed487(core.List<core.String> o) { |
| 1327 unittest.expect(o, unittest.hasLength(2)); | 1327 unittest.expect(o, unittest.hasLength(2)); |
| 1328 unittest.expect(o[0], unittest.equals('foo')); | 1328 unittest.expect(o[0], unittest.equals('foo')); |
| 1329 unittest.expect(o[1], unittest.equals('foo')); | 1329 unittest.expect(o[1], unittest.equals('foo')); |
| 1330 } | 1330 } |
| 1331 | 1331 |
| 1332 buildUnnamed502() { | 1332 buildUnnamed488() { |
| 1333 var o = new core.List<core.String>(); | 1333 var o = new core.List<core.String>(); |
| 1334 o.add("foo"); | 1334 o.add("foo"); |
| 1335 o.add("foo"); | 1335 o.add("foo"); |
| 1336 return o; | 1336 return o; |
| 1337 } | 1337 } |
| 1338 | 1338 |
| 1339 checkUnnamed502(core.List<core.String> o) { | 1339 checkUnnamed488(core.List<core.String> o) { |
| 1340 unittest.expect(o, unittest.hasLength(2)); | 1340 unittest.expect(o, unittest.hasLength(2)); |
| 1341 unittest.expect(o[0], unittest.equals('foo')); | 1341 unittest.expect(o[0], unittest.equals('foo')); |
| 1342 unittest.expect(o[1], unittest.equals('foo')); | 1342 unittest.expect(o[1], unittest.equals('foo')); |
| 1343 } | 1343 } |
| 1344 | 1344 |
| 1345 buildUnnamed503() { | 1345 buildUnnamed489() { |
| 1346 var o = new core.List<core.String>(); | 1346 var o = new core.List<core.String>(); |
| 1347 o.add("foo"); | 1347 o.add("foo"); |
| 1348 o.add("foo"); | 1348 o.add("foo"); |
| 1349 return o; | 1349 return o; |
| 1350 } | 1350 } |
| 1351 | 1351 |
| 1352 checkUnnamed503(core.List<core.String> o) { | 1352 checkUnnamed489(core.List<core.String> o) { |
| 1353 unittest.expect(o, unittest.hasLength(2)); | 1353 unittest.expect(o, unittest.hasLength(2)); |
| 1354 unittest.expect(o[0], unittest.equals('foo')); | 1354 unittest.expect(o[0], unittest.equals('foo')); |
| 1355 unittest.expect(o[1], unittest.equals('foo')); | 1355 unittest.expect(o[1], unittest.equals('foo')); |
| 1356 } | 1356 } |
| 1357 | 1357 |
| 1358 buildUnnamed504() { | 1358 buildUnnamed490() { |
| 1359 var o = new core.List<core.String>(); | 1359 var o = new core.List<core.String>(); |
| 1360 o.add("foo"); | 1360 o.add("foo"); |
| 1361 o.add("foo"); | 1361 o.add("foo"); |
| 1362 return o; | 1362 return o; |
| 1363 } | 1363 } |
| 1364 | 1364 |
| 1365 checkUnnamed504(core.List<core.String> o) { | 1365 checkUnnamed490(core.List<core.String> o) { |
| 1366 unittest.expect(o, unittest.hasLength(2)); | 1366 unittest.expect(o, unittest.hasLength(2)); |
| 1367 unittest.expect(o[0], unittest.equals('foo')); | 1367 unittest.expect(o[0], unittest.equals('foo')); |
| 1368 unittest.expect(o[1], unittest.equals('foo')); | 1368 unittest.expect(o[1], unittest.equals('foo')); |
| 1369 } | 1369 } |
| 1370 | 1370 |
| 1371 buildUnnamed505() { | 1371 buildUnnamed491() { |
| 1372 var o = new core.Map<core.String, core.String>(); | 1372 var o = new core.Map<core.String, core.String>(); |
| 1373 o["x"] = "foo"; | 1373 o["x"] = "foo"; |
| 1374 o["y"] = "foo"; | 1374 o["y"] = "foo"; |
| 1375 return o; | 1375 return o; |
| 1376 } | 1376 } |
| 1377 | 1377 |
| 1378 checkUnnamed505(core.Map<core.String, core.String> o) { | 1378 checkUnnamed491(core.Map<core.String, core.String> o) { |
| 1379 unittest.expect(o, unittest.hasLength(2)); | 1379 unittest.expect(o, unittest.hasLength(2)); |
| 1380 unittest.expect(o["x"], unittest.equals('foo')); | 1380 unittest.expect(o["x"], unittest.equals('foo')); |
| 1381 unittest.expect(o["y"], unittest.equals('foo')); | 1381 unittest.expect(o["y"], unittest.equals('foo')); |
| 1382 } | 1382 } |
| 1383 | 1383 |
| 1384 buildUnnamed506() { | 1384 buildUnnamed492() { |
| 1385 var o = new core.List<core.String>(); | 1385 var o = new core.List<core.String>(); |
| 1386 o.add("foo"); | 1386 o.add("foo"); |
| 1387 o.add("foo"); | 1387 o.add("foo"); |
| 1388 return o; | 1388 return o; |
| 1389 } | 1389 } |
| 1390 | 1390 |
| 1391 checkUnnamed506(core.List<core.String> o) { | 1391 checkUnnamed492(core.List<core.String> o) { |
| 1392 unittest.expect(o, unittest.hasLength(2)); | 1392 unittest.expect(o, unittest.hasLength(2)); |
| 1393 unittest.expect(o[0], unittest.equals('foo')); | 1393 unittest.expect(o[0], unittest.equals('foo')); |
| 1394 unittest.expect(o[1], unittest.equals('foo')); | 1394 unittest.expect(o[1], unittest.equals('foo')); |
| 1395 } | 1395 } |
| 1396 | 1396 |
| 1397 core.int buildCounterPySparkJob = 0; | 1397 core.int buildCounterPySparkJob = 0; |
| 1398 buildPySparkJob() { | 1398 buildPySparkJob() { |
| 1399 var o = new api.PySparkJob(); | 1399 var o = new api.PySparkJob(); |
| 1400 buildCounterPySparkJob++; | 1400 buildCounterPySparkJob++; |
| 1401 if (buildCounterPySparkJob < 3) { | 1401 if (buildCounterPySparkJob < 3) { |
| 1402 o.archiveUris = buildUnnamed501(); | 1402 o.archiveUris = buildUnnamed487(); |
| 1403 o.args = buildUnnamed502(); | 1403 o.args = buildUnnamed488(); |
| 1404 o.fileUris = buildUnnamed503(); | 1404 o.fileUris = buildUnnamed489(); |
| 1405 o.jarFileUris = buildUnnamed504(); | 1405 o.jarFileUris = buildUnnamed490(); |
| 1406 o.loggingConfig = buildLoggingConfig(); | 1406 o.loggingConfig = buildLoggingConfig(); |
| 1407 o.mainPythonFileUri = "foo"; | 1407 o.mainPythonFileUri = "foo"; |
| 1408 o.properties = buildUnnamed505(); | 1408 o.properties = buildUnnamed491(); |
| 1409 o.pythonFileUris = buildUnnamed506(); | 1409 o.pythonFileUris = buildUnnamed492(); |
| 1410 } | 1410 } |
| 1411 buildCounterPySparkJob--; | 1411 buildCounterPySparkJob--; |
| 1412 return o; | 1412 return o; |
| 1413 } | 1413 } |
| 1414 | 1414 |
| 1415 checkPySparkJob(api.PySparkJob o) { | 1415 checkPySparkJob(api.PySparkJob o) { |
| 1416 buildCounterPySparkJob++; | 1416 buildCounterPySparkJob++; |
| 1417 if (buildCounterPySparkJob < 3) { | 1417 if (buildCounterPySparkJob < 3) { |
| 1418 checkUnnamed501(o.archiveUris); | 1418 checkUnnamed487(o.archiveUris); |
| 1419 checkUnnamed502(o.args); | 1419 checkUnnamed488(o.args); |
| 1420 checkUnnamed503(o.fileUris); | 1420 checkUnnamed489(o.fileUris); |
| 1421 checkUnnamed504(o.jarFileUris); | 1421 checkUnnamed490(o.jarFileUris); |
| 1422 checkLoggingConfig(o.loggingConfig); | 1422 checkLoggingConfig(o.loggingConfig); |
| 1423 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); | 1423 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); |
| 1424 checkUnnamed505(o.properties); | 1424 checkUnnamed491(o.properties); |
| 1425 checkUnnamed506(o.pythonFileUris); | 1425 checkUnnamed492(o.pythonFileUris); |
| 1426 } | 1426 } |
| 1427 buildCounterPySparkJob--; | 1427 buildCounterPySparkJob--; |
| 1428 } | 1428 } |
| 1429 | 1429 |
| 1430 buildUnnamed507() { | 1430 buildUnnamed493() { |
| 1431 var o = new core.List<core.String>(); | 1431 var o = new core.List<core.String>(); |
| 1432 o.add("foo"); | 1432 o.add("foo"); |
| 1433 o.add("foo"); | 1433 o.add("foo"); |
| 1434 return o; | 1434 return o; |
| 1435 } | 1435 } |
| 1436 | 1436 |
| 1437 checkUnnamed507(core.List<core.String> o) { | 1437 checkUnnamed493(core.List<core.String> o) { |
| 1438 unittest.expect(o, unittest.hasLength(2)); | 1438 unittest.expect(o, unittest.hasLength(2)); |
| 1439 unittest.expect(o[0], unittest.equals('foo')); | 1439 unittest.expect(o[0], unittest.equals('foo')); |
| 1440 unittest.expect(o[1], unittest.equals('foo')); | 1440 unittest.expect(o[1], unittest.equals('foo')); |
| 1441 } | 1441 } |
| 1442 | 1442 |
| 1443 core.int buildCounterQueryList = 0; | 1443 core.int buildCounterQueryList = 0; |
| 1444 buildQueryList() { | 1444 buildQueryList() { |
| 1445 var o = new api.QueryList(); | 1445 var o = new api.QueryList(); |
| 1446 buildCounterQueryList++; | 1446 buildCounterQueryList++; |
| 1447 if (buildCounterQueryList < 3) { | 1447 if (buildCounterQueryList < 3) { |
| 1448 o.queries = buildUnnamed507(); | 1448 o.queries = buildUnnamed493(); |
| 1449 } | 1449 } |
| 1450 buildCounterQueryList--; | 1450 buildCounterQueryList--; |
| 1451 return o; | 1451 return o; |
| 1452 } | 1452 } |
| 1453 | 1453 |
| 1454 checkQueryList(api.QueryList o) { | 1454 checkQueryList(api.QueryList o) { |
| 1455 buildCounterQueryList++; | 1455 buildCounterQueryList++; |
| 1456 if (buildCounterQueryList < 3) { | 1456 if (buildCounterQueryList < 3) { |
| 1457 checkUnnamed507(o.queries); | 1457 checkUnnamed493(o.queries); |
| 1458 } | 1458 } |
| 1459 buildCounterQueryList--; | 1459 buildCounterQueryList--; |
| 1460 } | 1460 } |
| 1461 | 1461 |
| 1462 buildUnnamed508() { | 1462 buildUnnamed494() { |
| 1463 var o = new core.Map<core.String, core.String>(); | 1463 var o = new core.Map<core.String, core.String>(); |
| 1464 o["x"] = "foo"; | 1464 o["x"] = "foo"; |
| 1465 o["y"] = "foo"; | 1465 o["y"] = "foo"; |
| 1466 return o; | 1466 return o; |
| 1467 } | 1467 } |
| 1468 | 1468 |
| 1469 checkUnnamed508(core.Map<core.String, core.String> o) { | 1469 checkUnnamed494(core.Map<core.String, core.String> o) { |
| 1470 unittest.expect(o, unittest.hasLength(2)); | 1470 unittest.expect(o, unittest.hasLength(2)); |
| 1471 unittest.expect(o["x"], unittest.equals('foo')); | 1471 unittest.expect(o["x"], unittest.equals('foo')); |
| 1472 unittest.expect(o["y"], unittest.equals('foo')); | 1472 unittest.expect(o["y"], unittest.equals('foo')); |
| 1473 } | 1473 } |
| 1474 | 1474 |
| 1475 core.int buildCounterSoftwareConfig = 0; | 1475 core.int buildCounterSoftwareConfig = 0; |
| 1476 buildSoftwareConfig() { | 1476 buildSoftwareConfig() { |
| 1477 var o = new api.SoftwareConfig(); | 1477 var o = new api.SoftwareConfig(); |
| 1478 buildCounterSoftwareConfig++; | 1478 buildCounterSoftwareConfig++; |
| 1479 if (buildCounterSoftwareConfig < 3) { | 1479 if (buildCounterSoftwareConfig < 3) { |
| 1480 o.imageVersion = "foo"; | 1480 o.imageVersion = "foo"; |
| 1481 o.properties = buildUnnamed508(); | 1481 o.properties = buildUnnamed494(); |
| 1482 } | 1482 } |
| 1483 buildCounterSoftwareConfig--; | 1483 buildCounterSoftwareConfig--; |
| 1484 return o; | 1484 return o; |
| 1485 } | 1485 } |
| 1486 | 1486 |
| 1487 checkSoftwareConfig(api.SoftwareConfig o) { | 1487 checkSoftwareConfig(api.SoftwareConfig o) { |
| 1488 buildCounterSoftwareConfig++; | 1488 buildCounterSoftwareConfig++; |
| 1489 if (buildCounterSoftwareConfig < 3) { | 1489 if (buildCounterSoftwareConfig < 3) { |
| 1490 unittest.expect(o.imageVersion, unittest.equals('foo')); | 1490 unittest.expect(o.imageVersion, unittest.equals('foo')); |
| 1491 checkUnnamed508(o.properties); | 1491 checkUnnamed494(o.properties); |
| 1492 } | 1492 } |
| 1493 buildCounterSoftwareConfig--; | 1493 buildCounterSoftwareConfig--; |
| 1494 } | 1494 } |
| 1495 | 1495 |
| 1496 buildUnnamed509() { | 1496 buildUnnamed495() { |
| 1497 var o = new core.List<core.String>(); | 1497 var o = new core.List<core.String>(); |
| 1498 o.add("foo"); | 1498 o.add("foo"); |
| 1499 o.add("foo"); | 1499 o.add("foo"); |
| 1500 return o; | 1500 return o; |
| 1501 } | 1501 } |
| 1502 | 1502 |
| 1503 checkUnnamed509(core.List<core.String> o) { | 1503 checkUnnamed495(core.List<core.String> o) { |
| 1504 unittest.expect(o, unittest.hasLength(2)); | 1504 unittest.expect(o, unittest.hasLength(2)); |
| 1505 unittest.expect(o[0], unittest.equals('foo')); | 1505 unittest.expect(o[0], unittest.equals('foo')); |
| 1506 unittest.expect(o[1], unittest.equals('foo')); | 1506 unittest.expect(o[1], unittest.equals('foo')); |
| 1507 } | 1507 } |
| 1508 | 1508 |
| 1509 buildUnnamed510() { | 1509 buildUnnamed496() { |
| 1510 var o = new core.List<core.String>(); | 1510 var o = new core.List<core.String>(); |
| 1511 o.add("foo"); | 1511 o.add("foo"); |
| 1512 o.add("foo"); | 1512 o.add("foo"); |
| 1513 return o; | 1513 return o; |
| 1514 } | 1514 } |
| 1515 | 1515 |
| 1516 checkUnnamed510(core.List<core.String> o) { | 1516 checkUnnamed496(core.List<core.String> o) { |
| 1517 unittest.expect(o, unittest.hasLength(2)); | 1517 unittest.expect(o, unittest.hasLength(2)); |
| 1518 unittest.expect(o[0], unittest.equals('foo')); | 1518 unittest.expect(o[0], unittest.equals('foo')); |
| 1519 unittest.expect(o[1], unittest.equals('foo')); | 1519 unittest.expect(o[1], unittest.equals('foo')); |
| 1520 } | 1520 } |
| 1521 | 1521 |
| 1522 buildUnnamed511() { | 1522 buildUnnamed497() { |
| 1523 var o = new core.List<core.String>(); | 1523 var o = new core.List<core.String>(); |
| 1524 o.add("foo"); | 1524 o.add("foo"); |
| 1525 o.add("foo"); | 1525 o.add("foo"); |
| 1526 return o; | 1526 return o; |
| 1527 } | 1527 } |
| 1528 | 1528 |
| 1529 checkUnnamed511(core.List<core.String> o) { | 1529 checkUnnamed497(core.List<core.String> o) { |
| 1530 unittest.expect(o, unittest.hasLength(2)); | 1530 unittest.expect(o, unittest.hasLength(2)); |
| 1531 unittest.expect(o[0], unittest.equals('foo')); | 1531 unittest.expect(o[0], unittest.equals('foo')); |
| 1532 unittest.expect(o[1], unittest.equals('foo')); | 1532 unittest.expect(o[1], unittest.equals('foo')); |
| 1533 } | 1533 } |
| 1534 | 1534 |
| 1535 buildUnnamed512() { | 1535 buildUnnamed498() { |
| 1536 var o = new core.List<core.String>(); | 1536 var o = new core.List<core.String>(); |
| 1537 o.add("foo"); | 1537 o.add("foo"); |
| 1538 o.add("foo"); | 1538 o.add("foo"); |
| 1539 return o; | 1539 return o; |
| 1540 } | 1540 } |
| 1541 | 1541 |
| 1542 checkUnnamed512(core.List<core.String> o) { | 1542 checkUnnamed498(core.List<core.String> o) { |
| 1543 unittest.expect(o, unittest.hasLength(2)); | 1543 unittest.expect(o, unittest.hasLength(2)); |
| 1544 unittest.expect(o[0], unittest.equals('foo')); | 1544 unittest.expect(o[0], unittest.equals('foo')); |
| 1545 unittest.expect(o[1], unittest.equals('foo')); | 1545 unittest.expect(o[1], unittest.equals('foo')); |
| 1546 } | 1546 } |
| 1547 | 1547 |
| 1548 buildUnnamed513() { | 1548 buildUnnamed499() { |
| 1549 var o = new core.Map<core.String, core.String>(); | 1549 var o = new core.Map<core.String, core.String>(); |
| 1550 o["x"] = "foo"; | 1550 o["x"] = "foo"; |
| 1551 o["y"] = "foo"; | 1551 o["y"] = "foo"; |
| 1552 return o; | 1552 return o; |
| 1553 } | 1553 } |
| 1554 | 1554 |
| 1555 checkUnnamed513(core.Map<core.String, core.String> o) { | 1555 checkUnnamed499(core.Map<core.String, core.String> o) { |
| 1556 unittest.expect(o, unittest.hasLength(2)); | 1556 unittest.expect(o, unittest.hasLength(2)); |
| 1557 unittest.expect(o["x"], unittest.equals('foo')); | 1557 unittest.expect(o["x"], unittest.equals('foo')); |
| 1558 unittest.expect(o["y"], unittest.equals('foo')); | 1558 unittest.expect(o["y"], unittest.equals('foo')); |
| 1559 } | 1559 } |
| 1560 | 1560 |
| 1561 core.int buildCounterSparkJob = 0; | 1561 core.int buildCounterSparkJob = 0; |
| 1562 buildSparkJob() { | 1562 buildSparkJob() { |
| 1563 var o = new api.SparkJob(); | 1563 var o = new api.SparkJob(); |
| 1564 buildCounterSparkJob++; | 1564 buildCounterSparkJob++; |
| 1565 if (buildCounterSparkJob < 3) { | 1565 if (buildCounterSparkJob < 3) { |
| 1566 o.archiveUris = buildUnnamed509(); | 1566 o.archiveUris = buildUnnamed495(); |
| 1567 o.args = buildUnnamed510(); | 1567 o.args = buildUnnamed496(); |
| 1568 o.fileUris = buildUnnamed511(); | 1568 o.fileUris = buildUnnamed497(); |
| 1569 o.jarFileUris = buildUnnamed512(); | 1569 o.jarFileUris = buildUnnamed498(); |
| 1570 o.loggingConfig = buildLoggingConfig(); | 1570 o.loggingConfig = buildLoggingConfig(); |
| 1571 o.mainClass = "foo"; | 1571 o.mainClass = "foo"; |
| 1572 o.mainJarFileUri = "foo"; | 1572 o.mainJarFileUri = "foo"; |
| 1573 o.properties = buildUnnamed513(); | 1573 o.properties = buildUnnamed499(); |
| 1574 } | 1574 } |
| 1575 buildCounterSparkJob--; | 1575 buildCounterSparkJob--; |
| 1576 return o; | 1576 return o; |
| 1577 } | 1577 } |
| 1578 | 1578 |
| 1579 checkSparkJob(api.SparkJob o) { | 1579 checkSparkJob(api.SparkJob o) { |
| 1580 buildCounterSparkJob++; | 1580 buildCounterSparkJob++; |
| 1581 if (buildCounterSparkJob < 3) { | 1581 if (buildCounterSparkJob < 3) { |
| 1582 checkUnnamed509(o.archiveUris); | 1582 checkUnnamed495(o.archiveUris); |
| 1583 checkUnnamed510(o.args); | 1583 checkUnnamed496(o.args); |
| 1584 checkUnnamed511(o.fileUris); | 1584 checkUnnamed497(o.fileUris); |
| 1585 checkUnnamed512(o.jarFileUris); | 1585 checkUnnamed498(o.jarFileUris); |
| 1586 checkLoggingConfig(o.loggingConfig); | 1586 checkLoggingConfig(o.loggingConfig); |
| 1587 unittest.expect(o.mainClass, unittest.equals('foo')); | 1587 unittest.expect(o.mainClass, unittest.equals('foo')); |
| 1588 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 1588 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
| 1589 checkUnnamed513(o.properties); | 1589 checkUnnamed499(o.properties); |
| 1590 } | 1590 } |
| 1591 buildCounterSparkJob--; | 1591 buildCounterSparkJob--; |
| 1592 } | 1592 } |
| 1593 | 1593 |
| 1594 buildUnnamed514() { | 1594 buildUnnamed500() { |
| 1595 var o = new core.List<core.String>(); | 1595 var o = new core.List<core.String>(); |
| 1596 o.add("foo"); | 1596 o.add("foo"); |
| 1597 o.add("foo"); | 1597 o.add("foo"); |
| 1598 return o; | 1598 return o; |
| 1599 } | 1599 } |
| 1600 | 1600 |
| 1601 checkUnnamed514(core.List<core.String> o) { | 1601 checkUnnamed500(core.List<core.String> o) { |
| 1602 unittest.expect(o, unittest.hasLength(2)); | 1602 unittest.expect(o, unittest.hasLength(2)); |
| 1603 unittest.expect(o[0], unittest.equals('foo')); | 1603 unittest.expect(o[0], unittest.equals('foo')); |
| 1604 unittest.expect(o[1], unittest.equals('foo')); | 1604 unittest.expect(o[1], unittest.equals('foo')); |
| 1605 } | 1605 } |
| 1606 | 1606 |
| 1607 buildUnnamed515() { | 1607 buildUnnamed501() { |
| 1608 var o = new core.Map<core.String, core.String>(); | 1608 var o = new core.Map<core.String, core.String>(); |
| 1609 o["x"] = "foo"; | 1609 o["x"] = "foo"; |
| 1610 o["y"] = "foo"; | 1610 o["y"] = "foo"; |
| 1611 return o; | 1611 return o; |
| 1612 } | 1612 } |
| 1613 | 1613 |
| 1614 checkUnnamed515(core.Map<core.String, core.String> o) { | 1614 checkUnnamed501(core.Map<core.String, core.String> o) { |
| 1615 unittest.expect(o, unittest.hasLength(2)); | 1615 unittest.expect(o, unittest.hasLength(2)); |
| 1616 unittest.expect(o["x"], unittest.equals('foo')); | 1616 unittest.expect(o["x"], unittest.equals('foo')); |
| 1617 unittest.expect(o["y"], unittest.equals('foo')); | 1617 unittest.expect(o["y"], unittest.equals('foo')); |
| 1618 } | 1618 } |
| 1619 | 1619 |
| 1620 buildUnnamed516() { | 1620 buildUnnamed502() { |
| 1621 var o = new core.Map<core.String, core.String>(); | 1621 var o = new core.Map<core.String, core.String>(); |
| 1622 o["x"] = "foo"; | 1622 o["x"] = "foo"; |
| 1623 o["y"] = "foo"; | 1623 o["y"] = "foo"; |
| 1624 return o; | 1624 return o; |
| 1625 } | 1625 } |
| 1626 | 1626 |
| 1627 checkUnnamed516(core.Map<core.String, core.String> o) { | 1627 checkUnnamed502(core.Map<core.String, core.String> o) { |
| 1628 unittest.expect(o, unittest.hasLength(2)); | 1628 unittest.expect(o, unittest.hasLength(2)); |
| 1629 unittest.expect(o["x"], unittest.equals('foo')); | 1629 unittest.expect(o["x"], unittest.equals('foo')); |
| 1630 unittest.expect(o["y"], unittest.equals('foo')); | 1630 unittest.expect(o["y"], unittest.equals('foo')); |
| 1631 } | 1631 } |
| 1632 | 1632 |
| 1633 core.int buildCounterSparkSqlJob = 0; | 1633 core.int buildCounterSparkSqlJob = 0; |
| 1634 buildSparkSqlJob() { | 1634 buildSparkSqlJob() { |
| 1635 var o = new api.SparkSqlJob(); | 1635 var o = new api.SparkSqlJob(); |
| 1636 buildCounterSparkSqlJob++; | 1636 buildCounterSparkSqlJob++; |
| 1637 if (buildCounterSparkSqlJob < 3) { | 1637 if (buildCounterSparkSqlJob < 3) { |
| 1638 o.jarFileUris = buildUnnamed514(); | 1638 o.jarFileUris = buildUnnamed500(); |
| 1639 o.loggingConfig = buildLoggingConfig(); | 1639 o.loggingConfig = buildLoggingConfig(); |
| 1640 o.properties = buildUnnamed515(); | 1640 o.properties = buildUnnamed501(); |
| 1641 o.queryFileUri = "foo"; | 1641 o.queryFileUri = "foo"; |
| 1642 o.queryList = buildQueryList(); | 1642 o.queryList = buildQueryList(); |
| 1643 o.scriptVariables = buildUnnamed516(); | 1643 o.scriptVariables = buildUnnamed502(); |
| 1644 } | 1644 } |
| 1645 buildCounterSparkSqlJob--; | 1645 buildCounterSparkSqlJob--; |
| 1646 return o; | 1646 return o; |
| 1647 } | 1647 } |
| 1648 | 1648 |
| 1649 checkSparkSqlJob(api.SparkSqlJob o) { | 1649 checkSparkSqlJob(api.SparkSqlJob o) { |
| 1650 buildCounterSparkSqlJob++; | 1650 buildCounterSparkSqlJob++; |
| 1651 if (buildCounterSparkSqlJob < 3) { | 1651 if (buildCounterSparkSqlJob < 3) { |
| 1652 checkUnnamed514(o.jarFileUris); | 1652 checkUnnamed500(o.jarFileUris); |
| 1653 checkLoggingConfig(o.loggingConfig); | 1653 checkLoggingConfig(o.loggingConfig); |
| 1654 checkUnnamed515(o.properties); | 1654 checkUnnamed501(o.properties); |
| 1655 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1655 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
| 1656 checkQueryList(o.queryList); | 1656 checkQueryList(o.queryList); |
| 1657 checkUnnamed516(o.scriptVariables); | 1657 checkUnnamed502(o.scriptVariables); |
| 1658 } | 1658 } |
| 1659 buildCounterSparkSqlJob--; | 1659 buildCounterSparkSqlJob--; |
| 1660 } | 1660 } |
| 1661 | 1661 |
| 1662 buildUnnamed517() { | 1662 buildUnnamed503() { |
| 1663 var o = new core.Map<core.String, core.Object>(); | 1663 var o = new core.Map<core.String, core.Object>(); |
| 1664 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1664 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1665 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1665 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1666 return o; | 1666 return o; |
| 1667 } | 1667 } |
| 1668 | 1668 |
| 1669 checkUnnamed517(core.Map<core.String, core.Object> o) { | 1669 checkUnnamed503(core.Map<core.String, core.Object> o) { |
| 1670 unittest.expect(o, unittest.hasLength(2)); | 1670 unittest.expect(o, unittest.hasLength(2)); |
| 1671 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')); | 1671 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')); |
| 1672 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')); | 1672 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')); |
| 1673 } | 1673 } |
| 1674 | 1674 |
| 1675 buildUnnamed518() { | 1675 buildUnnamed504() { |
| 1676 var o = new core.List<core.Map<core.String, core.Object>>(); | 1676 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 1677 o.add(buildUnnamed517()); | 1677 o.add(buildUnnamed503()); |
| 1678 o.add(buildUnnamed517()); | 1678 o.add(buildUnnamed503()); |
| 1679 return o; | 1679 return o; |
| 1680 } | 1680 } |
| 1681 | 1681 |
| 1682 checkUnnamed518(core.List<core.Map<core.String, core.Object>> o) { | 1682 checkUnnamed504(core.List<core.Map<core.String, core.Object>> o) { |
| 1683 unittest.expect(o, unittest.hasLength(2)); | 1683 unittest.expect(o, unittest.hasLength(2)); |
| 1684 checkUnnamed517(o[0]); | 1684 checkUnnamed503(o[0]); |
| 1685 checkUnnamed517(o[1]); | 1685 checkUnnamed503(o[1]); |
| 1686 } | 1686 } |
| 1687 | 1687 |
| 1688 core.int buildCounterStatus = 0; | 1688 core.int buildCounterStatus = 0; |
| 1689 buildStatus() { | 1689 buildStatus() { |
| 1690 var o = new api.Status(); | 1690 var o = new api.Status(); |
| 1691 buildCounterStatus++; | 1691 buildCounterStatus++; |
| 1692 if (buildCounterStatus < 3) { | 1692 if (buildCounterStatus < 3) { |
| 1693 o.code = 42; | 1693 o.code = 42; |
| 1694 o.details = buildUnnamed518(); | 1694 o.details = buildUnnamed504(); |
| 1695 o.message = "foo"; | 1695 o.message = "foo"; |
| 1696 } | 1696 } |
| 1697 buildCounterStatus--; | 1697 buildCounterStatus--; |
| 1698 return o; | 1698 return o; |
| 1699 } | 1699 } |
| 1700 | 1700 |
| 1701 checkStatus(api.Status o) { | 1701 checkStatus(api.Status o) { |
| 1702 buildCounterStatus++; | 1702 buildCounterStatus++; |
| 1703 if (buildCounterStatus < 3) { | 1703 if (buildCounterStatus < 3) { |
| 1704 unittest.expect(o.code, unittest.equals(42)); | 1704 unittest.expect(o.code, unittest.equals(42)); |
| 1705 checkUnnamed518(o.details); | 1705 checkUnnamed504(o.details); |
| 1706 unittest.expect(o.message, unittest.equals('foo')); | 1706 unittest.expect(o.message, unittest.equals('foo')); |
| 1707 } | 1707 } |
| 1708 buildCounterStatus--; | 1708 buildCounterStatus--; |
| 1709 } | 1709 } |
| 1710 | 1710 |
| 1711 core.int buildCounterSubmitJobRequest = 0; | 1711 core.int buildCounterSubmitJobRequest = 0; |
| 1712 buildSubmitJobRequest() { | 1712 buildSubmitJobRequest() { |
| 1713 var o = new api.SubmitJobRequest(); | 1713 var o = new api.SubmitJobRequest(); |
| 1714 buildCounterSubmitJobRequest++; | 1714 buildCounterSubmitJobRequest++; |
| 1715 if (buildCounterSubmitJobRequest < 3) { | 1715 if (buildCounterSubmitJobRequest < 3) { |
| (...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2374 checkCluster(response); | 2374 checkCluster(response); |
| 2375 }))); | 2375 }))); |
| 2376 }); | 2376 }); |
| 2377 | 2377 |
| 2378 unittest.test("method--list", () { | 2378 unittest.test("method--list", () { |
| 2379 | 2379 |
| 2380 var mock = new HttpServerMock(); | 2380 var mock = new HttpServerMock(); |
| 2381 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; | 2381 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; |
| 2382 var arg_projectId = "foo"; | 2382 var arg_projectId = "foo"; |
| 2383 var arg_region = "foo"; | 2383 var arg_region = "foo"; |
| 2384 var arg_pageToken = "foo"; | |
| 2385 var arg_pageSize = 42; | 2384 var arg_pageSize = 42; |
| 2386 var arg_filter = "foo"; | 2385 var arg_filter = "foo"; |
| 2386 var arg_pageToken = "foo"; |
| 2387 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2387 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2388 var path = (req.url).path; | 2388 var path = (req.url).path; |
| 2389 var pathOffset = 0; | 2389 var pathOffset = 0; |
| 2390 var index; | 2390 var index; |
| 2391 var subPart; | 2391 var subPart; |
| 2392 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2392 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2393 pathOffset += 1; | 2393 pathOffset += 1; |
| 2394 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2394 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
| 2395 pathOffset += 12; | 2395 pathOffset += 12; |
| 2396 index = path.indexOf("/regions/", pathOffset); | 2396 index = path.indexOf("/regions/", pathOffset); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 2417 if (n == "false") return false; | 2417 if (n == "false") return false; |
| 2418 if (n == null) return null; | 2418 if (n == null) return null; |
| 2419 throw new core.ArgumentError("Invalid boolean: $n"); | 2419 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2420 } | 2420 } |
| 2421 if (query.length > 0) { | 2421 if (query.length > 0) { |
| 2422 for (var part in query.split("&")) { | 2422 for (var part in query.split("&")) { |
| 2423 var keyvalue = part.split("="); | 2423 var keyvalue = part.split("="); |
| 2424 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2424 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2425 } | 2425 } |
| 2426 } | 2426 } |
| 2427 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
| 2428 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2427 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 2429 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 2428 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 2429 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2430 | 2430 |
| 2431 | 2431 |
| 2432 var h = { | 2432 var h = { |
| 2433 "content-type" : "application/json; charset=utf-8", | 2433 "content-type" : "application/json; charset=utf-8", |
| 2434 }; | 2434 }; |
| 2435 var resp = convert.JSON.encode(buildListClustersResponse()); | 2435 var resp = convert.JSON.encode(buildListClustersResponse()); |
| 2436 return new async.Future.value(stringResponse(200, h, resp)); | 2436 return new async.Future.value(stringResponse(200, h, resp)); |
| 2437 }), true); | 2437 }), true); |
| 2438 res.list(arg_projectId, arg_region, pageToken: arg_pageToken, pageSize: ar
g_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.ListClustersResp
onse response) { | 2438 res.list(arg_projectId, arg_region, pageSize: arg_pageSize, filter: arg_fi
lter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListClustersResp
onse response) { |
| 2439 checkListClustersResponse(response); | 2439 checkListClustersResponse(response); |
| 2440 }))); | 2440 }))); |
| 2441 }); | 2441 }); |
| 2442 | 2442 |
| 2443 unittest.test("method--patch", () { | 2443 unittest.test("method--patch", () { |
| 2444 | 2444 |
| 2445 var mock = new HttpServerMock(); | 2445 var mock = new HttpServerMock(); |
| 2446 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; | 2446 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; |
| 2447 var arg_request = buildCluster(); | 2447 var arg_request = buildCluster(); |
| 2448 var arg_projectId = "foo"; | 2448 var arg_projectId = "foo"; |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2709 checkJob(response); | 2709 checkJob(response); |
| 2710 }))); | 2710 }))); |
| 2711 }); | 2711 }); |
| 2712 | 2712 |
| 2713 unittest.test("method--list", () { | 2713 unittest.test("method--list", () { |
| 2714 | 2714 |
| 2715 var mock = new HttpServerMock(); | 2715 var mock = new HttpServerMock(); |
| 2716 api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).project
s.regions.jobs; | 2716 api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).project
s.regions.jobs; |
| 2717 var arg_projectId = "foo"; | 2717 var arg_projectId = "foo"; |
| 2718 var arg_region = "foo"; | 2718 var arg_region = "foo"; |
| 2719 var arg_filter = "foo"; |
| 2720 var arg_jobStateMatcher = "foo"; |
| 2719 var arg_pageToken = "foo"; | 2721 var arg_pageToken = "foo"; |
| 2720 var arg_pageSize = 42; | 2722 var arg_pageSize = 42; |
| 2721 var arg_clusterName = "foo"; | 2723 var arg_clusterName = "foo"; |
| 2722 var arg_filter = "foo"; | |
| 2723 var arg_jobStateMatcher = "foo"; | |
| 2724 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2724 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2725 var path = (req.url).path; | 2725 var path = (req.url).path; |
| 2726 var pathOffset = 0; | 2726 var pathOffset = 0; |
| 2727 var index; | 2727 var index; |
| 2728 var subPart; | 2728 var subPart; |
| 2729 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2729 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2730 pathOffset += 1; | 2730 pathOffset += 1; |
| 2731 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2731 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
| 2732 pathOffset += 12; | 2732 pathOffset += 12; |
| 2733 index = path.indexOf("/regions/", pathOffset); | 2733 index = path.indexOf("/regions/", pathOffset); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 2754 if (n == "false") return false; | 2754 if (n == "false") return false; |
| 2755 if (n == null) return null; | 2755 if (n == null) return null; |
| 2756 throw new core.ArgumentError("Invalid boolean: $n"); | 2756 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2757 } | 2757 } |
| 2758 if (query.length > 0) { | 2758 if (query.length > 0) { |
| 2759 for (var part in query.split("&")) { | 2759 for (var part in query.split("&")) { |
| 2760 var keyvalue = part.split("="); | 2760 var keyvalue = part.split("="); |
| 2761 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2761 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2762 } | 2762 } |
| 2763 } | 2763 } |
| 2764 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 2765 unittest.expect(queryMap["jobStateMatcher"].first, unittest.equals(arg_j
obStateMatcher)); |
| 2764 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2766 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2765 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2767 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 2766 unittest.expect(queryMap["clusterName"].first, unittest.equals(arg_clust
erName)); | 2768 unittest.expect(queryMap["clusterName"].first, unittest.equals(arg_clust
erName)); |
| 2767 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
| 2768 unittest.expect(queryMap["jobStateMatcher"].first, unittest.equals(arg_j
obStateMatcher)); | |
| 2769 | 2769 |
| 2770 | 2770 |
| 2771 var h = { | 2771 var h = { |
| 2772 "content-type" : "application/json; charset=utf-8", | 2772 "content-type" : "application/json; charset=utf-8", |
| 2773 }; | 2773 }; |
| 2774 var resp = convert.JSON.encode(buildListJobsResponse()); | 2774 var resp = convert.JSON.encode(buildListJobsResponse()); |
| 2775 return new async.Future.value(stringResponse(200, h, resp)); | 2775 return new async.Future.value(stringResponse(200, h, resp)); |
| 2776 }), true); | 2776 }), true); |
| 2777 res.list(arg_projectId, arg_region, pageToken: arg_pageToken, pageSize: ar
g_pageSize, clusterName: arg_clusterName, filter: arg_filter, jobStateMatcher: a
rg_jobStateMatcher).then(unittest.expectAsync(((api.ListJobsResponse response) { | 2777 res.list(arg_projectId, arg_region, filter: arg_filter, jobStateMatcher: a
rg_jobStateMatcher, pageToken: arg_pageToken, pageSize: arg_pageSize, clusterNam
e: arg_clusterName).then(unittest.expectAsync(((api.ListJobsResponse response) { |
| 2778 checkListJobsResponse(response); | 2778 checkListJobsResponse(response); |
| 2779 }))); | 2779 }))); |
| 2780 }); | 2780 }); |
| 2781 | 2781 |
| 2782 unittest.test("method--patch", () { | 2782 unittest.test("method--patch", () { |
| 2783 | 2783 |
| 2784 var mock = new HttpServerMock(); | 2784 var mock = new HttpServerMock(); |
| 2785 api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).project
s.regions.jobs; | 2785 api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).project
s.regions.jobs; |
| 2786 var arg_request = buildJob(); | 2786 var arg_request = buildJob(); |
| 2787 var arg_projectId = "foo"; | 2787 var arg_projectId = "foo"; |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3099 res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize:
arg_pageSize).then(unittest.expectAsync(((api.ListOperationsResponse response)
{ | 3099 res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize:
arg_pageSize).then(unittest.expectAsync(((api.ListOperationsResponse response)
{ |
| 3100 checkListOperationsResponse(response); | 3100 checkListOperationsResponse(response); |
| 3101 }))); | 3101 }))); |
| 3102 }); | 3102 }); |
| 3103 | 3103 |
| 3104 }); | 3104 }); |
| 3105 | 3105 |
| 3106 | 3106 |
| 3107 } | 3107 } |
| 3108 | 3108 |
| OLD | NEW |