OLD | NEW |
1 library googleapis.container.v1.test; | 1 library googleapis.container.v1.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 checkAddonsConfig(api.AddonsConfig o) { | 66 checkAddonsConfig(api.AddonsConfig o) { |
67 buildCounterAddonsConfig++; | 67 buildCounterAddonsConfig++; |
68 if (buildCounterAddonsConfig < 3) { | 68 if (buildCounterAddonsConfig < 3) { |
69 checkHorizontalPodAutoscaling(o.horizontalPodAutoscaling); | 69 checkHorizontalPodAutoscaling(o.horizontalPodAutoscaling); |
70 checkHttpLoadBalancing(o.httpLoadBalancing); | 70 checkHttpLoadBalancing(o.httpLoadBalancing); |
71 } | 71 } |
72 buildCounterAddonsConfig--; | 72 buildCounterAddonsConfig--; |
73 } | 73 } |
74 | 74 |
75 buildUnnamed1709() { | 75 core.int buildCounterAutoUpgradeOptions = 0; |
| 76 buildAutoUpgradeOptions() { |
| 77 var o = new api.AutoUpgradeOptions(); |
| 78 buildCounterAutoUpgradeOptions++; |
| 79 if (buildCounterAutoUpgradeOptions < 3) { |
| 80 o.autoUpgradeStartTime = "foo"; |
| 81 o.description = "foo"; |
| 82 } |
| 83 buildCounterAutoUpgradeOptions--; |
| 84 return o; |
| 85 } |
| 86 |
| 87 checkAutoUpgradeOptions(api.AutoUpgradeOptions o) { |
| 88 buildCounterAutoUpgradeOptions++; |
| 89 if (buildCounterAutoUpgradeOptions < 3) { |
| 90 unittest.expect(o.autoUpgradeStartTime, unittest.equals('foo')); |
| 91 unittest.expect(o.description, unittest.equals('foo')); |
| 92 } |
| 93 buildCounterAutoUpgradeOptions--; |
| 94 } |
| 95 |
| 96 core.int buildCounterCancelOperationRequest = 0; |
| 97 buildCancelOperationRequest() { |
| 98 var o = new api.CancelOperationRequest(); |
| 99 buildCounterCancelOperationRequest++; |
| 100 if (buildCounterCancelOperationRequest < 3) { |
| 101 } |
| 102 buildCounterCancelOperationRequest--; |
| 103 return o; |
| 104 } |
| 105 |
| 106 checkCancelOperationRequest(api.CancelOperationRequest o) { |
| 107 buildCounterCancelOperationRequest++; |
| 108 if (buildCounterCancelOperationRequest < 3) { |
| 109 } |
| 110 buildCounterCancelOperationRequest--; |
| 111 } |
| 112 |
| 113 buildUnnamed1799() { |
76 var o = new core.List<core.String>(); | 114 var o = new core.List<core.String>(); |
77 o.add("foo"); | 115 o.add("foo"); |
78 o.add("foo"); | 116 o.add("foo"); |
79 return o; | 117 return o; |
80 } | 118 } |
81 | 119 |
82 checkUnnamed1709(core.List<core.String> o) { | 120 checkUnnamed1799(core.List<core.String> o) { |
83 unittest.expect(o, unittest.hasLength(2)); | 121 unittest.expect(o, unittest.hasLength(2)); |
84 unittest.expect(o[0], unittest.equals('foo')); | 122 unittest.expect(o[0], unittest.equals('foo')); |
85 unittest.expect(o[1], unittest.equals('foo')); | 123 unittest.expect(o[1], unittest.equals('foo')); |
86 } | 124 } |
87 | 125 |
88 buildUnnamed1710() { | 126 buildUnnamed1800() { |
89 var o = new core.List<core.String>(); | 127 var o = new core.List<core.String>(); |
90 o.add("foo"); | 128 o.add("foo"); |
91 o.add("foo"); | 129 o.add("foo"); |
92 return o; | 130 return o; |
93 } | 131 } |
94 | 132 |
95 checkUnnamed1710(core.List<core.String> o) { | 133 checkUnnamed1800(core.List<core.String> o) { |
96 unittest.expect(o, unittest.hasLength(2)); | 134 unittest.expect(o, unittest.hasLength(2)); |
97 unittest.expect(o[0], unittest.equals('foo')); | 135 unittest.expect(o[0], unittest.equals('foo')); |
98 unittest.expect(o[1], unittest.equals('foo')); | 136 unittest.expect(o[1], unittest.equals('foo')); |
99 } | 137 } |
100 | 138 |
101 buildUnnamed1711() { | 139 buildUnnamed1801() { |
102 var o = new core.List<api.NodePool>(); | 140 var o = new core.List<api.NodePool>(); |
103 o.add(buildNodePool()); | 141 o.add(buildNodePool()); |
104 o.add(buildNodePool()); | 142 o.add(buildNodePool()); |
105 return o; | 143 return o; |
106 } | 144 } |
107 | 145 |
108 checkUnnamed1711(core.List<api.NodePool> o) { | 146 checkUnnamed1801(core.List<api.NodePool> o) { |
109 unittest.expect(o, unittest.hasLength(2)); | 147 unittest.expect(o, unittest.hasLength(2)); |
110 checkNodePool(o[0]); | 148 checkNodePool(o[0]); |
111 checkNodePool(o[1]); | 149 checkNodePool(o[1]); |
112 } | 150 } |
113 | 151 |
114 core.int buildCounterCluster = 0; | 152 core.int buildCounterCluster = 0; |
115 buildCluster() { | 153 buildCluster() { |
116 var o = new api.Cluster(); | 154 var o = new api.Cluster(); |
117 buildCounterCluster++; | 155 buildCounterCluster++; |
118 if (buildCounterCluster < 3) { | 156 if (buildCounterCluster < 3) { |
119 o.addonsConfig = buildAddonsConfig(); | 157 o.addonsConfig = buildAddonsConfig(); |
120 o.clusterIpv4Cidr = "foo"; | 158 o.clusterIpv4Cidr = "foo"; |
121 o.createTime = "foo"; | 159 o.createTime = "foo"; |
122 o.currentMasterVersion = "foo"; | 160 o.currentMasterVersion = "foo"; |
123 o.currentNodeCount = 42; | 161 o.currentNodeCount = 42; |
124 o.currentNodeVersion = "foo"; | 162 o.currentNodeVersion = "foo"; |
125 o.description = "foo"; | 163 o.description = "foo"; |
| 164 o.enableKubernetesAlpha = true; |
126 o.endpoint = "foo"; | 165 o.endpoint = "foo"; |
| 166 o.expireTime = "foo"; |
127 o.initialClusterVersion = "foo"; | 167 o.initialClusterVersion = "foo"; |
128 o.initialNodeCount = 42; | 168 o.initialNodeCount = 42; |
129 o.instanceGroupUrls = buildUnnamed1709(); | 169 o.instanceGroupUrls = buildUnnamed1799(); |
130 o.locations = buildUnnamed1710(); | 170 o.locations = buildUnnamed1800(); |
131 o.loggingService = "foo"; | 171 o.loggingService = "foo"; |
132 o.masterAuth = buildMasterAuth(); | 172 o.masterAuth = buildMasterAuth(); |
133 o.monitoringService = "foo"; | 173 o.monitoringService = "foo"; |
134 o.name = "foo"; | 174 o.name = "foo"; |
135 o.network = "foo"; | 175 o.network = "foo"; |
136 o.nodeConfig = buildNodeConfig(); | 176 o.nodeConfig = buildNodeConfig(); |
137 o.nodeIpv4CidrSize = 42; | 177 o.nodeIpv4CidrSize = 42; |
138 o.nodePools = buildUnnamed1711(); | 178 o.nodePools = buildUnnamed1801(); |
139 o.selfLink = "foo"; | 179 o.selfLink = "foo"; |
140 o.servicesIpv4Cidr = "foo"; | 180 o.servicesIpv4Cidr = "foo"; |
141 o.status = "foo"; | 181 o.status = "foo"; |
142 o.statusMessage = "foo"; | 182 o.statusMessage = "foo"; |
143 o.subnetwork = "foo"; | 183 o.subnetwork = "foo"; |
144 o.zone = "foo"; | 184 o.zone = "foo"; |
145 } | 185 } |
146 buildCounterCluster--; | 186 buildCounterCluster--; |
147 return o; | 187 return o; |
148 } | 188 } |
149 | 189 |
150 checkCluster(api.Cluster o) { | 190 checkCluster(api.Cluster o) { |
151 buildCounterCluster++; | 191 buildCounterCluster++; |
152 if (buildCounterCluster < 3) { | 192 if (buildCounterCluster < 3) { |
153 checkAddonsConfig(o.addonsConfig); | 193 checkAddonsConfig(o.addonsConfig); |
154 unittest.expect(o.clusterIpv4Cidr, unittest.equals('foo')); | 194 unittest.expect(o.clusterIpv4Cidr, unittest.equals('foo')); |
155 unittest.expect(o.createTime, unittest.equals('foo')); | 195 unittest.expect(o.createTime, unittest.equals('foo')); |
156 unittest.expect(o.currentMasterVersion, unittest.equals('foo')); | 196 unittest.expect(o.currentMasterVersion, unittest.equals('foo')); |
157 unittest.expect(o.currentNodeCount, unittest.equals(42)); | 197 unittest.expect(o.currentNodeCount, unittest.equals(42)); |
158 unittest.expect(o.currentNodeVersion, unittest.equals('foo')); | 198 unittest.expect(o.currentNodeVersion, unittest.equals('foo')); |
159 unittest.expect(o.description, unittest.equals('foo')); | 199 unittest.expect(o.description, unittest.equals('foo')); |
| 200 unittest.expect(o.enableKubernetesAlpha, unittest.isTrue); |
160 unittest.expect(o.endpoint, unittest.equals('foo')); | 201 unittest.expect(o.endpoint, unittest.equals('foo')); |
| 202 unittest.expect(o.expireTime, unittest.equals('foo')); |
161 unittest.expect(o.initialClusterVersion, unittest.equals('foo')); | 203 unittest.expect(o.initialClusterVersion, unittest.equals('foo')); |
162 unittest.expect(o.initialNodeCount, unittest.equals(42)); | 204 unittest.expect(o.initialNodeCount, unittest.equals(42)); |
163 checkUnnamed1709(o.instanceGroupUrls); | 205 checkUnnamed1799(o.instanceGroupUrls); |
164 checkUnnamed1710(o.locations); | 206 checkUnnamed1800(o.locations); |
165 unittest.expect(o.loggingService, unittest.equals('foo')); | 207 unittest.expect(o.loggingService, unittest.equals('foo')); |
166 checkMasterAuth(o.masterAuth); | 208 checkMasterAuth(o.masterAuth); |
167 unittest.expect(o.monitoringService, unittest.equals('foo')); | 209 unittest.expect(o.monitoringService, unittest.equals('foo')); |
168 unittest.expect(o.name, unittest.equals('foo')); | 210 unittest.expect(o.name, unittest.equals('foo')); |
169 unittest.expect(o.network, unittest.equals('foo')); | 211 unittest.expect(o.network, unittest.equals('foo')); |
170 checkNodeConfig(o.nodeConfig); | 212 checkNodeConfig(o.nodeConfig); |
171 unittest.expect(o.nodeIpv4CidrSize, unittest.equals(42)); | 213 unittest.expect(o.nodeIpv4CidrSize, unittest.equals(42)); |
172 checkUnnamed1711(o.nodePools); | 214 checkUnnamed1801(o.nodePools); |
173 unittest.expect(o.selfLink, unittest.equals('foo')); | 215 unittest.expect(o.selfLink, unittest.equals('foo')); |
174 unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo')); | 216 unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo')); |
175 unittest.expect(o.status, unittest.equals('foo')); | 217 unittest.expect(o.status, unittest.equals('foo')); |
176 unittest.expect(o.statusMessage, unittest.equals('foo')); | 218 unittest.expect(o.statusMessage, unittest.equals('foo')); |
177 unittest.expect(o.subnetwork, unittest.equals('foo')); | 219 unittest.expect(o.subnetwork, unittest.equals('foo')); |
178 unittest.expect(o.zone, unittest.equals('foo')); | 220 unittest.expect(o.zone, unittest.equals('foo')); |
179 } | 221 } |
180 buildCounterCluster--; | 222 buildCounterCluster--; |
181 } | 223 } |
182 | 224 |
| 225 buildUnnamed1802() { |
| 226 var o = new core.List<core.String>(); |
| 227 o.add("foo"); |
| 228 o.add("foo"); |
| 229 return o; |
| 230 } |
| 231 |
| 232 checkUnnamed1802(core.List<core.String> o) { |
| 233 unittest.expect(o, unittest.hasLength(2)); |
| 234 unittest.expect(o[0], unittest.equals('foo')); |
| 235 unittest.expect(o[1], unittest.equals('foo')); |
| 236 } |
| 237 |
183 core.int buildCounterClusterUpdate = 0; | 238 core.int buildCounterClusterUpdate = 0; |
184 buildClusterUpdate() { | 239 buildClusterUpdate() { |
185 var o = new api.ClusterUpdate(); | 240 var o = new api.ClusterUpdate(); |
186 buildCounterClusterUpdate++; | 241 buildCounterClusterUpdate++; |
187 if (buildCounterClusterUpdate < 3) { | 242 if (buildCounterClusterUpdate < 3) { |
188 o.desiredAddonsConfig = buildAddonsConfig(); | 243 o.desiredAddonsConfig = buildAddonsConfig(); |
| 244 o.desiredImageType = "foo"; |
| 245 o.desiredLocations = buildUnnamed1802(); |
189 o.desiredMasterVersion = "foo"; | 246 o.desiredMasterVersion = "foo"; |
190 o.desiredMonitoringService = "foo"; | 247 o.desiredMonitoringService = "foo"; |
| 248 o.desiredNodePoolAutoscaling = buildNodePoolAutoscaling(); |
191 o.desiredNodePoolId = "foo"; | 249 o.desiredNodePoolId = "foo"; |
192 o.desiredNodeVersion = "foo"; | 250 o.desiredNodeVersion = "foo"; |
193 } | 251 } |
194 buildCounterClusterUpdate--; | 252 buildCounterClusterUpdate--; |
195 return o; | 253 return o; |
196 } | 254 } |
197 | 255 |
198 checkClusterUpdate(api.ClusterUpdate o) { | 256 checkClusterUpdate(api.ClusterUpdate o) { |
199 buildCounterClusterUpdate++; | 257 buildCounterClusterUpdate++; |
200 if (buildCounterClusterUpdate < 3) { | 258 if (buildCounterClusterUpdate < 3) { |
201 checkAddonsConfig(o.desiredAddonsConfig); | 259 checkAddonsConfig(o.desiredAddonsConfig); |
| 260 unittest.expect(o.desiredImageType, unittest.equals('foo')); |
| 261 checkUnnamed1802(o.desiredLocations); |
202 unittest.expect(o.desiredMasterVersion, unittest.equals('foo')); | 262 unittest.expect(o.desiredMasterVersion, unittest.equals('foo')); |
203 unittest.expect(o.desiredMonitoringService, unittest.equals('foo')); | 263 unittest.expect(o.desiredMonitoringService, unittest.equals('foo')); |
| 264 checkNodePoolAutoscaling(o.desiredNodePoolAutoscaling); |
204 unittest.expect(o.desiredNodePoolId, unittest.equals('foo')); | 265 unittest.expect(o.desiredNodePoolId, unittest.equals('foo')); |
205 unittest.expect(o.desiredNodeVersion, unittest.equals('foo')); | 266 unittest.expect(o.desiredNodeVersion, unittest.equals('foo')); |
206 } | 267 } |
207 buildCounterClusterUpdate--; | 268 buildCounterClusterUpdate--; |
208 } | 269 } |
209 | 270 |
210 core.int buildCounterCreateClusterRequest = 0; | 271 core.int buildCounterCreateClusterRequest = 0; |
211 buildCreateClusterRequest() { | 272 buildCreateClusterRequest() { |
212 var o = new api.CreateClusterRequest(); | 273 var o = new api.CreateClusterRequest(); |
213 buildCounterCreateClusterRequest++; | 274 buildCounterCreateClusterRequest++; |
(...skipping 24 matching lines...) Expand all Loading... |
238 } | 299 } |
239 | 300 |
240 checkCreateNodePoolRequest(api.CreateNodePoolRequest o) { | 301 checkCreateNodePoolRequest(api.CreateNodePoolRequest o) { |
241 buildCounterCreateNodePoolRequest++; | 302 buildCounterCreateNodePoolRequest++; |
242 if (buildCounterCreateNodePoolRequest < 3) { | 303 if (buildCounterCreateNodePoolRequest < 3) { |
243 checkNodePool(o.nodePool); | 304 checkNodePool(o.nodePool); |
244 } | 305 } |
245 buildCounterCreateNodePoolRequest--; | 306 buildCounterCreateNodePoolRequest--; |
246 } | 307 } |
247 | 308 |
| 309 core.int buildCounterEmpty = 0; |
| 310 buildEmpty() { |
| 311 var o = new api.Empty(); |
| 312 buildCounterEmpty++; |
| 313 if (buildCounterEmpty < 3) { |
| 314 } |
| 315 buildCounterEmpty--; |
| 316 return o; |
| 317 } |
| 318 |
| 319 checkEmpty(api.Empty o) { |
| 320 buildCounterEmpty++; |
| 321 if (buildCounterEmpty < 3) { |
| 322 } |
| 323 buildCounterEmpty--; |
| 324 } |
| 325 |
248 core.int buildCounterHorizontalPodAutoscaling = 0; | 326 core.int buildCounterHorizontalPodAutoscaling = 0; |
249 buildHorizontalPodAutoscaling() { | 327 buildHorizontalPodAutoscaling() { |
250 var o = new api.HorizontalPodAutoscaling(); | 328 var o = new api.HorizontalPodAutoscaling(); |
251 buildCounterHorizontalPodAutoscaling++; | 329 buildCounterHorizontalPodAutoscaling++; |
252 if (buildCounterHorizontalPodAutoscaling < 3) { | 330 if (buildCounterHorizontalPodAutoscaling < 3) { |
253 o.disabled = true; | 331 o.disabled = true; |
254 } | 332 } |
255 buildCounterHorizontalPodAutoscaling--; | 333 buildCounterHorizontalPodAutoscaling--; |
256 return o; | 334 return o; |
257 } | 335 } |
(...skipping 18 matching lines...) Expand all Loading... |
276 } | 354 } |
277 | 355 |
278 checkHttpLoadBalancing(api.HttpLoadBalancing o) { | 356 checkHttpLoadBalancing(api.HttpLoadBalancing o) { |
279 buildCounterHttpLoadBalancing++; | 357 buildCounterHttpLoadBalancing++; |
280 if (buildCounterHttpLoadBalancing < 3) { | 358 if (buildCounterHttpLoadBalancing < 3) { |
281 unittest.expect(o.disabled, unittest.isTrue); | 359 unittest.expect(o.disabled, unittest.isTrue); |
282 } | 360 } |
283 buildCounterHttpLoadBalancing--; | 361 buildCounterHttpLoadBalancing--; |
284 } | 362 } |
285 | 363 |
286 buildUnnamed1712() { | 364 buildUnnamed1803() { |
287 var o = new core.List<api.Cluster>(); | 365 var o = new core.List<api.Cluster>(); |
288 o.add(buildCluster()); | 366 o.add(buildCluster()); |
289 o.add(buildCluster()); | 367 o.add(buildCluster()); |
290 return o; | 368 return o; |
291 } | 369 } |
292 | 370 |
293 checkUnnamed1712(core.List<api.Cluster> o) { | 371 checkUnnamed1803(core.List<api.Cluster> o) { |
294 unittest.expect(o, unittest.hasLength(2)); | 372 unittest.expect(o, unittest.hasLength(2)); |
295 checkCluster(o[0]); | 373 checkCluster(o[0]); |
296 checkCluster(o[1]); | 374 checkCluster(o[1]); |
297 } | 375 } |
298 | 376 |
299 buildUnnamed1713() { | 377 buildUnnamed1804() { |
300 var o = new core.List<core.String>(); | 378 var o = new core.List<core.String>(); |
301 o.add("foo"); | 379 o.add("foo"); |
302 o.add("foo"); | 380 o.add("foo"); |
303 return o; | 381 return o; |
304 } | 382 } |
305 | 383 |
306 checkUnnamed1713(core.List<core.String> o) { | 384 checkUnnamed1804(core.List<core.String> o) { |
307 unittest.expect(o, unittest.hasLength(2)); | 385 unittest.expect(o, unittest.hasLength(2)); |
308 unittest.expect(o[0], unittest.equals('foo')); | 386 unittest.expect(o[0], unittest.equals('foo')); |
309 unittest.expect(o[1], unittest.equals('foo')); | 387 unittest.expect(o[1], unittest.equals('foo')); |
310 } | 388 } |
311 | 389 |
312 core.int buildCounterListClustersResponse = 0; | 390 core.int buildCounterListClustersResponse = 0; |
313 buildListClustersResponse() { | 391 buildListClustersResponse() { |
314 var o = new api.ListClustersResponse(); | 392 var o = new api.ListClustersResponse(); |
315 buildCounterListClustersResponse++; | 393 buildCounterListClustersResponse++; |
316 if (buildCounterListClustersResponse < 3) { | 394 if (buildCounterListClustersResponse < 3) { |
317 o.clusters = buildUnnamed1712(); | 395 o.clusters = buildUnnamed1803(); |
318 o.missingZones = buildUnnamed1713(); | 396 o.missingZones = buildUnnamed1804(); |
319 } | 397 } |
320 buildCounterListClustersResponse--; | 398 buildCounterListClustersResponse--; |
321 return o; | 399 return o; |
322 } | 400 } |
323 | 401 |
324 checkListClustersResponse(api.ListClustersResponse o) { | 402 checkListClustersResponse(api.ListClustersResponse o) { |
325 buildCounterListClustersResponse++; | 403 buildCounterListClustersResponse++; |
326 if (buildCounterListClustersResponse < 3) { | 404 if (buildCounterListClustersResponse < 3) { |
327 checkUnnamed1712(o.clusters); | 405 checkUnnamed1803(o.clusters); |
328 checkUnnamed1713(o.missingZones); | 406 checkUnnamed1804(o.missingZones); |
329 } | 407 } |
330 buildCounterListClustersResponse--; | 408 buildCounterListClustersResponse--; |
331 } | 409 } |
332 | 410 |
333 buildUnnamed1714() { | 411 buildUnnamed1805() { |
334 var o = new core.List<api.NodePool>(); | 412 var o = new core.List<api.NodePool>(); |
335 o.add(buildNodePool()); | 413 o.add(buildNodePool()); |
336 o.add(buildNodePool()); | 414 o.add(buildNodePool()); |
337 return o; | 415 return o; |
338 } | 416 } |
339 | 417 |
340 checkUnnamed1714(core.List<api.NodePool> o) { | 418 checkUnnamed1805(core.List<api.NodePool> o) { |
341 unittest.expect(o, unittest.hasLength(2)); | 419 unittest.expect(o, unittest.hasLength(2)); |
342 checkNodePool(o[0]); | 420 checkNodePool(o[0]); |
343 checkNodePool(o[1]); | 421 checkNodePool(o[1]); |
344 } | 422 } |
345 | 423 |
346 core.int buildCounterListNodePoolsResponse = 0; | 424 core.int buildCounterListNodePoolsResponse = 0; |
347 buildListNodePoolsResponse() { | 425 buildListNodePoolsResponse() { |
348 var o = new api.ListNodePoolsResponse(); | 426 var o = new api.ListNodePoolsResponse(); |
349 buildCounterListNodePoolsResponse++; | 427 buildCounterListNodePoolsResponse++; |
350 if (buildCounterListNodePoolsResponse < 3) { | 428 if (buildCounterListNodePoolsResponse < 3) { |
351 o.nodePools = buildUnnamed1714(); | 429 o.nodePools = buildUnnamed1805(); |
352 } | 430 } |
353 buildCounterListNodePoolsResponse--; | 431 buildCounterListNodePoolsResponse--; |
354 return o; | 432 return o; |
355 } | 433 } |
356 | 434 |
357 checkListNodePoolsResponse(api.ListNodePoolsResponse o) { | 435 checkListNodePoolsResponse(api.ListNodePoolsResponse o) { |
358 buildCounterListNodePoolsResponse++; | 436 buildCounterListNodePoolsResponse++; |
359 if (buildCounterListNodePoolsResponse < 3) { | 437 if (buildCounterListNodePoolsResponse < 3) { |
360 checkUnnamed1714(o.nodePools); | 438 checkUnnamed1805(o.nodePools); |
361 } | 439 } |
362 buildCounterListNodePoolsResponse--; | 440 buildCounterListNodePoolsResponse--; |
363 } | 441 } |
364 | 442 |
365 buildUnnamed1715() { | 443 buildUnnamed1806() { |
366 var o = new core.List<core.String>(); | 444 var o = new core.List<core.String>(); |
367 o.add("foo"); | 445 o.add("foo"); |
368 o.add("foo"); | 446 o.add("foo"); |
369 return o; | 447 return o; |
370 } | 448 } |
371 | 449 |
372 checkUnnamed1715(core.List<core.String> o) { | 450 checkUnnamed1806(core.List<core.String> o) { |
373 unittest.expect(o, unittest.hasLength(2)); | 451 unittest.expect(o, unittest.hasLength(2)); |
374 unittest.expect(o[0], unittest.equals('foo')); | 452 unittest.expect(o[0], unittest.equals('foo')); |
375 unittest.expect(o[1], unittest.equals('foo')); | 453 unittest.expect(o[1], unittest.equals('foo')); |
376 } | 454 } |
377 | 455 |
378 buildUnnamed1716() { | 456 buildUnnamed1807() { |
379 var o = new core.List<api.Operation>(); | 457 var o = new core.List<api.Operation>(); |
380 o.add(buildOperation()); | 458 o.add(buildOperation()); |
381 o.add(buildOperation()); | 459 o.add(buildOperation()); |
382 return o; | 460 return o; |
383 } | 461 } |
384 | 462 |
385 checkUnnamed1716(core.List<api.Operation> o) { | 463 checkUnnamed1807(core.List<api.Operation> o) { |
386 unittest.expect(o, unittest.hasLength(2)); | 464 unittest.expect(o, unittest.hasLength(2)); |
387 checkOperation(o[0]); | 465 checkOperation(o[0]); |
388 checkOperation(o[1]); | 466 checkOperation(o[1]); |
389 } | 467 } |
390 | 468 |
391 core.int buildCounterListOperationsResponse = 0; | 469 core.int buildCounterListOperationsResponse = 0; |
392 buildListOperationsResponse() { | 470 buildListOperationsResponse() { |
393 var o = new api.ListOperationsResponse(); | 471 var o = new api.ListOperationsResponse(); |
394 buildCounterListOperationsResponse++; | 472 buildCounterListOperationsResponse++; |
395 if (buildCounterListOperationsResponse < 3) { | 473 if (buildCounterListOperationsResponse < 3) { |
396 o.missingZones = buildUnnamed1715(); | 474 o.missingZones = buildUnnamed1806(); |
397 o.operations = buildUnnamed1716(); | 475 o.operations = buildUnnamed1807(); |
398 } | 476 } |
399 buildCounterListOperationsResponse--; | 477 buildCounterListOperationsResponse--; |
400 return o; | 478 return o; |
401 } | 479 } |
402 | 480 |
403 checkListOperationsResponse(api.ListOperationsResponse o) { | 481 checkListOperationsResponse(api.ListOperationsResponse o) { |
404 buildCounterListOperationsResponse++; | 482 buildCounterListOperationsResponse++; |
405 if (buildCounterListOperationsResponse < 3) { | 483 if (buildCounterListOperationsResponse < 3) { |
406 checkUnnamed1715(o.missingZones); | 484 checkUnnamed1806(o.missingZones); |
407 checkUnnamed1716(o.operations); | 485 checkUnnamed1807(o.operations); |
408 } | 486 } |
409 buildCounterListOperationsResponse--; | 487 buildCounterListOperationsResponse--; |
410 } | 488 } |
411 | 489 |
412 core.int buildCounterMasterAuth = 0; | 490 core.int buildCounterMasterAuth = 0; |
413 buildMasterAuth() { | 491 buildMasterAuth() { |
414 var o = new api.MasterAuth(); | 492 var o = new api.MasterAuth(); |
415 buildCounterMasterAuth++; | 493 buildCounterMasterAuth++; |
416 if (buildCounterMasterAuth < 3) { | 494 if (buildCounterMasterAuth < 3) { |
417 o.clientCertificate = "foo"; | 495 o.clientCertificate = "foo"; |
(...skipping 11 matching lines...) Expand all Loading... |
429 if (buildCounterMasterAuth < 3) { | 507 if (buildCounterMasterAuth < 3) { |
430 unittest.expect(o.clientCertificate, unittest.equals('foo')); | 508 unittest.expect(o.clientCertificate, unittest.equals('foo')); |
431 unittest.expect(o.clientKey, unittest.equals('foo')); | 509 unittest.expect(o.clientKey, unittest.equals('foo')); |
432 unittest.expect(o.clusterCaCertificate, unittest.equals('foo')); | 510 unittest.expect(o.clusterCaCertificate, unittest.equals('foo')); |
433 unittest.expect(o.password, unittest.equals('foo')); | 511 unittest.expect(o.password, unittest.equals('foo')); |
434 unittest.expect(o.username, unittest.equals('foo')); | 512 unittest.expect(o.username, unittest.equals('foo')); |
435 } | 513 } |
436 buildCounterMasterAuth--; | 514 buildCounterMasterAuth--; |
437 } | 515 } |
438 | 516 |
439 buildUnnamed1717() { | 517 buildUnnamed1808() { |
440 var o = new core.Map<core.String, core.String>(); | 518 var o = new core.Map<core.String, core.String>(); |
441 o["x"] = "foo"; | 519 o["x"] = "foo"; |
442 o["y"] = "foo"; | 520 o["y"] = "foo"; |
443 return o; | 521 return o; |
444 } | 522 } |
445 | 523 |
446 checkUnnamed1717(core.Map<core.String, core.String> o) { | 524 checkUnnamed1808(core.Map<core.String, core.String> o) { |
447 unittest.expect(o, unittest.hasLength(2)); | 525 unittest.expect(o, unittest.hasLength(2)); |
448 unittest.expect(o["x"], unittest.equals('foo')); | 526 unittest.expect(o["x"], unittest.equals('foo')); |
449 unittest.expect(o["y"], unittest.equals('foo')); | 527 unittest.expect(o["y"], unittest.equals('foo')); |
450 } | 528 } |
451 | 529 |
452 buildUnnamed1718() { | 530 buildUnnamed1809() { |
| 531 var o = new core.Map<core.String, core.String>(); |
| 532 o["x"] = "foo"; |
| 533 o["y"] = "foo"; |
| 534 return o; |
| 535 } |
| 536 |
| 537 checkUnnamed1809(core.Map<core.String, core.String> o) { |
| 538 unittest.expect(o, unittest.hasLength(2)); |
| 539 unittest.expect(o["x"], unittest.equals('foo')); |
| 540 unittest.expect(o["y"], unittest.equals('foo')); |
| 541 } |
| 542 |
| 543 buildUnnamed1810() { |
453 var o = new core.List<core.String>(); | 544 var o = new core.List<core.String>(); |
454 o.add("foo"); | 545 o.add("foo"); |
455 o.add("foo"); | 546 o.add("foo"); |
456 return o; | 547 return o; |
457 } | 548 } |
458 | 549 |
459 checkUnnamed1718(core.List<core.String> o) { | 550 checkUnnamed1810(core.List<core.String> o) { |
460 unittest.expect(o, unittest.hasLength(2)); | 551 unittest.expect(o, unittest.hasLength(2)); |
461 unittest.expect(o[0], unittest.equals('foo')); | 552 unittest.expect(o[0], unittest.equals('foo')); |
462 unittest.expect(o[1], unittest.equals('foo')); | 553 unittest.expect(o[1], unittest.equals('foo')); |
| 554 } |
| 555 |
| 556 buildUnnamed1811() { |
| 557 var o = new core.List<core.String>(); |
| 558 o.add("foo"); |
| 559 o.add("foo"); |
| 560 return o; |
| 561 } |
| 562 |
| 563 checkUnnamed1811(core.List<core.String> o) { |
| 564 unittest.expect(o, unittest.hasLength(2)); |
| 565 unittest.expect(o[0], unittest.equals('foo')); |
| 566 unittest.expect(o[1], unittest.equals('foo')); |
463 } | 567 } |
464 | 568 |
465 core.int buildCounterNodeConfig = 0; | 569 core.int buildCounterNodeConfig = 0; |
466 buildNodeConfig() { | 570 buildNodeConfig() { |
467 var o = new api.NodeConfig(); | 571 var o = new api.NodeConfig(); |
468 buildCounterNodeConfig++; | 572 buildCounterNodeConfig++; |
469 if (buildCounterNodeConfig < 3) { | 573 if (buildCounterNodeConfig < 3) { |
470 o.diskSizeGb = 42; | 574 o.diskSizeGb = 42; |
| 575 o.imageType = "foo"; |
| 576 o.labels = buildUnnamed1808(); |
| 577 o.localSsdCount = 42; |
471 o.machineType = "foo"; | 578 o.machineType = "foo"; |
472 o.metadata = buildUnnamed1717(); | 579 o.metadata = buildUnnamed1809(); |
473 o.oauthScopes = buildUnnamed1718(); | 580 o.oauthScopes = buildUnnamed1810(); |
| 581 o.preemptible = true; |
| 582 o.serviceAccount = "foo"; |
| 583 o.tags = buildUnnamed1811(); |
474 } | 584 } |
475 buildCounterNodeConfig--; | 585 buildCounterNodeConfig--; |
476 return o; | 586 return o; |
477 } | 587 } |
478 | 588 |
479 checkNodeConfig(api.NodeConfig o) { | 589 checkNodeConfig(api.NodeConfig o) { |
480 buildCounterNodeConfig++; | 590 buildCounterNodeConfig++; |
481 if (buildCounterNodeConfig < 3) { | 591 if (buildCounterNodeConfig < 3) { |
482 unittest.expect(o.diskSizeGb, unittest.equals(42)); | 592 unittest.expect(o.diskSizeGb, unittest.equals(42)); |
| 593 unittest.expect(o.imageType, unittest.equals('foo')); |
| 594 checkUnnamed1808(o.labels); |
| 595 unittest.expect(o.localSsdCount, unittest.equals(42)); |
483 unittest.expect(o.machineType, unittest.equals('foo')); | 596 unittest.expect(o.machineType, unittest.equals('foo')); |
484 checkUnnamed1717(o.metadata); | 597 checkUnnamed1809(o.metadata); |
485 checkUnnamed1718(o.oauthScopes); | 598 checkUnnamed1810(o.oauthScopes); |
| 599 unittest.expect(o.preemptible, unittest.isTrue); |
| 600 unittest.expect(o.serviceAccount, unittest.equals('foo')); |
| 601 checkUnnamed1811(o.tags); |
486 } | 602 } |
487 buildCounterNodeConfig--; | 603 buildCounterNodeConfig--; |
488 } | 604 } |
489 | 605 |
490 buildUnnamed1719() { | 606 core.int buildCounterNodeManagement = 0; |
| 607 buildNodeManagement() { |
| 608 var o = new api.NodeManagement(); |
| 609 buildCounterNodeManagement++; |
| 610 if (buildCounterNodeManagement < 3) { |
| 611 o.autoUpgrade = true; |
| 612 o.upgradeOptions = buildAutoUpgradeOptions(); |
| 613 } |
| 614 buildCounterNodeManagement--; |
| 615 return o; |
| 616 } |
| 617 |
| 618 checkNodeManagement(api.NodeManagement o) { |
| 619 buildCounterNodeManagement++; |
| 620 if (buildCounterNodeManagement < 3) { |
| 621 unittest.expect(o.autoUpgrade, unittest.isTrue); |
| 622 checkAutoUpgradeOptions(o.upgradeOptions); |
| 623 } |
| 624 buildCounterNodeManagement--; |
| 625 } |
| 626 |
| 627 buildUnnamed1812() { |
491 var o = new core.List<core.String>(); | 628 var o = new core.List<core.String>(); |
492 o.add("foo"); | 629 o.add("foo"); |
493 o.add("foo"); | 630 o.add("foo"); |
494 return o; | 631 return o; |
495 } | 632 } |
496 | 633 |
497 checkUnnamed1719(core.List<core.String> o) { | 634 checkUnnamed1812(core.List<core.String> o) { |
498 unittest.expect(o, unittest.hasLength(2)); | 635 unittest.expect(o, unittest.hasLength(2)); |
499 unittest.expect(o[0], unittest.equals('foo')); | 636 unittest.expect(o[0], unittest.equals('foo')); |
500 unittest.expect(o[1], unittest.equals('foo')); | 637 unittest.expect(o[1], unittest.equals('foo')); |
501 } | 638 } |
502 | 639 |
503 core.int buildCounterNodePool = 0; | 640 core.int buildCounterNodePool = 0; |
504 buildNodePool() { | 641 buildNodePool() { |
505 var o = new api.NodePool(); | 642 var o = new api.NodePool(); |
506 buildCounterNodePool++; | 643 buildCounterNodePool++; |
507 if (buildCounterNodePool < 3) { | 644 if (buildCounterNodePool < 3) { |
| 645 o.autoscaling = buildNodePoolAutoscaling(); |
508 o.config = buildNodeConfig(); | 646 o.config = buildNodeConfig(); |
509 o.initialNodeCount = 42; | 647 o.initialNodeCount = 42; |
510 o.instanceGroupUrls = buildUnnamed1719(); | 648 o.instanceGroupUrls = buildUnnamed1812(); |
| 649 o.management = buildNodeManagement(); |
511 o.name = "foo"; | 650 o.name = "foo"; |
512 o.selfLink = "foo"; | 651 o.selfLink = "foo"; |
513 o.status = "foo"; | 652 o.status = "foo"; |
514 o.statusMessage = "foo"; | 653 o.statusMessage = "foo"; |
515 o.version = "foo"; | 654 o.version = "foo"; |
516 } | 655 } |
517 buildCounterNodePool--; | 656 buildCounterNodePool--; |
518 return o; | 657 return o; |
519 } | 658 } |
520 | 659 |
521 checkNodePool(api.NodePool o) { | 660 checkNodePool(api.NodePool o) { |
522 buildCounterNodePool++; | 661 buildCounterNodePool++; |
523 if (buildCounterNodePool < 3) { | 662 if (buildCounterNodePool < 3) { |
| 663 checkNodePoolAutoscaling(o.autoscaling); |
524 checkNodeConfig(o.config); | 664 checkNodeConfig(o.config); |
525 unittest.expect(o.initialNodeCount, unittest.equals(42)); | 665 unittest.expect(o.initialNodeCount, unittest.equals(42)); |
526 checkUnnamed1719(o.instanceGroupUrls); | 666 checkUnnamed1812(o.instanceGroupUrls); |
| 667 checkNodeManagement(o.management); |
527 unittest.expect(o.name, unittest.equals('foo')); | 668 unittest.expect(o.name, unittest.equals('foo')); |
528 unittest.expect(o.selfLink, unittest.equals('foo')); | 669 unittest.expect(o.selfLink, unittest.equals('foo')); |
529 unittest.expect(o.status, unittest.equals('foo')); | 670 unittest.expect(o.status, unittest.equals('foo')); |
530 unittest.expect(o.statusMessage, unittest.equals('foo')); | 671 unittest.expect(o.statusMessage, unittest.equals('foo')); |
531 unittest.expect(o.version, unittest.equals('foo')); | 672 unittest.expect(o.version, unittest.equals('foo')); |
532 } | 673 } |
533 buildCounterNodePool--; | 674 buildCounterNodePool--; |
534 } | 675 } |
535 | 676 |
| 677 core.int buildCounterNodePoolAutoscaling = 0; |
| 678 buildNodePoolAutoscaling() { |
| 679 var o = new api.NodePoolAutoscaling(); |
| 680 buildCounterNodePoolAutoscaling++; |
| 681 if (buildCounterNodePoolAutoscaling < 3) { |
| 682 o.enabled = true; |
| 683 o.maxNodeCount = 42; |
| 684 o.minNodeCount = 42; |
| 685 } |
| 686 buildCounterNodePoolAutoscaling--; |
| 687 return o; |
| 688 } |
| 689 |
| 690 checkNodePoolAutoscaling(api.NodePoolAutoscaling o) { |
| 691 buildCounterNodePoolAutoscaling++; |
| 692 if (buildCounterNodePoolAutoscaling < 3) { |
| 693 unittest.expect(o.enabled, unittest.isTrue); |
| 694 unittest.expect(o.maxNodeCount, unittest.equals(42)); |
| 695 unittest.expect(o.minNodeCount, unittest.equals(42)); |
| 696 } |
| 697 buildCounterNodePoolAutoscaling--; |
| 698 } |
| 699 |
536 core.int buildCounterOperation = 0; | 700 core.int buildCounterOperation = 0; |
537 buildOperation() { | 701 buildOperation() { |
538 var o = new api.Operation(); | 702 var o = new api.Operation(); |
539 buildCounterOperation++; | 703 buildCounterOperation++; |
540 if (buildCounterOperation < 3) { | 704 if (buildCounterOperation < 3) { |
541 o.detail = "foo"; | 705 o.detail = "foo"; |
542 o.name = "foo"; | 706 o.name = "foo"; |
543 o.operationType = "foo"; | 707 o.operationType = "foo"; |
544 o.selfLink = "foo"; | 708 o.selfLink = "foo"; |
545 o.status = "foo"; | 709 o.status = "foo"; |
(...skipping 13 matching lines...) Expand all Loading... |
559 unittest.expect(o.operationType, unittest.equals('foo')); | 723 unittest.expect(o.operationType, unittest.equals('foo')); |
560 unittest.expect(o.selfLink, unittest.equals('foo')); | 724 unittest.expect(o.selfLink, unittest.equals('foo')); |
561 unittest.expect(o.status, unittest.equals('foo')); | 725 unittest.expect(o.status, unittest.equals('foo')); |
562 unittest.expect(o.statusMessage, unittest.equals('foo')); | 726 unittest.expect(o.statusMessage, unittest.equals('foo')); |
563 unittest.expect(o.targetLink, unittest.equals('foo')); | 727 unittest.expect(o.targetLink, unittest.equals('foo')); |
564 unittest.expect(o.zone, unittest.equals('foo')); | 728 unittest.expect(o.zone, unittest.equals('foo')); |
565 } | 729 } |
566 buildCounterOperation--; | 730 buildCounterOperation--; |
567 } | 731 } |
568 | 732 |
569 buildUnnamed1720() { | 733 core.int buildCounterRollbackNodePoolUpgradeRequest = 0; |
| 734 buildRollbackNodePoolUpgradeRequest() { |
| 735 var o = new api.RollbackNodePoolUpgradeRequest(); |
| 736 buildCounterRollbackNodePoolUpgradeRequest++; |
| 737 if (buildCounterRollbackNodePoolUpgradeRequest < 3) { |
| 738 } |
| 739 buildCounterRollbackNodePoolUpgradeRequest--; |
| 740 return o; |
| 741 } |
| 742 |
| 743 checkRollbackNodePoolUpgradeRequest(api.RollbackNodePoolUpgradeRequest o) { |
| 744 buildCounterRollbackNodePoolUpgradeRequest++; |
| 745 if (buildCounterRollbackNodePoolUpgradeRequest < 3) { |
| 746 } |
| 747 buildCounterRollbackNodePoolUpgradeRequest--; |
| 748 } |
| 749 |
| 750 buildUnnamed1813() { |
570 var o = new core.List<core.String>(); | 751 var o = new core.List<core.String>(); |
571 o.add("foo"); | 752 o.add("foo"); |
572 o.add("foo"); | 753 o.add("foo"); |
573 return o; | 754 return o; |
574 } | 755 } |
575 | 756 |
576 checkUnnamed1720(core.List<core.String> o) { | 757 checkUnnamed1813(core.List<core.String> o) { |
577 unittest.expect(o, unittest.hasLength(2)); | 758 unittest.expect(o, unittest.hasLength(2)); |
578 unittest.expect(o[0], unittest.equals('foo')); | 759 unittest.expect(o[0], unittest.equals('foo')); |
579 unittest.expect(o[1], unittest.equals('foo')); | 760 unittest.expect(o[1], unittest.equals('foo')); |
580 } | 761 } |
581 | 762 |
582 buildUnnamed1721() { | 763 buildUnnamed1814() { |
583 var o = new core.List<core.String>(); | 764 var o = new core.List<core.String>(); |
584 o.add("foo"); | 765 o.add("foo"); |
585 o.add("foo"); | 766 o.add("foo"); |
586 return o; | 767 return o; |
587 } | 768 } |
588 | 769 |
589 checkUnnamed1721(core.List<core.String> o) { | 770 checkUnnamed1814(core.List<core.String> o) { |
590 unittest.expect(o, unittest.hasLength(2)); | 771 unittest.expect(o, unittest.hasLength(2)); |
591 unittest.expect(o[0], unittest.equals('foo')); | 772 unittest.expect(o[0], unittest.equals('foo')); |
592 unittest.expect(o[1], unittest.equals('foo')); | 773 unittest.expect(o[1], unittest.equals('foo')); |
| 774 } |
| 775 |
| 776 buildUnnamed1815() { |
| 777 var o = new core.List<core.String>(); |
| 778 o.add("foo"); |
| 779 o.add("foo"); |
| 780 return o; |
| 781 } |
| 782 |
| 783 checkUnnamed1815(core.List<core.String> o) { |
| 784 unittest.expect(o, unittest.hasLength(2)); |
| 785 unittest.expect(o[0], unittest.equals('foo')); |
| 786 unittest.expect(o[1], unittest.equals('foo')); |
593 } | 787 } |
594 | 788 |
595 core.int buildCounterServerConfig = 0; | 789 core.int buildCounterServerConfig = 0; |
596 buildServerConfig() { | 790 buildServerConfig() { |
597 var o = new api.ServerConfig(); | 791 var o = new api.ServerConfig(); |
598 buildCounterServerConfig++; | 792 buildCounterServerConfig++; |
599 if (buildCounterServerConfig < 3) { | 793 if (buildCounterServerConfig < 3) { |
600 o.defaultClusterVersion = "foo"; | 794 o.defaultClusterVersion = "foo"; |
601 o.defaultImageFamily = "foo"; | 795 o.defaultImageType = "foo"; |
602 o.validImageFamilies = buildUnnamed1720(); | 796 o.validImageTypes = buildUnnamed1813(); |
603 o.validNodeVersions = buildUnnamed1721(); | 797 o.validMasterVersions = buildUnnamed1814(); |
| 798 o.validNodeVersions = buildUnnamed1815(); |
604 } | 799 } |
605 buildCounterServerConfig--; | 800 buildCounterServerConfig--; |
606 return o; | 801 return o; |
607 } | 802 } |
608 | 803 |
609 checkServerConfig(api.ServerConfig o) { | 804 checkServerConfig(api.ServerConfig o) { |
610 buildCounterServerConfig++; | 805 buildCounterServerConfig++; |
611 if (buildCounterServerConfig < 3) { | 806 if (buildCounterServerConfig < 3) { |
612 unittest.expect(o.defaultClusterVersion, unittest.equals('foo')); | 807 unittest.expect(o.defaultClusterVersion, unittest.equals('foo')); |
613 unittest.expect(o.defaultImageFamily, unittest.equals('foo')); | 808 unittest.expect(o.defaultImageType, unittest.equals('foo')); |
614 checkUnnamed1720(o.validImageFamilies); | 809 checkUnnamed1813(o.validImageTypes); |
615 checkUnnamed1721(o.validNodeVersions); | 810 checkUnnamed1814(o.validMasterVersions); |
| 811 checkUnnamed1815(o.validNodeVersions); |
616 } | 812 } |
617 buildCounterServerConfig--; | 813 buildCounterServerConfig--; |
618 } | 814 } |
619 | 815 |
| 816 core.int buildCounterSetNodePoolManagementRequest = 0; |
| 817 buildSetNodePoolManagementRequest() { |
| 818 var o = new api.SetNodePoolManagementRequest(); |
| 819 buildCounterSetNodePoolManagementRequest++; |
| 820 if (buildCounterSetNodePoolManagementRequest < 3) { |
| 821 o.management = buildNodeManagement(); |
| 822 } |
| 823 buildCounterSetNodePoolManagementRequest--; |
| 824 return o; |
| 825 } |
| 826 |
| 827 checkSetNodePoolManagementRequest(api.SetNodePoolManagementRequest o) { |
| 828 buildCounterSetNodePoolManagementRequest++; |
| 829 if (buildCounterSetNodePoolManagementRequest < 3) { |
| 830 checkNodeManagement(o.management); |
| 831 } |
| 832 buildCounterSetNodePoolManagementRequest--; |
| 833 } |
| 834 |
620 core.int buildCounterUpdateClusterRequest = 0; | 835 core.int buildCounterUpdateClusterRequest = 0; |
621 buildUpdateClusterRequest() { | 836 buildUpdateClusterRequest() { |
622 var o = new api.UpdateClusterRequest(); | 837 var o = new api.UpdateClusterRequest(); |
623 buildCounterUpdateClusterRequest++; | 838 buildCounterUpdateClusterRequest++; |
624 if (buildCounterUpdateClusterRequest < 3) { | 839 if (buildCounterUpdateClusterRequest < 3) { |
625 o.update = buildClusterUpdate(); | 840 o.update = buildClusterUpdate(); |
626 } | 841 } |
627 buildCounterUpdateClusterRequest--; | 842 buildCounterUpdateClusterRequest--; |
628 return o; | 843 return o; |
629 } | 844 } |
(...skipping 10 matching lines...) Expand all Loading... |
640 main() { | 855 main() { |
641 unittest.group("obj-schema-AddonsConfig", () { | 856 unittest.group("obj-schema-AddonsConfig", () { |
642 unittest.test("to-json--from-json", () { | 857 unittest.test("to-json--from-json", () { |
643 var o = buildAddonsConfig(); | 858 var o = buildAddonsConfig(); |
644 var od = new api.AddonsConfig.fromJson(o.toJson()); | 859 var od = new api.AddonsConfig.fromJson(o.toJson()); |
645 checkAddonsConfig(od); | 860 checkAddonsConfig(od); |
646 }); | 861 }); |
647 }); | 862 }); |
648 | 863 |
649 | 864 |
| 865 unittest.group("obj-schema-AutoUpgradeOptions", () { |
| 866 unittest.test("to-json--from-json", () { |
| 867 var o = buildAutoUpgradeOptions(); |
| 868 var od = new api.AutoUpgradeOptions.fromJson(o.toJson()); |
| 869 checkAutoUpgradeOptions(od); |
| 870 }); |
| 871 }); |
| 872 |
| 873 |
| 874 unittest.group("obj-schema-CancelOperationRequest", () { |
| 875 unittest.test("to-json--from-json", () { |
| 876 var o = buildCancelOperationRequest(); |
| 877 var od = new api.CancelOperationRequest.fromJson(o.toJson()); |
| 878 checkCancelOperationRequest(od); |
| 879 }); |
| 880 }); |
| 881 |
| 882 |
650 unittest.group("obj-schema-Cluster", () { | 883 unittest.group("obj-schema-Cluster", () { |
651 unittest.test("to-json--from-json", () { | 884 unittest.test("to-json--from-json", () { |
652 var o = buildCluster(); | 885 var o = buildCluster(); |
653 var od = new api.Cluster.fromJson(o.toJson()); | 886 var od = new api.Cluster.fromJson(o.toJson()); |
654 checkCluster(od); | 887 checkCluster(od); |
655 }); | 888 }); |
656 }); | 889 }); |
657 | 890 |
658 | 891 |
659 unittest.group("obj-schema-ClusterUpdate", () { | 892 unittest.group("obj-schema-ClusterUpdate", () { |
(...skipping 16 matching lines...) Expand all Loading... |
676 | 909 |
677 unittest.group("obj-schema-CreateNodePoolRequest", () { | 910 unittest.group("obj-schema-CreateNodePoolRequest", () { |
678 unittest.test("to-json--from-json", () { | 911 unittest.test("to-json--from-json", () { |
679 var o = buildCreateNodePoolRequest(); | 912 var o = buildCreateNodePoolRequest(); |
680 var od = new api.CreateNodePoolRequest.fromJson(o.toJson()); | 913 var od = new api.CreateNodePoolRequest.fromJson(o.toJson()); |
681 checkCreateNodePoolRequest(od); | 914 checkCreateNodePoolRequest(od); |
682 }); | 915 }); |
683 }); | 916 }); |
684 | 917 |
685 | 918 |
| 919 unittest.group("obj-schema-Empty", () { |
| 920 unittest.test("to-json--from-json", () { |
| 921 var o = buildEmpty(); |
| 922 var od = new api.Empty.fromJson(o.toJson()); |
| 923 checkEmpty(od); |
| 924 }); |
| 925 }); |
| 926 |
| 927 |
686 unittest.group("obj-schema-HorizontalPodAutoscaling", () { | 928 unittest.group("obj-schema-HorizontalPodAutoscaling", () { |
687 unittest.test("to-json--from-json", () { | 929 unittest.test("to-json--from-json", () { |
688 var o = buildHorizontalPodAutoscaling(); | 930 var o = buildHorizontalPodAutoscaling(); |
689 var od = new api.HorizontalPodAutoscaling.fromJson(o.toJson()); | 931 var od = new api.HorizontalPodAutoscaling.fromJson(o.toJson()); |
690 checkHorizontalPodAutoscaling(od); | 932 checkHorizontalPodAutoscaling(od); |
691 }); | 933 }); |
692 }); | 934 }); |
693 | 935 |
694 | 936 |
695 unittest.group("obj-schema-HttpLoadBalancing", () { | 937 unittest.group("obj-schema-HttpLoadBalancing", () { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 | 981 |
740 unittest.group("obj-schema-NodeConfig", () { | 982 unittest.group("obj-schema-NodeConfig", () { |
741 unittest.test("to-json--from-json", () { | 983 unittest.test("to-json--from-json", () { |
742 var o = buildNodeConfig(); | 984 var o = buildNodeConfig(); |
743 var od = new api.NodeConfig.fromJson(o.toJson()); | 985 var od = new api.NodeConfig.fromJson(o.toJson()); |
744 checkNodeConfig(od); | 986 checkNodeConfig(od); |
745 }); | 987 }); |
746 }); | 988 }); |
747 | 989 |
748 | 990 |
| 991 unittest.group("obj-schema-NodeManagement", () { |
| 992 unittest.test("to-json--from-json", () { |
| 993 var o = buildNodeManagement(); |
| 994 var od = new api.NodeManagement.fromJson(o.toJson()); |
| 995 checkNodeManagement(od); |
| 996 }); |
| 997 }); |
| 998 |
| 999 |
749 unittest.group("obj-schema-NodePool", () { | 1000 unittest.group("obj-schema-NodePool", () { |
750 unittest.test("to-json--from-json", () { | 1001 unittest.test("to-json--from-json", () { |
751 var o = buildNodePool(); | 1002 var o = buildNodePool(); |
752 var od = new api.NodePool.fromJson(o.toJson()); | 1003 var od = new api.NodePool.fromJson(o.toJson()); |
753 checkNodePool(od); | 1004 checkNodePool(od); |
754 }); | 1005 }); |
755 }); | 1006 }); |
756 | 1007 |
757 | 1008 |
| 1009 unittest.group("obj-schema-NodePoolAutoscaling", () { |
| 1010 unittest.test("to-json--from-json", () { |
| 1011 var o = buildNodePoolAutoscaling(); |
| 1012 var od = new api.NodePoolAutoscaling.fromJson(o.toJson()); |
| 1013 checkNodePoolAutoscaling(od); |
| 1014 }); |
| 1015 }); |
| 1016 |
| 1017 |
758 unittest.group("obj-schema-Operation", () { | 1018 unittest.group("obj-schema-Operation", () { |
759 unittest.test("to-json--from-json", () { | 1019 unittest.test("to-json--from-json", () { |
760 var o = buildOperation(); | 1020 var o = buildOperation(); |
761 var od = new api.Operation.fromJson(o.toJson()); | 1021 var od = new api.Operation.fromJson(o.toJson()); |
762 checkOperation(od); | 1022 checkOperation(od); |
763 }); | 1023 }); |
764 }); | 1024 }); |
765 | 1025 |
766 | 1026 |
| 1027 unittest.group("obj-schema-RollbackNodePoolUpgradeRequest", () { |
| 1028 unittest.test("to-json--from-json", () { |
| 1029 var o = buildRollbackNodePoolUpgradeRequest(); |
| 1030 var od = new api.RollbackNodePoolUpgradeRequest.fromJson(o.toJson()); |
| 1031 checkRollbackNodePoolUpgradeRequest(od); |
| 1032 }); |
| 1033 }); |
| 1034 |
| 1035 |
767 unittest.group("obj-schema-ServerConfig", () { | 1036 unittest.group("obj-schema-ServerConfig", () { |
768 unittest.test("to-json--from-json", () { | 1037 unittest.test("to-json--from-json", () { |
769 var o = buildServerConfig(); | 1038 var o = buildServerConfig(); |
770 var od = new api.ServerConfig.fromJson(o.toJson()); | 1039 var od = new api.ServerConfig.fromJson(o.toJson()); |
771 checkServerConfig(od); | 1040 checkServerConfig(od); |
772 }); | 1041 }); |
773 }); | 1042 }); |
774 | 1043 |
775 | 1044 |
| 1045 unittest.group("obj-schema-SetNodePoolManagementRequest", () { |
| 1046 unittest.test("to-json--from-json", () { |
| 1047 var o = buildSetNodePoolManagementRequest(); |
| 1048 var od = new api.SetNodePoolManagementRequest.fromJson(o.toJson()); |
| 1049 checkSetNodePoolManagementRequest(od); |
| 1050 }); |
| 1051 }); |
| 1052 |
| 1053 |
776 unittest.group("obj-schema-UpdateClusterRequest", () { | 1054 unittest.group("obj-schema-UpdateClusterRequest", () { |
777 unittest.test("to-json--from-json", () { | 1055 unittest.test("to-json--from-json", () { |
778 var o = buildUpdateClusterRequest(); | 1056 var o = buildUpdateClusterRequest(); |
779 var od = new api.UpdateClusterRequest.fromJson(o.toJson()); | 1057 var od = new api.UpdateClusterRequest.fromJson(o.toJson()); |
780 checkUpdateClusterRequest(od); | 1058 checkUpdateClusterRequest(od); |
781 }); | 1059 }); |
782 }); | 1060 }); |
783 | 1061 |
784 | 1062 |
785 unittest.group("resource-ProjectsZonesResourceApi", () { | 1063 unittest.group("resource-ProjectsZonesResourceApi", () { |
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1438 "content-type" : "application/json; charset=utf-8", | 1716 "content-type" : "application/json; charset=utf-8", |
1439 }; | 1717 }; |
1440 var resp = convert.JSON.encode(buildListNodePoolsResponse()); | 1718 var resp = convert.JSON.encode(buildListNodePoolsResponse()); |
1441 return new async.Future.value(stringResponse(200, h, resp)); | 1719 return new async.Future.value(stringResponse(200, h, resp)); |
1442 }), true); | 1720 }), true); |
1443 res.list(arg_projectId, arg_zone, arg_clusterId).then(unittest.expectAsync
(((api.ListNodePoolsResponse response) { | 1721 res.list(arg_projectId, arg_zone, arg_clusterId).then(unittest.expectAsync
(((api.ListNodePoolsResponse response) { |
1444 checkListNodePoolsResponse(response); | 1722 checkListNodePoolsResponse(response); |
1445 }))); | 1723 }))); |
1446 }); | 1724 }); |
1447 | 1725 |
| 1726 unittest.test("method--rollback", () { |
| 1727 |
| 1728 var mock = new HttpServerMock(); |
| 1729 api.ProjectsZonesClustersNodePoolsResourceApi res = new api.ContainerApi(m
ock).projects.zones.clusters.nodePools; |
| 1730 var arg_request = buildRollbackNodePoolUpgradeRequest(); |
| 1731 var arg_projectId = "foo"; |
| 1732 var arg_zone = "foo"; |
| 1733 var arg_clusterId = "foo"; |
| 1734 var arg_nodePoolId = "foo"; |
| 1735 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1736 var obj = new api.RollbackNodePoolUpgradeRequest.fromJson(json); |
| 1737 checkRollbackNodePoolUpgradeRequest(obj); |
| 1738 |
| 1739 var path = (req.url).path; |
| 1740 var pathOffset = 0; |
| 1741 var index; |
| 1742 var subPart; |
| 1743 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1744 pathOffset += 1; |
| 1745 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
| 1746 pathOffset += 12; |
| 1747 index = path.indexOf("/zones/", pathOffset); |
| 1748 unittest.expect(index >= 0, unittest.isTrue); |
| 1749 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 1750 pathOffset = index; |
| 1751 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 1752 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/zones/")); |
| 1753 pathOffset += 7; |
| 1754 index = path.indexOf("/clusters/", pathOffset); |
| 1755 unittest.expect(index >= 0, unittest.isTrue); |
| 1756 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 1757 pathOffset = index; |
| 1758 unittest.expect(subPart, unittest.equals("$arg_zone")); |
| 1759 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/clusters/")); |
| 1760 pathOffset += 10; |
| 1761 index = path.indexOf("/nodePools/", pathOffset); |
| 1762 unittest.expect(index >= 0, unittest.isTrue); |
| 1763 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 1764 pathOffset = index; |
| 1765 unittest.expect(subPart, unittest.equals("$arg_clusterId")); |
| 1766 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/nodePools/")); |
| 1767 pathOffset += 11; |
| 1768 index = path.indexOf(":rollback", pathOffset); |
| 1769 unittest.expect(index >= 0, unittest.isTrue); |
| 1770 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 1771 pathOffset = index; |
| 1772 unittest.expect(subPart, unittest.equals("$arg_nodePoolId")); |
| 1773 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als(":rollback")); |
| 1774 pathOffset += 9; |
| 1775 |
| 1776 var query = (req.url).query; |
| 1777 var queryOffset = 0; |
| 1778 var queryMap = {}; |
| 1779 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1780 parseBool(n) { |
| 1781 if (n == "true") return true; |
| 1782 if (n == "false") return false; |
| 1783 if (n == null) return null; |
| 1784 throw new core.ArgumentError("Invalid boolean: $n"); |
| 1785 } |
| 1786 if (query.length > 0) { |
| 1787 for (var part in query.split("&")) { |
| 1788 var keyvalue = part.split("="); |
| 1789 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 1790 } |
| 1791 } |
| 1792 |
| 1793 |
| 1794 var h = { |
| 1795 "content-type" : "application/json; charset=utf-8", |
| 1796 }; |
| 1797 var resp = convert.JSON.encode(buildOperation()); |
| 1798 return new async.Future.value(stringResponse(200, h, resp)); |
| 1799 }), true); |
| 1800 res.rollback(arg_request, arg_projectId, arg_zone, arg_clusterId, arg_node
PoolId).then(unittest.expectAsync(((api.Operation response) { |
| 1801 checkOperation(response); |
| 1802 }))); |
| 1803 }); |
| 1804 |
| 1805 unittest.test("method--setManagement", () { |
| 1806 |
| 1807 var mock = new HttpServerMock(); |
| 1808 api.ProjectsZonesClustersNodePoolsResourceApi res = new api.ContainerApi(m
ock).projects.zones.clusters.nodePools; |
| 1809 var arg_request = buildSetNodePoolManagementRequest(); |
| 1810 var arg_projectId = "foo"; |
| 1811 var arg_zone = "foo"; |
| 1812 var arg_clusterId = "foo"; |
| 1813 var arg_nodePoolId = "foo"; |
| 1814 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1815 var obj = new api.SetNodePoolManagementRequest.fromJson(json); |
| 1816 checkSetNodePoolManagementRequest(obj); |
| 1817 |
| 1818 var path = (req.url).path; |
| 1819 var pathOffset = 0; |
| 1820 var index; |
| 1821 var subPart; |
| 1822 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1823 pathOffset += 1; |
| 1824 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
| 1825 pathOffset += 12; |
| 1826 index = path.indexOf("/zones/", pathOffset); |
| 1827 unittest.expect(index >= 0, unittest.isTrue); |
| 1828 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 1829 pathOffset = index; |
| 1830 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 1831 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/zones/")); |
| 1832 pathOffset += 7; |
| 1833 index = path.indexOf("/clusters/", pathOffset); |
| 1834 unittest.expect(index >= 0, unittest.isTrue); |
| 1835 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 1836 pathOffset = index; |
| 1837 unittest.expect(subPart, unittest.equals("$arg_zone")); |
| 1838 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/clusters/")); |
| 1839 pathOffset += 10; |
| 1840 index = path.indexOf("/nodePools/", pathOffset); |
| 1841 unittest.expect(index >= 0, unittest.isTrue); |
| 1842 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 1843 pathOffset = index; |
| 1844 unittest.expect(subPart, unittest.equals("$arg_clusterId")); |
| 1845 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/nodePools/")); |
| 1846 pathOffset += 11; |
| 1847 index = path.indexOf("/setManagement", pathOffset); |
| 1848 unittest.expect(index >= 0, unittest.isTrue); |
| 1849 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 1850 pathOffset = index; |
| 1851 unittest.expect(subPart, unittest.equals("$arg_nodePoolId")); |
| 1852 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("/setManagement")); |
| 1853 pathOffset += 14; |
| 1854 |
| 1855 var query = (req.url).query; |
| 1856 var queryOffset = 0; |
| 1857 var queryMap = {}; |
| 1858 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1859 parseBool(n) { |
| 1860 if (n == "true") return true; |
| 1861 if (n == "false") return false; |
| 1862 if (n == null) return null; |
| 1863 throw new core.ArgumentError("Invalid boolean: $n"); |
| 1864 } |
| 1865 if (query.length > 0) { |
| 1866 for (var part in query.split("&")) { |
| 1867 var keyvalue = part.split("="); |
| 1868 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 1869 } |
| 1870 } |
| 1871 |
| 1872 |
| 1873 var h = { |
| 1874 "content-type" : "application/json; charset=utf-8", |
| 1875 }; |
| 1876 var resp = convert.JSON.encode(buildOperation()); |
| 1877 return new async.Future.value(stringResponse(200, h, resp)); |
| 1878 }), true); |
| 1879 res.setManagement(arg_request, arg_projectId, arg_zone, arg_clusterId, arg
_nodePoolId).then(unittest.expectAsync(((api.Operation response) { |
| 1880 checkOperation(response); |
| 1881 }))); |
| 1882 }); |
| 1883 |
1448 }); | 1884 }); |
1449 | 1885 |
1450 | 1886 |
1451 unittest.group("resource-ProjectsZonesOperationsResourceApi", () { | 1887 unittest.group("resource-ProjectsZonesOperationsResourceApi", () { |
| 1888 unittest.test("method--cancel", () { |
| 1889 |
| 1890 var mock = new HttpServerMock(); |
| 1891 api.ProjectsZonesOperationsResourceApi res = new api.ContainerApi(mock).pr
ojects.zones.operations; |
| 1892 var arg_request = buildCancelOperationRequest(); |
| 1893 var arg_projectId = "foo"; |
| 1894 var arg_zone = "foo"; |
| 1895 var arg_operationId = "foo"; |
| 1896 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1897 var obj = new api.CancelOperationRequest.fromJson(json); |
| 1898 checkCancelOperationRequest(obj); |
| 1899 |
| 1900 var path = (req.url).path; |
| 1901 var pathOffset = 0; |
| 1902 var index; |
| 1903 var subPart; |
| 1904 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1905 pathOffset += 1; |
| 1906 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
| 1907 pathOffset += 12; |
| 1908 index = path.indexOf("/zones/", pathOffset); |
| 1909 unittest.expect(index >= 0, unittest.isTrue); |
| 1910 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 1911 pathOffset = index; |
| 1912 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 1913 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/zones/")); |
| 1914 pathOffset += 7; |
| 1915 index = path.indexOf("/operations/", pathOffset); |
| 1916 unittest.expect(index >= 0, unittest.isTrue); |
| 1917 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 1918 pathOffset = index; |
| 1919 unittest.expect(subPart, unittest.equals("$arg_zone")); |
| 1920 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/operations/")); |
| 1921 pathOffset += 12; |
| 1922 index = path.indexOf(":cancel", pathOffset); |
| 1923 unittest.expect(index >= 0, unittest.isTrue); |
| 1924 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 1925 pathOffset = index; |
| 1926 unittest.expect(subPart, unittest.equals("$arg_operationId")); |
| 1927 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als(":cancel")); |
| 1928 pathOffset += 7; |
| 1929 |
| 1930 var query = (req.url).query; |
| 1931 var queryOffset = 0; |
| 1932 var queryMap = {}; |
| 1933 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1934 parseBool(n) { |
| 1935 if (n == "true") return true; |
| 1936 if (n == "false") return false; |
| 1937 if (n == null) return null; |
| 1938 throw new core.ArgumentError("Invalid boolean: $n"); |
| 1939 } |
| 1940 if (query.length > 0) { |
| 1941 for (var part in query.split("&")) { |
| 1942 var keyvalue = part.split("="); |
| 1943 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 1944 } |
| 1945 } |
| 1946 |
| 1947 |
| 1948 var h = { |
| 1949 "content-type" : "application/json; charset=utf-8", |
| 1950 }; |
| 1951 var resp = convert.JSON.encode(buildEmpty()); |
| 1952 return new async.Future.value(stringResponse(200, h, resp)); |
| 1953 }), true); |
| 1954 res.cancel(arg_request, arg_projectId, arg_zone, arg_operationId).then(uni
ttest.expectAsync(((api.Empty response) { |
| 1955 checkEmpty(response); |
| 1956 }))); |
| 1957 }); |
| 1958 |
1452 unittest.test("method--get", () { | 1959 unittest.test("method--get", () { |
1453 | 1960 |
1454 var mock = new HttpServerMock(); | 1961 var mock = new HttpServerMock(); |
1455 api.ProjectsZonesOperationsResourceApi res = new api.ContainerApi(mock).pr
ojects.zones.operations; | 1962 api.ProjectsZonesOperationsResourceApi res = new api.ContainerApi(mock).pr
ojects.zones.operations; |
1456 var arg_projectId = "foo"; | 1963 var arg_projectId = "foo"; |
1457 var arg_zone = "foo"; | 1964 var arg_zone = "foo"; |
1458 var arg_operationId = "foo"; | 1965 var arg_operationId = "foo"; |
1459 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1966 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1460 var path = (req.url).path; | 1967 var path = (req.url).path; |
1461 var pathOffset = 0; | 1968 var pathOffset = 0; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1569 res.list(arg_projectId, arg_zone).then(unittest.expectAsync(((api.ListOper
ationsResponse response) { | 2076 res.list(arg_projectId, arg_zone).then(unittest.expectAsync(((api.ListOper
ationsResponse response) { |
1570 checkListOperationsResponse(response); | 2077 checkListOperationsResponse(response); |
1571 }))); | 2078 }))); |
1572 }); | 2079 }); |
1573 | 2080 |
1574 }); | 2081 }); |
1575 | 2082 |
1576 | 2083 |
1577 } | 2084 } |
1578 | 2085 |
OLD | NEW |