| 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:test/test.dart' as unittest; | 10 import 'package:test/test.dart' as unittest; |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 } | 166 } |
| 167 | 167 |
| 168 checkClientCertificateConfig(api.ClientCertificateConfig o) { | 168 checkClientCertificateConfig(api.ClientCertificateConfig o) { |
| 169 buildCounterClientCertificateConfig++; | 169 buildCounterClientCertificateConfig++; |
| 170 if (buildCounterClientCertificateConfig < 3) { | 170 if (buildCounterClientCertificateConfig < 3) { |
| 171 unittest.expect(o.issueClientCertificate, unittest.isTrue); | 171 unittest.expect(o.issueClientCertificate, unittest.isTrue); |
| 172 } | 172 } |
| 173 buildCounterClientCertificateConfig--; | 173 buildCounterClientCertificateConfig--; |
| 174 } | 174 } |
| 175 | 175 |
| 176 buildUnnamed1846() { | 176 buildUnnamed1864() { |
| 177 var o = new core.List<core.String>(); | 177 var o = new core.List<core.String>(); |
| 178 o.add("foo"); | 178 o.add("foo"); |
| 179 o.add("foo"); | 179 o.add("foo"); |
| 180 return o; | 180 return o; |
| 181 } | 181 } |
| 182 | 182 |
| 183 checkUnnamed1846(core.List<core.String> o) { | 183 checkUnnamed1864(core.List<core.String> o) { |
| 184 unittest.expect(o, unittest.hasLength(2)); | 184 unittest.expect(o, unittest.hasLength(2)); |
| 185 unittest.expect(o[0], unittest.equals('foo')); | 185 unittest.expect(o[0], unittest.equals('foo')); |
| 186 unittest.expect(o[1], unittest.equals('foo')); | 186 unittest.expect(o[1], unittest.equals('foo')); |
| 187 } | 187 } |
| 188 | 188 |
| 189 buildUnnamed1847() { | 189 buildUnnamed1865() { |
| 190 var o = new core.List<core.String>(); | 190 var o = new core.List<core.String>(); |
| 191 o.add("foo"); | 191 o.add("foo"); |
| 192 o.add("foo"); | 192 o.add("foo"); |
| 193 return o; | 193 return o; |
| 194 } | 194 } |
| 195 | 195 |
| 196 checkUnnamed1847(core.List<core.String> o) { | 196 checkUnnamed1865(core.List<core.String> o) { |
| 197 unittest.expect(o, unittest.hasLength(2)); | 197 unittest.expect(o, unittest.hasLength(2)); |
| 198 unittest.expect(o[0], unittest.equals('foo')); | 198 unittest.expect(o[0], unittest.equals('foo')); |
| 199 unittest.expect(o[1], unittest.equals('foo')); | 199 unittest.expect(o[1], unittest.equals('foo')); |
| 200 } | 200 } |
| 201 | 201 |
| 202 buildUnnamed1848() { | 202 buildUnnamed1866() { |
| 203 var o = new core.List<api.NodePool>(); | 203 var o = new core.List<api.NodePool>(); |
| 204 o.add(buildNodePool()); | 204 o.add(buildNodePool()); |
| 205 o.add(buildNodePool()); | 205 o.add(buildNodePool()); |
| 206 return o; | 206 return o; |
| 207 } | 207 } |
| 208 | 208 |
| 209 checkUnnamed1848(core.List<api.NodePool> o) { | 209 checkUnnamed1866(core.List<api.NodePool> o) { |
| 210 unittest.expect(o, unittest.hasLength(2)); | 210 unittest.expect(o, unittest.hasLength(2)); |
| 211 checkNodePool(o[0]); | 211 checkNodePool(o[0]); |
| 212 checkNodePool(o[1]); | 212 checkNodePool(o[1]); |
| 213 } | 213 } |
| 214 | 214 |
| 215 buildUnnamed1849() { | 215 buildUnnamed1867() { |
| 216 var o = new core.Map<core.String, core.String>(); | 216 var o = new core.Map<core.String, core.String>(); |
| 217 o["x"] = "foo"; | 217 o["x"] = "foo"; |
| 218 o["y"] = "foo"; | 218 o["y"] = "foo"; |
| 219 return o; | 219 return o; |
| 220 } | 220 } |
| 221 | 221 |
| 222 checkUnnamed1849(core.Map<core.String, core.String> o) { | 222 checkUnnamed1867(core.Map<core.String, core.String> o) { |
| 223 unittest.expect(o, unittest.hasLength(2)); | 223 unittest.expect(o, unittest.hasLength(2)); |
| 224 unittest.expect(o["x"], unittest.equals('foo')); | 224 unittest.expect(o["x"], unittest.equals('foo')); |
| 225 unittest.expect(o["y"], unittest.equals('foo')); | 225 unittest.expect(o["y"], unittest.equals('foo')); |
| 226 } | 226 } |
| 227 | 227 |
| 228 core.int buildCounterCluster = 0; | 228 core.int buildCounterCluster = 0; |
| 229 buildCluster() { | 229 buildCluster() { |
| 230 var o = new api.Cluster(); | 230 var o = new api.Cluster(); |
| 231 buildCounterCluster++; | 231 buildCounterCluster++; |
| 232 if (buildCounterCluster < 3) { | 232 if (buildCounterCluster < 3) { |
| 233 o.addonsConfig = buildAddonsConfig(); | 233 o.addonsConfig = buildAddonsConfig(); |
| 234 o.clusterIpv4Cidr = "foo"; | 234 o.clusterIpv4Cidr = "foo"; |
| 235 o.createTime = "foo"; | 235 o.createTime = "foo"; |
| 236 o.currentMasterVersion = "foo"; | 236 o.currentMasterVersion = "foo"; |
| 237 o.currentNodeCount = 42; | 237 o.currentNodeCount = 42; |
| 238 o.currentNodeVersion = "foo"; | 238 o.currentNodeVersion = "foo"; |
| 239 o.description = "foo"; | 239 o.description = "foo"; |
| 240 o.enableKubernetesAlpha = true; | 240 o.enableKubernetesAlpha = true; |
| 241 o.endpoint = "foo"; | 241 o.endpoint = "foo"; |
| 242 o.expireTime = "foo"; | 242 o.expireTime = "foo"; |
| 243 o.initialClusterVersion = "foo"; | 243 o.initialClusterVersion = "foo"; |
| 244 o.initialNodeCount = 42; | 244 o.initialNodeCount = 42; |
| 245 o.instanceGroupUrls = buildUnnamed1846(); | 245 o.instanceGroupUrls = buildUnnamed1864(); |
| 246 o.ipAllocationPolicy = buildIPAllocationPolicy(); | 246 o.ipAllocationPolicy = buildIPAllocationPolicy(); |
| 247 o.labelFingerprint = "foo"; | 247 o.labelFingerprint = "foo"; |
| 248 o.legacyAbac = buildLegacyAbac(); | 248 o.legacyAbac = buildLegacyAbac(); |
| 249 o.locations = buildUnnamed1847(); | 249 o.locations = buildUnnamed1865(); |
| 250 o.loggingService = "foo"; | 250 o.loggingService = "foo"; |
| 251 o.masterAuth = buildMasterAuth(); | 251 o.masterAuth = buildMasterAuth(); |
| 252 o.masterAuthorizedNetworksConfig = buildMasterAuthorizedNetworksConfig(); | 252 o.masterAuthorizedNetworksConfig = buildMasterAuthorizedNetworksConfig(); |
| 253 o.monitoringService = "foo"; | 253 o.monitoringService = "foo"; |
| 254 o.name = "foo"; | 254 o.name = "foo"; |
| 255 o.network = "foo"; | 255 o.network = "foo"; |
| 256 o.networkPolicy = buildNetworkPolicy(); | 256 o.networkPolicy = buildNetworkPolicy(); |
| 257 o.nodeConfig = buildNodeConfig(); | 257 o.nodeConfig = buildNodeConfig(); |
| 258 o.nodeIpv4CidrSize = 42; | 258 o.nodeIpv4CidrSize = 42; |
| 259 o.nodePools = buildUnnamed1848(); | 259 o.nodePools = buildUnnamed1866(); |
| 260 o.resourceLabels = buildUnnamed1849(); | 260 o.resourceLabels = buildUnnamed1867(); |
| 261 o.selfLink = "foo"; | 261 o.selfLink = "foo"; |
| 262 o.servicesIpv4Cidr = "foo"; | 262 o.servicesIpv4Cidr = "foo"; |
| 263 o.status = "foo"; | 263 o.status = "foo"; |
| 264 o.statusMessage = "foo"; | 264 o.statusMessage = "foo"; |
| 265 o.subnetwork = "foo"; | 265 o.subnetwork = "foo"; |
| 266 o.zone = "foo"; | 266 o.zone = "foo"; |
| 267 } | 267 } |
| 268 buildCounterCluster--; | 268 buildCounterCluster--; |
| 269 return o; | 269 return o; |
| 270 } | 270 } |
| 271 | 271 |
| 272 checkCluster(api.Cluster o) { | 272 checkCluster(api.Cluster o) { |
| 273 buildCounterCluster++; | 273 buildCounterCluster++; |
| 274 if (buildCounterCluster < 3) { | 274 if (buildCounterCluster < 3) { |
| 275 checkAddonsConfig(o.addonsConfig); | 275 checkAddonsConfig(o.addonsConfig); |
| 276 unittest.expect(o.clusterIpv4Cidr, unittest.equals('foo')); | 276 unittest.expect(o.clusterIpv4Cidr, unittest.equals('foo')); |
| 277 unittest.expect(o.createTime, unittest.equals('foo')); | 277 unittest.expect(o.createTime, unittest.equals('foo')); |
| 278 unittest.expect(o.currentMasterVersion, unittest.equals('foo')); | 278 unittest.expect(o.currentMasterVersion, unittest.equals('foo')); |
| 279 unittest.expect(o.currentNodeCount, unittest.equals(42)); | 279 unittest.expect(o.currentNodeCount, unittest.equals(42)); |
| 280 unittest.expect(o.currentNodeVersion, unittest.equals('foo')); | 280 unittest.expect(o.currentNodeVersion, unittest.equals('foo')); |
| 281 unittest.expect(o.description, unittest.equals('foo')); | 281 unittest.expect(o.description, unittest.equals('foo')); |
| 282 unittest.expect(o.enableKubernetesAlpha, unittest.isTrue); | 282 unittest.expect(o.enableKubernetesAlpha, unittest.isTrue); |
| 283 unittest.expect(o.endpoint, unittest.equals('foo')); | 283 unittest.expect(o.endpoint, unittest.equals('foo')); |
| 284 unittest.expect(o.expireTime, unittest.equals('foo')); | 284 unittest.expect(o.expireTime, unittest.equals('foo')); |
| 285 unittest.expect(o.initialClusterVersion, unittest.equals('foo')); | 285 unittest.expect(o.initialClusterVersion, unittest.equals('foo')); |
| 286 unittest.expect(o.initialNodeCount, unittest.equals(42)); | 286 unittest.expect(o.initialNodeCount, unittest.equals(42)); |
| 287 checkUnnamed1846(o.instanceGroupUrls); | 287 checkUnnamed1864(o.instanceGroupUrls); |
| 288 checkIPAllocationPolicy(o.ipAllocationPolicy); | 288 checkIPAllocationPolicy(o.ipAllocationPolicy); |
| 289 unittest.expect(o.labelFingerprint, unittest.equals('foo')); | 289 unittest.expect(o.labelFingerprint, unittest.equals('foo')); |
| 290 checkLegacyAbac(o.legacyAbac); | 290 checkLegacyAbac(o.legacyAbac); |
| 291 checkUnnamed1847(o.locations); | 291 checkUnnamed1865(o.locations); |
| 292 unittest.expect(o.loggingService, unittest.equals('foo')); | 292 unittest.expect(o.loggingService, unittest.equals('foo')); |
| 293 checkMasterAuth(o.masterAuth); | 293 checkMasterAuth(o.masterAuth); |
| 294 checkMasterAuthorizedNetworksConfig(o.masterAuthorizedNetworksConfig); | 294 checkMasterAuthorizedNetworksConfig(o.masterAuthorizedNetworksConfig); |
| 295 unittest.expect(o.monitoringService, unittest.equals('foo')); | 295 unittest.expect(o.monitoringService, unittest.equals('foo')); |
| 296 unittest.expect(o.name, unittest.equals('foo')); | 296 unittest.expect(o.name, unittest.equals('foo')); |
| 297 unittest.expect(o.network, unittest.equals('foo')); | 297 unittest.expect(o.network, unittest.equals('foo')); |
| 298 checkNetworkPolicy(o.networkPolicy); | 298 checkNetworkPolicy(o.networkPolicy); |
| 299 checkNodeConfig(o.nodeConfig); | 299 checkNodeConfig(o.nodeConfig); |
| 300 unittest.expect(o.nodeIpv4CidrSize, unittest.equals(42)); | 300 unittest.expect(o.nodeIpv4CidrSize, unittest.equals(42)); |
| 301 checkUnnamed1848(o.nodePools); | 301 checkUnnamed1866(o.nodePools); |
| 302 checkUnnamed1849(o.resourceLabels); | 302 checkUnnamed1867(o.resourceLabels); |
| 303 unittest.expect(o.selfLink, unittest.equals('foo')); | 303 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 304 unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo')); | 304 unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo')); |
| 305 unittest.expect(o.status, unittest.equals('foo')); | 305 unittest.expect(o.status, unittest.equals('foo')); |
| 306 unittest.expect(o.statusMessage, unittest.equals('foo')); | 306 unittest.expect(o.statusMessage, unittest.equals('foo')); |
| 307 unittest.expect(o.subnetwork, unittest.equals('foo')); | 307 unittest.expect(o.subnetwork, unittest.equals('foo')); |
| 308 unittest.expect(o.zone, unittest.equals('foo')); | 308 unittest.expect(o.zone, unittest.equals('foo')); |
| 309 } | 309 } |
| 310 buildCounterCluster--; | 310 buildCounterCluster--; |
| 311 } | 311 } |
| 312 | 312 |
| 313 buildUnnamed1850() { | 313 buildUnnamed1868() { |
| 314 var o = new core.List<core.String>(); | 314 var o = new core.List<core.String>(); |
| 315 o.add("foo"); | 315 o.add("foo"); |
| 316 o.add("foo"); | 316 o.add("foo"); |
| 317 return o; | 317 return o; |
| 318 } | 318 } |
| 319 | 319 |
| 320 checkUnnamed1850(core.List<core.String> o) { | 320 checkUnnamed1868(core.List<core.String> o) { |
| 321 unittest.expect(o, unittest.hasLength(2)); | 321 unittest.expect(o, unittest.hasLength(2)); |
| 322 unittest.expect(o[0], unittest.equals('foo')); | 322 unittest.expect(o[0], unittest.equals('foo')); |
| 323 unittest.expect(o[1], unittest.equals('foo')); | 323 unittest.expect(o[1], unittest.equals('foo')); |
| 324 } | 324 } |
| 325 | 325 |
| 326 core.int buildCounterClusterUpdate = 0; | 326 core.int buildCounterClusterUpdate = 0; |
| 327 buildClusterUpdate() { | 327 buildClusterUpdate() { |
| 328 var o = new api.ClusterUpdate(); | 328 var o = new api.ClusterUpdate(); |
| 329 buildCounterClusterUpdate++; | 329 buildCounterClusterUpdate++; |
| 330 if (buildCounterClusterUpdate < 3) { | 330 if (buildCounterClusterUpdate < 3) { |
| 331 o.desiredAddonsConfig = buildAddonsConfig(); | 331 o.desiredAddonsConfig = buildAddonsConfig(); |
| 332 o.desiredImageType = "foo"; | 332 o.desiredImageType = "foo"; |
| 333 o.desiredLocations = buildUnnamed1850(); | 333 o.desiredLocations = buildUnnamed1868(); |
| 334 o.desiredMasterAuthorizedNetworksConfig = buildMasterAuthorizedNetworksConfi
g(); | 334 o.desiredMasterAuthorizedNetworksConfig = buildMasterAuthorizedNetworksConfi
g(); |
| 335 o.desiredMasterVersion = "foo"; | 335 o.desiredMasterVersion = "foo"; |
| 336 o.desiredMonitoringService = "foo"; | 336 o.desiredMonitoringService = "foo"; |
| 337 o.desiredNodePoolAutoscaling = buildNodePoolAutoscaling(); | 337 o.desiredNodePoolAutoscaling = buildNodePoolAutoscaling(); |
| 338 o.desiredNodePoolId = "foo"; | 338 o.desiredNodePoolId = "foo"; |
| 339 o.desiredNodeVersion = "foo"; | 339 o.desiredNodeVersion = "foo"; |
| 340 } | 340 } |
| 341 buildCounterClusterUpdate--; | 341 buildCounterClusterUpdate--; |
| 342 return o; | 342 return o; |
| 343 } | 343 } |
| 344 | 344 |
| 345 checkClusterUpdate(api.ClusterUpdate o) { | 345 checkClusterUpdate(api.ClusterUpdate o) { |
| 346 buildCounterClusterUpdate++; | 346 buildCounterClusterUpdate++; |
| 347 if (buildCounterClusterUpdate < 3) { | 347 if (buildCounterClusterUpdate < 3) { |
| 348 checkAddonsConfig(o.desiredAddonsConfig); | 348 checkAddonsConfig(o.desiredAddonsConfig); |
| 349 unittest.expect(o.desiredImageType, unittest.equals('foo')); | 349 unittest.expect(o.desiredImageType, unittest.equals('foo')); |
| 350 checkUnnamed1850(o.desiredLocations); | 350 checkUnnamed1868(o.desiredLocations); |
| 351 checkMasterAuthorizedNetworksConfig(o.desiredMasterAuthorizedNetworksConfig)
; | 351 checkMasterAuthorizedNetworksConfig(o.desiredMasterAuthorizedNetworksConfig)
; |
| 352 unittest.expect(o.desiredMasterVersion, unittest.equals('foo')); | 352 unittest.expect(o.desiredMasterVersion, unittest.equals('foo')); |
| 353 unittest.expect(o.desiredMonitoringService, unittest.equals('foo')); | 353 unittest.expect(o.desiredMonitoringService, unittest.equals('foo')); |
| 354 checkNodePoolAutoscaling(o.desiredNodePoolAutoscaling); | 354 checkNodePoolAutoscaling(o.desiredNodePoolAutoscaling); |
| 355 unittest.expect(o.desiredNodePoolId, unittest.equals('foo')); | 355 unittest.expect(o.desiredNodePoolId, unittest.equals('foo')); |
| 356 unittest.expect(o.desiredNodeVersion, unittest.equals('foo')); | 356 unittest.expect(o.desiredNodeVersion, unittest.equals('foo')); |
| 357 } | 357 } |
| 358 buildCounterClusterUpdate--; | 358 buildCounterClusterUpdate--; |
| 359 } | 359 } |
| 360 | 360 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 528 } | 528 } |
| 529 | 529 |
| 530 checkLegacyAbac(api.LegacyAbac o) { | 530 checkLegacyAbac(api.LegacyAbac o) { |
| 531 buildCounterLegacyAbac++; | 531 buildCounterLegacyAbac++; |
| 532 if (buildCounterLegacyAbac < 3) { | 532 if (buildCounterLegacyAbac < 3) { |
| 533 unittest.expect(o.enabled, unittest.isTrue); | 533 unittest.expect(o.enabled, unittest.isTrue); |
| 534 } | 534 } |
| 535 buildCounterLegacyAbac--; | 535 buildCounterLegacyAbac--; |
| 536 } | 536 } |
| 537 | 537 |
| 538 buildUnnamed1851() { | 538 buildUnnamed1869() { |
| 539 var o = new core.List<api.Cluster>(); | 539 var o = new core.List<api.Cluster>(); |
| 540 o.add(buildCluster()); | 540 o.add(buildCluster()); |
| 541 o.add(buildCluster()); | 541 o.add(buildCluster()); |
| 542 return o; | 542 return o; |
| 543 } | 543 } |
| 544 | 544 |
| 545 checkUnnamed1851(core.List<api.Cluster> o) { | 545 checkUnnamed1869(core.List<api.Cluster> o) { |
| 546 unittest.expect(o, unittest.hasLength(2)); | 546 unittest.expect(o, unittest.hasLength(2)); |
| 547 checkCluster(o[0]); | 547 checkCluster(o[0]); |
| 548 checkCluster(o[1]); | 548 checkCluster(o[1]); |
| 549 } | 549 } |
| 550 | 550 |
| 551 buildUnnamed1852() { | 551 buildUnnamed1870() { |
| 552 var o = new core.List<core.String>(); | 552 var o = new core.List<core.String>(); |
| 553 o.add("foo"); | 553 o.add("foo"); |
| 554 o.add("foo"); | 554 o.add("foo"); |
| 555 return o; | 555 return o; |
| 556 } | 556 } |
| 557 | 557 |
| 558 checkUnnamed1852(core.List<core.String> o) { | 558 checkUnnamed1870(core.List<core.String> o) { |
| 559 unittest.expect(o, unittest.hasLength(2)); | 559 unittest.expect(o, unittest.hasLength(2)); |
| 560 unittest.expect(o[0], unittest.equals('foo')); | 560 unittest.expect(o[0], unittest.equals('foo')); |
| 561 unittest.expect(o[1], unittest.equals('foo')); | 561 unittest.expect(o[1], unittest.equals('foo')); |
| 562 } | 562 } |
| 563 | 563 |
| 564 core.int buildCounterListClustersResponse = 0; | 564 core.int buildCounterListClustersResponse = 0; |
| 565 buildListClustersResponse() { | 565 buildListClustersResponse() { |
| 566 var o = new api.ListClustersResponse(); | 566 var o = new api.ListClustersResponse(); |
| 567 buildCounterListClustersResponse++; | 567 buildCounterListClustersResponse++; |
| 568 if (buildCounterListClustersResponse < 3) { | 568 if (buildCounterListClustersResponse < 3) { |
| 569 o.clusters = buildUnnamed1851(); | 569 o.clusters = buildUnnamed1869(); |
| 570 o.missingZones = buildUnnamed1852(); | 570 o.missingZones = buildUnnamed1870(); |
| 571 } | 571 } |
| 572 buildCounterListClustersResponse--; | 572 buildCounterListClustersResponse--; |
| 573 return o; | 573 return o; |
| 574 } | 574 } |
| 575 | 575 |
| 576 checkListClustersResponse(api.ListClustersResponse o) { | 576 checkListClustersResponse(api.ListClustersResponse o) { |
| 577 buildCounterListClustersResponse++; | 577 buildCounterListClustersResponse++; |
| 578 if (buildCounterListClustersResponse < 3) { | 578 if (buildCounterListClustersResponse < 3) { |
| 579 checkUnnamed1851(o.clusters); | 579 checkUnnamed1869(o.clusters); |
| 580 checkUnnamed1852(o.missingZones); | 580 checkUnnamed1870(o.missingZones); |
| 581 } | 581 } |
| 582 buildCounterListClustersResponse--; | 582 buildCounterListClustersResponse--; |
| 583 } | 583 } |
| 584 | 584 |
| 585 buildUnnamed1853() { | 585 buildUnnamed1871() { |
| 586 var o = new core.List<api.NodePool>(); | 586 var o = new core.List<api.NodePool>(); |
| 587 o.add(buildNodePool()); | 587 o.add(buildNodePool()); |
| 588 o.add(buildNodePool()); | 588 o.add(buildNodePool()); |
| 589 return o; | 589 return o; |
| 590 } | 590 } |
| 591 | 591 |
| 592 checkUnnamed1853(core.List<api.NodePool> o) { | 592 checkUnnamed1871(core.List<api.NodePool> o) { |
| 593 unittest.expect(o, unittest.hasLength(2)); | 593 unittest.expect(o, unittest.hasLength(2)); |
| 594 checkNodePool(o[0]); | 594 checkNodePool(o[0]); |
| 595 checkNodePool(o[1]); | 595 checkNodePool(o[1]); |
| 596 } | 596 } |
| 597 | 597 |
| 598 core.int buildCounterListNodePoolsResponse = 0; | 598 core.int buildCounterListNodePoolsResponse = 0; |
| 599 buildListNodePoolsResponse() { | 599 buildListNodePoolsResponse() { |
| 600 var o = new api.ListNodePoolsResponse(); | 600 var o = new api.ListNodePoolsResponse(); |
| 601 buildCounterListNodePoolsResponse++; | 601 buildCounterListNodePoolsResponse++; |
| 602 if (buildCounterListNodePoolsResponse < 3) { | 602 if (buildCounterListNodePoolsResponse < 3) { |
| 603 o.nodePools = buildUnnamed1853(); | 603 o.nodePools = buildUnnamed1871(); |
| 604 } | 604 } |
| 605 buildCounterListNodePoolsResponse--; | 605 buildCounterListNodePoolsResponse--; |
| 606 return o; | 606 return o; |
| 607 } | 607 } |
| 608 | 608 |
| 609 checkListNodePoolsResponse(api.ListNodePoolsResponse o) { | 609 checkListNodePoolsResponse(api.ListNodePoolsResponse o) { |
| 610 buildCounterListNodePoolsResponse++; | 610 buildCounterListNodePoolsResponse++; |
| 611 if (buildCounterListNodePoolsResponse < 3) { | 611 if (buildCounterListNodePoolsResponse < 3) { |
| 612 checkUnnamed1853(o.nodePools); | 612 checkUnnamed1871(o.nodePools); |
| 613 } | 613 } |
| 614 buildCounterListNodePoolsResponse--; | 614 buildCounterListNodePoolsResponse--; |
| 615 } | 615 } |
| 616 | 616 |
| 617 buildUnnamed1854() { | 617 buildUnnamed1872() { |
| 618 var o = new core.List<core.String>(); | 618 var o = new core.List<core.String>(); |
| 619 o.add("foo"); | 619 o.add("foo"); |
| 620 o.add("foo"); | 620 o.add("foo"); |
| 621 return o; | 621 return o; |
| 622 } | 622 } |
| 623 | 623 |
| 624 checkUnnamed1854(core.List<core.String> o) { | 624 checkUnnamed1872(core.List<core.String> o) { |
| 625 unittest.expect(o, unittest.hasLength(2)); | 625 unittest.expect(o, unittest.hasLength(2)); |
| 626 unittest.expect(o[0], unittest.equals('foo')); | 626 unittest.expect(o[0], unittest.equals('foo')); |
| 627 unittest.expect(o[1], unittest.equals('foo')); | 627 unittest.expect(o[1], unittest.equals('foo')); |
| 628 } | 628 } |
| 629 | 629 |
| 630 buildUnnamed1855() { | 630 buildUnnamed1873() { |
| 631 var o = new core.List<api.Operation>(); | 631 var o = new core.List<api.Operation>(); |
| 632 o.add(buildOperation()); | 632 o.add(buildOperation()); |
| 633 o.add(buildOperation()); | 633 o.add(buildOperation()); |
| 634 return o; | 634 return o; |
| 635 } | 635 } |
| 636 | 636 |
| 637 checkUnnamed1855(core.List<api.Operation> o) { | 637 checkUnnamed1873(core.List<api.Operation> o) { |
| 638 unittest.expect(o, unittest.hasLength(2)); | 638 unittest.expect(o, unittest.hasLength(2)); |
| 639 checkOperation(o[0]); | 639 checkOperation(o[0]); |
| 640 checkOperation(o[1]); | 640 checkOperation(o[1]); |
| 641 } | 641 } |
| 642 | 642 |
| 643 core.int buildCounterListOperationsResponse = 0; | 643 core.int buildCounterListOperationsResponse = 0; |
| 644 buildListOperationsResponse() { | 644 buildListOperationsResponse() { |
| 645 var o = new api.ListOperationsResponse(); | 645 var o = new api.ListOperationsResponse(); |
| 646 buildCounterListOperationsResponse++; | 646 buildCounterListOperationsResponse++; |
| 647 if (buildCounterListOperationsResponse < 3) { | 647 if (buildCounterListOperationsResponse < 3) { |
| 648 o.missingZones = buildUnnamed1854(); | 648 o.missingZones = buildUnnamed1872(); |
| 649 o.operations = buildUnnamed1855(); | 649 o.operations = buildUnnamed1873(); |
| 650 } | 650 } |
| 651 buildCounterListOperationsResponse--; | 651 buildCounterListOperationsResponse--; |
| 652 return o; | 652 return o; |
| 653 } | 653 } |
| 654 | 654 |
| 655 checkListOperationsResponse(api.ListOperationsResponse o) { | 655 checkListOperationsResponse(api.ListOperationsResponse o) { |
| 656 buildCounterListOperationsResponse++; | 656 buildCounterListOperationsResponse++; |
| 657 if (buildCounterListOperationsResponse < 3) { | 657 if (buildCounterListOperationsResponse < 3) { |
| 658 checkUnnamed1854(o.missingZones); | 658 checkUnnamed1872(o.missingZones); |
| 659 checkUnnamed1855(o.operations); | 659 checkUnnamed1873(o.operations); |
| 660 } | 660 } |
| 661 buildCounterListOperationsResponse--; | 661 buildCounterListOperationsResponse--; |
| 662 } | 662 } |
| 663 | 663 |
| 664 core.int buildCounterMasterAuth = 0; | 664 core.int buildCounterMasterAuth = 0; |
| 665 buildMasterAuth() { | 665 buildMasterAuth() { |
| 666 var o = new api.MasterAuth(); | 666 var o = new api.MasterAuth(); |
| 667 buildCounterMasterAuth++; | 667 buildCounterMasterAuth++; |
| 668 if (buildCounterMasterAuth < 3) { | 668 if (buildCounterMasterAuth < 3) { |
| 669 o.clientCertificate = "foo"; | 669 o.clientCertificate = "foo"; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 683 unittest.expect(o.clientCertificate, unittest.equals('foo')); | 683 unittest.expect(o.clientCertificate, unittest.equals('foo')); |
| 684 checkClientCertificateConfig(o.clientCertificateConfig); | 684 checkClientCertificateConfig(o.clientCertificateConfig); |
| 685 unittest.expect(o.clientKey, unittest.equals('foo')); | 685 unittest.expect(o.clientKey, unittest.equals('foo')); |
| 686 unittest.expect(o.clusterCaCertificate, unittest.equals('foo')); | 686 unittest.expect(o.clusterCaCertificate, unittest.equals('foo')); |
| 687 unittest.expect(o.password, unittest.equals('foo')); | 687 unittest.expect(o.password, unittest.equals('foo')); |
| 688 unittest.expect(o.username, unittest.equals('foo')); | 688 unittest.expect(o.username, unittest.equals('foo')); |
| 689 } | 689 } |
| 690 buildCounterMasterAuth--; | 690 buildCounterMasterAuth--; |
| 691 } | 691 } |
| 692 | 692 |
| 693 buildUnnamed1856() { | 693 buildUnnamed1874() { |
| 694 var o = new core.List<api.CidrBlock>(); | 694 var o = new core.List<api.CidrBlock>(); |
| 695 o.add(buildCidrBlock()); | 695 o.add(buildCidrBlock()); |
| 696 o.add(buildCidrBlock()); | 696 o.add(buildCidrBlock()); |
| 697 return o; | 697 return o; |
| 698 } | 698 } |
| 699 | 699 |
| 700 checkUnnamed1856(core.List<api.CidrBlock> o) { | 700 checkUnnamed1874(core.List<api.CidrBlock> o) { |
| 701 unittest.expect(o, unittest.hasLength(2)); | 701 unittest.expect(o, unittest.hasLength(2)); |
| 702 checkCidrBlock(o[0]); | 702 checkCidrBlock(o[0]); |
| 703 checkCidrBlock(o[1]); | 703 checkCidrBlock(o[1]); |
| 704 } | 704 } |
| 705 | 705 |
| 706 core.int buildCounterMasterAuthorizedNetworksConfig = 0; | 706 core.int buildCounterMasterAuthorizedNetworksConfig = 0; |
| 707 buildMasterAuthorizedNetworksConfig() { | 707 buildMasterAuthorizedNetworksConfig() { |
| 708 var o = new api.MasterAuthorizedNetworksConfig(); | 708 var o = new api.MasterAuthorizedNetworksConfig(); |
| 709 buildCounterMasterAuthorizedNetworksConfig++; | 709 buildCounterMasterAuthorizedNetworksConfig++; |
| 710 if (buildCounterMasterAuthorizedNetworksConfig < 3) { | 710 if (buildCounterMasterAuthorizedNetworksConfig < 3) { |
| 711 o.cidrBlocks = buildUnnamed1856(); | 711 o.cidrBlocks = buildUnnamed1874(); |
| 712 o.enabled = true; | 712 o.enabled = true; |
| 713 } | 713 } |
| 714 buildCounterMasterAuthorizedNetworksConfig--; | 714 buildCounterMasterAuthorizedNetworksConfig--; |
| 715 return o; | 715 return o; |
| 716 } | 716 } |
| 717 | 717 |
| 718 checkMasterAuthorizedNetworksConfig(api.MasterAuthorizedNetworksConfig o) { | 718 checkMasterAuthorizedNetworksConfig(api.MasterAuthorizedNetworksConfig o) { |
| 719 buildCounterMasterAuthorizedNetworksConfig++; | 719 buildCounterMasterAuthorizedNetworksConfig++; |
| 720 if (buildCounterMasterAuthorizedNetworksConfig < 3) { | 720 if (buildCounterMasterAuthorizedNetworksConfig < 3) { |
| 721 checkUnnamed1856(o.cidrBlocks); | 721 checkUnnamed1874(o.cidrBlocks); |
| 722 unittest.expect(o.enabled, unittest.isTrue); | 722 unittest.expect(o.enabled, unittest.isTrue); |
| 723 } | 723 } |
| 724 buildCounterMasterAuthorizedNetworksConfig--; | 724 buildCounterMasterAuthorizedNetworksConfig--; |
| 725 } | 725 } |
| 726 | 726 |
| 727 core.int buildCounterNetworkPolicy = 0; | 727 core.int buildCounterNetworkPolicy = 0; |
| 728 buildNetworkPolicy() { | 728 buildNetworkPolicy() { |
| 729 var o = new api.NetworkPolicy(); | 729 var o = new api.NetworkPolicy(); |
| 730 buildCounterNetworkPolicy++; | 730 buildCounterNetworkPolicy++; |
| 731 if (buildCounterNetworkPolicy < 3) { | 731 if (buildCounterNetworkPolicy < 3) { |
| 732 o.enabled = true; | 732 o.enabled = true; |
| 733 o.provider = "foo"; | 733 o.provider = "foo"; |
| 734 } | 734 } |
| 735 buildCounterNetworkPolicy--; | 735 buildCounterNetworkPolicy--; |
| 736 return o; | 736 return o; |
| 737 } | 737 } |
| 738 | 738 |
| 739 checkNetworkPolicy(api.NetworkPolicy o) { | 739 checkNetworkPolicy(api.NetworkPolicy o) { |
| 740 buildCounterNetworkPolicy++; | 740 buildCounterNetworkPolicy++; |
| 741 if (buildCounterNetworkPolicy < 3) { | 741 if (buildCounterNetworkPolicy < 3) { |
| 742 unittest.expect(o.enabled, unittest.isTrue); | 742 unittest.expect(o.enabled, unittest.isTrue); |
| 743 unittest.expect(o.provider, unittest.equals('foo')); | 743 unittest.expect(o.provider, unittest.equals('foo')); |
| 744 } | 744 } |
| 745 buildCounterNetworkPolicy--; | 745 buildCounterNetworkPolicy--; |
| 746 } | 746 } |
| 747 | 747 |
| 748 buildUnnamed1857() { | 748 buildUnnamed1875() { |
| 749 var o = new core.List<api.AcceleratorConfig>(); | 749 var o = new core.List<api.AcceleratorConfig>(); |
| 750 o.add(buildAcceleratorConfig()); | 750 o.add(buildAcceleratorConfig()); |
| 751 o.add(buildAcceleratorConfig()); | 751 o.add(buildAcceleratorConfig()); |
| 752 return o; | 752 return o; |
| 753 } | 753 } |
| 754 | 754 |
| 755 checkUnnamed1857(core.List<api.AcceleratorConfig> o) { | 755 checkUnnamed1875(core.List<api.AcceleratorConfig> o) { |
| 756 unittest.expect(o, unittest.hasLength(2)); | 756 unittest.expect(o, unittest.hasLength(2)); |
| 757 checkAcceleratorConfig(o[0]); | 757 checkAcceleratorConfig(o[0]); |
| 758 checkAcceleratorConfig(o[1]); | 758 checkAcceleratorConfig(o[1]); |
| 759 } | 759 } |
| 760 | 760 |
| 761 buildUnnamed1858() { | 761 buildUnnamed1876() { |
| 762 var o = new core.Map<core.String, core.String>(); | 762 var o = new core.Map<core.String, core.String>(); |
| 763 o["x"] = "foo"; | 763 o["x"] = "foo"; |
| 764 o["y"] = "foo"; | 764 o["y"] = "foo"; |
| 765 return o; | 765 return o; |
| 766 } | 766 } |
| 767 | 767 |
| 768 checkUnnamed1858(core.Map<core.String, core.String> o) { | 768 checkUnnamed1876(core.Map<core.String, core.String> o) { |
| 769 unittest.expect(o, unittest.hasLength(2)); | 769 unittest.expect(o, unittest.hasLength(2)); |
| 770 unittest.expect(o["x"], unittest.equals('foo')); | 770 unittest.expect(o["x"], unittest.equals('foo')); |
| 771 unittest.expect(o["y"], unittest.equals('foo')); | 771 unittest.expect(o["y"], unittest.equals('foo')); |
| 772 } | 772 } |
| 773 | 773 |
| 774 buildUnnamed1859() { | 774 buildUnnamed1877() { |
| 775 var o = new core.Map<core.String, core.String>(); | 775 var o = new core.Map<core.String, core.String>(); |
| 776 o["x"] = "foo"; | 776 o["x"] = "foo"; |
| 777 o["y"] = "foo"; | 777 o["y"] = "foo"; |
| 778 return o; | 778 return o; |
| 779 } | 779 } |
| 780 | 780 |
| 781 checkUnnamed1859(core.Map<core.String, core.String> o) { | 781 checkUnnamed1877(core.Map<core.String, core.String> o) { |
| 782 unittest.expect(o, unittest.hasLength(2)); | 782 unittest.expect(o, unittest.hasLength(2)); |
| 783 unittest.expect(o["x"], unittest.equals('foo')); | 783 unittest.expect(o["x"], unittest.equals('foo')); |
| 784 unittest.expect(o["y"], unittest.equals('foo')); | 784 unittest.expect(o["y"], unittest.equals('foo')); |
| 785 } | 785 } |
| 786 | 786 |
| 787 buildUnnamed1860() { | 787 buildUnnamed1878() { |
| 788 var o = new core.List<core.String>(); | 788 var o = new core.List<core.String>(); |
| 789 o.add("foo"); | 789 o.add("foo"); |
| 790 o.add("foo"); | 790 o.add("foo"); |
| 791 return o; | 791 return o; |
| 792 } | 792 } |
| 793 | 793 |
| 794 checkUnnamed1860(core.List<core.String> o) { | 794 checkUnnamed1878(core.List<core.String> o) { |
| 795 unittest.expect(o, unittest.hasLength(2)); | 795 unittest.expect(o, unittest.hasLength(2)); |
| 796 unittest.expect(o[0], unittest.equals('foo')); | 796 unittest.expect(o[0], unittest.equals('foo')); |
| 797 unittest.expect(o[1], unittest.equals('foo')); | 797 unittest.expect(o[1], unittest.equals('foo')); |
| 798 } | 798 } |
| 799 | 799 |
| 800 buildUnnamed1861() { | 800 buildUnnamed1879() { |
| 801 var o = new core.List<core.String>(); | 801 var o = new core.List<core.String>(); |
| 802 o.add("foo"); | 802 o.add("foo"); |
| 803 o.add("foo"); | 803 o.add("foo"); |
| 804 return o; | 804 return o; |
| 805 } | 805 } |
| 806 | 806 |
| 807 checkUnnamed1861(core.List<core.String> o) { | 807 checkUnnamed1879(core.List<core.String> o) { |
| 808 unittest.expect(o, unittest.hasLength(2)); | 808 unittest.expect(o, unittest.hasLength(2)); |
| 809 unittest.expect(o[0], unittest.equals('foo')); | 809 unittest.expect(o[0], unittest.equals('foo')); |
| 810 unittest.expect(o[1], unittest.equals('foo')); | 810 unittest.expect(o[1], unittest.equals('foo')); |
| 811 } | 811 } |
| 812 | 812 |
| 813 core.int buildCounterNodeConfig = 0; | 813 core.int buildCounterNodeConfig = 0; |
| 814 buildNodeConfig() { | 814 buildNodeConfig() { |
| 815 var o = new api.NodeConfig(); | 815 var o = new api.NodeConfig(); |
| 816 buildCounterNodeConfig++; | 816 buildCounterNodeConfig++; |
| 817 if (buildCounterNodeConfig < 3) { | 817 if (buildCounterNodeConfig < 3) { |
| 818 o.accelerators = buildUnnamed1857(); | 818 o.accelerators = buildUnnamed1875(); |
| 819 o.diskSizeGb = 42; | 819 o.diskSizeGb = 42; |
| 820 o.imageType = "foo"; | 820 o.imageType = "foo"; |
| 821 o.labels = buildUnnamed1858(); | 821 o.labels = buildUnnamed1876(); |
| 822 o.localSsdCount = 42; | 822 o.localSsdCount = 42; |
| 823 o.machineType = "foo"; | 823 o.machineType = "foo"; |
| 824 o.metadata = buildUnnamed1859(); | 824 o.metadata = buildUnnamed1877(); |
| 825 o.oauthScopes = buildUnnamed1860(); | 825 o.oauthScopes = buildUnnamed1878(); |
| 826 o.preemptible = true; | 826 o.preemptible = true; |
| 827 o.serviceAccount = "foo"; | 827 o.serviceAccount = "foo"; |
| 828 o.tags = buildUnnamed1861(); | 828 o.tags = buildUnnamed1879(); |
| 829 } | 829 } |
| 830 buildCounterNodeConfig--; | 830 buildCounterNodeConfig--; |
| 831 return o; | 831 return o; |
| 832 } | 832 } |
| 833 | 833 |
| 834 checkNodeConfig(api.NodeConfig o) { | 834 checkNodeConfig(api.NodeConfig o) { |
| 835 buildCounterNodeConfig++; | 835 buildCounterNodeConfig++; |
| 836 if (buildCounterNodeConfig < 3) { | 836 if (buildCounterNodeConfig < 3) { |
| 837 checkUnnamed1857(o.accelerators); | 837 checkUnnamed1875(o.accelerators); |
| 838 unittest.expect(o.diskSizeGb, unittest.equals(42)); | 838 unittest.expect(o.diskSizeGb, unittest.equals(42)); |
| 839 unittest.expect(o.imageType, unittest.equals('foo')); | 839 unittest.expect(o.imageType, unittest.equals('foo')); |
| 840 checkUnnamed1858(o.labels); | 840 checkUnnamed1876(o.labels); |
| 841 unittest.expect(o.localSsdCount, unittest.equals(42)); | 841 unittest.expect(o.localSsdCount, unittest.equals(42)); |
| 842 unittest.expect(o.machineType, unittest.equals('foo')); | 842 unittest.expect(o.machineType, unittest.equals('foo')); |
| 843 checkUnnamed1859(o.metadata); | 843 checkUnnamed1877(o.metadata); |
| 844 checkUnnamed1860(o.oauthScopes); | 844 checkUnnamed1878(o.oauthScopes); |
| 845 unittest.expect(o.preemptible, unittest.isTrue); | 845 unittest.expect(o.preemptible, unittest.isTrue); |
| 846 unittest.expect(o.serviceAccount, unittest.equals('foo')); | 846 unittest.expect(o.serviceAccount, unittest.equals('foo')); |
| 847 checkUnnamed1861(o.tags); | 847 checkUnnamed1879(o.tags); |
| 848 } | 848 } |
| 849 buildCounterNodeConfig--; | 849 buildCounterNodeConfig--; |
| 850 } | 850 } |
| 851 | 851 |
| 852 core.int buildCounterNodeManagement = 0; | 852 core.int buildCounterNodeManagement = 0; |
| 853 buildNodeManagement() { | 853 buildNodeManagement() { |
| 854 var o = new api.NodeManagement(); | 854 var o = new api.NodeManagement(); |
| 855 buildCounterNodeManagement++; | 855 buildCounterNodeManagement++; |
| 856 if (buildCounterNodeManagement < 3) { | 856 if (buildCounterNodeManagement < 3) { |
| 857 o.autoRepair = true; | 857 o.autoRepair = true; |
| 858 o.autoUpgrade = true; | 858 o.autoUpgrade = true; |
| 859 o.upgradeOptions = buildAutoUpgradeOptions(); | 859 o.upgradeOptions = buildAutoUpgradeOptions(); |
| 860 } | 860 } |
| 861 buildCounterNodeManagement--; | 861 buildCounterNodeManagement--; |
| 862 return o; | 862 return o; |
| 863 } | 863 } |
| 864 | 864 |
| 865 checkNodeManagement(api.NodeManagement o) { | 865 checkNodeManagement(api.NodeManagement o) { |
| 866 buildCounterNodeManagement++; | 866 buildCounterNodeManagement++; |
| 867 if (buildCounterNodeManagement < 3) { | 867 if (buildCounterNodeManagement < 3) { |
| 868 unittest.expect(o.autoRepair, unittest.isTrue); | 868 unittest.expect(o.autoRepair, unittest.isTrue); |
| 869 unittest.expect(o.autoUpgrade, unittest.isTrue); | 869 unittest.expect(o.autoUpgrade, unittest.isTrue); |
| 870 checkAutoUpgradeOptions(o.upgradeOptions); | 870 checkAutoUpgradeOptions(o.upgradeOptions); |
| 871 } | 871 } |
| 872 buildCounterNodeManagement--; | 872 buildCounterNodeManagement--; |
| 873 } | 873 } |
| 874 | 874 |
| 875 buildUnnamed1862() { | 875 buildUnnamed1880() { |
| 876 var o = new core.List<core.String>(); | 876 var o = new core.List<core.String>(); |
| 877 o.add("foo"); | 877 o.add("foo"); |
| 878 o.add("foo"); | 878 o.add("foo"); |
| 879 return o; | 879 return o; |
| 880 } | 880 } |
| 881 | 881 |
| 882 checkUnnamed1862(core.List<core.String> o) { | 882 checkUnnamed1880(core.List<core.String> o) { |
| 883 unittest.expect(o, unittest.hasLength(2)); | 883 unittest.expect(o, unittest.hasLength(2)); |
| 884 unittest.expect(o[0], unittest.equals('foo')); | 884 unittest.expect(o[0], unittest.equals('foo')); |
| 885 unittest.expect(o[1], unittest.equals('foo')); | 885 unittest.expect(o[1], unittest.equals('foo')); |
| 886 } | 886 } |
| 887 | 887 |
| 888 core.int buildCounterNodePool = 0; | 888 core.int buildCounterNodePool = 0; |
| 889 buildNodePool() { | 889 buildNodePool() { |
| 890 var o = new api.NodePool(); | 890 var o = new api.NodePool(); |
| 891 buildCounterNodePool++; | 891 buildCounterNodePool++; |
| 892 if (buildCounterNodePool < 3) { | 892 if (buildCounterNodePool < 3) { |
| 893 o.autoscaling = buildNodePoolAutoscaling(); | 893 o.autoscaling = buildNodePoolAutoscaling(); |
| 894 o.config = buildNodeConfig(); | 894 o.config = buildNodeConfig(); |
| 895 o.initialNodeCount = 42; | 895 o.initialNodeCount = 42; |
| 896 o.instanceGroupUrls = buildUnnamed1862(); | 896 o.instanceGroupUrls = buildUnnamed1880(); |
| 897 o.management = buildNodeManagement(); | 897 o.management = buildNodeManagement(); |
| 898 o.name = "foo"; | 898 o.name = "foo"; |
| 899 o.selfLink = "foo"; | 899 o.selfLink = "foo"; |
| 900 o.status = "foo"; | 900 o.status = "foo"; |
| 901 o.statusMessage = "foo"; | 901 o.statusMessage = "foo"; |
| 902 o.version = "foo"; | 902 o.version = "foo"; |
| 903 } | 903 } |
| 904 buildCounterNodePool--; | 904 buildCounterNodePool--; |
| 905 return o; | 905 return o; |
| 906 } | 906 } |
| 907 | 907 |
| 908 checkNodePool(api.NodePool o) { | 908 checkNodePool(api.NodePool o) { |
| 909 buildCounterNodePool++; | 909 buildCounterNodePool++; |
| 910 if (buildCounterNodePool < 3) { | 910 if (buildCounterNodePool < 3) { |
| 911 checkNodePoolAutoscaling(o.autoscaling); | 911 checkNodePoolAutoscaling(o.autoscaling); |
| 912 checkNodeConfig(o.config); | 912 checkNodeConfig(o.config); |
| 913 unittest.expect(o.initialNodeCount, unittest.equals(42)); | 913 unittest.expect(o.initialNodeCount, unittest.equals(42)); |
| 914 checkUnnamed1862(o.instanceGroupUrls); | 914 checkUnnamed1880(o.instanceGroupUrls); |
| 915 checkNodeManagement(o.management); | 915 checkNodeManagement(o.management); |
| 916 unittest.expect(o.name, unittest.equals('foo')); | 916 unittest.expect(o.name, unittest.equals('foo')); |
| 917 unittest.expect(o.selfLink, unittest.equals('foo')); | 917 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 918 unittest.expect(o.status, unittest.equals('foo')); | 918 unittest.expect(o.status, unittest.equals('foo')); |
| 919 unittest.expect(o.statusMessage, unittest.equals('foo')); | 919 unittest.expect(o.statusMessage, unittest.equals('foo')); |
| 920 unittest.expect(o.version, unittest.equals('foo')); | 920 unittest.expect(o.version, unittest.equals('foo')); |
| 921 } | 921 } |
| 922 buildCounterNodePool--; | 922 buildCounterNodePool--; |
| 923 } | 923 } |
| 924 | 924 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 988 return o; | 988 return o; |
| 989 } | 989 } |
| 990 | 990 |
| 991 checkRollbackNodePoolUpgradeRequest(api.RollbackNodePoolUpgradeRequest o) { | 991 checkRollbackNodePoolUpgradeRequest(api.RollbackNodePoolUpgradeRequest o) { |
| 992 buildCounterRollbackNodePoolUpgradeRequest++; | 992 buildCounterRollbackNodePoolUpgradeRequest++; |
| 993 if (buildCounterRollbackNodePoolUpgradeRequest < 3) { | 993 if (buildCounterRollbackNodePoolUpgradeRequest < 3) { |
| 994 } | 994 } |
| 995 buildCounterRollbackNodePoolUpgradeRequest--; | 995 buildCounterRollbackNodePoolUpgradeRequest--; |
| 996 } | 996 } |
| 997 | 997 |
| 998 buildUnnamed1863() { | 998 buildUnnamed1881() { |
| 999 var o = new core.List<core.String>(); | 999 var o = new core.List<core.String>(); |
| 1000 o.add("foo"); | 1000 o.add("foo"); |
| 1001 o.add("foo"); | 1001 o.add("foo"); |
| 1002 return o; | 1002 return o; |
| 1003 } | 1003 } |
| 1004 | 1004 |
| 1005 checkUnnamed1863(core.List<core.String> o) { | 1005 checkUnnamed1881(core.List<core.String> o) { |
| 1006 unittest.expect(o, unittest.hasLength(2)); | 1006 unittest.expect(o, unittest.hasLength(2)); |
| 1007 unittest.expect(o[0], unittest.equals('foo')); | 1007 unittest.expect(o[0], unittest.equals('foo')); |
| 1008 unittest.expect(o[1], unittest.equals('foo')); | 1008 unittest.expect(o[1], unittest.equals('foo')); |
| 1009 } | 1009 } |
| 1010 | 1010 |
| 1011 buildUnnamed1864() { | 1011 buildUnnamed1882() { |
| 1012 var o = new core.List<core.String>(); | 1012 var o = new core.List<core.String>(); |
| 1013 o.add("foo"); | 1013 o.add("foo"); |
| 1014 o.add("foo"); | 1014 o.add("foo"); |
| 1015 return o; | 1015 return o; |
| 1016 } | 1016 } |
| 1017 | 1017 |
| 1018 checkUnnamed1864(core.List<core.String> o) { | 1018 checkUnnamed1882(core.List<core.String> o) { |
| 1019 unittest.expect(o, unittest.hasLength(2)); | 1019 unittest.expect(o, unittest.hasLength(2)); |
| 1020 unittest.expect(o[0], unittest.equals('foo')); | 1020 unittest.expect(o[0], unittest.equals('foo')); |
| 1021 unittest.expect(o[1], unittest.equals('foo')); | 1021 unittest.expect(o[1], unittest.equals('foo')); |
| 1022 } | 1022 } |
| 1023 | 1023 |
| 1024 buildUnnamed1865() { | 1024 buildUnnamed1883() { |
| 1025 var o = new core.List<core.String>(); | 1025 var o = new core.List<core.String>(); |
| 1026 o.add("foo"); | 1026 o.add("foo"); |
| 1027 o.add("foo"); | 1027 o.add("foo"); |
| 1028 return o; | 1028 return o; |
| 1029 } | 1029 } |
| 1030 | 1030 |
| 1031 checkUnnamed1865(core.List<core.String> o) { | 1031 checkUnnamed1883(core.List<core.String> o) { |
| 1032 unittest.expect(o, unittest.hasLength(2)); | 1032 unittest.expect(o, unittest.hasLength(2)); |
| 1033 unittest.expect(o[0], unittest.equals('foo')); | 1033 unittest.expect(o[0], unittest.equals('foo')); |
| 1034 unittest.expect(o[1], unittest.equals('foo')); | 1034 unittest.expect(o[1], unittest.equals('foo')); |
| 1035 } | 1035 } |
| 1036 | 1036 |
| 1037 core.int buildCounterServerConfig = 0; | 1037 core.int buildCounterServerConfig = 0; |
| 1038 buildServerConfig() { | 1038 buildServerConfig() { |
| 1039 var o = new api.ServerConfig(); | 1039 var o = new api.ServerConfig(); |
| 1040 buildCounterServerConfig++; | 1040 buildCounterServerConfig++; |
| 1041 if (buildCounterServerConfig < 3) { | 1041 if (buildCounterServerConfig < 3) { |
| 1042 o.defaultClusterVersion = "foo"; | 1042 o.defaultClusterVersion = "foo"; |
| 1043 o.defaultImageType = "foo"; | 1043 o.defaultImageType = "foo"; |
| 1044 o.validImageTypes = buildUnnamed1863(); | 1044 o.validImageTypes = buildUnnamed1881(); |
| 1045 o.validMasterVersions = buildUnnamed1864(); | 1045 o.validMasterVersions = buildUnnamed1882(); |
| 1046 o.validNodeVersions = buildUnnamed1865(); | 1046 o.validNodeVersions = buildUnnamed1883(); |
| 1047 } | 1047 } |
| 1048 buildCounterServerConfig--; | 1048 buildCounterServerConfig--; |
| 1049 return o; | 1049 return o; |
| 1050 } | 1050 } |
| 1051 | 1051 |
| 1052 checkServerConfig(api.ServerConfig o) { | 1052 checkServerConfig(api.ServerConfig o) { |
| 1053 buildCounterServerConfig++; | 1053 buildCounterServerConfig++; |
| 1054 if (buildCounterServerConfig < 3) { | 1054 if (buildCounterServerConfig < 3) { |
| 1055 unittest.expect(o.defaultClusterVersion, unittest.equals('foo')); | 1055 unittest.expect(o.defaultClusterVersion, unittest.equals('foo')); |
| 1056 unittest.expect(o.defaultImageType, unittest.equals('foo')); | 1056 unittest.expect(o.defaultImageType, unittest.equals('foo')); |
| 1057 checkUnnamed1863(o.validImageTypes); | 1057 checkUnnamed1881(o.validImageTypes); |
| 1058 checkUnnamed1864(o.validMasterVersions); | 1058 checkUnnamed1882(o.validMasterVersions); |
| 1059 checkUnnamed1865(o.validNodeVersions); | 1059 checkUnnamed1883(o.validNodeVersions); |
| 1060 } | 1060 } |
| 1061 buildCounterServerConfig--; | 1061 buildCounterServerConfig--; |
| 1062 } | 1062 } |
| 1063 | 1063 |
| 1064 core.int buildCounterSetAddonsConfigRequest = 0; | 1064 core.int buildCounterSetAddonsConfigRequest = 0; |
| 1065 buildSetAddonsConfigRequest() { | 1065 buildSetAddonsConfigRequest() { |
| 1066 var o = new api.SetAddonsConfigRequest(); | 1066 var o = new api.SetAddonsConfigRequest(); |
| 1067 buildCounterSetAddonsConfigRequest++; | 1067 buildCounterSetAddonsConfigRequest++; |
| 1068 if (buildCounterSetAddonsConfigRequest < 3) { | 1068 if (buildCounterSetAddonsConfigRequest < 3) { |
| 1069 o.addonsConfig = buildAddonsConfig(); | 1069 o.addonsConfig = buildAddonsConfig(); |
| 1070 } | 1070 } |
| 1071 buildCounterSetAddonsConfigRequest--; | 1071 buildCounterSetAddonsConfigRequest--; |
| 1072 return o; | 1072 return o; |
| 1073 } | 1073 } |
| 1074 | 1074 |
| 1075 checkSetAddonsConfigRequest(api.SetAddonsConfigRequest o) { | 1075 checkSetAddonsConfigRequest(api.SetAddonsConfigRequest o) { |
| 1076 buildCounterSetAddonsConfigRequest++; | 1076 buildCounterSetAddonsConfigRequest++; |
| 1077 if (buildCounterSetAddonsConfigRequest < 3) { | 1077 if (buildCounterSetAddonsConfigRequest < 3) { |
| 1078 checkAddonsConfig(o.addonsConfig); | 1078 checkAddonsConfig(o.addonsConfig); |
| 1079 } | 1079 } |
| 1080 buildCounterSetAddonsConfigRequest--; | 1080 buildCounterSetAddonsConfigRequest--; |
| 1081 } | 1081 } |
| 1082 | 1082 |
| 1083 buildUnnamed1866() { | 1083 buildUnnamed1884() { |
| 1084 var o = new core.Map<core.String, core.String>(); | 1084 var o = new core.Map<core.String, core.String>(); |
| 1085 o["x"] = "foo"; | 1085 o["x"] = "foo"; |
| 1086 o["y"] = "foo"; | 1086 o["y"] = "foo"; |
| 1087 return o; | 1087 return o; |
| 1088 } | 1088 } |
| 1089 | 1089 |
| 1090 checkUnnamed1866(core.Map<core.String, core.String> o) { | 1090 checkUnnamed1884(core.Map<core.String, core.String> o) { |
| 1091 unittest.expect(o, unittest.hasLength(2)); | 1091 unittest.expect(o, unittest.hasLength(2)); |
| 1092 unittest.expect(o["x"], unittest.equals('foo')); | 1092 unittest.expect(o["x"], unittest.equals('foo')); |
| 1093 unittest.expect(o["y"], unittest.equals('foo')); | 1093 unittest.expect(o["y"], unittest.equals('foo')); |
| 1094 } | 1094 } |
| 1095 | 1095 |
| 1096 core.int buildCounterSetLabelsRequest = 0; | 1096 core.int buildCounterSetLabelsRequest = 0; |
| 1097 buildSetLabelsRequest() { | 1097 buildSetLabelsRequest() { |
| 1098 var o = new api.SetLabelsRequest(); | 1098 var o = new api.SetLabelsRequest(); |
| 1099 buildCounterSetLabelsRequest++; | 1099 buildCounterSetLabelsRequest++; |
| 1100 if (buildCounterSetLabelsRequest < 3) { | 1100 if (buildCounterSetLabelsRequest < 3) { |
| 1101 o.labelFingerprint = "foo"; | 1101 o.labelFingerprint = "foo"; |
| 1102 o.resourceLabels = buildUnnamed1866(); | 1102 o.resourceLabels = buildUnnamed1884(); |
| 1103 } | 1103 } |
| 1104 buildCounterSetLabelsRequest--; | 1104 buildCounterSetLabelsRequest--; |
| 1105 return o; | 1105 return o; |
| 1106 } | 1106 } |
| 1107 | 1107 |
| 1108 checkSetLabelsRequest(api.SetLabelsRequest o) { | 1108 checkSetLabelsRequest(api.SetLabelsRequest o) { |
| 1109 buildCounterSetLabelsRequest++; | 1109 buildCounterSetLabelsRequest++; |
| 1110 if (buildCounterSetLabelsRequest < 3) { | 1110 if (buildCounterSetLabelsRequest < 3) { |
| 1111 unittest.expect(o.labelFingerprint, unittest.equals('foo')); | 1111 unittest.expect(o.labelFingerprint, unittest.equals('foo')); |
| 1112 checkUnnamed1866(o.resourceLabels); | 1112 checkUnnamed1884(o.resourceLabels); |
| 1113 } | 1113 } |
| 1114 buildCounterSetLabelsRequest--; | 1114 buildCounterSetLabelsRequest--; |
| 1115 } | 1115 } |
| 1116 | 1116 |
| 1117 core.int buildCounterSetLegacyAbacRequest = 0; | 1117 core.int buildCounterSetLegacyAbacRequest = 0; |
| 1118 buildSetLegacyAbacRequest() { | 1118 buildSetLegacyAbacRequest() { |
| 1119 var o = new api.SetLegacyAbacRequest(); | 1119 var o = new api.SetLegacyAbacRequest(); |
| 1120 buildCounterSetLegacyAbacRequest++; | 1120 buildCounterSetLegacyAbacRequest++; |
| 1121 if (buildCounterSetLegacyAbacRequest < 3) { | 1121 if (buildCounterSetLegacyAbacRequest < 3) { |
| 1122 o.enabled = true; | 1122 o.enabled = true; |
| 1123 } | 1123 } |
| 1124 buildCounterSetLegacyAbacRequest--; | 1124 buildCounterSetLegacyAbacRequest--; |
| 1125 return o; | 1125 return o; |
| 1126 } | 1126 } |
| 1127 | 1127 |
| 1128 checkSetLegacyAbacRequest(api.SetLegacyAbacRequest o) { | 1128 checkSetLegacyAbacRequest(api.SetLegacyAbacRequest o) { |
| 1129 buildCounterSetLegacyAbacRequest++; | 1129 buildCounterSetLegacyAbacRequest++; |
| 1130 if (buildCounterSetLegacyAbacRequest < 3) { | 1130 if (buildCounterSetLegacyAbacRequest < 3) { |
| 1131 unittest.expect(o.enabled, unittest.isTrue); | 1131 unittest.expect(o.enabled, unittest.isTrue); |
| 1132 } | 1132 } |
| 1133 buildCounterSetLegacyAbacRequest--; | 1133 buildCounterSetLegacyAbacRequest--; |
| 1134 } | 1134 } |
| 1135 | 1135 |
| 1136 buildUnnamed1867() { | 1136 buildUnnamed1885() { |
| 1137 var o = new core.List<core.String>(); | 1137 var o = new core.List<core.String>(); |
| 1138 o.add("foo"); | 1138 o.add("foo"); |
| 1139 o.add("foo"); | 1139 o.add("foo"); |
| 1140 return o; | 1140 return o; |
| 1141 } | 1141 } |
| 1142 | 1142 |
| 1143 checkUnnamed1867(core.List<core.String> o) { | 1143 checkUnnamed1885(core.List<core.String> o) { |
| 1144 unittest.expect(o, unittest.hasLength(2)); | 1144 unittest.expect(o, unittest.hasLength(2)); |
| 1145 unittest.expect(o[0], unittest.equals('foo')); | 1145 unittest.expect(o[0], unittest.equals('foo')); |
| 1146 unittest.expect(o[1], unittest.equals('foo')); | 1146 unittest.expect(o[1], unittest.equals('foo')); |
| 1147 } | 1147 } |
| 1148 | 1148 |
| 1149 core.int buildCounterSetLocationsRequest = 0; | 1149 core.int buildCounterSetLocationsRequest = 0; |
| 1150 buildSetLocationsRequest() { | 1150 buildSetLocationsRequest() { |
| 1151 var o = new api.SetLocationsRequest(); | 1151 var o = new api.SetLocationsRequest(); |
| 1152 buildCounterSetLocationsRequest++; | 1152 buildCounterSetLocationsRequest++; |
| 1153 if (buildCounterSetLocationsRequest < 3) { | 1153 if (buildCounterSetLocationsRequest < 3) { |
| 1154 o.locations = buildUnnamed1867(); | 1154 o.locations = buildUnnamed1885(); |
| 1155 } | 1155 } |
| 1156 buildCounterSetLocationsRequest--; | 1156 buildCounterSetLocationsRequest--; |
| 1157 return o; | 1157 return o; |
| 1158 } | 1158 } |
| 1159 | 1159 |
| 1160 checkSetLocationsRequest(api.SetLocationsRequest o) { | 1160 checkSetLocationsRequest(api.SetLocationsRequest o) { |
| 1161 buildCounterSetLocationsRequest++; | 1161 buildCounterSetLocationsRequest++; |
| 1162 if (buildCounterSetLocationsRequest < 3) { | 1162 if (buildCounterSetLocationsRequest < 3) { |
| 1163 checkUnnamed1867(o.locations); | 1163 checkUnnamed1885(o.locations); |
| 1164 } | 1164 } |
| 1165 buildCounterSetLocationsRequest--; | 1165 buildCounterSetLocationsRequest--; |
| 1166 } | 1166 } |
| 1167 | 1167 |
| 1168 core.int buildCounterSetLoggingServiceRequest = 0; | 1168 core.int buildCounterSetLoggingServiceRequest = 0; |
| 1169 buildSetLoggingServiceRequest() { | 1169 buildSetLoggingServiceRequest() { |
| 1170 var o = new api.SetLoggingServiceRequest(); | 1170 var o = new api.SetLoggingServiceRequest(); |
| 1171 buildCounterSetLoggingServiceRequest++; | 1171 buildCounterSetLoggingServiceRequest++; |
| 1172 if (buildCounterSetLoggingServiceRequest < 3) { | 1172 if (buildCounterSetLoggingServiceRequest < 3) { |
| 1173 o.loggingService = "foo"; | 1173 o.loggingService = "foo"; |
| (...skipping 2643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3817 res.list(arg_projectId, arg_zone).then(unittest.expectAsync1(((api.ListOpe
rationsResponse response) { | 3817 res.list(arg_projectId, arg_zone).then(unittest.expectAsync1(((api.ListOpe
rationsResponse response) { |
| 3818 checkListOperationsResponse(response); | 3818 checkListOperationsResponse(response); |
| 3819 }))); | 3819 }))); |
| 3820 }); | 3820 }); |
| 3821 | 3821 |
| 3822 }); | 3822 }); |
| 3823 | 3823 |
| 3824 | 3824 |
| 3825 } | 3825 } |
| 3826 | 3826 |
| OLD | NEW |