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 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<core.String, core.String> headers, core.String bod
y) { | 49 core.int status, core.Map<core.String, core.String> headers, core.String bod
y) { |
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 core.int buildCounterAcceleratorConfig = 0; |
| 55 buildAcceleratorConfig() { |
| 56 var o = new api.AcceleratorConfig(); |
| 57 buildCounterAcceleratorConfig++; |
| 58 if (buildCounterAcceleratorConfig < 3) { |
| 59 o.acceleratorCount = "foo"; |
| 60 o.acceleratorType = "foo"; |
| 61 } |
| 62 buildCounterAcceleratorConfig--; |
| 63 return o; |
| 64 } |
| 65 |
| 66 checkAcceleratorConfig(api.AcceleratorConfig o) { |
| 67 buildCounterAcceleratorConfig++; |
| 68 if (buildCounterAcceleratorConfig < 3) { |
| 69 unittest.expect(o.acceleratorCount, unittest.equals('foo')); |
| 70 unittest.expect(o.acceleratorType, unittest.equals('foo')); |
| 71 } |
| 72 buildCounterAcceleratorConfig--; |
| 73 } |
| 74 |
54 core.int buildCounterAddonsConfig = 0; | 75 core.int buildCounterAddonsConfig = 0; |
55 buildAddonsConfig() { | 76 buildAddonsConfig() { |
56 var o = new api.AddonsConfig(); | 77 var o = new api.AddonsConfig(); |
57 buildCounterAddonsConfig++; | 78 buildCounterAddonsConfig++; |
58 if (buildCounterAddonsConfig < 3) { | 79 if (buildCounterAddonsConfig < 3) { |
59 o.horizontalPodAutoscaling = buildHorizontalPodAutoscaling(); | 80 o.horizontalPodAutoscaling = buildHorizontalPodAutoscaling(); |
60 o.httpLoadBalancing = buildHttpLoadBalancing(); | 81 o.httpLoadBalancing = buildHttpLoadBalancing(); |
| 82 o.kubernetesDashboard = buildKubernetesDashboard(); |
61 } | 83 } |
62 buildCounterAddonsConfig--; | 84 buildCounterAddonsConfig--; |
63 return o; | 85 return o; |
64 } | 86 } |
65 | 87 |
66 checkAddonsConfig(api.AddonsConfig o) { | 88 checkAddonsConfig(api.AddonsConfig o) { |
67 buildCounterAddonsConfig++; | 89 buildCounterAddonsConfig++; |
68 if (buildCounterAddonsConfig < 3) { | 90 if (buildCounterAddonsConfig < 3) { |
69 checkHorizontalPodAutoscaling(o.horizontalPodAutoscaling); | 91 checkHorizontalPodAutoscaling(o.horizontalPodAutoscaling); |
70 checkHttpLoadBalancing(o.httpLoadBalancing); | 92 checkHttpLoadBalancing(o.httpLoadBalancing); |
| 93 checkKubernetesDashboard(o.kubernetesDashboard); |
71 } | 94 } |
72 buildCounterAddonsConfig--; | 95 buildCounterAddonsConfig--; |
73 } | 96 } |
74 | 97 |
75 core.int buildCounterAutoUpgradeOptions = 0; | 98 core.int buildCounterAutoUpgradeOptions = 0; |
76 buildAutoUpgradeOptions() { | 99 buildAutoUpgradeOptions() { |
77 var o = new api.AutoUpgradeOptions(); | 100 var o = new api.AutoUpgradeOptions(); |
78 buildCounterAutoUpgradeOptions++; | 101 buildCounterAutoUpgradeOptions++; |
79 if (buildCounterAutoUpgradeOptions < 3) { | 102 if (buildCounterAutoUpgradeOptions < 3) { |
80 o.autoUpgradeStartTime = "foo"; | 103 o.autoUpgradeStartTime = "foo"; |
(...skipping 22 matching lines...) Expand all Loading... |
103 return o; | 126 return o; |
104 } | 127 } |
105 | 128 |
106 checkCancelOperationRequest(api.CancelOperationRequest o) { | 129 checkCancelOperationRequest(api.CancelOperationRequest o) { |
107 buildCounterCancelOperationRequest++; | 130 buildCounterCancelOperationRequest++; |
108 if (buildCounterCancelOperationRequest < 3) { | 131 if (buildCounterCancelOperationRequest < 3) { |
109 } | 132 } |
110 buildCounterCancelOperationRequest--; | 133 buildCounterCancelOperationRequest--; |
111 } | 134 } |
112 | 135 |
| 136 core.int buildCounterCidrBlock = 0; |
| 137 buildCidrBlock() { |
| 138 var o = new api.CidrBlock(); |
| 139 buildCounterCidrBlock++; |
| 140 if (buildCounterCidrBlock < 3) { |
| 141 o.cidrBlock = "foo"; |
| 142 o.displayName = "foo"; |
| 143 } |
| 144 buildCounterCidrBlock--; |
| 145 return o; |
| 146 } |
| 147 |
| 148 checkCidrBlock(api.CidrBlock o) { |
| 149 buildCounterCidrBlock++; |
| 150 if (buildCounterCidrBlock < 3) { |
| 151 unittest.expect(o.cidrBlock, unittest.equals('foo')); |
| 152 unittest.expect(o.displayName, unittest.equals('foo')); |
| 153 } |
| 154 buildCounterCidrBlock--; |
| 155 } |
| 156 |
113 core.int buildCounterClientCertificateConfig = 0; | 157 core.int buildCounterClientCertificateConfig = 0; |
114 buildClientCertificateConfig() { | 158 buildClientCertificateConfig() { |
115 var o = new api.ClientCertificateConfig(); | 159 var o = new api.ClientCertificateConfig(); |
116 buildCounterClientCertificateConfig++; | 160 buildCounterClientCertificateConfig++; |
117 if (buildCounterClientCertificateConfig < 3) { | 161 if (buildCounterClientCertificateConfig < 3) { |
118 o.issueClientCertificate = true; | 162 o.issueClientCertificate = true; |
119 } | 163 } |
120 buildCounterClientCertificateConfig--; | 164 buildCounterClientCertificateConfig--; |
121 return o; | 165 return o; |
122 } | 166 } |
123 | 167 |
124 checkClientCertificateConfig(api.ClientCertificateConfig o) { | 168 checkClientCertificateConfig(api.ClientCertificateConfig o) { |
125 buildCounterClientCertificateConfig++; | 169 buildCounterClientCertificateConfig++; |
126 if (buildCounterClientCertificateConfig < 3) { | 170 if (buildCounterClientCertificateConfig < 3) { |
127 unittest.expect(o.issueClientCertificate, unittest.isTrue); | 171 unittest.expect(o.issueClientCertificate, unittest.isTrue); |
128 } | 172 } |
129 buildCounterClientCertificateConfig--; | 173 buildCounterClientCertificateConfig--; |
130 } | 174 } |
131 | 175 |
132 buildUnnamed1814() { | 176 buildUnnamed1846() { |
133 var o = new core.List<core.String>(); | 177 var o = new core.List<core.String>(); |
134 o.add("foo"); | 178 o.add("foo"); |
135 o.add("foo"); | 179 o.add("foo"); |
136 return o; | 180 return o; |
137 } | 181 } |
138 | 182 |
139 checkUnnamed1814(core.List<core.String> o) { | 183 checkUnnamed1846(core.List<core.String> o) { |
140 unittest.expect(o, unittest.hasLength(2)); | 184 unittest.expect(o, unittest.hasLength(2)); |
141 unittest.expect(o[0], unittest.equals('foo')); | 185 unittest.expect(o[0], unittest.equals('foo')); |
142 unittest.expect(o[1], unittest.equals('foo')); | 186 unittest.expect(o[1], unittest.equals('foo')); |
143 } | 187 } |
144 | 188 |
145 buildUnnamed1815() { | 189 buildUnnamed1847() { |
146 var o = new core.List<core.String>(); | 190 var o = new core.List<core.String>(); |
147 o.add("foo"); | 191 o.add("foo"); |
148 o.add("foo"); | 192 o.add("foo"); |
149 return o; | 193 return o; |
150 } | 194 } |
151 | 195 |
152 checkUnnamed1815(core.List<core.String> o) { | 196 checkUnnamed1847(core.List<core.String> o) { |
153 unittest.expect(o, unittest.hasLength(2)); | 197 unittest.expect(o, unittest.hasLength(2)); |
154 unittest.expect(o[0], unittest.equals('foo')); | 198 unittest.expect(o[0], unittest.equals('foo')); |
155 unittest.expect(o[1], unittest.equals('foo')); | 199 unittest.expect(o[1], unittest.equals('foo')); |
156 } | 200 } |
157 | 201 |
158 buildUnnamed1816() { | 202 buildUnnamed1848() { |
159 var o = new core.List<api.NodePool>(); | 203 var o = new core.List<api.NodePool>(); |
160 o.add(buildNodePool()); | 204 o.add(buildNodePool()); |
161 o.add(buildNodePool()); | 205 o.add(buildNodePool()); |
162 return o; | 206 return o; |
163 } | 207 } |
164 | 208 |
165 checkUnnamed1816(core.List<api.NodePool> o) { | 209 checkUnnamed1848(core.List<api.NodePool> o) { |
166 unittest.expect(o, unittest.hasLength(2)); | 210 unittest.expect(o, unittest.hasLength(2)); |
167 checkNodePool(o[0]); | 211 checkNodePool(o[0]); |
168 checkNodePool(o[1]); | 212 checkNodePool(o[1]); |
169 } | 213 } |
170 | 214 |
171 buildUnnamed1817() { | 215 buildUnnamed1849() { |
172 var o = new core.Map<core.String, core.String>(); | 216 var o = new core.Map<core.String, core.String>(); |
173 o["x"] = "foo"; | 217 o["x"] = "foo"; |
174 o["y"] = "foo"; | 218 o["y"] = "foo"; |
175 return o; | 219 return o; |
176 } | 220 } |
177 | 221 |
178 checkUnnamed1817(core.Map<core.String, core.String> o) { | 222 checkUnnamed1849(core.Map<core.String, core.String> o) { |
179 unittest.expect(o, unittest.hasLength(2)); | 223 unittest.expect(o, unittest.hasLength(2)); |
180 unittest.expect(o["x"], unittest.equals('foo')); | 224 unittest.expect(o["x"], unittest.equals('foo')); |
181 unittest.expect(o["y"], unittest.equals('foo')); | 225 unittest.expect(o["y"], unittest.equals('foo')); |
182 } | 226 } |
183 | 227 |
184 core.int buildCounterCluster = 0; | 228 core.int buildCounterCluster = 0; |
185 buildCluster() { | 229 buildCluster() { |
186 var o = new api.Cluster(); | 230 var o = new api.Cluster(); |
187 buildCounterCluster++; | 231 buildCounterCluster++; |
188 if (buildCounterCluster < 3) { | 232 if (buildCounterCluster < 3) { |
189 o.addonsConfig = buildAddonsConfig(); | 233 o.addonsConfig = buildAddonsConfig(); |
190 o.clusterIpv4Cidr = "foo"; | 234 o.clusterIpv4Cidr = "foo"; |
191 o.createTime = "foo"; | 235 o.createTime = "foo"; |
192 o.currentMasterVersion = "foo"; | 236 o.currentMasterVersion = "foo"; |
193 o.currentNodeCount = 42; | 237 o.currentNodeCount = 42; |
194 o.currentNodeVersion = "foo"; | 238 o.currentNodeVersion = "foo"; |
195 o.description = "foo"; | 239 o.description = "foo"; |
196 o.enableKubernetesAlpha = true; | 240 o.enableKubernetesAlpha = true; |
197 o.endpoint = "foo"; | 241 o.endpoint = "foo"; |
198 o.expireTime = "foo"; | 242 o.expireTime = "foo"; |
199 o.initialClusterVersion = "foo"; | 243 o.initialClusterVersion = "foo"; |
200 o.initialNodeCount = 42; | 244 o.initialNodeCount = 42; |
201 o.instanceGroupUrls = buildUnnamed1814(); | 245 o.instanceGroupUrls = buildUnnamed1846(); |
202 o.ipAllocationPolicy = buildIPAllocationPolicy(); | 246 o.ipAllocationPolicy = buildIPAllocationPolicy(); |
203 o.labelFingerprint = "foo"; | 247 o.labelFingerprint = "foo"; |
204 o.legacyAbac = buildLegacyAbac(); | 248 o.legacyAbac = buildLegacyAbac(); |
205 o.locations = buildUnnamed1815(); | 249 o.locations = buildUnnamed1847(); |
206 o.loggingService = "foo"; | 250 o.loggingService = "foo"; |
207 o.masterAuth = buildMasterAuth(); | 251 o.masterAuth = buildMasterAuth(); |
| 252 o.masterAuthorizedNetworksConfig = buildMasterAuthorizedNetworksConfig(); |
208 o.monitoringService = "foo"; | 253 o.monitoringService = "foo"; |
209 o.name = "foo"; | 254 o.name = "foo"; |
210 o.network = "foo"; | 255 o.network = "foo"; |
211 o.networkPolicy = buildNetworkPolicy(); | 256 o.networkPolicy = buildNetworkPolicy(); |
212 o.nodeConfig = buildNodeConfig(); | 257 o.nodeConfig = buildNodeConfig(); |
213 o.nodeIpv4CidrSize = 42; | 258 o.nodeIpv4CidrSize = 42; |
214 o.nodePools = buildUnnamed1816(); | 259 o.nodePools = buildUnnamed1848(); |
215 o.resourceLabels = buildUnnamed1817(); | 260 o.resourceLabels = buildUnnamed1849(); |
216 o.selfLink = "foo"; | 261 o.selfLink = "foo"; |
217 o.servicesIpv4Cidr = "foo"; | 262 o.servicesIpv4Cidr = "foo"; |
218 o.status = "foo"; | 263 o.status = "foo"; |
219 o.statusMessage = "foo"; | 264 o.statusMessage = "foo"; |
220 o.subnetwork = "foo"; | 265 o.subnetwork = "foo"; |
221 o.zone = "foo"; | 266 o.zone = "foo"; |
222 } | 267 } |
223 buildCounterCluster--; | 268 buildCounterCluster--; |
224 return o; | 269 return o; |
225 } | 270 } |
226 | 271 |
227 checkCluster(api.Cluster o) { | 272 checkCluster(api.Cluster o) { |
228 buildCounterCluster++; | 273 buildCounterCluster++; |
229 if (buildCounterCluster < 3) { | 274 if (buildCounterCluster < 3) { |
230 checkAddonsConfig(o.addonsConfig); | 275 checkAddonsConfig(o.addonsConfig); |
231 unittest.expect(o.clusterIpv4Cidr, unittest.equals('foo')); | 276 unittest.expect(o.clusterIpv4Cidr, unittest.equals('foo')); |
232 unittest.expect(o.createTime, unittest.equals('foo')); | 277 unittest.expect(o.createTime, unittest.equals('foo')); |
233 unittest.expect(o.currentMasterVersion, unittest.equals('foo')); | 278 unittest.expect(o.currentMasterVersion, unittest.equals('foo')); |
234 unittest.expect(o.currentNodeCount, unittest.equals(42)); | 279 unittest.expect(o.currentNodeCount, unittest.equals(42)); |
235 unittest.expect(o.currentNodeVersion, unittest.equals('foo')); | 280 unittest.expect(o.currentNodeVersion, unittest.equals('foo')); |
236 unittest.expect(o.description, unittest.equals('foo')); | 281 unittest.expect(o.description, unittest.equals('foo')); |
237 unittest.expect(o.enableKubernetesAlpha, unittest.isTrue); | 282 unittest.expect(o.enableKubernetesAlpha, unittest.isTrue); |
238 unittest.expect(o.endpoint, unittest.equals('foo')); | 283 unittest.expect(o.endpoint, unittest.equals('foo')); |
239 unittest.expect(o.expireTime, unittest.equals('foo')); | 284 unittest.expect(o.expireTime, unittest.equals('foo')); |
240 unittest.expect(o.initialClusterVersion, unittest.equals('foo')); | 285 unittest.expect(o.initialClusterVersion, unittest.equals('foo')); |
241 unittest.expect(o.initialNodeCount, unittest.equals(42)); | 286 unittest.expect(o.initialNodeCount, unittest.equals(42)); |
242 checkUnnamed1814(o.instanceGroupUrls); | 287 checkUnnamed1846(o.instanceGroupUrls); |
243 checkIPAllocationPolicy(o.ipAllocationPolicy); | 288 checkIPAllocationPolicy(o.ipAllocationPolicy); |
244 unittest.expect(o.labelFingerprint, unittest.equals('foo')); | 289 unittest.expect(o.labelFingerprint, unittest.equals('foo')); |
245 checkLegacyAbac(o.legacyAbac); | 290 checkLegacyAbac(o.legacyAbac); |
246 checkUnnamed1815(o.locations); | 291 checkUnnamed1847(o.locations); |
247 unittest.expect(o.loggingService, unittest.equals('foo')); | 292 unittest.expect(o.loggingService, unittest.equals('foo')); |
248 checkMasterAuth(o.masterAuth); | 293 checkMasterAuth(o.masterAuth); |
| 294 checkMasterAuthorizedNetworksConfig(o.masterAuthorizedNetworksConfig); |
249 unittest.expect(o.monitoringService, unittest.equals('foo')); | 295 unittest.expect(o.monitoringService, unittest.equals('foo')); |
250 unittest.expect(o.name, unittest.equals('foo')); | 296 unittest.expect(o.name, unittest.equals('foo')); |
251 unittest.expect(o.network, unittest.equals('foo')); | 297 unittest.expect(o.network, unittest.equals('foo')); |
252 checkNetworkPolicy(o.networkPolicy); | 298 checkNetworkPolicy(o.networkPolicy); |
253 checkNodeConfig(o.nodeConfig); | 299 checkNodeConfig(o.nodeConfig); |
254 unittest.expect(o.nodeIpv4CidrSize, unittest.equals(42)); | 300 unittest.expect(o.nodeIpv4CidrSize, unittest.equals(42)); |
255 checkUnnamed1816(o.nodePools); | 301 checkUnnamed1848(o.nodePools); |
256 checkUnnamed1817(o.resourceLabels); | 302 checkUnnamed1849(o.resourceLabels); |
257 unittest.expect(o.selfLink, unittest.equals('foo')); | 303 unittest.expect(o.selfLink, unittest.equals('foo')); |
258 unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo')); | 304 unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo')); |
259 unittest.expect(o.status, unittest.equals('foo')); | 305 unittest.expect(o.status, unittest.equals('foo')); |
260 unittest.expect(o.statusMessage, unittest.equals('foo')); | 306 unittest.expect(o.statusMessage, unittest.equals('foo')); |
261 unittest.expect(o.subnetwork, unittest.equals('foo')); | 307 unittest.expect(o.subnetwork, unittest.equals('foo')); |
262 unittest.expect(o.zone, unittest.equals('foo')); | 308 unittest.expect(o.zone, unittest.equals('foo')); |
263 } | 309 } |
264 buildCounterCluster--; | 310 buildCounterCluster--; |
265 } | 311 } |
266 | 312 |
267 buildUnnamed1818() { | 313 buildUnnamed1850() { |
268 var o = new core.List<core.String>(); | 314 var o = new core.List<core.String>(); |
269 o.add("foo"); | 315 o.add("foo"); |
270 o.add("foo"); | 316 o.add("foo"); |
271 return o; | 317 return o; |
272 } | 318 } |
273 | 319 |
274 checkUnnamed1818(core.List<core.String> o) { | 320 checkUnnamed1850(core.List<core.String> o) { |
275 unittest.expect(o, unittest.hasLength(2)); | 321 unittest.expect(o, unittest.hasLength(2)); |
276 unittest.expect(o[0], unittest.equals('foo')); | 322 unittest.expect(o[0], unittest.equals('foo')); |
277 unittest.expect(o[1], unittest.equals('foo')); | 323 unittest.expect(o[1], unittest.equals('foo')); |
278 } | 324 } |
279 | 325 |
280 core.int buildCounterClusterUpdate = 0; | 326 core.int buildCounterClusterUpdate = 0; |
281 buildClusterUpdate() { | 327 buildClusterUpdate() { |
282 var o = new api.ClusterUpdate(); | 328 var o = new api.ClusterUpdate(); |
283 buildCounterClusterUpdate++; | 329 buildCounterClusterUpdate++; |
284 if (buildCounterClusterUpdate < 3) { | 330 if (buildCounterClusterUpdate < 3) { |
285 o.desiredAddonsConfig = buildAddonsConfig(); | 331 o.desiredAddonsConfig = buildAddonsConfig(); |
286 o.desiredImageType = "foo"; | 332 o.desiredImageType = "foo"; |
287 o.desiredLocations = buildUnnamed1818(); | 333 o.desiredLocations = buildUnnamed1850(); |
| 334 o.desiredMasterAuthorizedNetworksConfig = buildMasterAuthorizedNetworksConfi
g(); |
288 o.desiredMasterVersion = "foo"; | 335 o.desiredMasterVersion = "foo"; |
289 o.desiredMonitoringService = "foo"; | 336 o.desiredMonitoringService = "foo"; |
290 o.desiredNodePoolAutoscaling = buildNodePoolAutoscaling(); | 337 o.desiredNodePoolAutoscaling = buildNodePoolAutoscaling(); |
291 o.desiredNodePoolId = "foo"; | 338 o.desiredNodePoolId = "foo"; |
292 o.desiredNodeVersion = "foo"; | 339 o.desiredNodeVersion = "foo"; |
293 } | 340 } |
294 buildCounterClusterUpdate--; | 341 buildCounterClusterUpdate--; |
295 return o; | 342 return o; |
296 } | 343 } |
297 | 344 |
298 checkClusterUpdate(api.ClusterUpdate o) { | 345 checkClusterUpdate(api.ClusterUpdate o) { |
299 buildCounterClusterUpdate++; | 346 buildCounterClusterUpdate++; |
300 if (buildCounterClusterUpdate < 3) { | 347 if (buildCounterClusterUpdate < 3) { |
301 checkAddonsConfig(o.desiredAddonsConfig); | 348 checkAddonsConfig(o.desiredAddonsConfig); |
302 unittest.expect(o.desiredImageType, unittest.equals('foo')); | 349 unittest.expect(o.desiredImageType, unittest.equals('foo')); |
303 checkUnnamed1818(o.desiredLocations); | 350 checkUnnamed1850(o.desiredLocations); |
| 351 checkMasterAuthorizedNetworksConfig(o.desiredMasterAuthorizedNetworksConfig)
; |
304 unittest.expect(o.desiredMasterVersion, unittest.equals('foo')); | 352 unittest.expect(o.desiredMasterVersion, unittest.equals('foo')); |
305 unittest.expect(o.desiredMonitoringService, unittest.equals('foo')); | 353 unittest.expect(o.desiredMonitoringService, unittest.equals('foo')); |
306 checkNodePoolAutoscaling(o.desiredNodePoolAutoscaling); | 354 checkNodePoolAutoscaling(o.desiredNodePoolAutoscaling); |
307 unittest.expect(o.desiredNodePoolId, unittest.equals('foo')); | 355 unittest.expect(o.desiredNodePoolId, unittest.equals('foo')); |
308 unittest.expect(o.desiredNodeVersion, unittest.equals('foo')); | 356 unittest.expect(o.desiredNodeVersion, unittest.equals('foo')); |
309 } | 357 } |
310 buildCounterClusterUpdate--; | 358 buildCounterClusterUpdate--; |
311 } | 359 } |
312 | 360 |
313 core.int buildCounterCompleteIPRotationRequest = 0; | 361 core.int buildCounterCompleteIPRotationRequest = 0; |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 unittest.expect(o.clusterIpv4Cidr, unittest.equals('foo')); | 490 unittest.expect(o.clusterIpv4Cidr, unittest.equals('foo')); |
443 unittest.expect(o.createSubnetwork, unittest.isTrue); | 491 unittest.expect(o.createSubnetwork, unittest.isTrue); |
444 unittest.expect(o.nodeIpv4Cidr, unittest.equals('foo')); | 492 unittest.expect(o.nodeIpv4Cidr, unittest.equals('foo')); |
445 unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo')); | 493 unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo')); |
446 unittest.expect(o.subnetworkName, unittest.equals('foo')); | 494 unittest.expect(o.subnetworkName, unittest.equals('foo')); |
447 unittest.expect(o.useIpAliases, unittest.isTrue); | 495 unittest.expect(o.useIpAliases, unittest.isTrue); |
448 } | 496 } |
449 buildCounterIPAllocationPolicy--; | 497 buildCounterIPAllocationPolicy--; |
450 } | 498 } |
451 | 499 |
| 500 core.int buildCounterKubernetesDashboard = 0; |
| 501 buildKubernetesDashboard() { |
| 502 var o = new api.KubernetesDashboard(); |
| 503 buildCounterKubernetesDashboard++; |
| 504 if (buildCounterKubernetesDashboard < 3) { |
| 505 o.disabled = true; |
| 506 } |
| 507 buildCounterKubernetesDashboard--; |
| 508 return o; |
| 509 } |
| 510 |
| 511 checkKubernetesDashboard(api.KubernetesDashboard o) { |
| 512 buildCounterKubernetesDashboard++; |
| 513 if (buildCounterKubernetesDashboard < 3) { |
| 514 unittest.expect(o.disabled, unittest.isTrue); |
| 515 } |
| 516 buildCounterKubernetesDashboard--; |
| 517 } |
| 518 |
452 core.int buildCounterLegacyAbac = 0; | 519 core.int buildCounterLegacyAbac = 0; |
453 buildLegacyAbac() { | 520 buildLegacyAbac() { |
454 var o = new api.LegacyAbac(); | 521 var o = new api.LegacyAbac(); |
455 buildCounterLegacyAbac++; | 522 buildCounterLegacyAbac++; |
456 if (buildCounterLegacyAbac < 3) { | 523 if (buildCounterLegacyAbac < 3) { |
457 o.enabled = true; | 524 o.enabled = true; |
458 } | 525 } |
459 buildCounterLegacyAbac--; | 526 buildCounterLegacyAbac--; |
460 return o; | 527 return o; |
461 } | 528 } |
462 | 529 |
463 checkLegacyAbac(api.LegacyAbac o) { | 530 checkLegacyAbac(api.LegacyAbac o) { |
464 buildCounterLegacyAbac++; | 531 buildCounterLegacyAbac++; |
465 if (buildCounterLegacyAbac < 3) { | 532 if (buildCounterLegacyAbac < 3) { |
466 unittest.expect(o.enabled, unittest.isTrue); | 533 unittest.expect(o.enabled, unittest.isTrue); |
467 } | 534 } |
468 buildCounterLegacyAbac--; | 535 buildCounterLegacyAbac--; |
469 } | 536 } |
470 | 537 |
471 buildUnnamed1819() { | 538 buildUnnamed1851() { |
472 var o = new core.List<api.Cluster>(); | 539 var o = new core.List<api.Cluster>(); |
473 o.add(buildCluster()); | 540 o.add(buildCluster()); |
474 o.add(buildCluster()); | 541 o.add(buildCluster()); |
475 return o; | 542 return o; |
476 } | 543 } |
477 | 544 |
478 checkUnnamed1819(core.List<api.Cluster> o) { | 545 checkUnnamed1851(core.List<api.Cluster> o) { |
479 unittest.expect(o, unittest.hasLength(2)); | 546 unittest.expect(o, unittest.hasLength(2)); |
480 checkCluster(o[0]); | 547 checkCluster(o[0]); |
481 checkCluster(o[1]); | 548 checkCluster(o[1]); |
482 } | 549 } |
483 | 550 |
484 buildUnnamed1820() { | 551 buildUnnamed1852() { |
485 var o = new core.List<core.String>(); | 552 var o = new core.List<core.String>(); |
486 o.add("foo"); | 553 o.add("foo"); |
487 o.add("foo"); | 554 o.add("foo"); |
488 return o; | 555 return o; |
489 } | 556 } |
490 | 557 |
491 checkUnnamed1820(core.List<core.String> o) { | 558 checkUnnamed1852(core.List<core.String> o) { |
492 unittest.expect(o, unittest.hasLength(2)); | 559 unittest.expect(o, unittest.hasLength(2)); |
493 unittest.expect(o[0], unittest.equals('foo')); | 560 unittest.expect(o[0], unittest.equals('foo')); |
494 unittest.expect(o[1], unittest.equals('foo')); | 561 unittest.expect(o[1], unittest.equals('foo')); |
495 } | 562 } |
496 | 563 |
497 core.int buildCounterListClustersResponse = 0; | 564 core.int buildCounterListClustersResponse = 0; |
498 buildListClustersResponse() { | 565 buildListClustersResponse() { |
499 var o = new api.ListClustersResponse(); | 566 var o = new api.ListClustersResponse(); |
500 buildCounterListClustersResponse++; | 567 buildCounterListClustersResponse++; |
501 if (buildCounterListClustersResponse < 3) { | 568 if (buildCounterListClustersResponse < 3) { |
502 o.clusters = buildUnnamed1819(); | 569 o.clusters = buildUnnamed1851(); |
503 o.missingZones = buildUnnamed1820(); | 570 o.missingZones = buildUnnamed1852(); |
504 } | 571 } |
505 buildCounterListClustersResponse--; | 572 buildCounterListClustersResponse--; |
506 return o; | 573 return o; |
507 } | 574 } |
508 | 575 |
509 checkListClustersResponse(api.ListClustersResponse o) { | 576 checkListClustersResponse(api.ListClustersResponse o) { |
510 buildCounterListClustersResponse++; | 577 buildCounterListClustersResponse++; |
511 if (buildCounterListClustersResponse < 3) { | 578 if (buildCounterListClustersResponse < 3) { |
512 checkUnnamed1819(o.clusters); | 579 checkUnnamed1851(o.clusters); |
513 checkUnnamed1820(o.missingZones); | 580 checkUnnamed1852(o.missingZones); |
514 } | 581 } |
515 buildCounterListClustersResponse--; | 582 buildCounterListClustersResponse--; |
516 } | 583 } |
517 | 584 |
518 buildUnnamed1821() { | 585 buildUnnamed1853() { |
519 var o = new core.List<api.NodePool>(); | 586 var o = new core.List<api.NodePool>(); |
520 o.add(buildNodePool()); | 587 o.add(buildNodePool()); |
521 o.add(buildNodePool()); | 588 o.add(buildNodePool()); |
522 return o; | 589 return o; |
523 } | 590 } |
524 | 591 |
525 checkUnnamed1821(core.List<api.NodePool> o) { | 592 checkUnnamed1853(core.List<api.NodePool> o) { |
526 unittest.expect(o, unittest.hasLength(2)); | 593 unittest.expect(o, unittest.hasLength(2)); |
527 checkNodePool(o[0]); | 594 checkNodePool(o[0]); |
528 checkNodePool(o[1]); | 595 checkNodePool(o[1]); |
529 } | 596 } |
530 | 597 |
531 core.int buildCounterListNodePoolsResponse = 0; | 598 core.int buildCounterListNodePoolsResponse = 0; |
532 buildListNodePoolsResponse() { | 599 buildListNodePoolsResponse() { |
533 var o = new api.ListNodePoolsResponse(); | 600 var o = new api.ListNodePoolsResponse(); |
534 buildCounterListNodePoolsResponse++; | 601 buildCounterListNodePoolsResponse++; |
535 if (buildCounterListNodePoolsResponse < 3) { | 602 if (buildCounterListNodePoolsResponse < 3) { |
536 o.nodePools = buildUnnamed1821(); | 603 o.nodePools = buildUnnamed1853(); |
537 } | 604 } |
538 buildCounterListNodePoolsResponse--; | 605 buildCounterListNodePoolsResponse--; |
539 return o; | 606 return o; |
540 } | 607 } |
541 | 608 |
542 checkListNodePoolsResponse(api.ListNodePoolsResponse o) { | 609 checkListNodePoolsResponse(api.ListNodePoolsResponse o) { |
543 buildCounterListNodePoolsResponse++; | 610 buildCounterListNodePoolsResponse++; |
544 if (buildCounterListNodePoolsResponse < 3) { | 611 if (buildCounterListNodePoolsResponse < 3) { |
545 checkUnnamed1821(o.nodePools); | 612 checkUnnamed1853(o.nodePools); |
546 } | 613 } |
547 buildCounterListNodePoolsResponse--; | 614 buildCounterListNodePoolsResponse--; |
548 } | 615 } |
549 | 616 |
550 buildUnnamed1822() { | 617 buildUnnamed1854() { |
551 var o = new core.List<core.String>(); | 618 var o = new core.List<core.String>(); |
552 o.add("foo"); | 619 o.add("foo"); |
553 o.add("foo"); | 620 o.add("foo"); |
554 return o; | 621 return o; |
555 } | 622 } |
556 | 623 |
557 checkUnnamed1822(core.List<core.String> o) { | 624 checkUnnamed1854(core.List<core.String> o) { |
558 unittest.expect(o, unittest.hasLength(2)); | 625 unittest.expect(o, unittest.hasLength(2)); |
559 unittest.expect(o[0], unittest.equals('foo')); | 626 unittest.expect(o[0], unittest.equals('foo')); |
560 unittest.expect(o[1], unittest.equals('foo')); | 627 unittest.expect(o[1], unittest.equals('foo')); |
561 } | 628 } |
562 | 629 |
563 buildUnnamed1823() { | 630 buildUnnamed1855() { |
564 var o = new core.List<api.Operation>(); | 631 var o = new core.List<api.Operation>(); |
565 o.add(buildOperation()); | 632 o.add(buildOperation()); |
566 o.add(buildOperation()); | 633 o.add(buildOperation()); |
567 return o; | 634 return o; |
568 } | 635 } |
569 | 636 |
570 checkUnnamed1823(core.List<api.Operation> o) { | 637 checkUnnamed1855(core.List<api.Operation> o) { |
571 unittest.expect(o, unittest.hasLength(2)); | 638 unittest.expect(o, unittest.hasLength(2)); |
572 checkOperation(o[0]); | 639 checkOperation(o[0]); |
573 checkOperation(o[1]); | 640 checkOperation(o[1]); |
574 } | 641 } |
575 | 642 |
576 core.int buildCounterListOperationsResponse = 0; | 643 core.int buildCounterListOperationsResponse = 0; |
577 buildListOperationsResponse() { | 644 buildListOperationsResponse() { |
578 var o = new api.ListOperationsResponse(); | 645 var o = new api.ListOperationsResponse(); |
579 buildCounterListOperationsResponse++; | 646 buildCounterListOperationsResponse++; |
580 if (buildCounterListOperationsResponse < 3) { | 647 if (buildCounterListOperationsResponse < 3) { |
581 o.missingZones = buildUnnamed1822(); | 648 o.missingZones = buildUnnamed1854(); |
582 o.operations = buildUnnamed1823(); | 649 o.operations = buildUnnamed1855(); |
583 } | 650 } |
584 buildCounterListOperationsResponse--; | 651 buildCounterListOperationsResponse--; |
585 return o; | 652 return o; |
586 } | 653 } |
587 | 654 |
588 checkListOperationsResponse(api.ListOperationsResponse o) { | 655 checkListOperationsResponse(api.ListOperationsResponse o) { |
589 buildCounterListOperationsResponse++; | 656 buildCounterListOperationsResponse++; |
590 if (buildCounterListOperationsResponse < 3) { | 657 if (buildCounterListOperationsResponse < 3) { |
591 checkUnnamed1822(o.missingZones); | 658 checkUnnamed1854(o.missingZones); |
592 checkUnnamed1823(o.operations); | 659 checkUnnamed1855(o.operations); |
593 } | 660 } |
594 buildCounterListOperationsResponse--; | 661 buildCounterListOperationsResponse--; |
595 } | 662 } |
596 | 663 |
597 core.int buildCounterMasterAuth = 0; | 664 core.int buildCounterMasterAuth = 0; |
598 buildMasterAuth() { | 665 buildMasterAuth() { |
599 var o = new api.MasterAuth(); | 666 var o = new api.MasterAuth(); |
600 buildCounterMasterAuth++; | 667 buildCounterMasterAuth++; |
601 if (buildCounterMasterAuth < 3) { | 668 if (buildCounterMasterAuth < 3) { |
602 o.clientCertificate = "foo"; | 669 o.clientCertificate = "foo"; |
(...skipping 13 matching lines...) Expand all Loading... |
616 unittest.expect(o.clientCertificate, unittest.equals('foo')); | 683 unittest.expect(o.clientCertificate, unittest.equals('foo')); |
617 checkClientCertificateConfig(o.clientCertificateConfig); | 684 checkClientCertificateConfig(o.clientCertificateConfig); |
618 unittest.expect(o.clientKey, unittest.equals('foo')); | 685 unittest.expect(o.clientKey, unittest.equals('foo')); |
619 unittest.expect(o.clusterCaCertificate, unittest.equals('foo')); | 686 unittest.expect(o.clusterCaCertificate, unittest.equals('foo')); |
620 unittest.expect(o.password, unittest.equals('foo')); | 687 unittest.expect(o.password, unittest.equals('foo')); |
621 unittest.expect(o.username, unittest.equals('foo')); | 688 unittest.expect(o.username, unittest.equals('foo')); |
622 } | 689 } |
623 buildCounterMasterAuth--; | 690 buildCounterMasterAuth--; |
624 } | 691 } |
625 | 692 |
| 693 buildUnnamed1856() { |
| 694 var o = new core.List<api.CidrBlock>(); |
| 695 o.add(buildCidrBlock()); |
| 696 o.add(buildCidrBlock()); |
| 697 return o; |
| 698 } |
| 699 |
| 700 checkUnnamed1856(core.List<api.CidrBlock> o) { |
| 701 unittest.expect(o, unittest.hasLength(2)); |
| 702 checkCidrBlock(o[0]); |
| 703 checkCidrBlock(o[1]); |
| 704 } |
| 705 |
| 706 core.int buildCounterMasterAuthorizedNetworksConfig = 0; |
| 707 buildMasterAuthorizedNetworksConfig() { |
| 708 var o = new api.MasterAuthorizedNetworksConfig(); |
| 709 buildCounterMasterAuthorizedNetworksConfig++; |
| 710 if (buildCounterMasterAuthorizedNetworksConfig < 3) { |
| 711 o.cidrBlocks = buildUnnamed1856(); |
| 712 o.enabled = true; |
| 713 } |
| 714 buildCounterMasterAuthorizedNetworksConfig--; |
| 715 return o; |
| 716 } |
| 717 |
| 718 checkMasterAuthorizedNetworksConfig(api.MasterAuthorizedNetworksConfig o) { |
| 719 buildCounterMasterAuthorizedNetworksConfig++; |
| 720 if (buildCounterMasterAuthorizedNetworksConfig < 3) { |
| 721 checkUnnamed1856(o.cidrBlocks); |
| 722 unittest.expect(o.enabled, unittest.isTrue); |
| 723 } |
| 724 buildCounterMasterAuthorizedNetworksConfig--; |
| 725 } |
| 726 |
626 core.int buildCounterNetworkPolicy = 0; | 727 core.int buildCounterNetworkPolicy = 0; |
627 buildNetworkPolicy() { | 728 buildNetworkPolicy() { |
628 var o = new api.NetworkPolicy(); | 729 var o = new api.NetworkPolicy(); |
629 buildCounterNetworkPolicy++; | 730 buildCounterNetworkPolicy++; |
630 if (buildCounterNetworkPolicy < 3) { | 731 if (buildCounterNetworkPolicy < 3) { |
631 o.enabled = true; | 732 o.enabled = true; |
632 o.provider = "foo"; | 733 o.provider = "foo"; |
633 } | 734 } |
634 buildCounterNetworkPolicy--; | 735 buildCounterNetworkPolicy--; |
635 return o; | 736 return o; |
636 } | 737 } |
637 | 738 |
638 checkNetworkPolicy(api.NetworkPolicy o) { | 739 checkNetworkPolicy(api.NetworkPolicy o) { |
639 buildCounterNetworkPolicy++; | 740 buildCounterNetworkPolicy++; |
640 if (buildCounterNetworkPolicy < 3) { | 741 if (buildCounterNetworkPolicy < 3) { |
641 unittest.expect(o.enabled, unittest.isTrue); | 742 unittest.expect(o.enabled, unittest.isTrue); |
642 unittest.expect(o.provider, unittest.equals('foo')); | 743 unittest.expect(o.provider, unittest.equals('foo')); |
643 } | 744 } |
644 buildCounterNetworkPolicy--; | 745 buildCounterNetworkPolicy--; |
645 } | 746 } |
646 | 747 |
647 buildUnnamed1824() { | 748 buildUnnamed1857() { |
| 749 var o = new core.List<api.AcceleratorConfig>(); |
| 750 o.add(buildAcceleratorConfig()); |
| 751 o.add(buildAcceleratorConfig()); |
| 752 return o; |
| 753 } |
| 754 |
| 755 checkUnnamed1857(core.List<api.AcceleratorConfig> o) { |
| 756 unittest.expect(o, unittest.hasLength(2)); |
| 757 checkAcceleratorConfig(o[0]); |
| 758 checkAcceleratorConfig(o[1]); |
| 759 } |
| 760 |
| 761 buildUnnamed1858() { |
648 var o = new core.Map<core.String, core.String>(); | 762 var o = new core.Map<core.String, core.String>(); |
649 o["x"] = "foo"; | 763 o["x"] = "foo"; |
650 o["y"] = "foo"; | 764 o["y"] = "foo"; |
651 return o; | 765 return o; |
652 } | 766 } |
653 | 767 |
654 checkUnnamed1824(core.Map<core.String, core.String> o) { | 768 checkUnnamed1858(core.Map<core.String, core.String> o) { |
655 unittest.expect(o, unittest.hasLength(2)); | 769 unittest.expect(o, unittest.hasLength(2)); |
656 unittest.expect(o["x"], unittest.equals('foo')); | 770 unittest.expect(o["x"], unittest.equals('foo')); |
657 unittest.expect(o["y"], unittest.equals('foo')); | 771 unittest.expect(o["y"], unittest.equals('foo')); |
658 } | 772 } |
659 | 773 |
660 buildUnnamed1825() { | 774 buildUnnamed1859() { |
661 var o = new core.Map<core.String, core.String>(); | 775 var o = new core.Map<core.String, core.String>(); |
662 o["x"] = "foo"; | 776 o["x"] = "foo"; |
663 o["y"] = "foo"; | 777 o["y"] = "foo"; |
664 return o; | 778 return o; |
665 } | 779 } |
666 | 780 |
667 checkUnnamed1825(core.Map<core.String, core.String> o) { | 781 checkUnnamed1859(core.Map<core.String, core.String> o) { |
668 unittest.expect(o, unittest.hasLength(2)); | 782 unittest.expect(o, unittest.hasLength(2)); |
669 unittest.expect(o["x"], unittest.equals('foo')); | 783 unittest.expect(o["x"], unittest.equals('foo')); |
670 unittest.expect(o["y"], unittest.equals('foo')); | 784 unittest.expect(o["y"], unittest.equals('foo')); |
671 } | 785 } |
672 | 786 |
673 buildUnnamed1826() { | 787 buildUnnamed1860() { |
674 var o = new core.List<core.String>(); | 788 var o = new core.List<core.String>(); |
675 o.add("foo"); | 789 o.add("foo"); |
676 o.add("foo"); | 790 o.add("foo"); |
677 return o; | 791 return o; |
678 } | 792 } |
679 | 793 |
680 checkUnnamed1826(core.List<core.String> o) { | 794 checkUnnamed1860(core.List<core.String> o) { |
681 unittest.expect(o, unittest.hasLength(2)); | 795 unittest.expect(o, unittest.hasLength(2)); |
682 unittest.expect(o[0], unittest.equals('foo')); | 796 unittest.expect(o[0], unittest.equals('foo')); |
683 unittest.expect(o[1], unittest.equals('foo')); | 797 unittest.expect(o[1], unittest.equals('foo')); |
684 } | 798 } |
685 | 799 |
686 buildUnnamed1827() { | 800 buildUnnamed1861() { |
687 var o = new core.List<core.String>(); | 801 var o = new core.List<core.String>(); |
688 o.add("foo"); | 802 o.add("foo"); |
689 o.add("foo"); | 803 o.add("foo"); |
690 return o; | 804 return o; |
691 } | 805 } |
692 | 806 |
693 checkUnnamed1827(core.List<core.String> o) { | 807 checkUnnamed1861(core.List<core.String> o) { |
694 unittest.expect(o, unittest.hasLength(2)); | 808 unittest.expect(o, unittest.hasLength(2)); |
695 unittest.expect(o[0], unittest.equals('foo')); | 809 unittest.expect(o[0], unittest.equals('foo')); |
696 unittest.expect(o[1], unittest.equals('foo')); | 810 unittest.expect(o[1], unittest.equals('foo')); |
697 } | 811 } |
698 | 812 |
699 core.int buildCounterNodeConfig = 0; | 813 core.int buildCounterNodeConfig = 0; |
700 buildNodeConfig() { | 814 buildNodeConfig() { |
701 var o = new api.NodeConfig(); | 815 var o = new api.NodeConfig(); |
702 buildCounterNodeConfig++; | 816 buildCounterNodeConfig++; |
703 if (buildCounterNodeConfig < 3) { | 817 if (buildCounterNodeConfig < 3) { |
| 818 o.accelerators = buildUnnamed1857(); |
704 o.diskSizeGb = 42; | 819 o.diskSizeGb = 42; |
705 o.imageType = "foo"; | 820 o.imageType = "foo"; |
706 o.labels = buildUnnamed1824(); | 821 o.labels = buildUnnamed1858(); |
707 o.localSsdCount = 42; | 822 o.localSsdCount = 42; |
708 o.machineType = "foo"; | 823 o.machineType = "foo"; |
709 o.metadata = buildUnnamed1825(); | 824 o.metadata = buildUnnamed1859(); |
710 o.oauthScopes = buildUnnamed1826(); | 825 o.oauthScopes = buildUnnamed1860(); |
711 o.preemptible = true; | 826 o.preemptible = true; |
712 o.serviceAccount = "foo"; | 827 o.serviceAccount = "foo"; |
713 o.tags = buildUnnamed1827(); | 828 o.tags = buildUnnamed1861(); |
714 } | 829 } |
715 buildCounterNodeConfig--; | 830 buildCounterNodeConfig--; |
716 return o; | 831 return o; |
717 } | 832 } |
718 | 833 |
719 checkNodeConfig(api.NodeConfig o) { | 834 checkNodeConfig(api.NodeConfig o) { |
720 buildCounterNodeConfig++; | 835 buildCounterNodeConfig++; |
721 if (buildCounterNodeConfig < 3) { | 836 if (buildCounterNodeConfig < 3) { |
| 837 checkUnnamed1857(o.accelerators); |
722 unittest.expect(o.diskSizeGb, unittest.equals(42)); | 838 unittest.expect(o.diskSizeGb, unittest.equals(42)); |
723 unittest.expect(o.imageType, unittest.equals('foo')); | 839 unittest.expect(o.imageType, unittest.equals('foo')); |
724 checkUnnamed1824(o.labels); | 840 checkUnnamed1858(o.labels); |
725 unittest.expect(o.localSsdCount, unittest.equals(42)); | 841 unittest.expect(o.localSsdCount, unittest.equals(42)); |
726 unittest.expect(o.machineType, unittest.equals('foo')); | 842 unittest.expect(o.machineType, unittest.equals('foo')); |
727 checkUnnamed1825(o.metadata); | 843 checkUnnamed1859(o.metadata); |
728 checkUnnamed1826(o.oauthScopes); | 844 checkUnnamed1860(o.oauthScopes); |
729 unittest.expect(o.preemptible, unittest.isTrue); | 845 unittest.expect(o.preemptible, unittest.isTrue); |
730 unittest.expect(o.serviceAccount, unittest.equals('foo')); | 846 unittest.expect(o.serviceAccount, unittest.equals('foo')); |
731 checkUnnamed1827(o.tags); | 847 checkUnnamed1861(o.tags); |
732 } | 848 } |
733 buildCounterNodeConfig--; | 849 buildCounterNodeConfig--; |
734 } | 850 } |
735 | 851 |
736 core.int buildCounterNodeManagement = 0; | 852 core.int buildCounterNodeManagement = 0; |
737 buildNodeManagement() { | 853 buildNodeManagement() { |
738 var o = new api.NodeManagement(); | 854 var o = new api.NodeManagement(); |
739 buildCounterNodeManagement++; | 855 buildCounterNodeManagement++; |
740 if (buildCounterNodeManagement < 3) { | 856 if (buildCounterNodeManagement < 3) { |
741 o.autoRepair = true; | 857 o.autoRepair = true; |
742 o.autoUpgrade = true; | 858 o.autoUpgrade = true; |
743 o.upgradeOptions = buildAutoUpgradeOptions(); | 859 o.upgradeOptions = buildAutoUpgradeOptions(); |
744 } | 860 } |
745 buildCounterNodeManagement--; | 861 buildCounterNodeManagement--; |
746 return o; | 862 return o; |
747 } | 863 } |
748 | 864 |
749 checkNodeManagement(api.NodeManagement o) { | 865 checkNodeManagement(api.NodeManagement o) { |
750 buildCounterNodeManagement++; | 866 buildCounterNodeManagement++; |
751 if (buildCounterNodeManagement < 3) { | 867 if (buildCounterNodeManagement < 3) { |
752 unittest.expect(o.autoRepair, unittest.isTrue); | 868 unittest.expect(o.autoRepair, unittest.isTrue); |
753 unittest.expect(o.autoUpgrade, unittest.isTrue); | 869 unittest.expect(o.autoUpgrade, unittest.isTrue); |
754 checkAutoUpgradeOptions(o.upgradeOptions); | 870 checkAutoUpgradeOptions(o.upgradeOptions); |
755 } | 871 } |
756 buildCounterNodeManagement--; | 872 buildCounterNodeManagement--; |
757 } | 873 } |
758 | 874 |
759 buildUnnamed1828() { | 875 buildUnnamed1862() { |
760 var o = new core.List<core.String>(); | 876 var o = new core.List<core.String>(); |
761 o.add("foo"); | 877 o.add("foo"); |
762 o.add("foo"); | 878 o.add("foo"); |
763 return o; | 879 return o; |
764 } | 880 } |
765 | 881 |
766 checkUnnamed1828(core.List<core.String> o) { | 882 checkUnnamed1862(core.List<core.String> o) { |
767 unittest.expect(o, unittest.hasLength(2)); | 883 unittest.expect(o, unittest.hasLength(2)); |
768 unittest.expect(o[0], unittest.equals('foo')); | 884 unittest.expect(o[0], unittest.equals('foo')); |
769 unittest.expect(o[1], unittest.equals('foo')); | 885 unittest.expect(o[1], unittest.equals('foo')); |
770 } | 886 } |
771 | 887 |
772 core.int buildCounterNodePool = 0; | 888 core.int buildCounterNodePool = 0; |
773 buildNodePool() { | 889 buildNodePool() { |
774 var o = new api.NodePool(); | 890 var o = new api.NodePool(); |
775 buildCounterNodePool++; | 891 buildCounterNodePool++; |
776 if (buildCounterNodePool < 3) { | 892 if (buildCounterNodePool < 3) { |
777 o.autoscaling = buildNodePoolAutoscaling(); | 893 o.autoscaling = buildNodePoolAutoscaling(); |
778 o.config = buildNodeConfig(); | 894 o.config = buildNodeConfig(); |
779 o.initialNodeCount = 42; | 895 o.initialNodeCount = 42; |
780 o.instanceGroupUrls = buildUnnamed1828(); | 896 o.instanceGroupUrls = buildUnnamed1862(); |
781 o.management = buildNodeManagement(); | 897 o.management = buildNodeManagement(); |
782 o.name = "foo"; | 898 o.name = "foo"; |
783 o.selfLink = "foo"; | 899 o.selfLink = "foo"; |
784 o.status = "foo"; | 900 o.status = "foo"; |
785 o.statusMessage = "foo"; | 901 o.statusMessage = "foo"; |
786 o.version = "foo"; | 902 o.version = "foo"; |
787 } | 903 } |
788 buildCounterNodePool--; | 904 buildCounterNodePool--; |
789 return o; | 905 return o; |
790 } | 906 } |
791 | 907 |
792 checkNodePool(api.NodePool o) { | 908 checkNodePool(api.NodePool o) { |
793 buildCounterNodePool++; | 909 buildCounterNodePool++; |
794 if (buildCounterNodePool < 3) { | 910 if (buildCounterNodePool < 3) { |
795 checkNodePoolAutoscaling(o.autoscaling); | 911 checkNodePoolAutoscaling(o.autoscaling); |
796 checkNodeConfig(o.config); | 912 checkNodeConfig(o.config); |
797 unittest.expect(o.initialNodeCount, unittest.equals(42)); | 913 unittest.expect(o.initialNodeCount, unittest.equals(42)); |
798 checkUnnamed1828(o.instanceGroupUrls); | 914 checkUnnamed1862(o.instanceGroupUrls); |
799 checkNodeManagement(o.management); | 915 checkNodeManagement(o.management); |
800 unittest.expect(o.name, unittest.equals('foo')); | 916 unittest.expect(o.name, unittest.equals('foo')); |
801 unittest.expect(o.selfLink, unittest.equals('foo')); | 917 unittest.expect(o.selfLink, unittest.equals('foo')); |
802 unittest.expect(o.status, unittest.equals('foo')); | 918 unittest.expect(o.status, unittest.equals('foo')); |
803 unittest.expect(o.statusMessage, unittest.equals('foo')); | 919 unittest.expect(o.statusMessage, unittest.equals('foo')); |
804 unittest.expect(o.version, unittest.equals('foo')); | 920 unittest.expect(o.version, unittest.equals('foo')); |
805 } | 921 } |
806 buildCounterNodePool--; | 922 buildCounterNodePool--; |
807 } | 923 } |
808 | 924 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
872 return o; | 988 return o; |
873 } | 989 } |
874 | 990 |
875 checkRollbackNodePoolUpgradeRequest(api.RollbackNodePoolUpgradeRequest o) { | 991 checkRollbackNodePoolUpgradeRequest(api.RollbackNodePoolUpgradeRequest o) { |
876 buildCounterRollbackNodePoolUpgradeRequest++; | 992 buildCounterRollbackNodePoolUpgradeRequest++; |
877 if (buildCounterRollbackNodePoolUpgradeRequest < 3) { | 993 if (buildCounterRollbackNodePoolUpgradeRequest < 3) { |
878 } | 994 } |
879 buildCounterRollbackNodePoolUpgradeRequest--; | 995 buildCounterRollbackNodePoolUpgradeRequest--; |
880 } | 996 } |
881 | 997 |
882 buildUnnamed1829() { | 998 buildUnnamed1863() { |
883 var o = new core.List<core.String>(); | 999 var o = new core.List<core.String>(); |
884 o.add("foo"); | 1000 o.add("foo"); |
885 o.add("foo"); | 1001 o.add("foo"); |
886 return o; | 1002 return o; |
887 } | 1003 } |
888 | 1004 |
889 checkUnnamed1829(core.List<core.String> o) { | 1005 checkUnnamed1863(core.List<core.String> o) { |
890 unittest.expect(o, unittest.hasLength(2)); | 1006 unittest.expect(o, unittest.hasLength(2)); |
891 unittest.expect(o[0], unittest.equals('foo')); | 1007 unittest.expect(o[0], unittest.equals('foo')); |
892 unittest.expect(o[1], unittest.equals('foo')); | 1008 unittest.expect(o[1], unittest.equals('foo')); |
893 } | 1009 } |
894 | 1010 |
895 buildUnnamed1830() { | 1011 buildUnnamed1864() { |
896 var o = new core.List<core.String>(); | 1012 var o = new core.List<core.String>(); |
897 o.add("foo"); | 1013 o.add("foo"); |
898 o.add("foo"); | 1014 o.add("foo"); |
899 return o; | 1015 return o; |
900 } | 1016 } |
901 | 1017 |
902 checkUnnamed1830(core.List<core.String> o) { | 1018 checkUnnamed1864(core.List<core.String> o) { |
903 unittest.expect(o, unittest.hasLength(2)); | 1019 unittest.expect(o, unittest.hasLength(2)); |
904 unittest.expect(o[0], unittest.equals('foo')); | 1020 unittest.expect(o[0], unittest.equals('foo')); |
905 unittest.expect(o[1], unittest.equals('foo')); | 1021 unittest.expect(o[1], unittest.equals('foo')); |
906 } | 1022 } |
907 | 1023 |
908 buildUnnamed1831() { | 1024 buildUnnamed1865() { |
909 var o = new core.List<core.String>(); | 1025 var o = new core.List<core.String>(); |
910 o.add("foo"); | 1026 o.add("foo"); |
911 o.add("foo"); | 1027 o.add("foo"); |
912 return o; | 1028 return o; |
913 } | 1029 } |
914 | 1030 |
915 checkUnnamed1831(core.List<core.String> o) { | 1031 checkUnnamed1865(core.List<core.String> o) { |
916 unittest.expect(o, unittest.hasLength(2)); | 1032 unittest.expect(o, unittest.hasLength(2)); |
917 unittest.expect(o[0], unittest.equals('foo')); | 1033 unittest.expect(o[0], unittest.equals('foo')); |
918 unittest.expect(o[1], unittest.equals('foo')); | 1034 unittest.expect(o[1], unittest.equals('foo')); |
919 } | 1035 } |
920 | 1036 |
921 core.int buildCounterServerConfig = 0; | 1037 core.int buildCounterServerConfig = 0; |
922 buildServerConfig() { | 1038 buildServerConfig() { |
923 var o = new api.ServerConfig(); | 1039 var o = new api.ServerConfig(); |
924 buildCounterServerConfig++; | 1040 buildCounterServerConfig++; |
925 if (buildCounterServerConfig < 3) { | 1041 if (buildCounterServerConfig < 3) { |
926 o.defaultClusterVersion = "foo"; | 1042 o.defaultClusterVersion = "foo"; |
927 o.defaultImageType = "foo"; | 1043 o.defaultImageType = "foo"; |
928 o.validImageTypes = buildUnnamed1829(); | 1044 o.validImageTypes = buildUnnamed1863(); |
929 o.validMasterVersions = buildUnnamed1830(); | 1045 o.validMasterVersions = buildUnnamed1864(); |
930 o.validNodeVersions = buildUnnamed1831(); | 1046 o.validNodeVersions = buildUnnamed1865(); |
931 } | 1047 } |
932 buildCounterServerConfig--; | 1048 buildCounterServerConfig--; |
933 return o; | 1049 return o; |
934 } | 1050 } |
935 | 1051 |
936 checkServerConfig(api.ServerConfig o) { | 1052 checkServerConfig(api.ServerConfig o) { |
937 buildCounterServerConfig++; | 1053 buildCounterServerConfig++; |
938 if (buildCounterServerConfig < 3) { | 1054 if (buildCounterServerConfig < 3) { |
939 unittest.expect(o.defaultClusterVersion, unittest.equals('foo')); | 1055 unittest.expect(o.defaultClusterVersion, unittest.equals('foo')); |
940 unittest.expect(o.defaultImageType, unittest.equals('foo')); | 1056 unittest.expect(o.defaultImageType, unittest.equals('foo')); |
941 checkUnnamed1829(o.validImageTypes); | 1057 checkUnnamed1863(o.validImageTypes); |
942 checkUnnamed1830(o.validMasterVersions); | 1058 checkUnnamed1864(o.validMasterVersions); |
943 checkUnnamed1831(o.validNodeVersions); | 1059 checkUnnamed1865(o.validNodeVersions); |
944 } | 1060 } |
945 buildCounterServerConfig--; | 1061 buildCounterServerConfig--; |
946 } | 1062 } |
947 | 1063 |
948 core.int buildCounterSetAddonsConfigRequest = 0; | 1064 core.int buildCounterSetAddonsConfigRequest = 0; |
949 buildSetAddonsConfigRequest() { | 1065 buildSetAddonsConfigRequest() { |
950 var o = new api.SetAddonsConfigRequest(); | 1066 var o = new api.SetAddonsConfigRequest(); |
951 buildCounterSetAddonsConfigRequest++; | 1067 buildCounterSetAddonsConfigRequest++; |
952 if (buildCounterSetAddonsConfigRequest < 3) { | 1068 if (buildCounterSetAddonsConfigRequest < 3) { |
953 o.addonsConfig = buildAddonsConfig(); | 1069 o.addonsConfig = buildAddonsConfig(); |
954 } | 1070 } |
955 buildCounterSetAddonsConfigRequest--; | 1071 buildCounterSetAddonsConfigRequest--; |
956 return o; | 1072 return o; |
957 } | 1073 } |
958 | 1074 |
959 checkSetAddonsConfigRequest(api.SetAddonsConfigRequest o) { | 1075 checkSetAddonsConfigRequest(api.SetAddonsConfigRequest o) { |
960 buildCounterSetAddonsConfigRequest++; | 1076 buildCounterSetAddonsConfigRequest++; |
961 if (buildCounterSetAddonsConfigRequest < 3) { | 1077 if (buildCounterSetAddonsConfigRequest < 3) { |
962 checkAddonsConfig(o.addonsConfig); | 1078 checkAddonsConfig(o.addonsConfig); |
963 } | 1079 } |
964 buildCounterSetAddonsConfigRequest--; | 1080 buildCounterSetAddonsConfigRequest--; |
965 } | 1081 } |
966 | 1082 |
967 buildUnnamed1832() { | 1083 buildUnnamed1866() { |
968 var o = new core.Map<core.String, core.String>(); | 1084 var o = new core.Map<core.String, core.String>(); |
969 o["x"] = "foo"; | 1085 o["x"] = "foo"; |
970 o["y"] = "foo"; | 1086 o["y"] = "foo"; |
971 return o; | 1087 return o; |
972 } | 1088 } |
973 | 1089 |
974 checkUnnamed1832(core.Map<core.String, core.String> o) { | 1090 checkUnnamed1866(core.Map<core.String, core.String> o) { |
975 unittest.expect(o, unittest.hasLength(2)); | 1091 unittest.expect(o, unittest.hasLength(2)); |
976 unittest.expect(o["x"], unittest.equals('foo')); | 1092 unittest.expect(o["x"], unittest.equals('foo')); |
977 unittest.expect(o["y"], unittest.equals('foo')); | 1093 unittest.expect(o["y"], unittest.equals('foo')); |
978 } | 1094 } |
979 | 1095 |
980 core.int buildCounterSetLabelsRequest = 0; | 1096 core.int buildCounterSetLabelsRequest = 0; |
981 buildSetLabelsRequest() { | 1097 buildSetLabelsRequest() { |
982 var o = new api.SetLabelsRequest(); | 1098 var o = new api.SetLabelsRequest(); |
983 buildCounterSetLabelsRequest++; | 1099 buildCounterSetLabelsRequest++; |
984 if (buildCounterSetLabelsRequest < 3) { | 1100 if (buildCounterSetLabelsRequest < 3) { |
985 o.labelFingerprint = "foo"; | 1101 o.labelFingerprint = "foo"; |
986 o.resourceLabels = buildUnnamed1832(); | 1102 o.resourceLabels = buildUnnamed1866(); |
987 } | 1103 } |
988 buildCounterSetLabelsRequest--; | 1104 buildCounterSetLabelsRequest--; |
989 return o; | 1105 return o; |
990 } | 1106 } |
991 | 1107 |
992 checkSetLabelsRequest(api.SetLabelsRequest o) { | 1108 checkSetLabelsRequest(api.SetLabelsRequest o) { |
993 buildCounterSetLabelsRequest++; | 1109 buildCounterSetLabelsRequest++; |
994 if (buildCounterSetLabelsRequest < 3) { | 1110 if (buildCounterSetLabelsRequest < 3) { |
995 unittest.expect(o.labelFingerprint, unittest.equals('foo')); | 1111 unittest.expect(o.labelFingerprint, unittest.equals('foo')); |
996 checkUnnamed1832(o.resourceLabels); | 1112 checkUnnamed1866(o.resourceLabels); |
997 } | 1113 } |
998 buildCounterSetLabelsRequest--; | 1114 buildCounterSetLabelsRequest--; |
999 } | 1115 } |
1000 | 1116 |
1001 core.int buildCounterSetLegacyAbacRequest = 0; | 1117 core.int buildCounterSetLegacyAbacRequest = 0; |
1002 buildSetLegacyAbacRequest() { | 1118 buildSetLegacyAbacRequest() { |
1003 var o = new api.SetLegacyAbacRequest(); | 1119 var o = new api.SetLegacyAbacRequest(); |
1004 buildCounterSetLegacyAbacRequest++; | 1120 buildCounterSetLegacyAbacRequest++; |
1005 if (buildCounterSetLegacyAbacRequest < 3) { | 1121 if (buildCounterSetLegacyAbacRequest < 3) { |
1006 o.enabled = true; | 1122 o.enabled = true; |
1007 } | 1123 } |
1008 buildCounterSetLegacyAbacRequest--; | 1124 buildCounterSetLegacyAbacRequest--; |
1009 return o; | 1125 return o; |
1010 } | 1126 } |
1011 | 1127 |
1012 checkSetLegacyAbacRequest(api.SetLegacyAbacRequest o) { | 1128 checkSetLegacyAbacRequest(api.SetLegacyAbacRequest o) { |
1013 buildCounterSetLegacyAbacRequest++; | 1129 buildCounterSetLegacyAbacRequest++; |
1014 if (buildCounterSetLegacyAbacRequest < 3) { | 1130 if (buildCounterSetLegacyAbacRequest < 3) { |
1015 unittest.expect(o.enabled, unittest.isTrue); | 1131 unittest.expect(o.enabled, unittest.isTrue); |
1016 } | 1132 } |
1017 buildCounterSetLegacyAbacRequest--; | 1133 buildCounterSetLegacyAbacRequest--; |
1018 } | 1134 } |
1019 | 1135 |
1020 buildUnnamed1833() { | 1136 buildUnnamed1867() { |
1021 var o = new core.List<core.String>(); | 1137 var o = new core.List<core.String>(); |
1022 o.add("foo"); | 1138 o.add("foo"); |
1023 o.add("foo"); | 1139 o.add("foo"); |
1024 return o; | 1140 return o; |
1025 } | 1141 } |
1026 | 1142 |
1027 checkUnnamed1833(core.List<core.String> o) { | 1143 checkUnnamed1867(core.List<core.String> o) { |
1028 unittest.expect(o, unittest.hasLength(2)); | 1144 unittest.expect(o, unittest.hasLength(2)); |
1029 unittest.expect(o[0], unittest.equals('foo')); | 1145 unittest.expect(o[0], unittest.equals('foo')); |
1030 unittest.expect(o[1], unittest.equals('foo')); | 1146 unittest.expect(o[1], unittest.equals('foo')); |
1031 } | 1147 } |
1032 | 1148 |
1033 core.int buildCounterSetLocationsRequest = 0; | 1149 core.int buildCounterSetLocationsRequest = 0; |
1034 buildSetLocationsRequest() { | 1150 buildSetLocationsRequest() { |
1035 var o = new api.SetLocationsRequest(); | 1151 var o = new api.SetLocationsRequest(); |
1036 buildCounterSetLocationsRequest++; | 1152 buildCounterSetLocationsRequest++; |
1037 if (buildCounterSetLocationsRequest < 3) { | 1153 if (buildCounterSetLocationsRequest < 3) { |
1038 o.locations = buildUnnamed1833(); | 1154 o.locations = buildUnnamed1867(); |
1039 } | 1155 } |
1040 buildCounterSetLocationsRequest--; | 1156 buildCounterSetLocationsRequest--; |
1041 return o; | 1157 return o; |
1042 } | 1158 } |
1043 | 1159 |
1044 checkSetLocationsRequest(api.SetLocationsRequest o) { | 1160 checkSetLocationsRequest(api.SetLocationsRequest o) { |
1045 buildCounterSetLocationsRequest++; | 1161 buildCounterSetLocationsRequest++; |
1046 if (buildCounterSetLocationsRequest < 3) { | 1162 if (buildCounterSetLocationsRequest < 3) { |
1047 checkUnnamed1833(o.locations); | 1163 checkUnnamed1867(o.locations); |
1048 } | 1164 } |
1049 buildCounterSetLocationsRequest--; | 1165 buildCounterSetLocationsRequest--; |
1050 } | 1166 } |
1051 | 1167 |
1052 core.int buildCounterSetLoggingServiceRequest = 0; | 1168 core.int buildCounterSetLoggingServiceRequest = 0; |
1053 buildSetLoggingServiceRequest() { | 1169 buildSetLoggingServiceRequest() { |
1054 var o = new api.SetLoggingServiceRequest(); | 1170 var o = new api.SetLoggingServiceRequest(); |
1055 buildCounterSetLoggingServiceRequest++; | 1171 buildCounterSetLoggingServiceRequest++; |
1056 if (buildCounterSetLoggingServiceRequest < 3) { | 1172 if (buildCounterSetLoggingServiceRequest < 3) { |
1057 o.loggingService = "foo"; | 1173 o.loggingService = "foo"; |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1255 buildCounterUpdateNodePoolRequest++; | 1371 buildCounterUpdateNodePoolRequest++; |
1256 if (buildCounterUpdateNodePoolRequest < 3) { | 1372 if (buildCounterUpdateNodePoolRequest < 3) { |
1257 unittest.expect(o.imageType, unittest.equals('foo')); | 1373 unittest.expect(o.imageType, unittest.equals('foo')); |
1258 unittest.expect(o.nodeVersion, unittest.equals('foo')); | 1374 unittest.expect(o.nodeVersion, unittest.equals('foo')); |
1259 } | 1375 } |
1260 buildCounterUpdateNodePoolRequest--; | 1376 buildCounterUpdateNodePoolRequest--; |
1261 } | 1377 } |
1262 | 1378 |
1263 | 1379 |
1264 main() { | 1380 main() { |
| 1381 unittest.group("obj-schema-AcceleratorConfig", () { |
| 1382 unittest.test("to-json--from-json", () { |
| 1383 var o = buildAcceleratorConfig(); |
| 1384 var od = new api.AcceleratorConfig.fromJson(o.toJson()); |
| 1385 checkAcceleratorConfig(od); |
| 1386 }); |
| 1387 }); |
| 1388 |
| 1389 |
1265 unittest.group("obj-schema-AddonsConfig", () { | 1390 unittest.group("obj-schema-AddonsConfig", () { |
1266 unittest.test("to-json--from-json", () { | 1391 unittest.test("to-json--from-json", () { |
1267 var o = buildAddonsConfig(); | 1392 var o = buildAddonsConfig(); |
1268 var od = new api.AddonsConfig.fromJson(o.toJson()); | 1393 var od = new api.AddonsConfig.fromJson(o.toJson()); |
1269 checkAddonsConfig(od); | 1394 checkAddonsConfig(od); |
1270 }); | 1395 }); |
1271 }); | 1396 }); |
1272 | 1397 |
1273 | 1398 |
1274 unittest.group("obj-schema-AutoUpgradeOptions", () { | 1399 unittest.group("obj-schema-AutoUpgradeOptions", () { |
1275 unittest.test("to-json--from-json", () { | 1400 unittest.test("to-json--from-json", () { |
1276 var o = buildAutoUpgradeOptions(); | 1401 var o = buildAutoUpgradeOptions(); |
1277 var od = new api.AutoUpgradeOptions.fromJson(o.toJson()); | 1402 var od = new api.AutoUpgradeOptions.fromJson(o.toJson()); |
1278 checkAutoUpgradeOptions(od); | 1403 checkAutoUpgradeOptions(od); |
1279 }); | 1404 }); |
1280 }); | 1405 }); |
1281 | 1406 |
1282 | 1407 |
1283 unittest.group("obj-schema-CancelOperationRequest", () { | 1408 unittest.group("obj-schema-CancelOperationRequest", () { |
1284 unittest.test("to-json--from-json", () { | 1409 unittest.test("to-json--from-json", () { |
1285 var o = buildCancelOperationRequest(); | 1410 var o = buildCancelOperationRequest(); |
1286 var od = new api.CancelOperationRequest.fromJson(o.toJson()); | 1411 var od = new api.CancelOperationRequest.fromJson(o.toJson()); |
1287 checkCancelOperationRequest(od); | 1412 checkCancelOperationRequest(od); |
1288 }); | 1413 }); |
1289 }); | 1414 }); |
1290 | 1415 |
1291 | 1416 |
| 1417 unittest.group("obj-schema-CidrBlock", () { |
| 1418 unittest.test("to-json--from-json", () { |
| 1419 var o = buildCidrBlock(); |
| 1420 var od = new api.CidrBlock.fromJson(o.toJson()); |
| 1421 checkCidrBlock(od); |
| 1422 }); |
| 1423 }); |
| 1424 |
| 1425 |
1292 unittest.group("obj-schema-ClientCertificateConfig", () { | 1426 unittest.group("obj-schema-ClientCertificateConfig", () { |
1293 unittest.test("to-json--from-json", () { | 1427 unittest.test("to-json--from-json", () { |
1294 var o = buildClientCertificateConfig(); | 1428 var o = buildClientCertificateConfig(); |
1295 var od = new api.ClientCertificateConfig.fromJson(o.toJson()); | 1429 var od = new api.ClientCertificateConfig.fromJson(o.toJson()); |
1296 checkClientCertificateConfig(od); | 1430 checkClientCertificateConfig(od); |
1297 }); | 1431 }); |
1298 }); | 1432 }); |
1299 | 1433 |
1300 | 1434 |
1301 unittest.group("obj-schema-Cluster", () { | 1435 unittest.group("obj-schema-Cluster", () { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1372 | 1506 |
1373 unittest.group("obj-schema-IPAllocationPolicy", () { | 1507 unittest.group("obj-schema-IPAllocationPolicy", () { |
1374 unittest.test("to-json--from-json", () { | 1508 unittest.test("to-json--from-json", () { |
1375 var o = buildIPAllocationPolicy(); | 1509 var o = buildIPAllocationPolicy(); |
1376 var od = new api.IPAllocationPolicy.fromJson(o.toJson()); | 1510 var od = new api.IPAllocationPolicy.fromJson(o.toJson()); |
1377 checkIPAllocationPolicy(od); | 1511 checkIPAllocationPolicy(od); |
1378 }); | 1512 }); |
1379 }); | 1513 }); |
1380 | 1514 |
1381 | 1515 |
| 1516 unittest.group("obj-schema-KubernetesDashboard", () { |
| 1517 unittest.test("to-json--from-json", () { |
| 1518 var o = buildKubernetesDashboard(); |
| 1519 var od = new api.KubernetesDashboard.fromJson(o.toJson()); |
| 1520 checkKubernetesDashboard(od); |
| 1521 }); |
| 1522 }); |
| 1523 |
| 1524 |
1382 unittest.group("obj-schema-LegacyAbac", () { | 1525 unittest.group("obj-schema-LegacyAbac", () { |
1383 unittest.test("to-json--from-json", () { | 1526 unittest.test("to-json--from-json", () { |
1384 var o = buildLegacyAbac(); | 1527 var o = buildLegacyAbac(); |
1385 var od = new api.LegacyAbac.fromJson(o.toJson()); | 1528 var od = new api.LegacyAbac.fromJson(o.toJson()); |
1386 checkLegacyAbac(od); | 1529 checkLegacyAbac(od); |
1387 }); | 1530 }); |
1388 }); | 1531 }); |
1389 | 1532 |
1390 | 1533 |
1391 unittest.group("obj-schema-ListClustersResponse", () { | 1534 unittest.group("obj-schema-ListClustersResponse", () { |
(...skipping 25 matching lines...) Expand all Loading... |
1417 | 1560 |
1418 unittest.group("obj-schema-MasterAuth", () { | 1561 unittest.group("obj-schema-MasterAuth", () { |
1419 unittest.test("to-json--from-json", () { | 1562 unittest.test("to-json--from-json", () { |
1420 var o = buildMasterAuth(); | 1563 var o = buildMasterAuth(); |
1421 var od = new api.MasterAuth.fromJson(o.toJson()); | 1564 var od = new api.MasterAuth.fromJson(o.toJson()); |
1422 checkMasterAuth(od); | 1565 checkMasterAuth(od); |
1423 }); | 1566 }); |
1424 }); | 1567 }); |
1425 | 1568 |
1426 | 1569 |
| 1570 unittest.group("obj-schema-MasterAuthorizedNetworksConfig", () { |
| 1571 unittest.test("to-json--from-json", () { |
| 1572 var o = buildMasterAuthorizedNetworksConfig(); |
| 1573 var od = new api.MasterAuthorizedNetworksConfig.fromJson(o.toJson()); |
| 1574 checkMasterAuthorizedNetworksConfig(od); |
| 1575 }); |
| 1576 }); |
| 1577 |
| 1578 |
1427 unittest.group("obj-schema-NetworkPolicy", () { | 1579 unittest.group("obj-schema-NetworkPolicy", () { |
1428 unittest.test("to-json--from-json", () { | 1580 unittest.test("to-json--from-json", () { |
1429 var o = buildNetworkPolicy(); | 1581 var o = buildNetworkPolicy(); |
1430 var od = new api.NetworkPolicy.fromJson(o.toJson()); | 1582 var od = new api.NetworkPolicy.fromJson(o.toJson()); |
1431 checkNetworkPolicy(od); | 1583 checkNetworkPolicy(od); |
1432 }); | 1584 }); |
1433 }); | 1585 }); |
1434 | 1586 |
1435 | 1587 |
1436 unittest.group("obj-schema-NodeConfig", () { | 1588 unittest.group("obj-schema-NodeConfig", () { |
(...skipping 2228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3665 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) { |
3666 checkListOperationsResponse(response); | 3818 checkListOperationsResponse(response); |
3667 }))); | 3819 }))); |
3668 }); | 3820 }); |
3669 | 3821 |
3670 }); | 3822 }); |
3671 | 3823 |
3672 | 3824 |
3673 } | 3825 } |
3674 | 3826 |
OLD | NEW |