| OLD | NEW |
| 1 library googleapis_beta.dataproc.v1beta1.test; | 1 library googleapis_beta.dataproc.v1beta1.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 | 47 |
| 48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map headers, core.String body) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } | 52 } |
| 53 | 53 |
| 54 buildUnnamed3204() { |
| 55 var o = new core.List<core.String>(); |
| 56 o.add("foo"); |
| 57 o.add("foo"); |
| 58 return o; |
| 59 } |
| 60 |
| 61 checkUnnamed3204(core.List<core.String> o) { |
| 62 unittest.expect(o, unittest.hasLength(2)); |
| 63 unittest.expect(o[0], unittest.equals('foo')); |
| 64 unittest.expect(o[1], unittest.equals('foo')); |
| 65 } |
| 66 |
| 67 core.int buildCounterBinding = 0; |
| 68 buildBinding() { |
| 69 var o = new api.Binding(); |
| 70 buildCounterBinding++; |
| 71 if (buildCounterBinding < 3) { |
| 72 o.members = buildUnnamed3204(); |
| 73 o.role = "foo"; |
| 74 } |
| 75 buildCounterBinding--; |
| 76 return o; |
| 77 } |
| 78 |
| 79 checkBinding(api.Binding o) { |
| 80 buildCounterBinding++; |
| 81 if (buildCounterBinding < 3) { |
| 82 checkUnnamed3204(o.members); |
| 83 unittest.expect(o.role, unittest.equals('foo')); |
| 84 } |
| 85 buildCounterBinding--; |
| 86 } |
| 87 |
| 54 core.int buildCounterCancelJobRequest = 0; | 88 core.int buildCounterCancelJobRequest = 0; |
| 55 buildCancelJobRequest() { | 89 buildCancelJobRequest() { |
| 56 var o = new api.CancelJobRequest(); | 90 var o = new api.CancelJobRequest(); |
| 57 buildCounterCancelJobRequest++; | 91 buildCounterCancelJobRequest++; |
| 58 if (buildCounterCancelJobRequest < 3) { | 92 if (buildCounterCancelJobRequest < 3) { |
| 59 } | 93 } |
| 60 buildCounterCancelJobRequest--; | 94 buildCounterCancelJobRequest--; |
| 61 return o; | 95 return o; |
| 62 } | 96 } |
| 63 | 97 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 78 return o; | 112 return o; |
| 79 } | 113 } |
| 80 | 114 |
| 81 checkCancelOperationRequest(api.CancelOperationRequest o) { | 115 checkCancelOperationRequest(api.CancelOperationRequest o) { |
| 82 buildCounterCancelOperationRequest++; | 116 buildCounterCancelOperationRequest++; |
| 83 if (buildCounterCancelOperationRequest < 3) { | 117 if (buildCounterCancelOperationRequest < 3) { |
| 84 } | 118 } |
| 85 buildCounterCancelOperationRequest--; | 119 buildCounterCancelOperationRequest--; |
| 86 } | 120 } |
| 87 | 121 |
| 88 buildUnnamed2879() { | 122 buildUnnamed3205() { |
| 89 var o = new core.List<api.ClusterStatus>(); | 123 var o = new core.List<api.ClusterStatus>(); |
| 90 o.add(buildClusterStatus()); | 124 o.add(buildClusterStatus()); |
| 91 o.add(buildClusterStatus()); | 125 o.add(buildClusterStatus()); |
| 92 return o; | 126 return o; |
| 93 } | 127 } |
| 94 | 128 |
| 95 checkUnnamed2879(core.List<api.ClusterStatus> o) { | 129 checkUnnamed3205(core.List<api.ClusterStatus> o) { |
| 96 unittest.expect(o, unittest.hasLength(2)); | 130 unittest.expect(o, unittest.hasLength(2)); |
| 97 checkClusterStatus(o[0]); | 131 checkClusterStatus(o[0]); |
| 98 checkClusterStatus(o[1]); | 132 checkClusterStatus(o[1]); |
| 99 } | 133 } |
| 100 | 134 |
| 101 core.int buildCounterCluster = 0; | 135 core.int buildCounterCluster = 0; |
| 102 buildCluster() { | 136 buildCluster() { |
| 103 var o = new api.Cluster(); | 137 var o = new api.Cluster(); |
| 104 buildCounterCluster++; | 138 buildCounterCluster++; |
| 105 if (buildCounterCluster < 3) { | 139 if (buildCounterCluster < 3) { |
| 106 o.clusterName = "foo"; | 140 o.clusterName = "foo"; |
| 107 o.clusterUuid = "foo"; | 141 o.clusterUuid = "foo"; |
| 108 o.configuration = buildClusterConfiguration(); | 142 o.configuration = buildClusterConfiguration(); |
| 109 o.projectId = "foo"; | 143 o.projectId = "foo"; |
| 110 o.status = buildClusterStatus(); | 144 o.status = buildClusterStatus(); |
| 111 o.statusHistory = buildUnnamed2879(); | 145 o.statusHistory = buildUnnamed3205(); |
| 112 } | 146 } |
| 113 buildCounterCluster--; | 147 buildCounterCluster--; |
| 114 return o; | 148 return o; |
| 115 } | 149 } |
| 116 | 150 |
| 117 checkCluster(api.Cluster o) { | 151 checkCluster(api.Cluster o) { |
| 118 buildCounterCluster++; | 152 buildCounterCluster++; |
| 119 if (buildCounterCluster < 3) { | 153 if (buildCounterCluster < 3) { |
| 120 unittest.expect(o.clusterName, unittest.equals('foo')); | 154 unittest.expect(o.clusterName, unittest.equals('foo')); |
| 121 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 155 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
| 122 checkClusterConfiguration(o.configuration); | 156 checkClusterConfiguration(o.configuration); |
| 123 unittest.expect(o.projectId, unittest.equals('foo')); | 157 unittest.expect(o.projectId, unittest.equals('foo')); |
| 124 checkClusterStatus(o.status); | 158 checkClusterStatus(o.status); |
| 125 checkUnnamed2879(o.statusHistory); | 159 checkUnnamed3205(o.statusHistory); |
| 126 } | 160 } |
| 127 buildCounterCluster--; | 161 buildCounterCluster--; |
| 128 } | 162 } |
| 129 | 163 |
| 130 buildUnnamed2880() { | 164 buildUnnamed3206() { |
| 131 var o = new core.List<api.NodeInitializationAction>(); | 165 var o = new core.List<api.NodeInitializationAction>(); |
| 132 o.add(buildNodeInitializationAction()); | 166 o.add(buildNodeInitializationAction()); |
| 133 o.add(buildNodeInitializationAction()); | 167 o.add(buildNodeInitializationAction()); |
| 134 return o; | 168 return o; |
| 135 } | 169 } |
| 136 | 170 |
| 137 checkUnnamed2880(core.List<api.NodeInitializationAction> o) { | 171 checkUnnamed3206(core.List<api.NodeInitializationAction> o) { |
| 138 unittest.expect(o, unittest.hasLength(2)); | 172 unittest.expect(o, unittest.hasLength(2)); |
| 139 checkNodeInitializationAction(o[0]); | 173 checkNodeInitializationAction(o[0]); |
| 140 checkNodeInitializationAction(o[1]); | 174 checkNodeInitializationAction(o[1]); |
| 141 } | 175 } |
| 142 | 176 |
| 143 core.int buildCounterClusterConfiguration = 0; | 177 core.int buildCounterClusterConfiguration = 0; |
| 144 buildClusterConfiguration() { | 178 buildClusterConfiguration() { |
| 145 var o = new api.ClusterConfiguration(); | 179 var o = new api.ClusterConfiguration(); |
| 146 buildCounterClusterConfiguration++; | 180 buildCounterClusterConfiguration++; |
| 147 if (buildCounterClusterConfiguration < 3) { | 181 if (buildCounterClusterConfiguration < 3) { |
| 148 o.configurationBucket = "foo"; | 182 o.configurationBucket = "foo"; |
| 149 o.gceClusterConfiguration = buildGceClusterConfiguration(); | 183 o.gceClusterConfiguration = buildGceClusterConfiguration(); |
| 150 o.initializationActions = buildUnnamed2880(); | 184 o.initializationActions = buildUnnamed3206(); |
| 151 o.masterConfiguration = buildInstanceGroupConfiguration(); | 185 o.masterConfiguration = buildInstanceGroupConfiguration(); |
| 152 o.secondaryWorkerConfiguration = buildInstanceGroupConfiguration(); | 186 o.secondaryWorkerConfiguration = buildInstanceGroupConfiguration(); |
| 153 o.softwareConfiguration = buildSoftwareConfiguration(); | 187 o.softwareConfiguration = buildSoftwareConfiguration(); |
| 154 o.workerConfiguration = buildInstanceGroupConfiguration(); | 188 o.workerConfiguration = buildInstanceGroupConfiguration(); |
| 155 } | 189 } |
| 156 buildCounterClusterConfiguration--; | 190 buildCounterClusterConfiguration--; |
| 157 return o; | 191 return o; |
| 158 } | 192 } |
| 159 | 193 |
| 160 checkClusterConfiguration(api.ClusterConfiguration o) { | 194 checkClusterConfiguration(api.ClusterConfiguration o) { |
| 161 buildCounterClusterConfiguration++; | 195 buildCounterClusterConfiguration++; |
| 162 if (buildCounterClusterConfiguration < 3) { | 196 if (buildCounterClusterConfiguration < 3) { |
| 163 unittest.expect(o.configurationBucket, unittest.equals('foo')); | 197 unittest.expect(o.configurationBucket, unittest.equals('foo')); |
| 164 checkGceClusterConfiguration(o.gceClusterConfiguration); | 198 checkGceClusterConfiguration(o.gceClusterConfiguration); |
| 165 checkUnnamed2880(o.initializationActions); | 199 checkUnnamed3206(o.initializationActions); |
| 166 checkInstanceGroupConfiguration(o.masterConfiguration); | 200 checkInstanceGroupConfiguration(o.masterConfiguration); |
| 167 checkInstanceGroupConfiguration(o.secondaryWorkerConfiguration); | 201 checkInstanceGroupConfiguration(o.secondaryWorkerConfiguration); |
| 168 checkSoftwareConfiguration(o.softwareConfiguration); | 202 checkSoftwareConfiguration(o.softwareConfiguration); |
| 169 checkInstanceGroupConfiguration(o.workerConfiguration); | 203 checkInstanceGroupConfiguration(o.workerConfiguration); |
| 170 } | 204 } |
| 171 buildCounterClusterConfiguration--; | 205 buildCounterClusterConfiguration--; |
| 172 } | 206 } |
| 173 | 207 |
| 208 buildUnnamed3207() { |
| 209 var o = new core.List<api.ClusterOperationStatus>(); |
| 210 o.add(buildClusterOperationStatus()); |
| 211 o.add(buildClusterOperationStatus()); |
| 212 return o; |
| 213 } |
| 214 |
| 215 checkUnnamed3207(core.List<api.ClusterOperationStatus> o) { |
| 216 unittest.expect(o, unittest.hasLength(2)); |
| 217 checkClusterOperationStatus(o[0]); |
| 218 checkClusterOperationStatus(o[1]); |
| 219 } |
| 220 |
| 221 core.int buildCounterClusterOperationMetadata = 0; |
| 222 buildClusterOperationMetadata() { |
| 223 var o = new api.ClusterOperationMetadata(); |
| 224 buildCounterClusterOperationMetadata++; |
| 225 if (buildCounterClusterOperationMetadata < 3) { |
| 226 o.clusterName = "foo"; |
| 227 o.clusterUuid = "foo"; |
| 228 o.description = "foo"; |
| 229 o.operationType = "foo"; |
| 230 o.status = buildClusterOperationStatus(); |
| 231 o.statusHistory = buildUnnamed3207(); |
| 232 } |
| 233 buildCounterClusterOperationMetadata--; |
| 234 return o; |
| 235 } |
| 236 |
| 237 checkClusterOperationMetadata(api.ClusterOperationMetadata o) { |
| 238 buildCounterClusterOperationMetadata++; |
| 239 if (buildCounterClusterOperationMetadata < 3) { |
| 240 unittest.expect(o.clusterName, unittest.equals('foo')); |
| 241 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
| 242 unittest.expect(o.description, unittest.equals('foo')); |
| 243 unittest.expect(o.operationType, unittest.equals('foo')); |
| 244 checkClusterOperationStatus(o.status); |
| 245 checkUnnamed3207(o.statusHistory); |
| 246 } |
| 247 buildCounterClusterOperationMetadata--; |
| 248 } |
| 249 |
| 250 core.int buildCounterClusterOperationStatus = 0; |
| 251 buildClusterOperationStatus() { |
| 252 var o = new api.ClusterOperationStatus(); |
| 253 buildCounterClusterOperationStatus++; |
| 254 if (buildCounterClusterOperationStatus < 3) { |
| 255 o.details = "foo"; |
| 256 o.innerState = "foo"; |
| 257 o.state = "foo"; |
| 258 o.stateStartTime = "foo"; |
| 259 } |
| 260 buildCounterClusterOperationStatus--; |
| 261 return o; |
| 262 } |
| 263 |
| 264 checkClusterOperationStatus(api.ClusterOperationStatus o) { |
| 265 buildCounterClusterOperationStatus++; |
| 266 if (buildCounterClusterOperationStatus < 3) { |
| 267 unittest.expect(o.details, unittest.equals('foo')); |
| 268 unittest.expect(o.innerState, unittest.equals('foo')); |
| 269 unittest.expect(o.state, unittest.equals('foo')); |
| 270 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
| 271 } |
| 272 buildCounterClusterOperationStatus--; |
| 273 } |
| 274 |
| 174 core.int buildCounterClusterStatus = 0; | 275 core.int buildCounterClusterStatus = 0; |
| 175 buildClusterStatus() { | 276 buildClusterStatus() { |
| 176 var o = new api.ClusterStatus(); | 277 var o = new api.ClusterStatus(); |
| 177 buildCounterClusterStatus++; | 278 buildCounterClusterStatus++; |
| 178 if (buildCounterClusterStatus < 3) { | 279 if (buildCounterClusterStatus < 3) { |
| 179 o.detail = "foo"; | 280 o.detail = "foo"; |
| 180 o.state = "foo"; | 281 o.state = "foo"; |
| 181 o.stateStartTime = "foo"; | 282 o.stateStartTime = "foo"; |
| 182 } | 283 } |
| 183 buildCounterClusterStatus--; | 284 buildCounterClusterStatus--; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 return o; | 324 return o; |
| 224 } | 325 } |
| 225 | 326 |
| 226 checkDiagnoseClusterRequest(api.DiagnoseClusterRequest o) { | 327 checkDiagnoseClusterRequest(api.DiagnoseClusterRequest o) { |
| 227 buildCounterDiagnoseClusterRequest++; | 328 buildCounterDiagnoseClusterRequest++; |
| 228 if (buildCounterDiagnoseClusterRequest < 3) { | 329 if (buildCounterDiagnoseClusterRequest < 3) { |
| 229 } | 330 } |
| 230 buildCounterDiagnoseClusterRequest--; | 331 buildCounterDiagnoseClusterRequest--; |
| 231 } | 332 } |
| 232 | 333 |
| 334 core.int buildCounterDiagnoseClusterResults = 0; |
| 335 buildDiagnoseClusterResults() { |
| 336 var o = new api.DiagnoseClusterResults(); |
| 337 buildCounterDiagnoseClusterResults++; |
| 338 if (buildCounterDiagnoseClusterResults < 3) { |
| 339 o.outputUri = "foo"; |
| 340 } |
| 341 buildCounterDiagnoseClusterResults--; |
| 342 return o; |
| 343 } |
| 344 |
| 345 checkDiagnoseClusterResults(api.DiagnoseClusterResults o) { |
| 346 buildCounterDiagnoseClusterResults++; |
| 347 if (buildCounterDiagnoseClusterResults < 3) { |
| 348 unittest.expect(o.outputUri, unittest.equals('foo')); |
| 349 } |
| 350 buildCounterDiagnoseClusterResults--; |
| 351 } |
| 352 |
| 233 core.int buildCounterDiskConfiguration = 0; | 353 core.int buildCounterDiskConfiguration = 0; |
| 234 buildDiskConfiguration() { | 354 buildDiskConfiguration() { |
| 235 var o = new api.DiskConfiguration(); | 355 var o = new api.DiskConfiguration(); |
| 236 buildCounterDiskConfiguration++; | 356 buildCounterDiskConfiguration++; |
| 237 if (buildCounterDiskConfiguration < 3) { | 357 if (buildCounterDiskConfiguration < 3) { |
| 238 o.bootDiskSizeGb = 42; | 358 o.bootDiskSizeGb = 42; |
| 239 o.numLocalSsds = 42; | 359 o.numLocalSsds = 42; |
| 240 } | 360 } |
| 241 buildCounterDiskConfiguration--; | 361 buildCounterDiskConfiguration--; |
| 242 return o; | 362 return o; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 261 return o; | 381 return o; |
| 262 } | 382 } |
| 263 | 383 |
| 264 checkEmpty(api.Empty o) { | 384 checkEmpty(api.Empty o) { |
| 265 buildCounterEmpty++; | 385 buildCounterEmpty++; |
| 266 if (buildCounterEmpty < 3) { | 386 if (buildCounterEmpty < 3) { |
| 267 } | 387 } |
| 268 buildCounterEmpty--; | 388 buildCounterEmpty--; |
| 269 } | 389 } |
| 270 | 390 |
| 271 buildUnnamed2881() { | 391 buildUnnamed3208() { |
| 392 var o = new core.Map<core.String, core.String>(); |
| 393 o["x"] = "foo"; |
| 394 o["y"] = "foo"; |
| 395 return o; |
| 396 } |
| 397 |
| 398 checkUnnamed3208(core.Map<core.String, core.String> o) { |
| 399 unittest.expect(o, unittest.hasLength(2)); |
| 400 unittest.expect(o["x"], unittest.equals('foo')); |
| 401 unittest.expect(o["y"], unittest.equals('foo')); |
| 402 } |
| 403 |
| 404 buildUnnamed3209() { |
| 272 var o = new core.List<core.String>(); | 405 var o = new core.List<core.String>(); |
| 273 o.add("foo"); | 406 o.add("foo"); |
| 274 o.add("foo"); | 407 o.add("foo"); |
| 275 return o; | 408 return o; |
| 276 } | 409 } |
| 277 | 410 |
| 278 checkUnnamed2881(core.List<core.String> o) { | 411 checkUnnamed3209(core.List<core.String> o) { |
| 279 unittest.expect(o, unittest.hasLength(2)); | 412 unittest.expect(o, unittest.hasLength(2)); |
| 280 unittest.expect(o[0], unittest.equals('foo')); | 413 unittest.expect(o[0], unittest.equals('foo')); |
| 281 unittest.expect(o[1], unittest.equals('foo')); | 414 unittest.expect(o[1], unittest.equals('foo')); |
| 415 } |
| 416 |
| 417 buildUnnamed3210() { |
| 418 var o = new core.List<core.String>(); |
| 419 o.add("foo"); |
| 420 o.add("foo"); |
| 421 return o; |
| 422 } |
| 423 |
| 424 checkUnnamed3210(core.List<core.String> o) { |
| 425 unittest.expect(o, unittest.hasLength(2)); |
| 426 unittest.expect(o[0], unittest.equals('foo')); |
| 427 unittest.expect(o[1], unittest.equals('foo')); |
| 282 } | 428 } |
| 283 | 429 |
| 284 core.int buildCounterGceClusterConfiguration = 0; | 430 core.int buildCounterGceClusterConfiguration = 0; |
| 285 buildGceClusterConfiguration() { | 431 buildGceClusterConfiguration() { |
| 286 var o = new api.GceClusterConfiguration(); | 432 var o = new api.GceClusterConfiguration(); |
| 287 buildCounterGceClusterConfiguration++; | 433 buildCounterGceClusterConfiguration++; |
| 288 if (buildCounterGceClusterConfiguration < 3) { | 434 if (buildCounterGceClusterConfiguration < 3) { |
| 435 o.metadata = buildUnnamed3208(); |
| 289 o.networkUri = "foo"; | 436 o.networkUri = "foo"; |
| 290 o.serviceAccountScopes = buildUnnamed2881(); | 437 o.serviceAccountScopes = buildUnnamed3209(); |
| 438 o.subnetworkUri = "foo"; |
| 439 o.tags = buildUnnamed3210(); |
| 291 o.zoneUri = "foo"; | 440 o.zoneUri = "foo"; |
| 292 } | 441 } |
| 293 buildCounterGceClusterConfiguration--; | 442 buildCounterGceClusterConfiguration--; |
| 294 return o; | 443 return o; |
| 295 } | 444 } |
| 296 | 445 |
| 297 checkGceClusterConfiguration(api.GceClusterConfiguration o) { | 446 checkGceClusterConfiguration(api.GceClusterConfiguration o) { |
| 298 buildCounterGceClusterConfiguration++; | 447 buildCounterGceClusterConfiguration++; |
| 299 if (buildCounterGceClusterConfiguration < 3) { | 448 if (buildCounterGceClusterConfiguration < 3) { |
| 449 checkUnnamed3208(o.metadata); |
| 300 unittest.expect(o.networkUri, unittest.equals('foo')); | 450 unittest.expect(o.networkUri, unittest.equals('foo')); |
| 301 checkUnnamed2881(o.serviceAccountScopes); | 451 checkUnnamed3209(o.serviceAccountScopes); |
| 452 unittest.expect(o.subnetworkUri, unittest.equals('foo')); |
| 453 checkUnnamed3210(o.tags); |
| 302 unittest.expect(o.zoneUri, unittest.equals('foo')); | 454 unittest.expect(o.zoneUri, unittest.equals('foo')); |
| 303 } | 455 } |
| 304 buildCounterGceClusterConfiguration--; | 456 buildCounterGceClusterConfiguration--; |
| 305 } | 457 } |
| 306 | 458 |
| 307 buildUnnamed2882() { | 459 buildUnnamed3211() { |
| 308 var o = new core.List<core.String>(); | 460 var o = new core.List<core.String>(); |
| 309 o.add("foo"); | 461 o.add("foo"); |
| 310 o.add("foo"); | 462 o.add("foo"); |
| 311 return o; | 463 return o; |
| 312 } | 464 } |
| 313 | 465 |
| 314 checkUnnamed2882(core.List<core.String> o) { | 466 checkUnnamed3211(core.List<core.String> o) { |
| 315 unittest.expect(o, unittest.hasLength(2)); | 467 unittest.expect(o, unittest.hasLength(2)); |
| 316 unittest.expect(o[0], unittest.equals('foo')); | 468 unittest.expect(o[0], unittest.equals('foo')); |
| 317 unittest.expect(o[1], unittest.equals('foo')); | 469 unittest.expect(o[1], unittest.equals('foo')); |
| 318 } | 470 } |
| 319 | 471 |
| 320 buildUnnamed2883() { | 472 buildUnnamed3212() { |
| 321 var o = new core.List<core.String>(); | 473 var o = new core.List<core.String>(); |
| 322 o.add("foo"); | 474 o.add("foo"); |
| 323 o.add("foo"); | 475 o.add("foo"); |
| 324 return o; | 476 return o; |
| 325 } | 477 } |
| 326 | 478 |
| 327 checkUnnamed2883(core.List<core.String> o) { | 479 checkUnnamed3212(core.List<core.String> o) { |
| 328 unittest.expect(o, unittest.hasLength(2)); | 480 unittest.expect(o, unittest.hasLength(2)); |
| 329 unittest.expect(o[0], unittest.equals('foo')); | 481 unittest.expect(o[0], unittest.equals('foo')); |
| 330 unittest.expect(o[1], unittest.equals('foo')); | 482 unittest.expect(o[1], unittest.equals('foo')); |
| 331 } | 483 } |
| 332 | 484 |
| 333 buildUnnamed2884() { | 485 buildUnnamed3213() { |
| 334 var o = new core.List<core.String>(); | 486 var o = new core.List<core.String>(); |
| 335 o.add("foo"); | 487 o.add("foo"); |
| 336 o.add("foo"); | 488 o.add("foo"); |
| 337 return o; | 489 return o; |
| 338 } | 490 } |
| 339 | 491 |
| 340 checkUnnamed2884(core.List<core.String> o) { | 492 checkUnnamed3213(core.List<core.String> o) { |
| 341 unittest.expect(o, unittest.hasLength(2)); | 493 unittest.expect(o, unittest.hasLength(2)); |
| 342 unittest.expect(o[0], unittest.equals('foo')); | 494 unittest.expect(o[0], unittest.equals('foo')); |
| 343 unittest.expect(o[1], unittest.equals('foo')); | 495 unittest.expect(o[1], unittest.equals('foo')); |
| 344 } | 496 } |
| 345 | 497 |
| 346 buildUnnamed2885() { | 498 buildUnnamed3214() { |
| 347 var o = new core.List<core.String>(); | 499 var o = new core.List<core.String>(); |
| 348 o.add("foo"); | 500 o.add("foo"); |
| 349 o.add("foo"); | 501 o.add("foo"); |
| 350 return o; | 502 return o; |
| 351 } | 503 } |
| 352 | 504 |
| 353 checkUnnamed2885(core.List<core.String> o) { | 505 checkUnnamed3214(core.List<core.String> o) { |
| 354 unittest.expect(o, unittest.hasLength(2)); | 506 unittest.expect(o, unittest.hasLength(2)); |
| 355 unittest.expect(o[0], unittest.equals('foo')); | 507 unittest.expect(o[0], unittest.equals('foo')); |
| 356 unittest.expect(o[1], unittest.equals('foo')); | 508 unittest.expect(o[1], unittest.equals('foo')); |
| 357 } | 509 } |
| 358 | 510 |
| 359 buildUnnamed2886() { | 511 buildUnnamed3215() { |
| 360 var o = new core.Map<core.String, core.String>(); | 512 var o = new core.Map<core.String, core.String>(); |
| 361 o["x"] = "foo"; | 513 o["x"] = "foo"; |
| 362 o["y"] = "foo"; | 514 o["y"] = "foo"; |
| 363 return o; | 515 return o; |
| 364 } | 516 } |
| 365 | 517 |
| 366 checkUnnamed2886(core.Map<core.String, core.String> o) { | 518 checkUnnamed3215(core.Map<core.String, core.String> o) { |
| 367 unittest.expect(o, unittest.hasLength(2)); | 519 unittest.expect(o, unittest.hasLength(2)); |
| 368 unittest.expect(o["x"], unittest.equals('foo')); | 520 unittest.expect(o["x"], unittest.equals('foo')); |
| 369 unittest.expect(o["y"], unittest.equals('foo')); | 521 unittest.expect(o["y"], unittest.equals('foo')); |
| 370 } | 522 } |
| 371 | 523 |
| 372 core.int buildCounterHadoopJob = 0; | 524 core.int buildCounterHadoopJob = 0; |
| 373 buildHadoopJob() { | 525 buildHadoopJob() { |
| 374 var o = new api.HadoopJob(); | 526 var o = new api.HadoopJob(); |
| 375 buildCounterHadoopJob++; | 527 buildCounterHadoopJob++; |
| 376 if (buildCounterHadoopJob < 3) { | 528 if (buildCounterHadoopJob < 3) { |
| 377 o.archiveUris = buildUnnamed2882(); | 529 o.archiveUris = buildUnnamed3211(); |
| 378 o.args = buildUnnamed2883(); | 530 o.args = buildUnnamed3212(); |
| 379 o.fileUris = buildUnnamed2884(); | 531 o.fileUris = buildUnnamed3213(); |
| 380 o.jarFileUris = buildUnnamed2885(); | 532 o.jarFileUris = buildUnnamed3214(); |
| 381 o.loggingConfiguration = buildLoggingConfiguration(); | 533 o.loggingConfiguration = buildLoggingConfiguration(); |
| 382 o.mainClass = "foo"; | 534 o.mainClass = "foo"; |
| 383 o.mainJarFileUri = "foo"; | 535 o.mainJarFileUri = "foo"; |
| 384 o.properties = buildUnnamed2886(); | 536 o.properties = buildUnnamed3215(); |
| 385 } | 537 } |
| 386 buildCounterHadoopJob--; | 538 buildCounterHadoopJob--; |
| 387 return o; | 539 return o; |
| 388 } | 540 } |
| 389 | 541 |
| 390 checkHadoopJob(api.HadoopJob o) { | 542 checkHadoopJob(api.HadoopJob o) { |
| 391 buildCounterHadoopJob++; | 543 buildCounterHadoopJob++; |
| 392 if (buildCounterHadoopJob < 3) { | 544 if (buildCounterHadoopJob < 3) { |
| 393 checkUnnamed2882(o.archiveUris); | 545 checkUnnamed3211(o.archiveUris); |
| 394 checkUnnamed2883(o.args); | 546 checkUnnamed3212(o.args); |
| 395 checkUnnamed2884(o.fileUris); | 547 checkUnnamed3213(o.fileUris); |
| 396 checkUnnamed2885(o.jarFileUris); | 548 checkUnnamed3214(o.jarFileUris); |
| 397 checkLoggingConfiguration(o.loggingConfiguration); | 549 checkLoggingConfiguration(o.loggingConfiguration); |
| 398 unittest.expect(o.mainClass, unittest.equals('foo')); | 550 unittest.expect(o.mainClass, unittest.equals('foo')); |
| 399 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 551 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
| 400 checkUnnamed2886(o.properties); | 552 checkUnnamed3215(o.properties); |
| 401 } | 553 } |
| 402 buildCounterHadoopJob--; | 554 buildCounterHadoopJob--; |
| 403 } | 555 } |
| 404 | 556 |
| 405 buildUnnamed2887() { | 557 buildUnnamed3216() { |
| 406 var o = new core.List<core.String>(); | 558 var o = new core.List<core.String>(); |
| 407 o.add("foo"); | 559 o.add("foo"); |
| 408 o.add("foo"); | 560 o.add("foo"); |
| 409 return o; | 561 return o; |
| 410 } | 562 } |
| 411 | 563 |
| 412 checkUnnamed2887(core.List<core.String> o) { | 564 checkUnnamed3216(core.List<core.String> o) { |
| 413 unittest.expect(o, unittest.hasLength(2)); | 565 unittest.expect(o, unittest.hasLength(2)); |
| 414 unittest.expect(o[0], unittest.equals('foo')); | 566 unittest.expect(o[0], unittest.equals('foo')); |
| 415 unittest.expect(o[1], unittest.equals('foo')); | 567 unittest.expect(o[1], unittest.equals('foo')); |
| 416 } | 568 } |
| 417 | 569 |
| 418 buildUnnamed2888() { | 570 buildUnnamed3217() { |
| 419 var o = new core.Map<core.String, core.String>(); | 571 var o = new core.Map<core.String, core.String>(); |
| 420 o["x"] = "foo"; | 572 o["x"] = "foo"; |
| 421 o["y"] = "foo"; | 573 o["y"] = "foo"; |
| 422 return o; | 574 return o; |
| 423 } | 575 } |
| 424 | 576 |
| 425 checkUnnamed2888(core.Map<core.String, core.String> o) { | 577 checkUnnamed3217(core.Map<core.String, core.String> o) { |
| 426 unittest.expect(o, unittest.hasLength(2)); | 578 unittest.expect(o, unittest.hasLength(2)); |
| 427 unittest.expect(o["x"], unittest.equals('foo')); | 579 unittest.expect(o["x"], unittest.equals('foo')); |
| 428 unittest.expect(o["y"], unittest.equals('foo')); | 580 unittest.expect(o["y"], unittest.equals('foo')); |
| 429 } | 581 } |
| 430 | 582 |
| 431 buildUnnamed2889() { | 583 buildUnnamed3218() { |
| 432 var o = new core.Map<core.String, core.String>(); | 584 var o = new core.Map<core.String, core.String>(); |
| 433 o["x"] = "foo"; | 585 o["x"] = "foo"; |
| 434 o["y"] = "foo"; | 586 o["y"] = "foo"; |
| 435 return o; | 587 return o; |
| 436 } | 588 } |
| 437 | 589 |
| 438 checkUnnamed2889(core.Map<core.String, core.String> o) { | 590 checkUnnamed3218(core.Map<core.String, core.String> o) { |
| 439 unittest.expect(o, unittest.hasLength(2)); | 591 unittest.expect(o, unittest.hasLength(2)); |
| 440 unittest.expect(o["x"], unittest.equals('foo')); | 592 unittest.expect(o["x"], unittest.equals('foo')); |
| 441 unittest.expect(o["y"], unittest.equals('foo')); | 593 unittest.expect(o["y"], unittest.equals('foo')); |
| 442 } | 594 } |
| 443 | 595 |
| 444 core.int buildCounterHiveJob = 0; | 596 core.int buildCounterHiveJob = 0; |
| 445 buildHiveJob() { | 597 buildHiveJob() { |
| 446 var o = new api.HiveJob(); | 598 var o = new api.HiveJob(); |
| 447 buildCounterHiveJob++; | 599 buildCounterHiveJob++; |
| 448 if (buildCounterHiveJob < 3) { | 600 if (buildCounterHiveJob < 3) { |
| 449 o.continueOnFailure = true; | 601 o.continueOnFailure = true; |
| 450 o.jarFileUris = buildUnnamed2887(); | 602 o.jarFileUris = buildUnnamed3216(); |
| 451 o.properties = buildUnnamed2888(); | 603 o.properties = buildUnnamed3217(); |
| 452 o.queryFileUri = "foo"; | 604 o.queryFileUri = "foo"; |
| 453 o.queryList = buildQueryList(); | 605 o.queryList = buildQueryList(); |
| 454 o.scriptVariables = buildUnnamed2889(); | 606 o.scriptVariables = buildUnnamed3218(); |
| 455 } | 607 } |
| 456 buildCounterHiveJob--; | 608 buildCounterHiveJob--; |
| 457 return o; | 609 return o; |
| 458 } | 610 } |
| 459 | 611 |
| 460 checkHiveJob(api.HiveJob o) { | 612 checkHiveJob(api.HiveJob o) { |
| 461 buildCounterHiveJob++; | 613 buildCounterHiveJob++; |
| 462 if (buildCounterHiveJob < 3) { | 614 if (buildCounterHiveJob < 3) { |
| 463 unittest.expect(o.continueOnFailure, unittest.isTrue); | 615 unittest.expect(o.continueOnFailure, unittest.isTrue); |
| 464 checkUnnamed2887(o.jarFileUris); | 616 checkUnnamed3216(o.jarFileUris); |
| 465 checkUnnamed2888(o.properties); | 617 checkUnnamed3217(o.properties); |
| 466 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 618 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
| 467 checkQueryList(o.queryList); | 619 checkQueryList(o.queryList); |
| 468 checkUnnamed2889(o.scriptVariables); | 620 checkUnnamed3218(o.scriptVariables); |
| 469 } | 621 } |
| 470 buildCounterHiveJob--; | 622 buildCounterHiveJob--; |
| 471 } | 623 } |
| 472 | 624 |
| 473 buildUnnamed2890() { | 625 buildUnnamed3219() { |
| 474 var o = new core.List<core.String>(); | 626 var o = new core.List<core.String>(); |
| 475 o.add("foo"); | 627 o.add("foo"); |
| 476 o.add("foo"); | 628 o.add("foo"); |
| 477 return o; | 629 return o; |
| 478 } | 630 } |
| 479 | 631 |
| 480 checkUnnamed2890(core.List<core.String> o) { | 632 checkUnnamed3219(core.List<core.String> o) { |
| 481 unittest.expect(o, unittest.hasLength(2)); | 633 unittest.expect(o, unittest.hasLength(2)); |
| 482 unittest.expect(o[0], unittest.equals('foo')); | 634 unittest.expect(o[0], unittest.equals('foo')); |
| 483 unittest.expect(o[1], unittest.equals('foo')); | 635 unittest.expect(o[1], unittest.equals('foo')); |
| 484 } | 636 } |
| 485 | 637 |
| 486 core.int buildCounterInstanceGroupConfiguration = 0; | 638 core.int buildCounterInstanceGroupConfiguration = 0; |
| 487 buildInstanceGroupConfiguration() { | 639 buildInstanceGroupConfiguration() { |
| 488 var o = new api.InstanceGroupConfiguration(); | 640 var o = new api.InstanceGroupConfiguration(); |
| 489 buildCounterInstanceGroupConfiguration++; | 641 buildCounterInstanceGroupConfiguration++; |
| 490 if (buildCounterInstanceGroupConfiguration < 3) { | 642 if (buildCounterInstanceGroupConfiguration < 3) { |
| 491 o.diskConfiguration = buildDiskConfiguration(); | 643 o.diskConfiguration = buildDiskConfiguration(); |
| 492 o.imageUri = "foo"; | 644 o.imageUri = "foo"; |
| 493 o.instanceNames = buildUnnamed2890(); | 645 o.instanceNames = buildUnnamed3219(); |
| 494 o.isPreemptible = true; | 646 o.isPreemptible = true; |
| 495 o.machineTypeUri = "foo"; | 647 o.machineTypeUri = "foo"; |
| 496 o.managedGroupConfiguration = buildManagedGroupConfiguration(); | 648 o.managedGroupConfiguration = buildManagedGroupConfiguration(); |
| 497 o.numInstances = 42; | 649 o.numInstances = 42; |
| 498 } | 650 } |
| 499 buildCounterInstanceGroupConfiguration--; | 651 buildCounterInstanceGroupConfiguration--; |
| 500 return o; | 652 return o; |
| 501 } | 653 } |
| 502 | 654 |
| 503 checkInstanceGroupConfiguration(api.InstanceGroupConfiguration o) { | 655 checkInstanceGroupConfiguration(api.InstanceGroupConfiguration o) { |
| 504 buildCounterInstanceGroupConfiguration++; | 656 buildCounterInstanceGroupConfiguration++; |
| 505 if (buildCounterInstanceGroupConfiguration < 3) { | 657 if (buildCounterInstanceGroupConfiguration < 3) { |
| 506 checkDiskConfiguration(o.diskConfiguration); | 658 checkDiskConfiguration(o.diskConfiguration); |
| 507 unittest.expect(o.imageUri, unittest.equals('foo')); | 659 unittest.expect(o.imageUri, unittest.equals('foo')); |
| 508 checkUnnamed2890(o.instanceNames); | 660 checkUnnamed3219(o.instanceNames); |
| 509 unittest.expect(o.isPreemptible, unittest.isTrue); | 661 unittest.expect(o.isPreemptible, unittest.isTrue); |
| 510 unittest.expect(o.machineTypeUri, unittest.equals('foo')); | 662 unittest.expect(o.machineTypeUri, unittest.equals('foo')); |
| 511 checkManagedGroupConfiguration(o.managedGroupConfiguration); | 663 checkManagedGroupConfiguration(o.managedGroupConfiguration); |
| 512 unittest.expect(o.numInstances, unittest.equals(42)); | 664 unittest.expect(o.numInstances, unittest.equals(42)); |
| 513 } | 665 } |
| 514 buildCounterInstanceGroupConfiguration--; | 666 buildCounterInstanceGroupConfiguration--; |
| 515 } | 667 } |
| 516 | 668 |
| 517 buildUnnamed2891() { | 669 buildUnnamed3220() { |
| 518 var o = new core.List<api.JobStatus>(); | 670 var o = new core.List<api.JobStatus>(); |
| 519 o.add(buildJobStatus()); | 671 o.add(buildJobStatus()); |
| 520 o.add(buildJobStatus()); | 672 o.add(buildJobStatus()); |
| 521 return o; | 673 return o; |
| 522 } | 674 } |
| 523 | 675 |
| 524 checkUnnamed2891(core.List<api.JobStatus> o) { | 676 checkUnnamed3220(core.List<api.JobStatus> o) { |
| 525 unittest.expect(o, unittest.hasLength(2)); | 677 unittest.expect(o, unittest.hasLength(2)); |
| 526 checkJobStatus(o[0]); | 678 checkJobStatus(o[0]); |
| 527 checkJobStatus(o[1]); | 679 checkJobStatus(o[1]); |
| 528 } | 680 } |
| 529 | 681 |
| 530 buildUnnamed2892() { | 682 buildUnnamed3221() { |
| 531 var o = new core.List<api.YarnApplication>(); | 683 var o = new core.List<api.YarnApplication>(); |
| 532 o.add(buildYarnApplication()); | 684 o.add(buildYarnApplication()); |
| 533 o.add(buildYarnApplication()); | 685 o.add(buildYarnApplication()); |
| 534 return o; | 686 return o; |
| 535 } | 687 } |
| 536 | 688 |
| 537 checkUnnamed2892(core.List<api.YarnApplication> o) { | 689 checkUnnamed3221(core.List<api.YarnApplication> o) { |
| 538 unittest.expect(o, unittest.hasLength(2)); | 690 unittest.expect(o, unittest.hasLength(2)); |
| 539 checkYarnApplication(o[0]); | 691 checkYarnApplication(o[0]); |
| 540 checkYarnApplication(o[1]); | 692 checkYarnApplication(o[1]); |
| 541 } | 693 } |
| 542 | 694 |
| 543 core.int buildCounterJob = 0; | 695 core.int buildCounterJob = 0; |
| 544 buildJob() { | 696 buildJob() { |
| 545 var o = new api.Job(); | 697 var o = new api.Job(); |
| 546 buildCounterJob++; | 698 buildCounterJob++; |
| 547 if (buildCounterJob < 3) { | 699 if (buildCounterJob < 3) { |
| 548 o.driverControlFilesUri = "foo"; | 700 o.driverControlFilesUri = "foo"; |
| 549 o.driverInputResourceUri = "foo"; | 701 o.driverInputResourceUri = "foo"; |
| 550 o.driverOutputResourceUri = "foo"; | 702 o.driverOutputResourceUri = "foo"; |
| 551 o.hadoopJob = buildHadoopJob(); | 703 o.hadoopJob = buildHadoopJob(); |
| 552 o.hiveJob = buildHiveJob(); | 704 o.hiveJob = buildHiveJob(); |
| 553 o.interactive = true; | 705 o.interactive = true; |
| 554 o.pigJob = buildPigJob(); | 706 o.pigJob = buildPigJob(); |
| 555 o.placement = buildJobPlacement(); | 707 o.placement = buildJobPlacement(); |
| 556 o.pysparkJob = buildPySparkJob(); | 708 o.pysparkJob = buildPySparkJob(); |
| 557 o.reference = buildJobReference(); | 709 o.reference = buildJobReference(); |
| 558 o.sparkJob = buildSparkJob(); | 710 o.sparkJob = buildSparkJob(); |
| 559 o.sparkSqlJob = buildSparkSqlJob(); | 711 o.sparkSqlJob = buildSparkSqlJob(); |
| 560 o.status = buildJobStatus(); | 712 o.status = buildJobStatus(); |
| 561 o.statusHistory = buildUnnamed2891(); | 713 o.statusHistory = buildUnnamed3220(); |
| 562 o.submittedBy = "foo"; | 714 o.submittedBy = "foo"; |
| 563 o.yarnApplications = buildUnnamed2892(); | 715 o.yarnApplications = buildUnnamed3221(); |
| 564 } | 716 } |
| 565 buildCounterJob--; | 717 buildCounterJob--; |
| 566 return o; | 718 return o; |
| 567 } | 719 } |
| 568 | 720 |
| 569 checkJob(api.Job o) { | 721 checkJob(api.Job o) { |
| 570 buildCounterJob++; | 722 buildCounterJob++; |
| 571 if (buildCounterJob < 3) { | 723 if (buildCounterJob < 3) { |
| 572 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); | 724 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); |
| 573 unittest.expect(o.driverInputResourceUri, unittest.equals('foo')); | 725 unittest.expect(o.driverInputResourceUri, unittest.equals('foo')); |
| 574 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); | 726 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); |
| 575 checkHadoopJob(o.hadoopJob); | 727 checkHadoopJob(o.hadoopJob); |
| 576 checkHiveJob(o.hiveJob); | 728 checkHiveJob(o.hiveJob); |
| 577 unittest.expect(o.interactive, unittest.isTrue); | 729 unittest.expect(o.interactive, unittest.isTrue); |
| 578 checkPigJob(o.pigJob); | 730 checkPigJob(o.pigJob); |
| 579 checkJobPlacement(o.placement); | 731 checkJobPlacement(o.placement); |
| 580 checkPySparkJob(o.pysparkJob); | 732 checkPySparkJob(o.pysparkJob); |
| 581 checkJobReference(o.reference); | 733 checkJobReference(o.reference); |
| 582 checkSparkJob(o.sparkJob); | 734 checkSparkJob(o.sparkJob); |
| 583 checkSparkSqlJob(o.sparkSqlJob); | 735 checkSparkSqlJob(o.sparkSqlJob); |
| 584 checkJobStatus(o.status); | 736 checkJobStatus(o.status); |
| 585 checkUnnamed2891(o.statusHistory); | 737 checkUnnamed3220(o.statusHistory); |
| 586 unittest.expect(o.submittedBy, unittest.equals('foo')); | 738 unittest.expect(o.submittedBy, unittest.equals('foo')); |
| 587 checkUnnamed2892(o.yarnApplications); | 739 checkUnnamed3221(o.yarnApplications); |
| 588 } | 740 } |
| 589 buildCounterJob--; | 741 buildCounterJob--; |
| 590 } | 742 } |
| 591 | 743 |
| 592 core.int buildCounterJobPlacement = 0; | 744 core.int buildCounterJobPlacement = 0; |
| 593 buildJobPlacement() { | 745 buildJobPlacement() { |
| 594 var o = new api.JobPlacement(); | 746 var o = new api.JobPlacement(); |
| 595 buildCounterJobPlacement++; | 747 buildCounterJobPlacement++; |
| 596 if (buildCounterJobPlacement < 3) { | 748 if (buildCounterJobPlacement < 3) { |
| 597 o.clusterName = "foo"; | 749 o.clusterName = "foo"; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 checkJobStatus(api.JobStatus o) { | 799 checkJobStatus(api.JobStatus o) { |
| 648 buildCounterJobStatus++; | 800 buildCounterJobStatus++; |
| 649 if (buildCounterJobStatus < 3) { | 801 if (buildCounterJobStatus < 3) { |
| 650 unittest.expect(o.details, unittest.equals('foo')); | 802 unittest.expect(o.details, unittest.equals('foo')); |
| 651 unittest.expect(o.state, unittest.equals('foo')); | 803 unittest.expect(o.state, unittest.equals('foo')); |
| 652 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 804 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
| 653 } | 805 } |
| 654 buildCounterJobStatus--; | 806 buildCounterJobStatus--; |
| 655 } | 807 } |
| 656 | 808 |
| 657 buildUnnamed2893() { | 809 buildUnnamed3222() { |
| 658 var o = new core.List<api.Cluster>(); | 810 var o = new core.List<api.Cluster>(); |
| 659 o.add(buildCluster()); | 811 o.add(buildCluster()); |
| 660 o.add(buildCluster()); | 812 o.add(buildCluster()); |
| 661 return o; | 813 return o; |
| 662 } | 814 } |
| 663 | 815 |
| 664 checkUnnamed2893(core.List<api.Cluster> o) { | 816 checkUnnamed3222(core.List<api.Cluster> o) { |
| 665 unittest.expect(o, unittest.hasLength(2)); | 817 unittest.expect(o, unittest.hasLength(2)); |
| 666 checkCluster(o[0]); | 818 checkCluster(o[0]); |
| 667 checkCluster(o[1]); | 819 checkCluster(o[1]); |
| 668 } | 820 } |
| 669 | 821 |
| 670 core.int buildCounterListClustersResponse = 0; | 822 core.int buildCounterListClustersResponse = 0; |
| 671 buildListClustersResponse() { | 823 buildListClustersResponse() { |
| 672 var o = new api.ListClustersResponse(); | 824 var o = new api.ListClustersResponse(); |
| 673 buildCounterListClustersResponse++; | 825 buildCounterListClustersResponse++; |
| 674 if (buildCounterListClustersResponse < 3) { | 826 if (buildCounterListClustersResponse < 3) { |
| 675 o.clusters = buildUnnamed2893(); | 827 o.clusters = buildUnnamed3222(); |
| 676 o.nextPageToken = "foo"; | 828 o.nextPageToken = "foo"; |
| 677 } | 829 } |
| 678 buildCounterListClustersResponse--; | 830 buildCounterListClustersResponse--; |
| 679 return o; | 831 return o; |
| 680 } | 832 } |
| 681 | 833 |
| 682 checkListClustersResponse(api.ListClustersResponse o) { | 834 checkListClustersResponse(api.ListClustersResponse o) { |
| 683 buildCounterListClustersResponse++; | 835 buildCounterListClustersResponse++; |
| 684 if (buildCounterListClustersResponse < 3) { | 836 if (buildCounterListClustersResponse < 3) { |
| 685 checkUnnamed2893(o.clusters); | 837 checkUnnamed3222(o.clusters); |
| 686 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 838 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 687 } | 839 } |
| 688 buildCounterListClustersResponse--; | 840 buildCounterListClustersResponse--; |
| 689 } | 841 } |
| 690 | 842 |
| 691 buildUnnamed2894() { | 843 buildUnnamed3223() { |
| 692 var o = new core.List<api.Job>(); | 844 var o = new core.List<api.Job>(); |
| 693 o.add(buildJob()); | 845 o.add(buildJob()); |
| 694 o.add(buildJob()); | 846 o.add(buildJob()); |
| 695 return o; | 847 return o; |
| 696 } | 848 } |
| 697 | 849 |
| 698 checkUnnamed2894(core.List<api.Job> o) { | 850 checkUnnamed3223(core.List<api.Job> o) { |
| 699 unittest.expect(o, unittest.hasLength(2)); | 851 unittest.expect(o, unittest.hasLength(2)); |
| 700 checkJob(o[0]); | 852 checkJob(o[0]); |
| 701 checkJob(o[1]); | 853 checkJob(o[1]); |
| 702 } | 854 } |
| 703 | 855 |
| 704 core.int buildCounterListJobsResponse = 0; | 856 core.int buildCounterListJobsResponse = 0; |
| 705 buildListJobsResponse() { | 857 buildListJobsResponse() { |
| 706 var o = new api.ListJobsResponse(); | 858 var o = new api.ListJobsResponse(); |
| 707 buildCounterListJobsResponse++; | 859 buildCounterListJobsResponse++; |
| 708 if (buildCounterListJobsResponse < 3) { | 860 if (buildCounterListJobsResponse < 3) { |
| 709 o.jobs = buildUnnamed2894(); | 861 o.jobs = buildUnnamed3223(); |
| 710 o.nextPageToken = "foo"; | 862 o.nextPageToken = "foo"; |
| 711 } | 863 } |
| 712 buildCounterListJobsResponse--; | 864 buildCounterListJobsResponse--; |
| 713 return o; | 865 return o; |
| 714 } | 866 } |
| 715 | 867 |
| 716 checkListJobsResponse(api.ListJobsResponse o) { | 868 checkListJobsResponse(api.ListJobsResponse o) { |
| 717 buildCounterListJobsResponse++; | 869 buildCounterListJobsResponse++; |
| 718 if (buildCounterListJobsResponse < 3) { | 870 if (buildCounterListJobsResponse < 3) { |
| 719 checkUnnamed2894(o.jobs); | 871 checkUnnamed3223(o.jobs); |
| 720 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 872 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 721 } | 873 } |
| 722 buildCounterListJobsResponse--; | 874 buildCounterListJobsResponse--; |
| 723 } | 875 } |
| 724 | 876 |
| 725 buildUnnamed2895() { | 877 buildUnnamed3224() { |
| 726 var o = new core.List<api.Operation>(); | 878 var o = new core.List<api.Operation>(); |
| 727 o.add(buildOperation()); | 879 o.add(buildOperation()); |
| 728 o.add(buildOperation()); | 880 o.add(buildOperation()); |
| 729 return o; | 881 return o; |
| 730 } | 882 } |
| 731 | 883 |
| 732 checkUnnamed2895(core.List<api.Operation> o) { | 884 checkUnnamed3224(core.List<api.Operation> o) { |
| 733 unittest.expect(o, unittest.hasLength(2)); | 885 unittest.expect(o, unittest.hasLength(2)); |
| 734 checkOperation(o[0]); | 886 checkOperation(o[0]); |
| 735 checkOperation(o[1]); | 887 checkOperation(o[1]); |
| 736 } | 888 } |
| 737 | 889 |
| 738 core.int buildCounterListOperationsResponse = 0; | 890 core.int buildCounterListOperationsResponse = 0; |
| 739 buildListOperationsResponse() { | 891 buildListOperationsResponse() { |
| 740 var o = new api.ListOperationsResponse(); | 892 var o = new api.ListOperationsResponse(); |
| 741 buildCounterListOperationsResponse++; | 893 buildCounterListOperationsResponse++; |
| 742 if (buildCounterListOperationsResponse < 3) { | 894 if (buildCounterListOperationsResponse < 3) { |
| 743 o.nextPageToken = "foo"; | 895 o.nextPageToken = "foo"; |
| 744 o.operations = buildUnnamed2895(); | 896 o.operations = buildUnnamed3224(); |
| 745 } | 897 } |
| 746 buildCounterListOperationsResponse--; | 898 buildCounterListOperationsResponse--; |
| 747 return o; | 899 return o; |
| 748 } | 900 } |
| 749 | 901 |
| 750 checkListOperationsResponse(api.ListOperationsResponse o) { | 902 checkListOperationsResponse(api.ListOperationsResponse o) { |
| 751 buildCounterListOperationsResponse++; | 903 buildCounterListOperationsResponse++; |
| 752 if (buildCounterListOperationsResponse < 3) { | 904 if (buildCounterListOperationsResponse < 3) { |
| 753 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 905 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 754 checkUnnamed2895(o.operations); | 906 checkUnnamed3224(o.operations); |
| 755 } | 907 } |
| 756 buildCounterListOperationsResponse--; | 908 buildCounterListOperationsResponse--; |
| 757 } | 909 } |
| 758 | 910 |
| 759 buildUnnamed2896() { | 911 buildUnnamed3225() { |
| 760 var o = new core.Map<core.String, core.String>(); | 912 var o = new core.Map<core.String, core.String>(); |
| 761 o["x"] = "foo"; | 913 o["x"] = "foo"; |
| 762 o["y"] = "foo"; | 914 o["y"] = "foo"; |
| 763 return o; | 915 return o; |
| 764 } | 916 } |
| 765 | 917 |
| 766 checkUnnamed2896(core.Map<core.String, core.String> o) { | 918 checkUnnamed3225(core.Map<core.String, core.String> o) { |
| 767 unittest.expect(o, unittest.hasLength(2)); | 919 unittest.expect(o, unittest.hasLength(2)); |
| 768 unittest.expect(o["x"], unittest.equals('foo')); | 920 unittest.expect(o["x"], unittest.equals('foo')); |
| 769 unittest.expect(o["y"], unittest.equals('foo')); | 921 unittest.expect(o["y"], unittest.equals('foo')); |
| 770 } | 922 } |
| 771 | 923 |
| 772 core.int buildCounterLoggingConfiguration = 0; | 924 core.int buildCounterLoggingConfiguration = 0; |
| 773 buildLoggingConfiguration() { | 925 buildLoggingConfiguration() { |
| 774 var o = new api.LoggingConfiguration(); | 926 var o = new api.LoggingConfiguration(); |
| 775 buildCounterLoggingConfiguration++; | 927 buildCounterLoggingConfiguration++; |
| 776 if (buildCounterLoggingConfiguration < 3) { | 928 if (buildCounterLoggingConfiguration < 3) { |
| 777 o.driverLogLevels = buildUnnamed2896(); | 929 o.driverLogLevels = buildUnnamed3225(); |
| 778 } | 930 } |
| 779 buildCounterLoggingConfiguration--; | 931 buildCounterLoggingConfiguration--; |
| 780 return o; | 932 return o; |
| 781 } | 933 } |
| 782 | 934 |
| 783 checkLoggingConfiguration(api.LoggingConfiguration o) { | 935 checkLoggingConfiguration(api.LoggingConfiguration o) { |
| 784 buildCounterLoggingConfiguration++; | 936 buildCounterLoggingConfiguration++; |
| 785 if (buildCounterLoggingConfiguration < 3) { | 937 if (buildCounterLoggingConfiguration < 3) { |
| 786 checkUnnamed2896(o.driverLogLevels); | 938 checkUnnamed3225(o.driverLogLevels); |
| 787 } | 939 } |
| 788 buildCounterLoggingConfiguration--; | 940 buildCounterLoggingConfiguration--; |
| 789 } | 941 } |
| 790 | 942 |
| 791 core.int buildCounterManagedGroupConfiguration = 0; | 943 core.int buildCounterManagedGroupConfiguration = 0; |
| 792 buildManagedGroupConfiguration() { | 944 buildManagedGroupConfiguration() { |
| 793 var o = new api.ManagedGroupConfiguration(); | 945 var o = new api.ManagedGroupConfiguration(); |
| 794 buildCounterManagedGroupConfiguration++; | 946 buildCounterManagedGroupConfiguration++; |
| 795 if (buildCounterManagedGroupConfiguration < 3) { | 947 if (buildCounterManagedGroupConfiguration < 3) { |
| 796 o.instanceGroupManagerName = "foo"; | 948 o.instanceGroupManagerName = "foo"; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 823 | 975 |
| 824 checkNodeInitializationAction(api.NodeInitializationAction o) { | 976 checkNodeInitializationAction(api.NodeInitializationAction o) { |
| 825 buildCounterNodeInitializationAction++; | 977 buildCounterNodeInitializationAction++; |
| 826 if (buildCounterNodeInitializationAction < 3) { | 978 if (buildCounterNodeInitializationAction < 3) { |
| 827 unittest.expect(o.executableFile, unittest.equals('foo')); | 979 unittest.expect(o.executableFile, unittest.equals('foo')); |
| 828 unittest.expect(o.executionTimeout, unittest.equals('foo')); | 980 unittest.expect(o.executionTimeout, unittest.equals('foo')); |
| 829 } | 981 } |
| 830 buildCounterNodeInitializationAction--; | 982 buildCounterNodeInitializationAction--; |
| 831 } | 983 } |
| 832 | 984 |
| 833 buildUnnamed2897() { | 985 buildUnnamed3226() { |
| 834 var o = new core.Map<core.String, core.Object>(); | 986 var o = new core.Map<core.String, core.Object>(); |
| 835 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 987 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 836 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 988 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 837 return o; | 989 return o; |
| 838 } | 990 } |
| 839 | 991 |
| 840 checkUnnamed2897(core.Map<core.String, core.Object> o) { | 992 checkUnnamed3226(core.Map<core.String, core.Object> o) { |
| 841 unittest.expect(o, unittest.hasLength(2)); | 993 unittest.expect(o, unittest.hasLength(2)); |
| 842 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')); | 994 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')); |
| 843 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')); | 995 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')); |
| 844 } | 996 } |
| 845 | 997 |
| 846 buildUnnamed2898() { | 998 buildUnnamed3227() { |
| 847 var o = new core.Map<core.String, core.Object>(); | 999 var o = new core.Map<core.String, core.Object>(); |
| 848 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1000 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 849 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1001 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 850 return o; | 1002 return o; |
| 851 } | 1003 } |
| 852 | 1004 |
| 853 checkUnnamed2898(core.Map<core.String, core.Object> o) { | 1005 checkUnnamed3227(core.Map<core.String, core.Object> o) { |
| 854 unittest.expect(o, unittest.hasLength(2)); | 1006 unittest.expect(o, unittest.hasLength(2)); |
| 855 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')); | 1007 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')); |
| 856 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')); | 1008 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')); |
| 857 } | 1009 } |
| 858 | 1010 |
| 859 core.int buildCounterOperation = 0; | 1011 core.int buildCounterOperation = 0; |
| 860 buildOperation() { | 1012 buildOperation() { |
| 861 var o = new api.Operation(); | 1013 var o = new api.Operation(); |
| 862 buildCounterOperation++; | 1014 buildCounterOperation++; |
| 863 if (buildCounterOperation < 3) { | 1015 if (buildCounterOperation < 3) { |
| 864 o.done = true; | 1016 o.done = true; |
| 865 o.error = buildStatus(); | 1017 o.error = buildStatus(); |
| 866 o.metadata = buildUnnamed2897(); | 1018 o.metadata = buildUnnamed3226(); |
| 867 o.name = "foo"; | 1019 o.name = "foo"; |
| 868 o.response = buildUnnamed2898(); | 1020 o.response = buildUnnamed3227(); |
| 869 } | 1021 } |
| 870 buildCounterOperation--; | 1022 buildCounterOperation--; |
| 871 return o; | 1023 return o; |
| 872 } | 1024 } |
| 873 | 1025 |
| 874 checkOperation(api.Operation o) { | 1026 checkOperation(api.Operation o) { |
| 875 buildCounterOperation++; | 1027 buildCounterOperation++; |
| 876 if (buildCounterOperation < 3) { | 1028 if (buildCounterOperation < 3) { |
| 877 unittest.expect(o.done, unittest.isTrue); | 1029 unittest.expect(o.done, unittest.isTrue); |
| 878 checkStatus(o.error); | 1030 checkStatus(o.error); |
| 879 checkUnnamed2897(o.metadata); | 1031 checkUnnamed3226(o.metadata); |
| 880 unittest.expect(o.name, unittest.equals('foo')); | 1032 unittest.expect(o.name, unittest.equals('foo')); |
| 881 checkUnnamed2898(o.response); | 1033 checkUnnamed3227(o.response); |
| 882 } | 1034 } |
| 883 buildCounterOperation--; | 1035 buildCounterOperation--; |
| 884 } | 1036 } |
| 885 | 1037 |
| 886 buildUnnamed2899() { | 1038 buildUnnamed3228() { |
| 887 var o = new core.List<api.OperationStatus>(); | 1039 var o = new core.List<api.OperationStatus>(); |
| 888 o.add(buildOperationStatus()); | 1040 o.add(buildOperationStatus()); |
| 889 o.add(buildOperationStatus()); | 1041 o.add(buildOperationStatus()); |
| 890 return o; | 1042 return o; |
| 891 } | 1043 } |
| 892 | 1044 |
| 893 checkUnnamed2899(core.List<api.OperationStatus> o) { | 1045 checkUnnamed3228(core.List<api.OperationStatus> o) { |
| 894 unittest.expect(o, unittest.hasLength(2)); | 1046 unittest.expect(o, unittest.hasLength(2)); |
| 895 checkOperationStatus(o[0]); | 1047 checkOperationStatus(o[0]); |
| 896 checkOperationStatus(o[1]); | 1048 checkOperationStatus(o[1]); |
| 897 } | 1049 } |
| 898 | 1050 |
| 899 core.int buildCounterOperationMetadata = 0; | 1051 core.int buildCounterOperationMetadata = 0; |
| 900 buildOperationMetadata() { | 1052 buildOperationMetadata() { |
| 901 var o = new api.OperationMetadata(); | 1053 var o = new api.OperationMetadata(); |
| 902 buildCounterOperationMetadata++; | 1054 buildCounterOperationMetadata++; |
| 903 if (buildCounterOperationMetadata < 3) { | 1055 if (buildCounterOperationMetadata < 3) { |
| 904 o.clusterName = "foo"; | 1056 o.clusterName = "foo"; |
| 905 o.clusterUuid = "foo"; | 1057 o.clusterUuid = "foo"; |
| 1058 o.description = "foo"; |
| 906 o.details = "foo"; | 1059 o.details = "foo"; |
| 907 o.endTime = "foo"; | 1060 o.endTime = "foo"; |
| 908 o.innerState = "foo"; | 1061 o.innerState = "foo"; |
| 909 o.insertTime = "foo"; | 1062 o.insertTime = "foo"; |
| 1063 o.operationType = "foo"; |
| 910 o.startTime = "foo"; | 1064 o.startTime = "foo"; |
| 911 o.state = "foo"; | 1065 o.state = "foo"; |
| 912 o.status = buildOperationStatus(); | 1066 o.status = buildOperationStatus(); |
| 913 o.statusHistory = buildUnnamed2899(); | 1067 o.statusHistory = buildUnnamed3228(); |
| 914 } | 1068 } |
| 915 buildCounterOperationMetadata--; | 1069 buildCounterOperationMetadata--; |
| 916 return o; | 1070 return o; |
| 917 } | 1071 } |
| 918 | 1072 |
| 919 checkOperationMetadata(api.OperationMetadata o) { | 1073 checkOperationMetadata(api.OperationMetadata o) { |
| 920 buildCounterOperationMetadata++; | 1074 buildCounterOperationMetadata++; |
| 921 if (buildCounterOperationMetadata < 3) { | 1075 if (buildCounterOperationMetadata < 3) { |
| 922 unittest.expect(o.clusterName, unittest.equals('foo')); | 1076 unittest.expect(o.clusterName, unittest.equals('foo')); |
| 923 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 1077 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
| 1078 unittest.expect(o.description, unittest.equals('foo')); |
| 924 unittest.expect(o.details, unittest.equals('foo')); | 1079 unittest.expect(o.details, unittest.equals('foo')); |
| 925 unittest.expect(o.endTime, unittest.equals('foo')); | 1080 unittest.expect(o.endTime, unittest.equals('foo')); |
| 926 unittest.expect(o.innerState, unittest.equals('foo')); | 1081 unittest.expect(o.innerState, unittest.equals('foo')); |
| 927 unittest.expect(o.insertTime, unittest.equals('foo')); | 1082 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 1083 unittest.expect(o.operationType, unittest.equals('foo')); |
| 928 unittest.expect(o.startTime, unittest.equals('foo')); | 1084 unittest.expect(o.startTime, unittest.equals('foo')); |
| 929 unittest.expect(o.state, unittest.equals('foo')); | 1085 unittest.expect(o.state, unittest.equals('foo')); |
| 930 checkOperationStatus(o.status); | 1086 checkOperationStatus(o.status); |
| 931 checkUnnamed2899(o.statusHistory); | 1087 checkUnnamed3228(o.statusHistory); |
| 932 } | 1088 } |
| 933 buildCounterOperationMetadata--; | 1089 buildCounterOperationMetadata--; |
| 934 } | 1090 } |
| 935 | 1091 |
| 936 core.int buildCounterOperationStatus = 0; | 1092 core.int buildCounterOperationStatus = 0; |
| 937 buildOperationStatus() { | 1093 buildOperationStatus() { |
| 938 var o = new api.OperationStatus(); | 1094 var o = new api.OperationStatus(); |
| 939 buildCounterOperationStatus++; | 1095 buildCounterOperationStatus++; |
| 940 if (buildCounterOperationStatus < 3) { | 1096 if (buildCounterOperationStatus < 3) { |
| 941 o.details = "foo"; | 1097 o.details = "foo"; |
| 942 o.innerState = "foo"; | 1098 o.innerState = "foo"; |
| 943 o.state = "foo"; | 1099 o.state = "foo"; |
| 944 o.stateStartTime = "foo"; | 1100 o.stateStartTime = "foo"; |
| 945 } | 1101 } |
| 946 buildCounterOperationStatus--; | 1102 buildCounterOperationStatus--; |
| 947 return o; | 1103 return o; |
| 948 } | 1104 } |
| 949 | 1105 |
| 950 checkOperationStatus(api.OperationStatus o) { | 1106 checkOperationStatus(api.OperationStatus o) { |
| 951 buildCounterOperationStatus++; | 1107 buildCounterOperationStatus++; |
| 952 if (buildCounterOperationStatus < 3) { | 1108 if (buildCounterOperationStatus < 3) { |
| 953 unittest.expect(o.details, unittest.equals('foo')); | 1109 unittest.expect(o.details, unittest.equals('foo')); |
| 954 unittest.expect(o.innerState, unittest.equals('foo')); | 1110 unittest.expect(o.innerState, unittest.equals('foo')); |
| 955 unittest.expect(o.state, unittest.equals('foo')); | 1111 unittest.expect(o.state, unittest.equals('foo')); |
| 956 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 1112 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
| 957 } | 1113 } |
| 958 buildCounterOperationStatus--; | 1114 buildCounterOperationStatus--; |
| 959 } | 1115 } |
| 960 | 1116 |
| 961 buildUnnamed2900() { | 1117 buildUnnamed3229() { |
| 962 var o = new core.List<core.String>(); | 1118 var o = new core.List<core.String>(); |
| 963 o.add("foo"); | 1119 o.add("foo"); |
| 964 o.add("foo"); | 1120 o.add("foo"); |
| 965 return o; | 1121 return o; |
| 966 } | 1122 } |
| 967 | 1123 |
| 968 checkUnnamed2900(core.List<core.String> o) { | 1124 checkUnnamed3229(core.List<core.String> o) { |
| 969 unittest.expect(o, unittest.hasLength(2)); | 1125 unittest.expect(o, unittest.hasLength(2)); |
| 970 unittest.expect(o[0], unittest.equals('foo')); | 1126 unittest.expect(o[0], unittest.equals('foo')); |
| 971 unittest.expect(o[1], unittest.equals('foo')); | 1127 unittest.expect(o[1], unittest.equals('foo')); |
| 972 } | 1128 } |
| 973 | 1129 |
| 974 buildUnnamed2901() { | 1130 buildUnnamed3230() { |
| 975 var o = new core.Map<core.String, core.String>(); | 1131 var o = new core.Map<core.String, core.String>(); |
| 976 o["x"] = "foo"; | 1132 o["x"] = "foo"; |
| 977 o["y"] = "foo"; | 1133 o["y"] = "foo"; |
| 978 return o; | 1134 return o; |
| 979 } | 1135 } |
| 980 | 1136 |
| 981 checkUnnamed2901(core.Map<core.String, core.String> o) { | 1137 checkUnnamed3230(core.Map<core.String, core.String> o) { |
| 982 unittest.expect(o, unittest.hasLength(2)); | 1138 unittest.expect(o, unittest.hasLength(2)); |
| 983 unittest.expect(o["x"], unittest.equals('foo')); | 1139 unittest.expect(o["x"], unittest.equals('foo')); |
| 984 unittest.expect(o["y"], unittest.equals('foo')); | 1140 unittest.expect(o["y"], unittest.equals('foo')); |
| 985 } | 1141 } |
| 986 | 1142 |
| 987 buildUnnamed2902() { | 1143 buildUnnamed3231() { |
| 988 var o = new core.Map<core.String, core.String>(); | 1144 var o = new core.Map<core.String, core.String>(); |
| 989 o["x"] = "foo"; | 1145 o["x"] = "foo"; |
| 990 o["y"] = "foo"; | 1146 o["y"] = "foo"; |
| 991 return o; | 1147 return o; |
| 992 } | 1148 } |
| 993 | 1149 |
| 994 checkUnnamed2902(core.Map<core.String, core.String> o) { | 1150 checkUnnamed3231(core.Map<core.String, core.String> o) { |
| 995 unittest.expect(o, unittest.hasLength(2)); | 1151 unittest.expect(o, unittest.hasLength(2)); |
| 996 unittest.expect(o["x"], unittest.equals('foo')); | 1152 unittest.expect(o["x"], unittest.equals('foo')); |
| 997 unittest.expect(o["y"], unittest.equals('foo')); | 1153 unittest.expect(o["y"], unittest.equals('foo')); |
| 998 } | 1154 } |
| 999 | 1155 |
| 1000 core.int buildCounterPigJob = 0; | 1156 core.int buildCounterPigJob = 0; |
| 1001 buildPigJob() { | 1157 buildPigJob() { |
| 1002 var o = new api.PigJob(); | 1158 var o = new api.PigJob(); |
| 1003 buildCounterPigJob++; | 1159 buildCounterPigJob++; |
| 1004 if (buildCounterPigJob < 3) { | 1160 if (buildCounterPigJob < 3) { |
| 1005 o.continueOnFailure = true; | 1161 o.continueOnFailure = true; |
| 1006 o.jarFileUris = buildUnnamed2900(); | 1162 o.jarFileUris = buildUnnamed3229(); |
| 1007 o.loggingConfiguration = buildLoggingConfiguration(); | 1163 o.loggingConfiguration = buildLoggingConfiguration(); |
| 1008 o.properties = buildUnnamed2901(); | 1164 o.properties = buildUnnamed3230(); |
| 1009 o.queryFileUri = "foo"; | 1165 o.queryFileUri = "foo"; |
| 1010 o.queryList = buildQueryList(); | 1166 o.queryList = buildQueryList(); |
| 1011 o.scriptVariables = buildUnnamed2902(); | 1167 o.scriptVariables = buildUnnamed3231(); |
| 1012 } | 1168 } |
| 1013 buildCounterPigJob--; | 1169 buildCounterPigJob--; |
| 1014 return o; | 1170 return o; |
| 1015 } | 1171 } |
| 1016 | 1172 |
| 1017 checkPigJob(api.PigJob o) { | 1173 checkPigJob(api.PigJob o) { |
| 1018 buildCounterPigJob++; | 1174 buildCounterPigJob++; |
| 1019 if (buildCounterPigJob < 3) { | 1175 if (buildCounterPigJob < 3) { |
| 1020 unittest.expect(o.continueOnFailure, unittest.isTrue); | 1176 unittest.expect(o.continueOnFailure, unittest.isTrue); |
| 1021 checkUnnamed2900(o.jarFileUris); | 1177 checkUnnamed3229(o.jarFileUris); |
| 1022 checkLoggingConfiguration(o.loggingConfiguration); | 1178 checkLoggingConfiguration(o.loggingConfiguration); |
| 1023 checkUnnamed2901(o.properties); | 1179 checkUnnamed3230(o.properties); |
| 1024 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1180 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
| 1025 checkQueryList(o.queryList); | 1181 checkQueryList(o.queryList); |
| 1026 checkUnnamed2902(o.scriptVariables); | 1182 checkUnnamed3231(o.scriptVariables); |
| 1027 } | 1183 } |
| 1028 buildCounterPigJob--; | 1184 buildCounterPigJob--; |
| 1029 } | 1185 } |
| 1030 | 1186 |
| 1031 buildUnnamed2903() { | 1187 buildUnnamed3232() { |
| 1188 var o = new core.List<api.Binding>(); |
| 1189 o.add(buildBinding()); |
| 1190 o.add(buildBinding()); |
| 1191 return o; |
| 1192 } |
| 1193 |
| 1194 checkUnnamed3232(core.List<api.Binding> o) { |
| 1195 unittest.expect(o, unittest.hasLength(2)); |
| 1196 checkBinding(o[0]); |
| 1197 checkBinding(o[1]); |
| 1198 } |
| 1199 |
| 1200 core.int buildCounterPolicy = 0; |
| 1201 buildPolicy() { |
| 1202 var o = new api.Policy(); |
| 1203 buildCounterPolicy++; |
| 1204 if (buildCounterPolicy < 3) { |
| 1205 o.bindings = buildUnnamed3232(); |
| 1206 o.etag = "foo"; |
| 1207 o.version = 42; |
| 1208 } |
| 1209 buildCounterPolicy--; |
| 1210 return o; |
| 1211 } |
| 1212 |
| 1213 checkPolicy(api.Policy o) { |
| 1214 buildCounterPolicy++; |
| 1215 if (buildCounterPolicy < 3) { |
| 1216 checkUnnamed3232(o.bindings); |
| 1217 unittest.expect(o.etag, unittest.equals('foo')); |
| 1218 unittest.expect(o.version, unittest.equals(42)); |
| 1219 } |
| 1220 buildCounterPolicy--; |
| 1221 } |
| 1222 |
| 1223 buildUnnamed3233() { |
| 1032 var o = new core.List<core.String>(); | 1224 var o = new core.List<core.String>(); |
| 1033 o.add("foo"); | 1225 o.add("foo"); |
| 1034 o.add("foo"); | 1226 o.add("foo"); |
| 1035 return o; | 1227 return o; |
| 1036 } | 1228 } |
| 1037 | 1229 |
| 1038 checkUnnamed2903(core.List<core.String> o) { | 1230 checkUnnamed3233(core.List<core.String> o) { |
| 1039 unittest.expect(o, unittest.hasLength(2)); | 1231 unittest.expect(o, unittest.hasLength(2)); |
| 1040 unittest.expect(o[0], unittest.equals('foo')); | 1232 unittest.expect(o[0], unittest.equals('foo')); |
| 1041 unittest.expect(o[1], unittest.equals('foo')); | 1233 unittest.expect(o[1], unittest.equals('foo')); |
| 1042 } | 1234 } |
| 1043 | 1235 |
| 1044 buildUnnamed2904() { | 1236 buildUnnamed3234() { |
| 1045 var o = new core.List<core.String>(); | 1237 var o = new core.List<core.String>(); |
| 1046 o.add("foo"); | 1238 o.add("foo"); |
| 1047 o.add("foo"); | 1239 o.add("foo"); |
| 1048 return o; | 1240 return o; |
| 1049 } | 1241 } |
| 1050 | 1242 |
| 1051 checkUnnamed2904(core.List<core.String> o) { | 1243 checkUnnamed3234(core.List<core.String> o) { |
| 1052 unittest.expect(o, unittest.hasLength(2)); | 1244 unittest.expect(o, unittest.hasLength(2)); |
| 1053 unittest.expect(o[0], unittest.equals('foo')); | 1245 unittest.expect(o[0], unittest.equals('foo')); |
| 1054 unittest.expect(o[1], unittest.equals('foo')); | 1246 unittest.expect(o[1], unittest.equals('foo')); |
| 1055 } | 1247 } |
| 1056 | 1248 |
| 1057 buildUnnamed2905() { | 1249 buildUnnamed3235() { |
| 1058 var o = new core.List<core.String>(); | 1250 var o = new core.List<core.String>(); |
| 1059 o.add("foo"); | 1251 o.add("foo"); |
| 1060 o.add("foo"); | 1252 o.add("foo"); |
| 1061 return o; | 1253 return o; |
| 1062 } | 1254 } |
| 1063 | 1255 |
| 1064 checkUnnamed2905(core.List<core.String> o) { | 1256 checkUnnamed3235(core.List<core.String> o) { |
| 1065 unittest.expect(o, unittest.hasLength(2)); | 1257 unittest.expect(o, unittest.hasLength(2)); |
| 1066 unittest.expect(o[0], unittest.equals('foo')); | 1258 unittest.expect(o[0], unittest.equals('foo')); |
| 1067 unittest.expect(o[1], unittest.equals('foo')); | 1259 unittest.expect(o[1], unittest.equals('foo')); |
| 1068 } | 1260 } |
| 1069 | 1261 |
| 1070 buildUnnamed2906() { | 1262 buildUnnamed3236() { |
| 1071 var o = new core.List<core.String>(); | 1263 var o = new core.List<core.String>(); |
| 1072 o.add("foo"); | 1264 o.add("foo"); |
| 1073 o.add("foo"); | 1265 o.add("foo"); |
| 1074 return o; | 1266 return o; |
| 1075 } | 1267 } |
| 1076 | 1268 |
| 1077 checkUnnamed2906(core.List<core.String> o) { | 1269 checkUnnamed3236(core.List<core.String> o) { |
| 1078 unittest.expect(o, unittest.hasLength(2)); | 1270 unittest.expect(o, unittest.hasLength(2)); |
| 1079 unittest.expect(o[0], unittest.equals('foo')); | 1271 unittest.expect(o[0], unittest.equals('foo')); |
| 1080 unittest.expect(o[1], unittest.equals('foo')); | 1272 unittest.expect(o[1], unittest.equals('foo')); |
| 1081 } | 1273 } |
| 1082 | 1274 |
| 1083 buildUnnamed2907() { | 1275 buildUnnamed3237() { |
| 1084 var o = new core.Map<core.String, core.String>(); | 1276 var o = new core.Map<core.String, core.String>(); |
| 1085 o["x"] = "foo"; | 1277 o["x"] = "foo"; |
| 1086 o["y"] = "foo"; | 1278 o["y"] = "foo"; |
| 1087 return o; | 1279 return o; |
| 1088 } | 1280 } |
| 1089 | 1281 |
| 1090 checkUnnamed2907(core.Map<core.String, core.String> o) { | 1282 checkUnnamed3237(core.Map<core.String, core.String> o) { |
| 1091 unittest.expect(o, unittest.hasLength(2)); | 1283 unittest.expect(o, unittest.hasLength(2)); |
| 1092 unittest.expect(o["x"], unittest.equals('foo')); | 1284 unittest.expect(o["x"], unittest.equals('foo')); |
| 1093 unittest.expect(o["y"], unittest.equals('foo')); | 1285 unittest.expect(o["y"], unittest.equals('foo')); |
| 1094 } | 1286 } |
| 1095 | 1287 |
| 1096 buildUnnamed2908() { | 1288 buildUnnamed3238() { |
| 1097 var o = new core.List<core.String>(); | 1289 var o = new core.List<core.String>(); |
| 1098 o.add("foo"); | 1290 o.add("foo"); |
| 1099 o.add("foo"); | 1291 o.add("foo"); |
| 1100 return o; | 1292 return o; |
| 1101 } | 1293 } |
| 1102 | 1294 |
| 1103 checkUnnamed2908(core.List<core.String> o) { | 1295 checkUnnamed3238(core.List<core.String> o) { |
| 1104 unittest.expect(o, unittest.hasLength(2)); | 1296 unittest.expect(o, unittest.hasLength(2)); |
| 1105 unittest.expect(o[0], unittest.equals('foo')); | 1297 unittest.expect(o[0], unittest.equals('foo')); |
| 1106 unittest.expect(o[1], unittest.equals('foo')); | 1298 unittest.expect(o[1], unittest.equals('foo')); |
| 1107 } | 1299 } |
| 1108 | 1300 |
| 1109 core.int buildCounterPySparkJob = 0; | 1301 core.int buildCounterPySparkJob = 0; |
| 1110 buildPySparkJob() { | 1302 buildPySparkJob() { |
| 1111 var o = new api.PySparkJob(); | 1303 var o = new api.PySparkJob(); |
| 1112 buildCounterPySparkJob++; | 1304 buildCounterPySparkJob++; |
| 1113 if (buildCounterPySparkJob < 3) { | 1305 if (buildCounterPySparkJob < 3) { |
| 1114 o.archiveUris = buildUnnamed2903(); | 1306 o.archiveUris = buildUnnamed3233(); |
| 1115 o.args = buildUnnamed2904(); | 1307 o.args = buildUnnamed3234(); |
| 1116 o.fileUris = buildUnnamed2905(); | 1308 o.fileUris = buildUnnamed3235(); |
| 1117 o.jarFileUris = buildUnnamed2906(); | 1309 o.jarFileUris = buildUnnamed3236(); |
| 1118 o.loggingConfiguration = buildLoggingConfiguration(); | 1310 o.loggingConfiguration = buildLoggingConfiguration(); |
| 1119 o.mainPythonFileUri = "foo"; | 1311 o.mainPythonFileUri = "foo"; |
| 1120 o.properties = buildUnnamed2907(); | 1312 o.properties = buildUnnamed3237(); |
| 1121 o.pythonFileUris = buildUnnamed2908(); | 1313 o.pythonFileUris = buildUnnamed3238(); |
| 1122 } | 1314 } |
| 1123 buildCounterPySparkJob--; | 1315 buildCounterPySparkJob--; |
| 1124 return o; | 1316 return o; |
| 1125 } | 1317 } |
| 1126 | 1318 |
| 1127 checkPySparkJob(api.PySparkJob o) { | 1319 checkPySparkJob(api.PySparkJob o) { |
| 1128 buildCounterPySparkJob++; | 1320 buildCounterPySparkJob++; |
| 1129 if (buildCounterPySparkJob < 3) { | 1321 if (buildCounterPySparkJob < 3) { |
| 1130 checkUnnamed2903(o.archiveUris); | 1322 checkUnnamed3233(o.archiveUris); |
| 1131 checkUnnamed2904(o.args); | 1323 checkUnnamed3234(o.args); |
| 1132 checkUnnamed2905(o.fileUris); | 1324 checkUnnamed3235(o.fileUris); |
| 1133 checkUnnamed2906(o.jarFileUris); | 1325 checkUnnamed3236(o.jarFileUris); |
| 1134 checkLoggingConfiguration(o.loggingConfiguration); | 1326 checkLoggingConfiguration(o.loggingConfiguration); |
| 1135 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); | 1327 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); |
| 1136 checkUnnamed2907(o.properties); | 1328 checkUnnamed3237(o.properties); |
| 1137 checkUnnamed2908(o.pythonFileUris); | 1329 checkUnnamed3238(o.pythonFileUris); |
| 1138 } | 1330 } |
| 1139 buildCounterPySparkJob--; | 1331 buildCounterPySparkJob--; |
| 1140 } | 1332 } |
| 1141 | 1333 |
| 1142 buildUnnamed2909() { | 1334 buildUnnamed3239() { |
| 1143 var o = new core.List<core.String>(); | 1335 var o = new core.List<core.String>(); |
| 1144 o.add("foo"); | 1336 o.add("foo"); |
| 1145 o.add("foo"); | 1337 o.add("foo"); |
| 1146 return o; | 1338 return o; |
| 1147 } | 1339 } |
| 1148 | 1340 |
| 1149 checkUnnamed2909(core.List<core.String> o) { | 1341 checkUnnamed3239(core.List<core.String> o) { |
| 1150 unittest.expect(o, unittest.hasLength(2)); | 1342 unittest.expect(o, unittest.hasLength(2)); |
| 1151 unittest.expect(o[0], unittest.equals('foo')); | 1343 unittest.expect(o[0], unittest.equals('foo')); |
| 1152 unittest.expect(o[1], unittest.equals('foo')); | 1344 unittest.expect(o[1], unittest.equals('foo')); |
| 1153 } | 1345 } |
| 1154 | 1346 |
| 1155 core.int buildCounterQueryList = 0; | 1347 core.int buildCounterQueryList = 0; |
| 1156 buildQueryList() { | 1348 buildQueryList() { |
| 1157 var o = new api.QueryList(); | 1349 var o = new api.QueryList(); |
| 1158 buildCounterQueryList++; | 1350 buildCounterQueryList++; |
| 1159 if (buildCounterQueryList < 3) { | 1351 if (buildCounterQueryList < 3) { |
| 1160 o.queries = buildUnnamed2909(); | 1352 o.queries = buildUnnamed3239(); |
| 1161 } | 1353 } |
| 1162 buildCounterQueryList--; | 1354 buildCounterQueryList--; |
| 1163 return o; | 1355 return o; |
| 1164 } | 1356 } |
| 1165 | 1357 |
| 1166 checkQueryList(api.QueryList o) { | 1358 checkQueryList(api.QueryList o) { |
| 1167 buildCounterQueryList++; | 1359 buildCounterQueryList++; |
| 1168 if (buildCounterQueryList < 3) { | 1360 if (buildCounterQueryList < 3) { |
| 1169 checkUnnamed2909(o.queries); | 1361 checkUnnamed3239(o.queries); |
| 1170 } | 1362 } |
| 1171 buildCounterQueryList--; | 1363 buildCounterQueryList--; |
| 1172 } | 1364 } |
| 1173 | 1365 |
| 1366 core.int buildCounterSetIamPolicyRequest = 0; |
| 1367 buildSetIamPolicyRequest() { |
| 1368 var o = new api.SetIamPolicyRequest(); |
| 1369 buildCounterSetIamPolicyRequest++; |
| 1370 if (buildCounterSetIamPolicyRequest < 3) { |
| 1371 o.policy = buildPolicy(); |
| 1372 } |
| 1373 buildCounterSetIamPolicyRequest--; |
| 1374 return o; |
| 1375 } |
| 1376 |
| 1377 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { |
| 1378 buildCounterSetIamPolicyRequest++; |
| 1379 if (buildCounterSetIamPolicyRequest < 3) { |
| 1380 checkPolicy(o.policy); |
| 1381 } |
| 1382 buildCounterSetIamPolicyRequest--; |
| 1383 } |
| 1384 |
| 1385 buildUnnamed3240() { |
| 1386 var o = new core.Map<core.String, core.String>(); |
| 1387 o["x"] = "foo"; |
| 1388 o["y"] = "foo"; |
| 1389 return o; |
| 1390 } |
| 1391 |
| 1392 checkUnnamed3240(core.Map<core.String, core.String> o) { |
| 1393 unittest.expect(o, unittest.hasLength(2)); |
| 1394 unittest.expect(o["x"], unittest.equals('foo')); |
| 1395 unittest.expect(o["y"], unittest.equals('foo')); |
| 1396 } |
| 1397 |
| 1174 core.int buildCounterSoftwareConfiguration = 0; | 1398 core.int buildCounterSoftwareConfiguration = 0; |
| 1175 buildSoftwareConfiguration() { | 1399 buildSoftwareConfiguration() { |
| 1176 var o = new api.SoftwareConfiguration(); | 1400 var o = new api.SoftwareConfiguration(); |
| 1177 buildCounterSoftwareConfiguration++; | 1401 buildCounterSoftwareConfiguration++; |
| 1178 if (buildCounterSoftwareConfiguration < 3) { | 1402 if (buildCounterSoftwareConfiguration < 3) { |
| 1179 o.imageVersion = "foo"; | 1403 o.imageVersion = "foo"; |
| 1404 o.properties = buildUnnamed3240(); |
| 1180 } | 1405 } |
| 1181 buildCounterSoftwareConfiguration--; | 1406 buildCounterSoftwareConfiguration--; |
| 1182 return o; | 1407 return o; |
| 1183 } | 1408 } |
| 1184 | 1409 |
| 1185 checkSoftwareConfiguration(api.SoftwareConfiguration o) { | 1410 checkSoftwareConfiguration(api.SoftwareConfiguration o) { |
| 1186 buildCounterSoftwareConfiguration++; | 1411 buildCounterSoftwareConfiguration++; |
| 1187 if (buildCounterSoftwareConfiguration < 3) { | 1412 if (buildCounterSoftwareConfiguration < 3) { |
| 1188 unittest.expect(o.imageVersion, unittest.equals('foo')); | 1413 unittest.expect(o.imageVersion, unittest.equals('foo')); |
| 1414 checkUnnamed3240(o.properties); |
| 1189 } | 1415 } |
| 1190 buildCounterSoftwareConfiguration--; | 1416 buildCounterSoftwareConfiguration--; |
| 1191 } | 1417 } |
| 1192 | 1418 |
| 1193 buildUnnamed2910() { | 1419 buildUnnamed3241() { |
| 1194 var o = new core.List<core.String>(); | 1420 var o = new core.List<core.String>(); |
| 1195 o.add("foo"); | 1421 o.add("foo"); |
| 1196 o.add("foo"); | 1422 o.add("foo"); |
| 1197 return o; | 1423 return o; |
| 1198 } | 1424 } |
| 1199 | 1425 |
| 1200 checkUnnamed2910(core.List<core.String> o) { | 1426 checkUnnamed3241(core.List<core.String> o) { |
| 1201 unittest.expect(o, unittest.hasLength(2)); | 1427 unittest.expect(o, unittest.hasLength(2)); |
| 1202 unittest.expect(o[0], unittest.equals('foo')); | 1428 unittest.expect(o[0], unittest.equals('foo')); |
| 1203 unittest.expect(o[1], unittest.equals('foo')); | 1429 unittest.expect(o[1], unittest.equals('foo')); |
| 1204 } | 1430 } |
| 1205 | 1431 |
| 1206 buildUnnamed2911() { | 1432 buildUnnamed3242() { |
| 1207 var o = new core.List<core.String>(); | 1433 var o = new core.List<core.String>(); |
| 1208 o.add("foo"); | 1434 o.add("foo"); |
| 1209 o.add("foo"); | 1435 o.add("foo"); |
| 1210 return o; | 1436 return o; |
| 1211 } | 1437 } |
| 1212 | 1438 |
| 1213 checkUnnamed2911(core.List<core.String> o) { | 1439 checkUnnamed3242(core.List<core.String> o) { |
| 1214 unittest.expect(o, unittest.hasLength(2)); | 1440 unittest.expect(o, unittest.hasLength(2)); |
| 1215 unittest.expect(o[0], unittest.equals('foo')); | 1441 unittest.expect(o[0], unittest.equals('foo')); |
| 1216 unittest.expect(o[1], unittest.equals('foo')); | 1442 unittest.expect(o[1], unittest.equals('foo')); |
| 1217 } | 1443 } |
| 1218 | 1444 |
| 1219 buildUnnamed2912() { | 1445 buildUnnamed3243() { |
| 1220 var o = new core.List<core.String>(); | 1446 var o = new core.List<core.String>(); |
| 1221 o.add("foo"); | 1447 o.add("foo"); |
| 1222 o.add("foo"); | 1448 o.add("foo"); |
| 1223 return o; | 1449 return o; |
| 1224 } | 1450 } |
| 1225 | 1451 |
| 1226 checkUnnamed2912(core.List<core.String> o) { | 1452 checkUnnamed3243(core.List<core.String> o) { |
| 1227 unittest.expect(o, unittest.hasLength(2)); | 1453 unittest.expect(o, unittest.hasLength(2)); |
| 1228 unittest.expect(o[0], unittest.equals('foo')); | 1454 unittest.expect(o[0], unittest.equals('foo')); |
| 1229 unittest.expect(o[1], unittest.equals('foo')); | 1455 unittest.expect(o[1], unittest.equals('foo')); |
| 1230 } | 1456 } |
| 1231 | 1457 |
| 1232 buildUnnamed2913() { | 1458 buildUnnamed3244() { |
| 1233 var o = new core.List<core.String>(); | 1459 var o = new core.List<core.String>(); |
| 1234 o.add("foo"); | 1460 o.add("foo"); |
| 1235 o.add("foo"); | 1461 o.add("foo"); |
| 1236 return o; | 1462 return o; |
| 1237 } | 1463 } |
| 1238 | 1464 |
| 1239 checkUnnamed2913(core.List<core.String> o) { | 1465 checkUnnamed3244(core.List<core.String> o) { |
| 1240 unittest.expect(o, unittest.hasLength(2)); | 1466 unittest.expect(o, unittest.hasLength(2)); |
| 1241 unittest.expect(o[0], unittest.equals('foo')); | 1467 unittest.expect(o[0], unittest.equals('foo')); |
| 1242 unittest.expect(o[1], unittest.equals('foo')); | 1468 unittest.expect(o[1], unittest.equals('foo')); |
| 1243 } | 1469 } |
| 1244 | 1470 |
| 1245 buildUnnamed2914() { | 1471 buildUnnamed3245() { |
| 1246 var o = new core.Map<core.String, core.String>(); | 1472 var o = new core.Map<core.String, core.String>(); |
| 1247 o["x"] = "foo"; | 1473 o["x"] = "foo"; |
| 1248 o["y"] = "foo"; | 1474 o["y"] = "foo"; |
| 1249 return o; | 1475 return o; |
| 1250 } | 1476 } |
| 1251 | 1477 |
| 1252 checkUnnamed2914(core.Map<core.String, core.String> o) { | 1478 checkUnnamed3245(core.Map<core.String, core.String> o) { |
| 1253 unittest.expect(o, unittest.hasLength(2)); | 1479 unittest.expect(o, unittest.hasLength(2)); |
| 1254 unittest.expect(o["x"], unittest.equals('foo')); | 1480 unittest.expect(o["x"], unittest.equals('foo')); |
| 1255 unittest.expect(o["y"], unittest.equals('foo')); | 1481 unittest.expect(o["y"], unittest.equals('foo')); |
| 1256 } | 1482 } |
| 1257 | 1483 |
| 1258 core.int buildCounterSparkJob = 0; | 1484 core.int buildCounterSparkJob = 0; |
| 1259 buildSparkJob() { | 1485 buildSparkJob() { |
| 1260 var o = new api.SparkJob(); | 1486 var o = new api.SparkJob(); |
| 1261 buildCounterSparkJob++; | 1487 buildCounterSparkJob++; |
| 1262 if (buildCounterSparkJob < 3) { | 1488 if (buildCounterSparkJob < 3) { |
| 1263 o.archiveUris = buildUnnamed2910(); | 1489 o.archiveUris = buildUnnamed3241(); |
| 1264 o.args = buildUnnamed2911(); | 1490 o.args = buildUnnamed3242(); |
| 1265 o.fileUris = buildUnnamed2912(); | 1491 o.fileUris = buildUnnamed3243(); |
| 1266 o.jarFileUris = buildUnnamed2913(); | 1492 o.jarFileUris = buildUnnamed3244(); |
| 1267 o.loggingConfiguration = buildLoggingConfiguration(); | 1493 o.loggingConfiguration = buildLoggingConfiguration(); |
| 1268 o.mainClass = "foo"; | 1494 o.mainClass = "foo"; |
| 1269 o.mainJarFileUri = "foo"; | 1495 o.mainJarFileUri = "foo"; |
| 1270 o.properties = buildUnnamed2914(); | 1496 o.properties = buildUnnamed3245(); |
| 1271 } | 1497 } |
| 1272 buildCounterSparkJob--; | 1498 buildCounterSparkJob--; |
| 1273 return o; | 1499 return o; |
| 1274 } | 1500 } |
| 1275 | 1501 |
| 1276 checkSparkJob(api.SparkJob o) { | 1502 checkSparkJob(api.SparkJob o) { |
| 1277 buildCounterSparkJob++; | 1503 buildCounterSparkJob++; |
| 1278 if (buildCounterSparkJob < 3) { | 1504 if (buildCounterSparkJob < 3) { |
| 1279 checkUnnamed2910(o.archiveUris); | 1505 checkUnnamed3241(o.archiveUris); |
| 1280 checkUnnamed2911(o.args); | 1506 checkUnnamed3242(o.args); |
| 1281 checkUnnamed2912(o.fileUris); | 1507 checkUnnamed3243(o.fileUris); |
| 1282 checkUnnamed2913(o.jarFileUris); | 1508 checkUnnamed3244(o.jarFileUris); |
| 1283 checkLoggingConfiguration(o.loggingConfiguration); | 1509 checkLoggingConfiguration(o.loggingConfiguration); |
| 1284 unittest.expect(o.mainClass, unittest.equals('foo')); | 1510 unittest.expect(o.mainClass, unittest.equals('foo')); |
| 1285 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 1511 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
| 1286 checkUnnamed2914(o.properties); | 1512 checkUnnamed3245(o.properties); |
| 1287 } | 1513 } |
| 1288 buildCounterSparkJob--; | 1514 buildCounterSparkJob--; |
| 1289 } | 1515 } |
| 1290 | 1516 |
| 1291 buildUnnamed2915() { | 1517 buildUnnamed3246() { |
| 1292 var o = new core.List<core.String>(); | 1518 var o = new core.List<core.String>(); |
| 1293 o.add("foo"); | 1519 o.add("foo"); |
| 1294 o.add("foo"); | 1520 o.add("foo"); |
| 1295 return o; | 1521 return o; |
| 1296 } | 1522 } |
| 1297 | 1523 |
| 1298 checkUnnamed2915(core.List<core.String> o) { | 1524 checkUnnamed3246(core.List<core.String> o) { |
| 1299 unittest.expect(o, unittest.hasLength(2)); | 1525 unittest.expect(o, unittest.hasLength(2)); |
| 1300 unittest.expect(o[0], unittest.equals('foo')); | 1526 unittest.expect(o[0], unittest.equals('foo')); |
| 1301 unittest.expect(o[1], unittest.equals('foo')); | 1527 unittest.expect(o[1], unittest.equals('foo')); |
| 1302 } | 1528 } |
| 1303 | 1529 |
| 1304 buildUnnamed2916() { | 1530 buildUnnamed3247() { |
| 1305 var o = new core.Map<core.String, core.String>(); | 1531 var o = new core.Map<core.String, core.String>(); |
| 1306 o["x"] = "foo"; | 1532 o["x"] = "foo"; |
| 1307 o["y"] = "foo"; | 1533 o["y"] = "foo"; |
| 1308 return o; | 1534 return o; |
| 1309 } | 1535 } |
| 1310 | 1536 |
| 1311 checkUnnamed2916(core.Map<core.String, core.String> o) { | 1537 checkUnnamed3247(core.Map<core.String, core.String> o) { |
| 1312 unittest.expect(o, unittest.hasLength(2)); | 1538 unittest.expect(o, unittest.hasLength(2)); |
| 1313 unittest.expect(o["x"], unittest.equals('foo')); | 1539 unittest.expect(o["x"], unittest.equals('foo')); |
| 1314 unittest.expect(o["y"], unittest.equals('foo')); | 1540 unittest.expect(o["y"], unittest.equals('foo')); |
| 1315 } | 1541 } |
| 1316 | 1542 |
| 1317 buildUnnamed2917() { | 1543 buildUnnamed3248() { |
| 1318 var o = new core.Map<core.String, core.String>(); | 1544 var o = new core.Map<core.String, core.String>(); |
| 1319 o["x"] = "foo"; | 1545 o["x"] = "foo"; |
| 1320 o["y"] = "foo"; | 1546 o["y"] = "foo"; |
| 1321 return o; | 1547 return o; |
| 1322 } | 1548 } |
| 1323 | 1549 |
| 1324 checkUnnamed2917(core.Map<core.String, core.String> o) { | 1550 checkUnnamed3248(core.Map<core.String, core.String> o) { |
| 1325 unittest.expect(o, unittest.hasLength(2)); | 1551 unittest.expect(o, unittest.hasLength(2)); |
| 1326 unittest.expect(o["x"], unittest.equals('foo')); | 1552 unittest.expect(o["x"], unittest.equals('foo')); |
| 1327 unittest.expect(o["y"], unittest.equals('foo')); | 1553 unittest.expect(o["y"], unittest.equals('foo')); |
| 1328 } | 1554 } |
| 1329 | 1555 |
| 1330 core.int buildCounterSparkSqlJob = 0; | 1556 core.int buildCounterSparkSqlJob = 0; |
| 1331 buildSparkSqlJob() { | 1557 buildSparkSqlJob() { |
| 1332 var o = new api.SparkSqlJob(); | 1558 var o = new api.SparkSqlJob(); |
| 1333 buildCounterSparkSqlJob++; | 1559 buildCounterSparkSqlJob++; |
| 1334 if (buildCounterSparkSqlJob < 3) { | 1560 if (buildCounterSparkSqlJob < 3) { |
| 1335 o.jarFileUris = buildUnnamed2915(); | 1561 o.jarFileUris = buildUnnamed3246(); |
| 1336 o.loggingConfiguration = buildLoggingConfiguration(); | 1562 o.loggingConfiguration = buildLoggingConfiguration(); |
| 1337 o.properties = buildUnnamed2916(); | 1563 o.properties = buildUnnamed3247(); |
| 1338 o.queryFileUri = "foo"; | 1564 o.queryFileUri = "foo"; |
| 1339 o.queryList = buildQueryList(); | 1565 o.queryList = buildQueryList(); |
| 1340 o.scriptVariables = buildUnnamed2917(); | 1566 o.scriptVariables = buildUnnamed3248(); |
| 1341 } | 1567 } |
| 1342 buildCounterSparkSqlJob--; | 1568 buildCounterSparkSqlJob--; |
| 1343 return o; | 1569 return o; |
| 1344 } | 1570 } |
| 1345 | 1571 |
| 1346 checkSparkSqlJob(api.SparkSqlJob o) { | 1572 checkSparkSqlJob(api.SparkSqlJob o) { |
| 1347 buildCounterSparkSqlJob++; | 1573 buildCounterSparkSqlJob++; |
| 1348 if (buildCounterSparkSqlJob < 3) { | 1574 if (buildCounterSparkSqlJob < 3) { |
| 1349 checkUnnamed2915(o.jarFileUris); | 1575 checkUnnamed3246(o.jarFileUris); |
| 1350 checkLoggingConfiguration(o.loggingConfiguration); | 1576 checkLoggingConfiguration(o.loggingConfiguration); |
| 1351 checkUnnamed2916(o.properties); | 1577 checkUnnamed3247(o.properties); |
| 1352 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1578 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
| 1353 checkQueryList(o.queryList); | 1579 checkQueryList(o.queryList); |
| 1354 checkUnnamed2917(o.scriptVariables); | 1580 checkUnnamed3248(o.scriptVariables); |
| 1355 } | 1581 } |
| 1356 buildCounterSparkSqlJob--; | 1582 buildCounterSparkSqlJob--; |
| 1357 } | 1583 } |
| 1358 | 1584 |
| 1359 buildUnnamed2918() { | 1585 buildUnnamed3249() { |
| 1360 var o = new core.Map<core.String, core.Object>(); | 1586 var o = new core.Map<core.String, core.Object>(); |
| 1361 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1587 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1362 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1588 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1363 return o; | 1589 return o; |
| 1364 } | 1590 } |
| 1365 | 1591 |
| 1366 checkUnnamed2918(core.Map<core.String, core.Object> o) { | 1592 checkUnnamed3249(core.Map<core.String, core.Object> o) { |
| 1367 unittest.expect(o, unittest.hasLength(2)); | 1593 unittest.expect(o, unittest.hasLength(2)); |
| 1368 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')); | 1594 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')); |
| 1369 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')); | 1595 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')); |
| 1370 } | 1596 } |
| 1371 | 1597 |
| 1372 buildUnnamed2919() { | 1598 buildUnnamed3250() { |
| 1373 var o = new core.List<core.Map<core.String, core.Object>>(); | 1599 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 1374 o.add(buildUnnamed2918()); | 1600 o.add(buildUnnamed3249()); |
| 1375 o.add(buildUnnamed2918()); | 1601 o.add(buildUnnamed3249()); |
| 1376 return o; | 1602 return o; |
| 1377 } | 1603 } |
| 1378 | 1604 |
| 1379 checkUnnamed2919(core.List<core.Map<core.String, core.Object>> o) { | 1605 checkUnnamed3250(core.List<core.Map<core.String, core.Object>> o) { |
| 1380 unittest.expect(o, unittest.hasLength(2)); | 1606 unittest.expect(o, unittest.hasLength(2)); |
| 1381 checkUnnamed2918(o[0]); | 1607 checkUnnamed3249(o[0]); |
| 1382 checkUnnamed2918(o[1]); | 1608 checkUnnamed3249(o[1]); |
| 1383 } | 1609 } |
| 1384 | 1610 |
| 1385 core.int buildCounterStatus = 0; | 1611 core.int buildCounterStatus = 0; |
| 1386 buildStatus() { | 1612 buildStatus() { |
| 1387 var o = new api.Status(); | 1613 var o = new api.Status(); |
| 1388 buildCounterStatus++; | 1614 buildCounterStatus++; |
| 1389 if (buildCounterStatus < 3) { | 1615 if (buildCounterStatus < 3) { |
| 1390 o.code = 42; | 1616 o.code = 42; |
| 1391 o.details = buildUnnamed2919(); | 1617 o.details = buildUnnamed3250(); |
| 1392 o.message = "foo"; | 1618 o.message = "foo"; |
| 1393 } | 1619 } |
| 1394 buildCounterStatus--; | 1620 buildCounterStatus--; |
| 1395 return o; | 1621 return o; |
| 1396 } | 1622 } |
| 1397 | 1623 |
| 1398 checkStatus(api.Status o) { | 1624 checkStatus(api.Status o) { |
| 1399 buildCounterStatus++; | 1625 buildCounterStatus++; |
| 1400 if (buildCounterStatus < 3) { | 1626 if (buildCounterStatus < 3) { |
| 1401 unittest.expect(o.code, unittest.equals(42)); | 1627 unittest.expect(o.code, unittest.equals(42)); |
| 1402 checkUnnamed2919(o.details); | 1628 checkUnnamed3250(o.details); |
| 1403 unittest.expect(o.message, unittest.equals('foo')); | 1629 unittest.expect(o.message, unittest.equals('foo')); |
| 1404 } | 1630 } |
| 1405 buildCounterStatus--; | 1631 buildCounterStatus--; |
| 1406 } | 1632 } |
| 1407 | 1633 |
| 1408 core.int buildCounterSubmitJobRequest = 0; | 1634 core.int buildCounterSubmitJobRequest = 0; |
| 1409 buildSubmitJobRequest() { | 1635 buildSubmitJobRequest() { |
| 1410 var o = new api.SubmitJobRequest(); | 1636 var o = new api.SubmitJobRequest(); |
| 1411 buildCounterSubmitJobRequest++; | 1637 buildCounterSubmitJobRequest++; |
| 1412 if (buildCounterSubmitJobRequest < 3) { | 1638 if (buildCounterSubmitJobRequest < 3) { |
| 1413 o.job = buildJob(); | 1639 o.job = buildJob(); |
| 1414 } | 1640 } |
| 1415 buildCounterSubmitJobRequest--; | 1641 buildCounterSubmitJobRequest--; |
| 1416 return o; | 1642 return o; |
| 1417 } | 1643 } |
| 1418 | 1644 |
| 1419 checkSubmitJobRequest(api.SubmitJobRequest o) { | 1645 checkSubmitJobRequest(api.SubmitJobRequest o) { |
| 1420 buildCounterSubmitJobRequest++; | 1646 buildCounterSubmitJobRequest++; |
| 1421 if (buildCounterSubmitJobRequest < 3) { | 1647 if (buildCounterSubmitJobRequest < 3) { |
| 1422 checkJob(o.job); | 1648 checkJob(o.job); |
| 1423 } | 1649 } |
| 1424 buildCounterSubmitJobRequest--; | 1650 buildCounterSubmitJobRequest--; |
| 1425 } | 1651 } |
| 1426 | 1652 |
| 1653 buildUnnamed3251() { |
| 1654 var o = new core.List<core.String>(); |
| 1655 o.add("foo"); |
| 1656 o.add("foo"); |
| 1657 return o; |
| 1658 } |
| 1659 |
| 1660 checkUnnamed3251(core.List<core.String> o) { |
| 1661 unittest.expect(o, unittest.hasLength(2)); |
| 1662 unittest.expect(o[0], unittest.equals('foo')); |
| 1663 unittest.expect(o[1], unittest.equals('foo')); |
| 1664 } |
| 1665 |
| 1666 core.int buildCounterTestIamPermissionsRequest = 0; |
| 1667 buildTestIamPermissionsRequest() { |
| 1668 var o = new api.TestIamPermissionsRequest(); |
| 1669 buildCounterTestIamPermissionsRequest++; |
| 1670 if (buildCounterTestIamPermissionsRequest < 3) { |
| 1671 o.permissions = buildUnnamed3251(); |
| 1672 } |
| 1673 buildCounterTestIamPermissionsRequest--; |
| 1674 return o; |
| 1675 } |
| 1676 |
| 1677 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { |
| 1678 buildCounterTestIamPermissionsRequest++; |
| 1679 if (buildCounterTestIamPermissionsRequest < 3) { |
| 1680 checkUnnamed3251(o.permissions); |
| 1681 } |
| 1682 buildCounterTestIamPermissionsRequest--; |
| 1683 } |
| 1684 |
| 1685 buildUnnamed3252() { |
| 1686 var o = new core.List<core.String>(); |
| 1687 o.add("foo"); |
| 1688 o.add("foo"); |
| 1689 return o; |
| 1690 } |
| 1691 |
| 1692 checkUnnamed3252(core.List<core.String> o) { |
| 1693 unittest.expect(o, unittest.hasLength(2)); |
| 1694 unittest.expect(o[0], unittest.equals('foo')); |
| 1695 unittest.expect(o[1], unittest.equals('foo')); |
| 1696 } |
| 1697 |
| 1698 core.int buildCounterTestIamPermissionsResponse = 0; |
| 1699 buildTestIamPermissionsResponse() { |
| 1700 var o = new api.TestIamPermissionsResponse(); |
| 1701 buildCounterTestIamPermissionsResponse++; |
| 1702 if (buildCounterTestIamPermissionsResponse < 3) { |
| 1703 o.permissions = buildUnnamed3252(); |
| 1704 } |
| 1705 buildCounterTestIamPermissionsResponse--; |
| 1706 return o; |
| 1707 } |
| 1708 |
| 1709 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { |
| 1710 buildCounterTestIamPermissionsResponse++; |
| 1711 if (buildCounterTestIamPermissionsResponse < 3) { |
| 1712 checkUnnamed3252(o.permissions); |
| 1713 } |
| 1714 buildCounterTestIamPermissionsResponse--; |
| 1715 } |
| 1716 |
| 1427 core.int buildCounterYarnApplication = 0; | 1717 core.int buildCounterYarnApplication = 0; |
| 1428 buildYarnApplication() { | 1718 buildYarnApplication() { |
| 1429 var o = new api.YarnApplication(); | 1719 var o = new api.YarnApplication(); |
| 1430 buildCounterYarnApplication++; | 1720 buildCounterYarnApplication++; |
| 1431 if (buildCounterYarnApplication < 3) { | 1721 if (buildCounterYarnApplication < 3) { |
| 1432 o.name = "foo"; | 1722 o.name = "foo"; |
| 1433 o.progress = 42.0; | 1723 o.progress = 42.0; |
| 1434 o.state = "foo"; | 1724 o.state = "foo"; |
| 1435 o.trackingUrl = "foo"; | 1725 o.trackingUrl = "foo"; |
| 1436 } | 1726 } |
| 1437 buildCounterYarnApplication--; | 1727 buildCounterYarnApplication--; |
| 1438 return o; | 1728 return o; |
| 1439 } | 1729 } |
| 1440 | 1730 |
| 1441 checkYarnApplication(api.YarnApplication o) { | 1731 checkYarnApplication(api.YarnApplication o) { |
| 1442 buildCounterYarnApplication++; | 1732 buildCounterYarnApplication++; |
| 1443 if (buildCounterYarnApplication < 3) { | 1733 if (buildCounterYarnApplication < 3) { |
| 1444 unittest.expect(o.name, unittest.equals('foo')); | 1734 unittest.expect(o.name, unittest.equals('foo')); |
| 1445 unittest.expect(o.progress, unittest.equals(42.0)); | 1735 unittest.expect(o.progress, unittest.equals(42.0)); |
| 1446 unittest.expect(o.state, unittest.equals('foo')); | 1736 unittest.expect(o.state, unittest.equals('foo')); |
| 1447 unittest.expect(o.trackingUrl, unittest.equals('foo')); | 1737 unittest.expect(o.trackingUrl, unittest.equals('foo')); |
| 1448 } | 1738 } |
| 1449 buildCounterYarnApplication--; | 1739 buildCounterYarnApplication--; |
| 1450 } | 1740 } |
| 1451 | 1741 |
| 1452 | 1742 |
| 1453 main() { | 1743 main() { |
| 1744 unittest.group("obj-schema-Binding", () { |
| 1745 unittest.test("to-json--from-json", () { |
| 1746 var o = buildBinding(); |
| 1747 var od = new api.Binding.fromJson(o.toJson()); |
| 1748 checkBinding(od); |
| 1749 }); |
| 1750 }); |
| 1751 |
| 1752 |
| 1454 unittest.group("obj-schema-CancelJobRequest", () { | 1753 unittest.group("obj-schema-CancelJobRequest", () { |
| 1455 unittest.test("to-json--from-json", () { | 1754 unittest.test("to-json--from-json", () { |
| 1456 var o = buildCancelJobRequest(); | 1755 var o = buildCancelJobRequest(); |
| 1457 var od = new api.CancelJobRequest.fromJson(o.toJson()); | 1756 var od = new api.CancelJobRequest.fromJson(o.toJson()); |
| 1458 checkCancelJobRequest(od); | 1757 checkCancelJobRequest(od); |
| 1459 }); | 1758 }); |
| 1460 }); | 1759 }); |
| 1461 | 1760 |
| 1462 | 1761 |
| 1463 unittest.group("obj-schema-CancelOperationRequest", () { | 1762 unittest.group("obj-schema-CancelOperationRequest", () { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1480 | 1779 |
| 1481 unittest.group("obj-schema-ClusterConfiguration", () { | 1780 unittest.group("obj-schema-ClusterConfiguration", () { |
| 1482 unittest.test("to-json--from-json", () { | 1781 unittest.test("to-json--from-json", () { |
| 1483 var o = buildClusterConfiguration(); | 1782 var o = buildClusterConfiguration(); |
| 1484 var od = new api.ClusterConfiguration.fromJson(o.toJson()); | 1783 var od = new api.ClusterConfiguration.fromJson(o.toJson()); |
| 1485 checkClusterConfiguration(od); | 1784 checkClusterConfiguration(od); |
| 1486 }); | 1785 }); |
| 1487 }); | 1786 }); |
| 1488 | 1787 |
| 1489 | 1788 |
| 1789 unittest.group("obj-schema-ClusterOperationMetadata", () { |
| 1790 unittest.test("to-json--from-json", () { |
| 1791 var o = buildClusterOperationMetadata(); |
| 1792 var od = new api.ClusterOperationMetadata.fromJson(o.toJson()); |
| 1793 checkClusterOperationMetadata(od); |
| 1794 }); |
| 1795 }); |
| 1796 |
| 1797 |
| 1798 unittest.group("obj-schema-ClusterOperationStatus", () { |
| 1799 unittest.test("to-json--from-json", () { |
| 1800 var o = buildClusterOperationStatus(); |
| 1801 var od = new api.ClusterOperationStatus.fromJson(o.toJson()); |
| 1802 checkClusterOperationStatus(od); |
| 1803 }); |
| 1804 }); |
| 1805 |
| 1806 |
| 1490 unittest.group("obj-schema-ClusterStatus", () { | 1807 unittest.group("obj-schema-ClusterStatus", () { |
| 1491 unittest.test("to-json--from-json", () { | 1808 unittest.test("to-json--from-json", () { |
| 1492 var o = buildClusterStatus(); | 1809 var o = buildClusterStatus(); |
| 1493 var od = new api.ClusterStatus.fromJson(o.toJson()); | 1810 var od = new api.ClusterStatus.fromJson(o.toJson()); |
| 1494 checkClusterStatus(od); | 1811 checkClusterStatus(od); |
| 1495 }); | 1812 }); |
| 1496 }); | 1813 }); |
| 1497 | 1814 |
| 1498 | 1815 |
| 1499 unittest.group("obj-schema-DiagnoseClusterOutputLocation", () { | 1816 unittest.group("obj-schema-DiagnoseClusterOutputLocation", () { |
| 1500 unittest.test("to-json--from-json", () { | 1817 unittest.test("to-json--from-json", () { |
| 1501 var o = buildDiagnoseClusterOutputLocation(); | 1818 var o = buildDiagnoseClusterOutputLocation(); |
| 1502 var od = new api.DiagnoseClusterOutputLocation.fromJson(o.toJson()); | 1819 var od = new api.DiagnoseClusterOutputLocation.fromJson(o.toJson()); |
| 1503 checkDiagnoseClusterOutputLocation(od); | 1820 checkDiagnoseClusterOutputLocation(od); |
| 1504 }); | 1821 }); |
| 1505 }); | 1822 }); |
| 1506 | 1823 |
| 1507 | 1824 |
| 1508 unittest.group("obj-schema-DiagnoseClusterRequest", () { | 1825 unittest.group("obj-schema-DiagnoseClusterRequest", () { |
| 1509 unittest.test("to-json--from-json", () { | 1826 unittest.test("to-json--from-json", () { |
| 1510 var o = buildDiagnoseClusterRequest(); | 1827 var o = buildDiagnoseClusterRequest(); |
| 1511 var od = new api.DiagnoseClusterRequest.fromJson(o.toJson()); | 1828 var od = new api.DiagnoseClusterRequest.fromJson(o.toJson()); |
| 1512 checkDiagnoseClusterRequest(od); | 1829 checkDiagnoseClusterRequest(od); |
| 1513 }); | 1830 }); |
| 1514 }); | 1831 }); |
| 1515 | 1832 |
| 1516 | 1833 |
| 1834 unittest.group("obj-schema-DiagnoseClusterResults", () { |
| 1835 unittest.test("to-json--from-json", () { |
| 1836 var o = buildDiagnoseClusterResults(); |
| 1837 var od = new api.DiagnoseClusterResults.fromJson(o.toJson()); |
| 1838 checkDiagnoseClusterResults(od); |
| 1839 }); |
| 1840 }); |
| 1841 |
| 1842 |
| 1517 unittest.group("obj-schema-DiskConfiguration", () { | 1843 unittest.group("obj-schema-DiskConfiguration", () { |
| 1518 unittest.test("to-json--from-json", () { | 1844 unittest.test("to-json--from-json", () { |
| 1519 var o = buildDiskConfiguration(); | 1845 var o = buildDiskConfiguration(); |
| 1520 var od = new api.DiskConfiguration.fromJson(o.toJson()); | 1846 var od = new api.DiskConfiguration.fromJson(o.toJson()); |
| 1521 checkDiskConfiguration(od); | 1847 checkDiskConfiguration(od); |
| 1522 }); | 1848 }); |
| 1523 }); | 1849 }); |
| 1524 | 1850 |
| 1525 | 1851 |
| 1526 unittest.group("obj-schema-Empty", () { | 1852 unittest.group("obj-schema-Empty", () { |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1687 | 2013 |
| 1688 unittest.group("obj-schema-PigJob", () { | 2014 unittest.group("obj-schema-PigJob", () { |
| 1689 unittest.test("to-json--from-json", () { | 2015 unittest.test("to-json--from-json", () { |
| 1690 var o = buildPigJob(); | 2016 var o = buildPigJob(); |
| 1691 var od = new api.PigJob.fromJson(o.toJson()); | 2017 var od = new api.PigJob.fromJson(o.toJson()); |
| 1692 checkPigJob(od); | 2018 checkPigJob(od); |
| 1693 }); | 2019 }); |
| 1694 }); | 2020 }); |
| 1695 | 2021 |
| 1696 | 2022 |
| 2023 unittest.group("obj-schema-Policy", () { |
| 2024 unittest.test("to-json--from-json", () { |
| 2025 var o = buildPolicy(); |
| 2026 var od = new api.Policy.fromJson(o.toJson()); |
| 2027 checkPolicy(od); |
| 2028 }); |
| 2029 }); |
| 2030 |
| 2031 |
| 1697 unittest.group("obj-schema-PySparkJob", () { | 2032 unittest.group("obj-schema-PySparkJob", () { |
| 1698 unittest.test("to-json--from-json", () { | 2033 unittest.test("to-json--from-json", () { |
| 1699 var o = buildPySparkJob(); | 2034 var o = buildPySparkJob(); |
| 1700 var od = new api.PySparkJob.fromJson(o.toJson()); | 2035 var od = new api.PySparkJob.fromJson(o.toJson()); |
| 1701 checkPySparkJob(od); | 2036 checkPySparkJob(od); |
| 1702 }); | 2037 }); |
| 1703 }); | 2038 }); |
| 1704 | 2039 |
| 1705 | 2040 |
| 1706 unittest.group("obj-schema-QueryList", () { | 2041 unittest.group("obj-schema-QueryList", () { |
| 1707 unittest.test("to-json--from-json", () { | 2042 unittest.test("to-json--from-json", () { |
| 1708 var o = buildQueryList(); | 2043 var o = buildQueryList(); |
| 1709 var od = new api.QueryList.fromJson(o.toJson()); | 2044 var od = new api.QueryList.fromJson(o.toJson()); |
| 1710 checkQueryList(od); | 2045 checkQueryList(od); |
| 1711 }); | 2046 }); |
| 1712 }); | 2047 }); |
| 1713 | 2048 |
| 1714 | 2049 |
| 2050 unittest.group("obj-schema-SetIamPolicyRequest", () { |
| 2051 unittest.test("to-json--from-json", () { |
| 2052 var o = buildSetIamPolicyRequest(); |
| 2053 var od = new api.SetIamPolicyRequest.fromJson(o.toJson()); |
| 2054 checkSetIamPolicyRequest(od); |
| 2055 }); |
| 2056 }); |
| 2057 |
| 2058 |
| 1715 unittest.group("obj-schema-SoftwareConfiguration", () { | 2059 unittest.group("obj-schema-SoftwareConfiguration", () { |
| 1716 unittest.test("to-json--from-json", () { | 2060 unittest.test("to-json--from-json", () { |
| 1717 var o = buildSoftwareConfiguration(); | 2061 var o = buildSoftwareConfiguration(); |
| 1718 var od = new api.SoftwareConfiguration.fromJson(o.toJson()); | 2062 var od = new api.SoftwareConfiguration.fromJson(o.toJson()); |
| 1719 checkSoftwareConfiguration(od); | 2063 checkSoftwareConfiguration(od); |
| 1720 }); | 2064 }); |
| 1721 }); | 2065 }); |
| 1722 | 2066 |
| 1723 | 2067 |
| 1724 unittest.group("obj-schema-SparkJob", () { | 2068 unittest.group("obj-schema-SparkJob", () { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1750 | 2094 |
| 1751 unittest.group("obj-schema-SubmitJobRequest", () { | 2095 unittest.group("obj-schema-SubmitJobRequest", () { |
| 1752 unittest.test("to-json--from-json", () { | 2096 unittest.test("to-json--from-json", () { |
| 1753 var o = buildSubmitJobRequest(); | 2097 var o = buildSubmitJobRequest(); |
| 1754 var od = new api.SubmitJobRequest.fromJson(o.toJson()); | 2098 var od = new api.SubmitJobRequest.fromJson(o.toJson()); |
| 1755 checkSubmitJobRequest(od); | 2099 checkSubmitJobRequest(od); |
| 1756 }); | 2100 }); |
| 1757 }); | 2101 }); |
| 1758 | 2102 |
| 1759 | 2103 |
| 2104 unittest.group("obj-schema-TestIamPermissionsRequest", () { |
| 2105 unittest.test("to-json--from-json", () { |
| 2106 var o = buildTestIamPermissionsRequest(); |
| 2107 var od = new api.TestIamPermissionsRequest.fromJson(o.toJson()); |
| 2108 checkTestIamPermissionsRequest(od); |
| 2109 }); |
| 2110 }); |
| 2111 |
| 2112 |
| 2113 unittest.group("obj-schema-TestIamPermissionsResponse", () { |
| 2114 unittest.test("to-json--from-json", () { |
| 2115 var o = buildTestIamPermissionsResponse(); |
| 2116 var od = new api.TestIamPermissionsResponse.fromJson(o.toJson()); |
| 2117 checkTestIamPermissionsResponse(od); |
| 2118 }); |
| 2119 }); |
| 2120 |
| 2121 |
| 1760 unittest.group("obj-schema-YarnApplication", () { | 2122 unittest.group("obj-schema-YarnApplication", () { |
| 1761 unittest.test("to-json--from-json", () { | 2123 unittest.test("to-json--from-json", () { |
| 1762 var o = buildYarnApplication(); | 2124 var o = buildYarnApplication(); |
| 1763 var od = new api.YarnApplication.fromJson(o.toJson()); | 2125 var od = new api.YarnApplication.fromJson(o.toJson()); |
| 1764 checkYarnApplication(od); | 2126 checkYarnApplication(od); |
| 1765 }); | 2127 }); |
| 1766 }); | 2128 }); |
| 1767 | 2129 |
| 1768 | 2130 |
| 1769 unittest.group("resource-OperationsResourceApi", () { | 2131 unittest.group("resource-OperationsResourceApi", () { |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2182 "content-type" : "application/json; charset=utf-8", | 2544 "content-type" : "application/json; charset=utf-8", |
| 2183 }; | 2545 }; |
| 2184 var resp = convert.JSON.encode(buildCluster()); | 2546 var resp = convert.JSON.encode(buildCluster()); |
| 2185 return new async.Future.value(stringResponse(200, h, resp)); | 2547 return new async.Future.value(stringResponse(200, h, resp)); |
| 2186 }), true); | 2548 }), true); |
| 2187 res.get(arg_projectId, arg_clusterName).then(unittest.expectAsync(((api.Cl
uster response) { | 2549 res.get(arg_projectId, arg_clusterName).then(unittest.expectAsync(((api.Cl
uster response) { |
| 2188 checkCluster(response); | 2550 checkCluster(response); |
| 2189 }))); | 2551 }))); |
| 2190 }); | 2552 }); |
| 2191 | 2553 |
| 2554 unittest.test("method--getIamPolicy", () { |
| 2555 |
| 2556 var mock = new HttpServerMock(); |
| 2557 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; |
| 2558 var arg_resource = "foo"; |
| 2559 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2560 var path = (req.url).path; |
| 2561 var pathOffset = 0; |
| 2562 var index; |
| 2563 var subPart; |
| 2564 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2565 pathOffset += 1; |
| 2566 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta1/")); |
| 2567 pathOffset += 8; |
| 2568 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 2569 |
| 2570 var query = (req.url).query; |
| 2571 var queryOffset = 0; |
| 2572 var queryMap = {}; |
| 2573 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2574 parseBool(n) { |
| 2575 if (n == "true") return true; |
| 2576 if (n == "false") return false; |
| 2577 if (n == null) return null; |
| 2578 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2579 } |
| 2580 if (query.length > 0) { |
| 2581 for (var part in query.split("&")) { |
| 2582 var keyvalue = part.split("="); |
| 2583 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2584 } |
| 2585 } |
| 2586 |
| 2587 |
| 2588 var h = { |
| 2589 "content-type" : "application/json; charset=utf-8", |
| 2590 }; |
| 2591 var resp = convert.JSON.encode(buildPolicy()); |
| 2592 return new async.Future.value(stringResponse(200, h, resp)); |
| 2593 }), true); |
| 2594 res.getIamPolicy(arg_resource).then(unittest.expectAsync(((api.Policy resp
onse) { |
| 2595 checkPolicy(response); |
| 2596 }))); |
| 2597 }); |
| 2598 |
| 2192 unittest.test("method--list", () { | 2599 unittest.test("method--list", () { |
| 2193 | 2600 |
| 2194 var mock = new HttpServerMock(); | 2601 var mock = new HttpServerMock(); |
| 2195 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; | 2602 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; |
| 2196 var arg_projectId = "foo"; | 2603 var arg_projectId = "foo"; |
| 2197 var arg_pageSize = 42; | 2604 var arg_pageSize = 42; |
| 2198 var arg_pageToken = "foo"; | 2605 var arg_pageToken = "foo"; |
| 2199 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2606 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2200 var path = (req.url).path; | 2607 var path = (req.url).path; |
| 2201 var pathOffset = 0; | 2608 var pathOffset = 0; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2298 "content-type" : "application/json; charset=utf-8", | 2705 "content-type" : "application/json; charset=utf-8", |
| 2299 }; | 2706 }; |
| 2300 var resp = convert.JSON.encode(buildOperation()); | 2707 var resp = convert.JSON.encode(buildOperation()); |
| 2301 return new async.Future.value(stringResponse(200, h, resp)); | 2708 return new async.Future.value(stringResponse(200, h, resp)); |
| 2302 }), true); | 2709 }), true); |
| 2303 res.patch(arg_request, arg_projectId, arg_clusterName, updateMask: arg_upd
ateMask).then(unittest.expectAsync(((api.Operation response) { | 2710 res.patch(arg_request, arg_projectId, arg_clusterName, updateMask: arg_upd
ateMask).then(unittest.expectAsync(((api.Operation response) { |
| 2304 checkOperation(response); | 2711 checkOperation(response); |
| 2305 }))); | 2712 }))); |
| 2306 }); | 2713 }); |
| 2307 | 2714 |
| 2715 unittest.test("method--setIamPolicy", () { |
| 2716 |
| 2717 var mock = new HttpServerMock(); |
| 2718 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; |
| 2719 var arg_request = buildSetIamPolicyRequest(); |
| 2720 var arg_resource = "foo"; |
| 2721 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2722 var obj = new api.SetIamPolicyRequest.fromJson(json); |
| 2723 checkSetIamPolicyRequest(obj); |
| 2724 |
| 2725 var path = (req.url).path; |
| 2726 var pathOffset = 0; |
| 2727 var index; |
| 2728 var subPart; |
| 2729 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2730 pathOffset += 1; |
| 2731 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta1/")); |
| 2732 pathOffset += 8; |
| 2733 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 2734 |
| 2735 var query = (req.url).query; |
| 2736 var queryOffset = 0; |
| 2737 var queryMap = {}; |
| 2738 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2739 parseBool(n) { |
| 2740 if (n == "true") return true; |
| 2741 if (n == "false") return false; |
| 2742 if (n == null) return null; |
| 2743 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2744 } |
| 2745 if (query.length > 0) { |
| 2746 for (var part in query.split("&")) { |
| 2747 var keyvalue = part.split("="); |
| 2748 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2749 } |
| 2750 } |
| 2751 |
| 2752 |
| 2753 var h = { |
| 2754 "content-type" : "application/json; charset=utf-8", |
| 2755 }; |
| 2756 var resp = convert.JSON.encode(buildPolicy()); |
| 2757 return new async.Future.value(stringResponse(200, h, resp)); |
| 2758 }), true); |
| 2759 res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap
i.Policy response) { |
| 2760 checkPolicy(response); |
| 2761 }))); |
| 2762 }); |
| 2763 |
| 2764 unittest.test("method--testIamPermissions", () { |
| 2765 |
| 2766 var mock = new HttpServerMock(); |
| 2767 api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.c
lusters; |
| 2768 var arg_request = buildTestIamPermissionsRequest(); |
| 2769 var arg_resource = "foo"; |
| 2770 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2771 var obj = new api.TestIamPermissionsRequest.fromJson(json); |
| 2772 checkTestIamPermissionsRequest(obj); |
| 2773 |
| 2774 var path = (req.url).path; |
| 2775 var pathOffset = 0; |
| 2776 var index; |
| 2777 var subPart; |
| 2778 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2779 pathOffset += 1; |
| 2780 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta1/")); |
| 2781 pathOffset += 8; |
| 2782 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 2783 |
| 2784 var query = (req.url).query; |
| 2785 var queryOffset = 0; |
| 2786 var queryMap = {}; |
| 2787 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2788 parseBool(n) { |
| 2789 if (n == "true") return true; |
| 2790 if (n == "false") return false; |
| 2791 if (n == null) return null; |
| 2792 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2793 } |
| 2794 if (query.length > 0) { |
| 2795 for (var part in query.split("&")) { |
| 2796 var keyvalue = part.split("="); |
| 2797 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2798 } |
| 2799 } |
| 2800 |
| 2801 |
| 2802 var h = { |
| 2803 "content-type" : "application/json; charset=utf-8", |
| 2804 }; |
| 2805 var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); |
| 2806 return new async.Future.value(stringResponse(200, h, resp)); |
| 2807 }), true); |
| 2808 res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsyn
c(((api.TestIamPermissionsResponse response) { |
| 2809 checkTestIamPermissionsResponse(response); |
| 2810 }))); |
| 2811 }); |
| 2812 |
| 2308 }); | 2813 }); |
| 2309 | 2814 |
| 2310 | 2815 |
| 2311 unittest.group("resource-ProjectsJobsResourceApi", () { | 2816 unittest.group("resource-ProjectsJobsResourceApi", () { |
| 2312 unittest.test("method--cancel", () { | 2817 unittest.test("method--cancel", () { |
| 2313 | 2818 |
| 2314 var mock = new HttpServerMock(); | 2819 var mock = new HttpServerMock(); |
| 2315 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; | 2820 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; |
| 2316 var arg_request = buildCancelJobRequest(); | 2821 var arg_request = buildCancelJobRequest(); |
| 2317 var arg_projectId = "foo"; | 2822 var arg_projectId = "foo"; |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2475 "content-type" : "application/json; charset=utf-8", | 2980 "content-type" : "application/json; charset=utf-8", |
| 2476 }; | 2981 }; |
| 2477 var resp = convert.JSON.encode(buildJob()); | 2982 var resp = convert.JSON.encode(buildJob()); |
| 2478 return new async.Future.value(stringResponse(200, h, resp)); | 2983 return new async.Future.value(stringResponse(200, h, resp)); |
| 2479 }), true); | 2984 }), true); |
| 2480 res.get(arg_projectId, arg_jobId).then(unittest.expectAsync(((api.Job resp
onse) { | 2985 res.get(arg_projectId, arg_jobId).then(unittest.expectAsync(((api.Job resp
onse) { |
| 2481 checkJob(response); | 2986 checkJob(response); |
| 2482 }))); | 2987 }))); |
| 2483 }); | 2988 }); |
| 2484 | 2989 |
| 2990 unittest.test("method--getIamPolicy", () { |
| 2991 |
| 2992 var mock = new HttpServerMock(); |
| 2993 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; |
| 2994 var arg_resource = "foo"; |
| 2995 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2996 var path = (req.url).path; |
| 2997 var pathOffset = 0; |
| 2998 var index; |
| 2999 var subPart; |
| 3000 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3001 pathOffset += 1; |
| 3002 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta1/")); |
| 3003 pathOffset += 8; |
| 3004 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 3005 |
| 3006 var query = (req.url).query; |
| 3007 var queryOffset = 0; |
| 3008 var queryMap = {}; |
| 3009 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 3010 parseBool(n) { |
| 3011 if (n == "true") return true; |
| 3012 if (n == "false") return false; |
| 3013 if (n == null) return null; |
| 3014 throw new core.ArgumentError("Invalid boolean: $n"); |
| 3015 } |
| 3016 if (query.length > 0) { |
| 3017 for (var part in query.split("&")) { |
| 3018 var keyvalue = part.split("="); |
| 3019 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3020 } |
| 3021 } |
| 3022 |
| 3023 |
| 3024 var h = { |
| 3025 "content-type" : "application/json; charset=utf-8", |
| 3026 }; |
| 3027 var resp = convert.JSON.encode(buildPolicy()); |
| 3028 return new async.Future.value(stringResponse(200, h, resp)); |
| 3029 }), true); |
| 3030 res.getIamPolicy(arg_resource).then(unittest.expectAsync(((api.Policy resp
onse) { |
| 3031 checkPolicy(response); |
| 3032 }))); |
| 3033 }); |
| 3034 |
| 2485 unittest.test("method--list", () { | 3035 unittest.test("method--list", () { |
| 2486 | 3036 |
| 2487 var mock = new HttpServerMock(); | 3037 var mock = new HttpServerMock(); |
| 2488 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; | 3038 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; |
| 2489 var arg_projectId = "foo"; | 3039 var arg_projectId = "foo"; |
| 2490 var arg_pageSize = 42; | 3040 var arg_pageSize = 42; |
| 2491 var arg_pageToken = "foo"; | 3041 var arg_pageToken = "foo"; |
| 2492 var arg_clusterName = "foo"; | 3042 var arg_clusterName = "foo"; |
| 2493 var arg_jobStateMatcher = "foo"; | 3043 var arg_jobStateMatcher = "foo"; |
| 2494 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3044 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2534 "content-type" : "application/json; charset=utf-8", | 3084 "content-type" : "application/json; charset=utf-8", |
| 2535 }; | 3085 }; |
| 2536 var resp = convert.JSON.encode(buildListJobsResponse()); | 3086 var resp = convert.JSON.encode(buildListJobsResponse()); |
| 2537 return new async.Future.value(stringResponse(200, h, resp)); | 3087 return new async.Future.value(stringResponse(200, h, resp)); |
| 2538 }), true); | 3088 }), true); |
| 2539 res.list(arg_projectId, pageSize: arg_pageSize, pageToken: arg_pageToken,
clusterName: arg_clusterName, jobStateMatcher: arg_jobStateMatcher).then(unittes
t.expectAsync(((api.ListJobsResponse response) { | 3089 res.list(arg_projectId, pageSize: arg_pageSize, pageToken: arg_pageToken,
clusterName: arg_clusterName, jobStateMatcher: arg_jobStateMatcher).then(unittes
t.expectAsync(((api.ListJobsResponse response) { |
| 2540 checkListJobsResponse(response); | 3090 checkListJobsResponse(response); |
| 2541 }))); | 3091 }))); |
| 2542 }); | 3092 }); |
| 2543 | 3093 |
| 3094 unittest.test("method--setIamPolicy", () { |
| 3095 |
| 3096 var mock = new HttpServerMock(); |
| 3097 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; |
| 3098 var arg_request = buildSetIamPolicyRequest(); |
| 3099 var arg_resource = "foo"; |
| 3100 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3101 var obj = new api.SetIamPolicyRequest.fromJson(json); |
| 3102 checkSetIamPolicyRequest(obj); |
| 3103 |
| 3104 var path = (req.url).path; |
| 3105 var pathOffset = 0; |
| 3106 var index; |
| 3107 var subPart; |
| 3108 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3109 pathOffset += 1; |
| 3110 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta1/")); |
| 3111 pathOffset += 8; |
| 3112 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 3113 |
| 3114 var query = (req.url).query; |
| 3115 var queryOffset = 0; |
| 3116 var queryMap = {}; |
| 3117 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 3118 parseBool(n) { |
| 3119 if (n == "true") return true; |
| 3120 if (n == "false") return false; |
| 3121 if (n == null) return null; |
| 3122 throw new core.ArgumentError("Invalid boolean: $n"); |
| 3123 } |
| 3124 if (query.length > 0) { |
| 3125 for (var part in query.split("&")) { |
| 3126 var keyvalue = part.split("="); |
| 3127 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3128 } |
| 3129 } |
| 3130 |
| 3131 |
| 3132 var h = { |
| 3133 "content-type" : "application/json; charset=utf-8", |
| 3134 }; |
| 3135 var resp = convert.JSON.encode(buildPolicy()); |
| 3136 return new async.Future.value(stringResponse(200, h, resp)); |
| 3137 }), true); |
| 3138 res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap
i.Policy response) { |
| 3139 checkPolicy(response); |
| 3140 }))); |
| 3141 }); |
| 3142 |
| 2544 unittest.test("method--submit", () { | 3143 unittest.test("method--submit", () { |
| 2545 | 3144 |
| 2546 var mock = new HttpServerMock(); | 3145 var mock = new HttpServerMock(); |
| 2547 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; | 3146 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; |
| 2548 var arg_request = buildSubmitJobRequest(); | 3147 var arg_request = buildSubmitJobRequest(); |
| 2549 var arg_projectId = "foo"; | 3148 var arg_projectId = "foo"; |
| 2550 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3149 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2551 var obj = new api.SubmitJobRequest.fromJson(json); | 3150 var obj = new api.SubmitJobRequest.fromJson(json); |
| 2552 checkSubmitJobRequest(obj); | 3151 checkSubmitJobRequest(obj); |
| 2553 | 3152 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2589 "content-type" : "application/json; charset=utf-8", | 3188 "content-type" : "application/json; charset=utf-8", |
| 2590 }; | 3189 }; |
| 2591 var resp = convert.JSON.encode(buildJob()); | 3190 var resp = convert.JSON.encode(buildJob()); |
| 2592 return new async.Future.value(stringResponse(200, h, resp)); | 3191 return new async.Future.value(stringResponse(200, h, resp)); |
| 2593 }), true); | 3192 }), true); |
| 2594 res.submit(arg_request, arg_projectId).then(unittest.expectAsync(((api.Job
response) { | 3193 res.submit(arg_request, arg_projectId).then(unittest.expectAsync(((api.Job
response) { |
| 2595 checkJob(response); | 3194 checkJob(response); |
| 2596 }))); | 3195 }))); |
| 2597 }); | 3196 }); |
| 2598 | 3197 |
| 3198 unittest.test("method--testIamPermissions", () { |
| 3199 |
| 3200 var mock = new HttpServerMock(); |
| 3201 api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; |
| 3202 var arg_request = buildTestIamPermissionsRequest(); |
| 3203 var arg_resource = "foo"; |
| 3204 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3205 var obj = new api.TestIamPermissionsRequest.fromJson(json); |
| 3206 checkTestIamPermissionsRequest(obj); |
| 3207 |
| 3208 var path = (req.url).path; |
| 3209 var pathOffset = 0; |
| 3210 var index; |
| 3211 var subPart; |
| 3212 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3213 pathOffset += 1; |
| 3214 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta1/")); |
| 3215 pathOffset += 8; |
| 3216 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 3217 |
| 3218 var query = (req.url).query; |
| 3219 var queryOffset = 0; |
| 3220 var queryMap = {}; |
| 3221 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 3222 parseBool(n) { |
| 3223 if (n == "true") return true; |
| 3224 if (n == "false") return false; |
| 3225 if (n == null) return null; |
| 3226 throw new core.ArgumentError("Invalid boolean: $n"); |
| 3227 } |
| 3228 if (query.length > 0) { |
| 3229 for (var part in query.split("&")) { |
| 3230 var keyvalue = part.split("="); |
| 3231 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3232 } |
| 3233 } |
| 3234 |
| 3235 |
| 3236 var h = { |
| 3237 "content-type" : "application/json; charset=utf-8", |
| 3238 }; |
| 3239 var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); |
| 3240 return new async.Future.value(stringResponse(200, h, resp)); |
| 3241 }), true); |
| 3242 res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsyn
c(((api.TestIamPermissionsResponse response) { |
| 3243 checkTestIamPermissionsResponse(response); |
| 3244 }))); |
| 3245 }); |
| 3246 |
| 2599 }); | 3247 }); |
| 2600 | 3248 |
| 2601 | 3249 |
| 2602 } | 3250 } |
| 2603 | 3251 |
| OLD | NEW |