| OLD | NEW |
| 1 library googleapis.container.v1.test; | 1 library googleapis.container.v1.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 checkAddonsConfig(api.AddonsConfig o) { | 66 checkAddonsConfig(api.AddonsConfig o) { |
| 67 buildCounterAddonsConfig++; | 67 buildCounterAddonsConfig++; |
| 68 if (buildCounterAddonsConfig < 3) { | 68 if (buildCounterAddonsConfig < 3) { |
| 69 checkHorizontalPodAutoscaling(o.horizontalPodAutoscaling); | 69 checkHorizontalPodAutoscaling(o.horizontalPodAutoscaling); |
| 70 checkHttpLoadBalancing(o.httpLoadBalancing); | 70 checkHttpLoadBalancing(o.httpLoadBalancing); |
| 71 } | 71 } |
| 72 buildCounterAddonsConfig--; | 72 buildCounterAddonsConfig--; |
| 73 } | 73 } |
| 74 | 74 |
| 75 buildUnnamed2184() { | 75 buildUnnamed1938() { |
| 76 var o = new core.List<core.String>(); | 76 var o = new core.List<core.String>(); |
| 77 o.add("foo"); | 77 o.add("foo"); |
| 78 o.add("foo"); | 78 o.add("foo"); |
| 79 return o; | 79 return o; |
| 80 } | 80 } |
| 81 | 81 |
| 82 checkUnnamed2184(core.List<core.String> o) { | 82 checkUnnamed1938(core.List<core.String> o) { |
| 83 unittest.expect(o, unittest.hasLength(2)); | 83 unittest.expect(o, unittest.hasLength(2)); |
| 84 unittest.expect(o[0], unittest.equals('foo')); | 84 unittest.expect(o[0], unittest.equals('foo')); |
| 85 unittest.expect(o[1], unittest.equals('foo')); | 85 unittest.expect(o[1], unittest.equals('foo')); |
| 86 } | 86 } |
| 87 | 87 |
| 88 buildUnnamed2185() { | 88 buildUnnamed1939() { |
| 89 var o = new core.List<core.String>(); | 89 var o = new core.List<core.String>(); |
| 90 o.add("foo"); | 90 o.add("foo"); |
| 91 o.add("foo"); | 91 o.add("foo"); |
| 92 return o; | 92 return o; |
| 93 } | 93 } |
| 94 | 94 |
| 95 checkUnnamed2185(core.List<core.String> o) { | 95 checkUnnamed1939(core.List<core.String> o) { |
| 96 unittest.expect(o, unittest.hasLength(2)); | 96 unittest.expect(o, unittest.hasLength(2)); |
| 97 unittest.expect(o[0], unittest.equals('foo')); | 97 unittest.expect(o[0], unittest.equals('foo')); |
| 98 unittest.expect(o[1], unittest.equals('foo')); | 98 unittest.expect(o[1], unittest.equals('foo')); |
| 99 } | 99 } |
| 100 | 100 |
| 101 buildUnnamed2186() { | 101 buildUnnamed1940() { |
| 102 var o = new core.List<api.NodePool>(); | 102 var o = new core.List<api.NodePool>(); |
| 103 o.add(buildNodePool()); | 103 o.add(buildNodePool()); |
| 104 o.add(buildNodePool()); | 104 o.add(buildNodePool()); |
| 105 return o; | 105 return o; |
| 106 } | 106 } |
| 107 | 107 |
| 108 checkUnnamed2186(core.List<api.NodePool> o) { | 108 checkUnnamed1940(core.List<api.NodePool> o) { |
| 109 unittest.expect(o, unittest.hasLength(2)); | 109 unittest.expect(o, unittest.hasLength(2)); |
| 110 checkNodePool(o[0]); | 110 checkNodePool(o[0]); |
| 111 checkNodePool(o[1]); | 111 checkNodePool(o[1]); |
| 112 } | 112 } |
| 113 | 113 |
| 114 core.int buildCounterCluster = 0; | 114 core.int buildCounterCluster = 0; |
| 115 buildCluster() { | 115 buildCluster() { |
| 116 var o = new api.Cluster(); | 116 var o = new api.Cluster(); |
| 117 buildCounterCluster++; | 117 buildCounterCluster++; |
| 118 if (buildCounterCluster < 3) { | 118 if (buildCounterCluster < 3) { |
| 119 o.addonsConfig = buildAddonsConfig(); | 119 o.addonsConfig = buildAddonsConfig(); |
| 120 o.clusterIpv4Cidr = "foo"; | 120 o.clusterIpv4Cidr = "foo"; |
| 121 o.createTime = "foo"; | 121 o.createTime = "foo"; |
| 122 o.currentMasterVersion = "foo"; | 122 o.currentMasterVersion = "foo"; |
| 123 o.currentNodeCount = 42; | 123 o.currentNodeCount = 42; |
| 124 o.currentNodeVersion = "foo"; | 124 o.currentNodeVersion = "foo"; |
| 125 o.description = "foo"; | 125 o.description = "foo"; |
| 126 o.endpoint = "foo"; | 126 o.endpoint = "foo"; |
| 127 o.initialClusterVersion = "foo"; | 127 o.initialClusterVersion = "foo"; |
| 128 o.initialNodeCount = 42; | 128 o.initialNodeCount = 42; |
| 129 o.instanceGroupUrls = buildUnnamed2184(); | 129 o.instanceGroupUrls = buildUnnamed1938(); |
| 130 o.locations = buildUnnamed2185(); | 130 o.locations = buildUnnamed1939(); |
| 131 o.loggingService = "foo"; | 131 o.loggingService = "foo"; |
| 132 o.masterAuth = buildMasterAuth(); | 132 o.masterAuth = buildMasterAuth(); |
| 133 o.monitoringService = "foo"; | 133 o.monitoringService = "foo"; |
| 134 o.name = "foo"; | 134 o.name = "foo"; |
| 135 o.network = "foo"; | 135 o.network = "foo"; |
| 136 o.nodeConfig = buildNodeConfig(); | 136 o.nodeConfig = buildNodeConfig(); |
| 137 o.nodeIpv4CidrSize = 42; | 137 o.nodeIpv4CidrSize = 42; |
| 138 o.nodePools = buildUnnamed2186(); | 138 o.nodePools = buildUnnamed1940(); |
| 139 o.selfLink = "foo"; | 139 o.selfLink = "foo"; |
| 140 o.servicesIpv4Cidr = "foo"; | 140 o.servicesIpv4Cidr = "foo"; |
| 141 o.status = "foo"; | 141 o.status = "foo"; |
| 142 o.statusMessage = "foo"; | 142 o.statusMessage = "foo"; |
| 143 o.subnetwork = "foo"; | 143 o.subnetwork = "foo"; |
| 144 o.zone = "foo"; | 144 o.zone = "foo"; |
| 145 } | 145 } |
| 146 buildCounterCluster--; | 146 buildCounterCluster--; |
| 147 return o; | 147 return o; |
| 148 } | 148 } |
| 149 | 149 |
| 150 checkCluster(api.Cluster o) { | 150 checkCluster(api.Cluster o) { |
| 151 buildCounterCluster++; | 151 buildCounterCluster++; |
| 152 if (buildCounterCluster < 3) { | 152 if (buildCounterCluster < 3) { |
| 153 checkAddonsConfig(o.addonsConfig); | 153 checkAddonsConfig(o.addonsConfig); |
| 154 unittest.expect(o.clusterIpv4Cidr, unittest.equals('foo')); | 154 unittest.expect(o.clusterIpv4Cidr, unittest.equals('foo')); |
| 155 unittest.expect(o.createTime, unittest.equals('foo')); | 155 unittest.expect(o.createTime, unittest.equals('foo')); |
| 156 unittest.expect(o.currentMasterVersion, unittest.equals('foo')); | 156 unittest.expect(o.currentMasterVersion, unittest.equals('foo')); |
| 157 unittest.expect(o.currentNodeCount, unittest.equals(42)); | 157 unittest.expect(o.currentNodeCount, unittest.equals(42)); |
| 158 unittest.expect(o.currentNodeVersion, unittest.equals('foo')); | 158 unittest.expect(o.currentNodeVersion, unittest.equals('foo')); |
| 159 unittest.expect(o.description, unittest.equals('foo')); | 159 unittest.expect(o.description, unittest.equals('foo')); |
| 160 unittest.expect(o.endpoint, unittest.equals('foo')); | 160 unittest.expect(o.endpoint, unittest.equals('foo')); |
| 161 unittest.expect(o.initialClusterVersion, unittest.equals('foo')); | 161 unittest.expect(o.initialClusterVersion, unittest.equals('foo')); |
| 162 unittest.expect(o.initialNodeCount, unittest.equals(42)); | 162 unittest.expect(o.initialNodeCount, unittest.equals(42)); |
| 163 checkUnnamed2184(o.instanceGroupUrls); | 163 checkUnnamed1938(o.instanceGroupUrls); |
| 164 checkUnnamed2185(o.locations); | 164 checkUnnamed1939(o.locations); |
| 165 unittest.expect(o.loggingService, unittest.equals('foo')); | 165 unittest.expect(o.loggingService, unittest.equals('foo')); |
| 166 checkMasterAuth(o.masterAuth); | 166 checkMasterAuth(o.masterAuth); |
| 167 unittest.expect(o.monitoringService, unittest.equals('foo')); | 167 unittest.expect(o.monitoringService, unittest.equals('foo')); |
| 168 unittest.expect(o.name, unittest.equals('foo')); | 168 unittest.expect(o.name, unittest.equals('foo')); |
| 169 unittest.expect(o.network, unittest.equals('foo')); | 169 unittest.expect(o.network, unittest.equals('foo')); |
| 170 checkNodeConfig(o.nodeConfig); | 170 checkNodeConfig(o.nodeConfig); |
| 171 unittest.expect(o.nodeIpv4CidrSize, unittest.equals(42)); | 171 unittest.expect(o.nodeIpv4CidrSize, unittest.equals(42)); |
| 172 checkUnnamed2186(o.nodePools); | 172 checkUnnamed1940(o.nodePools); |
| 173 unittest.expect(o.selfLink, unittest.equals('foo')); | 173 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 174 unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo')); | 174 unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo')); |
| 175 unittest.expect(o.status, unittest.equals('foo')); | 175 unittest.expect(o.status, unittest.equals('foo')); |
| 176 unittest.expect(o.statusMessage, unittest.equals('foo')); | 176 unittest.expect(o.statusMessage, unittest.equals('foo')); |
| 177 unittest.expect(o.subnetwork, unittest.equals('foo')); | 177 unittest.expect(o.subnetwork, unittest.equals('foo')); |
| 178 unittest.expect(o.zone, unittest.equals('foo')); | 178 unittest.expect(o.zone, unittest.equals('foo')); |
| 179 } | 179 } |
| 180 buildCounterCluster--; | 180 buildCounterCluster--; |
| 181 } | 181 } |
| 182 | 182 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 } | 276 } |
| 277 | 277 |
| 278 checkHttpLoadBalancing(api.HttpLoadBalancing o) { | 278 checkHttpLoadBalancing(api.HttpLoadBalancing o) { |
| 279 buildCounterHttpLoadBalancing++; | 279 buildCounterHttpLoadBalancing++; |
| 280 if (buildCounterHttpLoadBalancing < 3) { | 280 if (buildCounterHttpLoadBalancing < 3) { |
| 281 unittest.expect(o.disabled, unittest.isTrue); | 281 unittest.expect(o.disabled, unittest.isTrue); |
| 282 } | 282 } |
| 283 buildCounterHttpLoadBalancing--; | 283 buildCounterHttpLoadBalancing--; |
| 284 } | 284 } |
| 285 | 285 |
| 286 buildUnnamed2187() { | 286 buildUnnamed1941() { |
| 287 var o = new core.List<api.Cluster>(); | 287 var o = new core.List<api.Cluster>(); |
| 288 o.add(buildCluster()); | 288 o.add(buildCluster()); |
| 289 o.add(buildCluster()); | 289 o.add(buildCluster()); |
| 290 return o; | 290 return o; |
| 291 } | 291 } |
| 292 | 292 |
| 293 checkUnnamed2187(core.List<api.Cluster> o) { | 293 checkUnnamed1941(core.List<api.Cluster> o) { |
| 294 unittest.expect(o, unittest.hasLength(2)); | 294 unittest.expect(o, unittest.hasLength(2)); |
| 295 checkCluster(o[0]); | 295 checkCluster(o[0]); |
| 296 checkCluster(o[1]); | 296 checkCluster(o[1]); |
| 297 } | 297 } |
| 298 | 298 |
| 299 buildUnnamed2188() { | 299 buildUnnamed1942() { |
| 300 var o = new core.List<core.String>(); | 300 var o = new core.List<core.String>(); |
| 301 o.add("foo"); | 301 o.add("foo"); |
| 302 o.add("foo"); | 302 o.add("foo"); |
| 303 return o; | 303 return o; |
| 304 } | 304 } |
| 305 | 305 |
| 306 checkUnnamed2188(core.List<core.String> o) { | 306 checkUnnamed1942(core.List<core.String> o) { |
| 307 unittest.expect(o, unittest.hasLength(2)); | 307 unittest.expect(o, unittest.hasLength(2)); |
| 308 unittest.expect(o[0], unittest.equals('foo')); | 308 unittest.expect(o[0], unittest.equals('foo')); |
| 309 unittest.expect(o[1], unittest.equals('foo')); | 309 unittest.expect(o[1], unittest.equals('foo')); |
| 310 } | 310 } |
| 311 | 311 |
| 312 core.int buildCounterListClustersResponse = 0; | 312 core.int buildCounterListClustersResponse = 0; |
| 313 buildListClustersResponse() { | 313 buildListClustersResponse() { |
| 314 var o = new api.ListClustersResponse(); | 314 var o = new api.ListClustersResponse(); |
| 315 buildCounterListClustersResponse++; | 315 buildCounterListClustersResponse++; |
| 316 if (buildCounterListClustersResponse < 3) { | 316 if (buildCounterListClustersResponse < 3) { |
| 317 o.clusters = buildUnnamed2187(); | 317 o.clusters = buildUnnamed1941(); |
| 318 o.missingZones = buildUnnamed2188(); | 318 o.missingZones = buildUnnamed1942(); |
| 319 } | 319 } |
| 320 buildCounterListClustersResponse--; | 320 buildCounterListClustersResponse--; |
| 321 return o; | 321 return o; |
| 322 } | 322 } |
| 323 | 323 |
| 324 checkListClustersResponse(api.ListClustersResponse o) { | 324 checkListClustersResponse(api.ListClustersResponse o) { |
| 325 buildCounterListClustersResponse++; | 325 buildCounterListClustersResponse++; |
| 326 if (buildCounterListClustersResponse < 3) { | 326 if (buildCounterListClustersResponse < 3) { |
| 327 checkUnnamed2187(o.clusters); | 327 checkUnnamed1941(o.clusters); |
| 328 checkUnnamed2188(o.missingZones); | 328 checkUnnamed1942(o.missingZones); |
| 329 } | 329 } |
| 330 buildCounterListClustersResponse--; | 330 buildCounterListClustersResponse--; |
| 331 } | 331 } |
| 332 | 332 |
| 333 buildUnnamed2189() { | 333 buildUnnamed1943() { |
| 334 var o = new core.List<api.NodePool>(); | 334 var o = new core.List<api.NodePool>(); |
| 335 o.add(buildNodePool()); | 335 o.add(buildNodePool()); |
| 336 o.add(buildNodePool()); | 336 o.add(buildNodePool()); |
| 337 return o; | 337 return o; |
| 338 } | 338 } |
| 339 | 339 |
| 340 checkUnnamed2189(core.List<api.NodePool> o) { | 340 checkUnnamed1943(core.List<api.NodePool> o) { |
| 341 unittest.expect(o, unittest.hasLength(2)); | 341 unittest.expect(o, unittest.hasLength(2)); |
| 342 checkNodePool(o[0]); | 342 checkNodePool(o[0]); |
| 343 checkNodePool(o[1]); | 343 checkNodePool(o[1]); |
| 344 } | 344 } |
| 345 | 345 |
| 346 core.int buildCounterListNodePoolsResponse = 0; | 346 core.int buildCounterListNodePoolsResponse = 0; |
| 347 buildListNodePoolsResponse() { | 347 buildListNodePoolsResponse() { |
| 348 var o = new api.ListNodePoolsResponse(); | 348 var o = new api.ListNodePoolsResponse(); |
| 349 buildCounterListNodePoolsResponse++; | 349 buildCounterListNodePoolsResponse++; |
| 350 if (buildCounterListNodePoolsResponse < 3) { | 350 if (buildCounterListNodePoolsResponse < 3) { |
| 351 o.nodePools = buildUnnamed2189(); | 351 o.nodePools = buildUnnamed1943(); |
| 352 } | 352 } |
| 353 buildCounterListNodePoolsResponse--; | 353 buildCounterListNodePoolsResponse--; |
| 354 return o; | 354 return o; |
| 355 } | 355 } |
| 356 | 356 |
| 357 checkListNodePoolsResponse(api.ListNodePoolsResponse o) { | 357 checkListNodePoolsResponse(api.ListNodePoolsResponse o) { |
| 358 buildCounterListNodePoolsResponse++; | 358 buildCounterListNodePoolsResponse++; |
| 359 if (buildCounterListNodePoolsResponse < 3) { | 359 if (buildCounterListNodePoolsResponse < 3) { |
| 360 checkUnnamed2189(o.nodePools); | 360 checkUnnamed1943(o.nodePools); |
| 361 } | 361 } |
| 362 buildCounterListNodePoolsResponse--; | 362 buildCounterListNodePoolsResponse--; |
| 363 } | 363 } |
| 364 | 364 |
| 365 buildUnnamed2190() { | 365 buildUnnamed1944() { |
| 366 var o = new core.List<core.String>(); | 366 var o = new core.List<core.String>(); |
| 367 o.add("foo"); | 367 o.add("foo"); |
| 368 o.add("foo"); | 368 o.add("foo"); |
| 369 return o; | 369 return o; |
| 370 } | 370 } |
| 371 | 371 |
| 372 checkUnnamed2190(core.List<core.String> o) { | 372 checkUnnamed1944(core.List<core.String> o) { |
| 373 unittest.expect(o, unittest.hasLength(2)); | 373 unittest.expect(o, unittest.hasLength(2)); |
| 374 unittest.expect(o[0], unittest.equals('foo')); | 374 unittest.expect(o[0], unittest.equals('foo')); |
| 375 unittest.expect(o[1], unittest.equals('foo')); | 375 unittest.expect(o[1], unittest.equals('foo')); |
| 376 } | 376 } |
| 377 | 377 |
| 378 buildUnnamed2191() { | 378 buildUnnamed1945() { |
| 379 var o = new core.List<api.Operation>(); | 379 var o = new core.List<api.Operation>(); |
| 380 o.add(buildOperation()); | 380 o.add(buildOperation()); |
| 381 o.add(buildOperation()); | 381 o.add(buildOperation()); |
| 382 return o; | 382 return o; |
| 383 } | 383 } |
| 384 | 384 |
| 385 checkUnnamed2191(core.List<api.Operation> o) { | 385 checkUnnamed1945(core.List<api.Operation> o) { |
| 386 unittest.expect(o, unittest.hasLength(2)); | 386 unittest.expect(o, unittest.hasLength(2)); |
| 387 checkOperation(o[0]); | 387 checkOperation(o[0]); |
| 388 checkOperation(o[1]); | 388 checkOperation(o[1]); |
| 389 } | 389 } |
| 390 | 390 |
| 391 core.int buildCounterListOperationsResponse = 0; | 391 core.int buildCounterListOperationsResponse = 0; |
| 392 buildListOperationsResponse() { | 392 buildListOperationsResponse() { |
| 393 var o = new api.ListOperationsResponse(); | 393 var o = new api.ListOperationsResponse(); |
| 394 buildCounterListOperationsResponse++; | 394 buildCounterListOperationsResponse++; |
| 395 if (buildCounterListOperationsResponse < 3) { | 395 if (buildCounterListOperationsResponse < 3) { |
| 396 o.missingZones = buildUnnamed2190(); | 396 o.missingZones = buildUnnamed1944(); |
| 397 o.operations = buildUnnamed2191(); | 397 o.operations = buildUnnamed1945(); |
| 398 } | 398 } |
| 399 buildCounterListOperationsResponse--; | 399 buildCounterListOperationsResponse--; |
| 400 return o; | 400 return o; |
| 401 } | 401 } |
| 402 | 402 |
| 403 checkListOperationsResponse(api.ListOperationsResponse o) { | 403 checkListOperationsResponse(api.ListOperationsResponse o) { |
| 404 buildCounterListOperationsResponse++; | 404 buildCounterListOperationsResponse++; |
| 405 if (buildCounterListOperationsResponse < 3) { | 405 if (buildCounterListOperationsResponse < 3) { |
| 406 checkUnnamed2190(o.missingZones); | 406 checkUnnamed1944(o.missingZones); |
| 407 checkUnnamed2191(o.operations); | 407 checkUnnamed1945(o.operations); |
| 408 } | 408 } |
| 409 buildCounterListOperationsResponse--; | 409 buildCounterListOperationsResponse--; |
| 410 } | 410 } |
| 411 | 411 |
| 412 core.int buildCounterMasterAuth = 0; | 412 core.int buildCounterMasterAuth = 0; |
| 413 buildMasterAuth() { | 413 buildMasterAuth() { |
| 414 var o = new api.MasterAuth(); | 414 var o = new api.MasterAuth(); |
| 415 buildCounterMasterAuth++; | 415 buildCounterMasterAuth++; |
| 416 if (buildCounterMasterAuth < 3) { | 416 if (buildCounterMasterAuth < 3) { |
| 417 o.clientCertificate = "foo"; | 417 o.clientCertificate = "foo"; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 429 if (buildCounterMasterAuth < 3) { | 429 if (buildCounterMasterAuth < 3) { |
| 430 unittest.expect(o.clientCertificate, unittest.equals('foo')); | 430 unittest.expect(o.clientCertificate, unittest.equals('foo')); |
| 431 unittest.expect(o.clientKey, unittest.equals('foo')); | 431 unittest.expect(o.clientKey, unittest.equals('foo')); |
| 432 unittest.expect(o.clusterCaCertificate, unittest.equals('foo')); | 432 unittest.expect(o.clusterCaCertificate, unittest.equals('foo')); |
| 433 unittest.expect(o.password, unittest.equals('foo')); | 433 unittest.expect(o.password, unittest.equals('foo')); |
| 434 unittest.expect(o.username, unittest.equals('foo')); | 434 unittest.expect(o.username, unittest.equals('foo')); |
| 435 } | 435 } |
| 436 buildCounterMasterAuth--; | 436 buildCounterMasterAuth--; |
| 437 } | 437 } |
| 438 | 438 |
| 439 buildUnnamed2192() { | 439 buildUnnamed1946() { |
| 440 var o = new core.Map<core.String, core.String>(); | 440 var o = new core.Map<core.String, core.String>(); |
| 441 o["x"] = "foo"; | 441 o["x"] = "foo"; |
| 442 o["y"] = "foo"; | 442 o["y"] = "foo"; |
| 443 return o; | 443 return o; |
| 444 } | 444 } |
| 445 | 445 |
| 446 checkUnnamed2192(core.Map<core.String, core.String> o) { | 446 checkUnnamed1946(core.Map<core.String, core.String> o) { |
| 447 unittest.expect(o, unittest.hasLength(2)); | 447 unittest.expect(o, unittest.hasLength(2)); |
| 448 unittest.expect(o["x"], unittest.equals('foo')); | 448 unittest.expect(o["x"], unittest.equals('foo')); |
| 449 unittest.expect(o["y"], unittest.equals('foo')); | 449 unittest.expect(o["y"], unittest.equals('foo')); |
| 450 } | 450 } |
| 451 | 451 |
| 452 buildUnnamed2193() { | 452 buildUnnamed1947() { |
| 453 var o = new core.List<core.String>(); | 453 var o = new core.List<core.String>(); |
| 454 o.add("foo"); | 454 o.add("foo"); |
| 455 o.add("foo"); | 455 o.add("foo"); |
| 456 return o; | 456 return o; |
| 457 } | 457 } |
| 458 | 458 |
| 459 checkUnnamed2193(core.List<core.String> o) { | 459 checkUnnamed1947(core.List<core.String> o) { |
| 460 unittest.expect(o, unittest.hasLength(2)); | 460 unittest.expect(o, unittest.hasLength(2)); |
| 461 unittest.expect(o[0], unittest.equals('foo')); | 461 unittest.expect(o[0], unittest.equals('foo')); |
| 462 unittest.expect(o[1], unittest.equals('foo')); | 462 unittest.expect(o[1], unittest.equals('foo')); |
| 463 } | 463 } |
| 464 | 464 |
| 465 core.int buildCounterNodeConfig = 0; | 465 core.int buildCounterNodeConfig = 0; |
| 466 buildNodeConfig() { | 466 buildNodeConfig() { |
| 467 var o = new api.NodeConfig(); | 467 var o = new api.NodeConfig(); |
| 468 buildCounterNodeConfig++; | 468 buildCounterNodeConfig++; |
| 469 if (buildCounterNodeConfig < 3) { | 469 if (buildCounterNodeConfig < 3) { |
| 470 o.diskSizeGb = 42; | 470 o.diskSizeGb = 42; |
| 471 o.machineType = "foo"; | 471 o.machineType = "foo"; |
| 472 o.metadata = buildUnnamed2192(); | 472 o.metadata = buildUnnamed1946(); |
| 473 o.oauthScopes = buildUnnamed2193(); | 473 o.oauthScopes = buildUnnamed1947(); |
| 474 } | 474 } |
| 475 buildCounterNodeConfig--; | 475 buildCounterNodeConfig--; |
| 476 return o; | 476 return o; |
| 477 } | 477 } |
| 478 | 478 |
| 479 checkNodeConfig(api.NodeConfig o) { | 479 checkNodeConfig(api.NodeConfig o) { |
| 480 buildCounterNodeConfig++; | 480 buildCounterNodeConfig++; |
| 481 if (buildCounterNodeConfig < 3) { | 481 if (buildCounterNodeConfig < 3) { |
| 482 unittest.expect(o.diskSizeGb, unittest.equals(42)); | 482 unittest.expect(o.diskSizeGb, unittest.equals(42)); |
| 483 unittest.expect(o.machineType, unittest.equals('foo')); | 483 unittest.expect(o.machineType, unittest.equals('foo')); |
| 484 checkUnnamed2192(o.metadata); | 484 checkUnnamed1946(o.metadata); |
| 485 checkUnnamed2193(o.oauthScopes); | 485 checkUnnamed1947(o.oauthScopes); |
| 486 } | 486 } |
| 487 buildCounterNodeConfig--; | 487 buildCounterNodeConfig--; |
| 488 } | 488 } |
| 489 | 489 |
| 490 buildUnnamed2194() { | 490 buildUnnamed1948() { |
| 491 var o = new core.List<core.String>(); | 491 var o = new core.List<core.String>(); |
| 492 o.add("foo"); | 492 o.add("foo"); |
| 493 o.add("foo"); | 493 o.add("foo"); |
| 494 return o; | 494 return o; |
| 495 } | 495 } |
| 496 | 496 |
| 497 checkUnnamed2194(core.List<core.String> o) { | 497 checkUnnamed1948(core.List<core.String> o) { |
| 498 unittest.expect(o, unittest.hasLength(2)); | 498 unittest.expect(o, unittest.hasLength(2)); |
| 499 unittest.expect(o[0], unittest.equals('foo')); | 499 unittest.expect(o[0], unittest.equals('foo')); |
| 500 unittest.expect(o[1], unittest.equals('foo')); | 500 unittest.expect(o[1], unittest.equals('foo')); |
| 501 } | 501 } |
| 502 | 502 |
| 503 core.int buildCounterNodePool = 0; | 503 core.int buildCounterNodePool = 0; |
| 504 buildNodePool() { | 504 buildNodePool() { |
| 505 var o = new api.NodePool(); | 505 var o = new api.NodePool(); |
| 506 buildCounterNodePool++; | 506 buildCounterNodePool++; |
| 507 if (buildCounterNodePool < 3) { | 507 if (buildCounterNodePool < 3) { |
| 508 o.config = buildNodeConfig(); | 508 o.config = buildNodeConfig(); |
| 509 o.initialNodeCount = 42; | 509 o.initialNodeCount = 42; |
| 510 o.instanceGroupUrls = buildUnnamed2194(); | 510 o.instanceGroupUrls = buildUnnamed1948(); |
| 511 o.name = "foo"; | 511 o.name = "foo"; |
| 512 o.selfLink = "foo"; | 512 o.selfLink = "foo"; |
| 513 o.status = "foo"; | 513 o.status = "foo"; |
| 514 o.statusMessage = "foo"; | 514 o.statusMessage = "foo"; |
| 515 o.version = "foo"; | 515 o.version = "foo"; |
| 516 } | 516 } |
| 517 buildCounterNodePool--; | 517 buildCounterNodePool--; |
| 518 return o; | 518 return o; |
| 519 } | 519 } |
| 520 | 520 |
| 521 checkNodePool(api.NodePool o) { | 521 checkNodePool(api.NodePool o) { |
| 522 buildCounterNodePool++; | 522 buildCounterNodePool++; |
| 523 if (buildCounterNodePool < 3) { | 523 if (buildCounterNodePool < 3) { |
| 524 checkNodeConfig(o.config); | 524 checkNodeConfig(o.config); |
| 525 unittest.expect(o.initialNodeCount, unittest.equals(42)); | 525 unittest.expect(o.initialNodeCount, unittest.equals(42)); |
| 526 checkUnnamed2194(o.instanceGroupUrls); | 526 checkUnnamed1948(o.instanceGroupUrls); |
| 527 unittest.expect(o.name, unittest.equals('foo')); | 527 unittest.expect(o.name, unittest.equals('foo')); |
| 528 unittest.expect(o.selfLink, unittest.equals('foo')); | 528 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 529 unittest.expect(o.status, unittest.equals('foo')); | 529 unittest.expect(o.status, unittest.equals('foo')); |
| 530 unittest.expect(o.statusMessage, unittest.equals('foo')); | 530 unittest.expect(o.statusMessage, unittest.equals('foo')); |
| 531 unittest.expect(o.version, unittest.equals('foo')); | 531 unittest.expect(o.version, unittest.equals('foo')); |
| 532 } | 532 } |
| 533 buildCounterNodePool--; | 533 buildCounterNodePool--; |
| 534 } | 534 } |
| 535 | 535 |
| 536 core.int buildCounterOperation = 0; | 536 core.int buildCounterOperation = 0; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 559 unittest.expect(o.operationType, unittest.equals('foo')); | 559 unittest.expect(o.operationType, unittest.equals('foo')); |
| 560 unittest.expect(o.selfLink, unittest.equals('foo')); | 560 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 561 unittest.expect(o.status, unittest.equals('foo')); | 561 unittest.expect(o.status, unittest.equals('foo')); |
| 562 unittest.expect(o.statusMessage, unittest.equals('foo')); | 562 unittest.expect(o.statusMessage, unittest.equals('foo')); |
| 563 unittest.expect(o.targetLink, unittest.equals('foo')); | 563 unittest.expect(o.targetLink, unittest.equals('foo')); |
| 564 unittest.expect(o.zone, unittest.equals('foo')); | 564 unittest.expect(o.zone, unittest.equals('foo')); |
| 565 } | 565 } |
| 566 buildCounterOperation--; | 566 buildCounterOperation--; |
| 567 } | 567 } |
| 568 | 568 |
| 569 buildUnnamed2195() { | 569 buildUnnamed1949() { |
| 570 var o = new core.List<core.String>(); | 570 var o = new core.List<core.String>(); |
| 571 o.add("foo"); | 571 o.add("foo"); |
| 572 o.add("foo"); | 572 o.add("foo"); |
| 573 return o; | 573 return o; |
| 574 } | 574 } |
| 575 | 575 |
| 576 checkUnnamed2195(core.List<core.String> o) { | 576 checkUnnamed1949(core.List<core.String> o) { |
| 577 unittest.expect(o, unittest.hasLength(2)); | 577 unittest.expect(o, unittest.hasLength(2)); |
| 578 unittest.expect(o[0], unittest.equals('foo')); | 578 unittest.expect(o[0], unittest.equals('foo')); |
| 579 unittest.expect(o[1], unittest.equals('foo')); | 579 unittest.expect(o[1], unittest.equals('foo')); |
| 580 } | 580 } |
| 581 | 581 |
| 582 buildUnnamed2196() { | 582 buildUnnamed1950() { |
| 583 var o = new core.List<core.String>(); | 583 var o = new core.List<core.String>(); |
| 584 o.add("foo"); | 584 o.add("foo"); |
| 585 o.add("foo"); | 585 o.add("foo"); |
| 586 return o; | 586 return o; |
| 587 } | 587 } |
| 588 | 588 |
| 589 checkUnnamed2196(core.List<core.String> o) { | 589 checkUnnamed1950(core.List<core.String> o) { |
| 590 unittest.expect(o, unittest.hasLength(2)); | 590 unittest.expect(o, unittest.hasLength(2)); |
| 591 unittest.expect(o[0], unittest.equals('foo')); | 591 unittest.expect(o[0], unittest.equals('foo')); |
| 592 unittest.expect(o[1], unittest.equals('foo')); | 592 unittest.expect(o[1], unittest.equals('foo')); |
| 593 } | 593 } |
| 594 | 594 |
| 595 core.int buildCounterServerConfig = 0; | 595 core.int buildCounterServerConfig = 0; |
| 596 buildServerConfig() { | 596 buildServerConfig() { |
| 597 var o = new api.ServerConfig(); | 597 var o = new api.ServerConfig(); |
| 598 buildCounterServerConfig++; | 598 buildCounterServerConfig++; |
| 599 if (buildCounterServerConfig < 3) { | 599 if (buildCounterServerConfig < 3) { |
| 600 o.defaultClusterVersion = "foo"; | 600 o.defaultClusterVersion = "foo"; |
| 601 o.defaultImageFamily = "foo"; | 601 o.defaultImageFamily = "foo"; |
| 602 o.validImageFamilies = buildUnnamed2195(); | 602 o.validImageFamilies = buildUnnamed1949(); |
| 603 o.validNodeVersions = buildUnnamed2196(); | 603 o.validNodeVersions = buildUnnamed1950(); |
| 604 } | 604 } |
| 605 buildCounterServerConfig--; | 605 buildCounterServerConfig--; |
| 606 return o; | 606 return o; |
| 607 } | 607 } |
| 608 | 608 |
| 609 checkServerConfig(api.ServerConfig o) { | 609 checkServerConfig(api.ServerConfig o) { |
| 610 buildCounterServerConfig++; | 610 buildCounterServerConfig++; |
| 611 if (buildCounterServerConfig < 3) { | 611 if (buildCounterServerConfig < 3) { |
| 612 unittest.expect(o.defaultClusterVersion, unittest.equals('foo')); | 612 unittest.expect(o.defaultClusterVersion, unittest.equals('foo')); |
| 613 unittest.expect(o.defaultImageFamily, unittest.equals('foo')); | 613 unittest.expect(o.defaultImageFamily, unittest.equals('foo')); |
| 614 checkUnnamed2195(o.validImageFamilies); | 614 checkUnnamed1949(o.validImageFamilies); |
| 615 checkUnnamed2196(o.validNodeVersions); | 615 checkUnnamed1950(o.validNodeVersions); |
| 616 } | 616 } |
| 617 buildCounterServerConfig--; | 617 buildCounterServerConfig--; |
| 618 } | 618 } |
| 619 | 619 |
| 620 core.int buildCounterUpdateClusterRequest = 0; | 620 core.int buildCounterUpdateClusterRequest = 0; |
| 621 buildUpdateClusterRequest() { | 621 buildUpdateClusterRequest() { |
| 622 var o = new api.UpdateClusterRequest(); | 622 var o = new api.UpdateClusterRequest(); |
| 623 buildCounterUpdateClusterRequest++; | 623 buildCounterUpdateClusterRequest++; |
| 624 if (buildCounterUpdateClusterRequest < 3) { | 624 if (buildCounterUpdateClusterRequest < 3) { |
| 625 o.update = buildClusterUpdate(); | 625 o.update = buildClusterUpdate(); |
| (...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1569 res.list(arg_projectId, arg_zone).then(unittest.expectAsync(((api.ListOper
ationsResponse response) { | 1569 res.list(arg_projectId, arg_zone).then(unittest.expectAsync(((api.ListOper
ationsResponse response) { |
| 1570 checkListOperationsResponse(response); | 1570 checkListOperationsResponse(response); |
| 1571 }))); | 1571 }))); |
| 1572 }); | 1572 }); |
| 1573 | 1573 |
| 1574 }); | 1574 }); |
| 1575 | 1575 |
| 1576 | 1576 |
| 1577 } | 1577 } |
| 1578 | 1578 |
| OLD | NEW |