Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: generated/googleapis/test/container/v1_test.dart

Issue 2824163002: Api-roll 48: 2017-04-18 (Closed)
Patch Set: Revert changes to pubspecs Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 return o; 103 return o;
104 } 104 }
105 105
106 checkCancelOperationRequest(api.CancelOperationRequest o) { 106 checkCancelOperationRequest(api.CancelOperationRequest o) {
107 buildCounterCancelOperationRequest++; 107 buildCounterCancelOperationRequest++;
108 if (buildCounterCancelOperationRequest < 3) { 108 if (buildCounterCancelOperationRequest < 3) {
109 } 109 }
110 buildCounterCancelOperationRequest--; 110 buildCounterCancelOperationRequest--;
111 } 111 }
112 112
113 buildUnnamed1637() {
114 var o = new core.List<core.String>();
115 o.add("foo");
116 o.add("foo");
117 return o;
118 }
119
120 checkUnnamed1637(core.List<core.String> o) {
121 unittest.expect(o, unittest.hasLength(2));
122 unittest.expect(o[0], unittest.equals('foo'));
123 unittest.expect(o[1], unittest.equals('foo'));
124 }
125
126 buildUnnamed1638() { 113 buildUnnamed1638() {
127 var o = new core.List<core.String>(); 114 var o = new core.List<core.String>();
128 o.add("foo"); 115 o.add("foo");
129 o.add("foo"); 116 o.add("foo");
130 return o; 117 return o;
131 } 118 }
132 119
133 checkUnnamed1638(core.List<core.String> o) { 120 checkUnnamed1638(core.List<core.String> o) {
134 unittest.expect(o, unittest.hasLength(2)); 121 unittest.expect(o, unittest.hasLength(2));
135 unittest.expect(o[0], unittest.equals('foo')); 122 unittest.expect(o[0], unittest.equals('foo'));
136 unittest.expect(o[1], unittest.equals('foo')); 123 unittest.expect(o[1], unittest.equals('foo'));
137 } 124 }
138 125
139 buildUnnamed1639() { 126 buildUnnamed1639() {
127 var o = new core.List<core.String>();
128 o.add("foo");
129 o.add("foo");
130 return o;
131 }
132
133 checkUnnamed1639(core.List<core.String> o) {
134 unittest.expect(o, unittest.hasLength(2));
135 unittest.expect(o[0], unittest.equals('foo'));
136 unittest.expect(o[1], unittest.equals('foo'));
137 }
138
139 buildUnnamed1640() {
140 var o = new core.List<api.NodePool>(); 140 var o = new core.List<api.NodePool>();
141 o.add(buildNodePool()); 141 o.add(buildNodePool());
142 o.add(buildNodePool()); 142 o.add(buildNodePool());
143 return o; 143 return o;
144 } 144 }
145 145
146 checkUnnamed1639(core.List<api.NodePool> o) { 146 checkUnnamed1640(core.List<api.NodePool> o) {
147 unittest.expect(o, unittest.hasLength(2)); 147 unittest.expect(o, unittest.hasLength(2));
148 checkNodePool(o[0]); 148 checkNodePool(o[0]);
149 checkNodePool(o[1]); 149 checkNodePool(o[1]);
150 } 150 }
151 151
152 core.int buildCounterCluster = 0; 152 core.int buildCounterCluster = 0;
153 buildCluster() { 153 buildCluster() {
154 var o = new api.Cluster(); 154 var o = new api.Cluster();
155 buildCounterCluster++; 155 buildCounterCluster++;
156 if (buildCounterCluster < 3) { 156 if (buildCounterCluster < 3) {
157 o.addonsConfig = buildAddonsConfig(); 157 o.addonsConfig = buildAddonsConfig();
158 o.clusterIpv4Cidr = "foo"; 158 o.clusterIpv4Cidr = "foo";
159 o.createTime = "foo"; 159 o.createTime = "foo";
160 o.currentMasterVersion = "foo"; 160 o.currentMasterVersion = "foo";
161 o.currentNodeCount = 42; 161 o.currentNodeCount = 42;
162 o.currentNodeVersion = "foo"; 162 o.currentNodeVersion = "foo";
163 o.description = "foo"; 163 o.description = "foo";
164 o.enableKubernetesAlpha = true; 164 o.enableKubernetesAlpha = true;
165 o.endpoint = "foo"; 165 o.endpoint = "foo";
166 o.expireTime = "foo"; 166 o.expireTime = "foo";
167 o.initialClusterVersion = "foo"; 167 o.initialClusterVersion = "foo";
168 o.initialNodeCount = 42; 168 o.initialNodeCount = 42;
169 o.instanceGroupUrls = buildUnnamed1637(); 169 o.instanceGroupUrls = buildUnnamed1638();
170 o.locations = buildUnnamed1638(); 170 o.labelFingerprint = "foo";
171 o.legacyAbac = buildLegacyAbac();
172 o.locations = buildUnnamed1639();
171 o.loggingService = "foo"; 173 o.loggingService = "foo";
172 o.masterAuth = buildMasterAuth(); 174 o.masterAuth = buildMasterAuth();
173 o.monitoringService = "foo"; 175 o.monitoringService = "foo";
174 o.name = "foo"; 176 o.name = "foo";
175 o.network = "foo"; 177 o.network = "foo";
176 o.nodeConfig = buildNodeConfig(); 178 o.nodeConfig = buildNodeConfig();
177 o.nodeIpv4CidrSize = 42; 179 o.nodeIpv4CidrSize = 42;
178 o.nodePools = buildUnnamed1639(); 180 o.nodePools = buildUnnamed1640();
181 o.resourceLabels = buildResourceLabels();
179 o.selfLink = "foo"; 182 o.selfLink = "foo";
180 o.servicesIpv4Cidr = "foo"; 183 o.servicesIpv4Cidr = "foo";
181 o.status = "foo"; 184 o.status = "foo";
182 o.statusMessage = "foo"; 185 o.statusMessage = "foo";
183 o.subnetwork = "foo"; 186 o.subnetwork = "foo";
184 o.zone = "foo"; 187 o.zone = "foo";
185 } 188 }
186 buildCounterCluster--; 189 buildCounterCluster--;
187 return o; 190 return o;
188 } 191 }
189 192
190 checkCluster(api.Cluster o) { 193 checkCluster(api.Cluster o) {
191 buildCounterCluster++; 194 buildCounterCluster++;
192 if (buildCounterCluster < 3) { 195 if (buildCounterCluster < 3) {
193 checkAddonsConfig(o.addonsConfig); 196 checkAddonsConfig(o.addonsConfig);
194 unittest.expect(o.clusterIpv4Cidr, unittest.equals('foo')); 197 unittest.expect(o.clusterIpv4Cidr, unittest.equals('foo'));
195 unittest.expect(o.createTime, unittest.equals('foo')); 198 unittest.expect(o.createTime, unittest.equals('foo'));
196 unittest.expect(o.currentMasterVersion, unittest.equals('foo')); 199 unittest.expect(o.currentMasterVersion, unittest.equals('foo'));
197 unittest.expect(o.currentNodeCount, unittest.equals(42)); 200 unittest.expect(o.currentNodeCount, unittest.equals(42));
198 unittest.expect(o.currentNodeVersion, unittest.equals('foo')); 201 unittest.expect(o.currentNodeVersion, unittest.equals('foo'));
199 unittest.expect(o.description, unittest.equals('foo')); 202 unittest.expect(o.description, unittest.equals('foo'));
200 unittest.expect(o.enableKubernetesAlpha, unittest.isTrue); 203 unittest.expect(o.enableKubernetesAlpha, unittest.isTrue);
201 unittest.expect(o.endpoint, unittest.equals('foo')); 204 unittest.expect(o.endpoint, unittest.equals('foo'));
202 unittest.expect(o.expireTime, unittest.equals('foo')); 205 unittest.expect(o.expireTime, unittest.equals('foo'));
203 unittest.expect(o.initialClusterVersion, unittest.equals('foo')); 206 unittest.expect(o.initialClusterVersion, unittest.equals('foo'));
204 unittest.expect(o.initialNodeCount, unittest.equals(42)); 207 unittest.expect(o.initialNodeCount, unittest.equals(42));
205 checkUnnamed1637(o.instanceGroupUrls); 208 checkUnnamed1638(o.instanceGroupUrls);
206 checkUnnamed1638(o.locations); 209 unittest.expect(o.labelFingerprint, unittest.equals('foo'));
210 checkLegacyAbac(o.legacyAbac);
211 checkUnnamed1639(o.locations);
207 unittest.expect(o.loggingService, unittest.equals('foo')); 212 unittest.expect(o.loggingService, unittest.equals('foo'));
208 checkMasterAuth(o.masterAuth); 213 checkMasterAuth(o.masterAuth);
209 unittest.expect(o.monitoringService, unittest.equals('foo')); 214 unittest.expect(o.monitoringService, unittest.equals('foo'));
210 unittest.expect(o.name, unittest.equals('foo')); 215 unittest.expect(o.name, unittest.equals('foo'));
211 unittest.expect(o.network, unittest.equals('foo')); 216 unittest.expect(o.network, unittest.equals('foo'));
212 checkNodeConfig(o.nodeConfig); 217 checkNodeConfig(o.nodeConfig);
213 unittest.expect(o.nodeIpv4CidrSize, unittest.equals(42)); 218 unittest.expect(o.nodeIpv4CidrSize, unittest.equals(42));
214 checkUnnamed1639(o.nodePools); 219 checkUnnamed1640(o.nodePools);
220 checkResourceLabels(o.resourceLabels);
215 unittest.expect(o.selfLink, unittest.equals('foo')); 221 unittest.expect(o.selfLink, unittest.equals('foo'));
216 unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo')); 222 unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo'));
217 unittest.expect(o.status, unittest.equals('foo')); 223 unittest.expect(o.status, unittest.equals('foo'));
218 unittest.expect(o.statusMessage, unittest.equals('foo')); 224 unittest.expect(o.statusMessage, unittest.equals('foo'));
219 unittest.expect(o.subnetwork, unittest.equals('foo')); 225 unittest.expect(o.subnetwork, unittest.equals('foo'));
220 unittest.expect(o.zone, unittest.equals('foo')); 226 unittest.expect(o.zone, unittest.equals('foo'));
221 } 227 }
222 buildCounterCluster--; 228 buildCounterCluster--;
223 } 229 }
224 230
225 buildUnnamed1640() { 231 buildUnnamed1641() {
226 var o = new core.List<core.String>(); 232 var o = new core.List<core.String>();
227 o.add("foo"); 233 o.add("foo");
228 o.add("foo"); 234 o.add("foo");
229 return o; 235 return o;
230 } 236 }
231 237
232 checkUnnamed1640(core.List<core.String> o) { 238 checkUnnamed1641(core.List<core.String> o) {
233 unittest.expect(o, unittest.hasLength(2)); 239 unittest.expect(o, unittest.hasLength(2));
234 unittest.expect(o[0], unittest.equals('foo')); 240 unittest.expect(o[0], unittest.equals('foo'));
235 unittest.expect(o[1], unittest.equals('foo')); 241 unittest.expect(o[1], unittest.equals('foo'));
236 } 242 }
237 243
238 core.int buildCounterClusterUpdate = 0; 244 core.int buildCounterClusterUpdate = 0;
239 buildClusterUpdate() { 245 buildClusterUpdate() {
240 var o = new api.ClusterUpdate(); 246 var o = new api.ClusterUpdate();
241 buildCounterClusterUpdate++; 247 buildCounterClusterUpdate++;
242 if (buildCounterClusterUpdate < 3) { 248 if (buildCounterClusterUpdate < 3) {
243 o.desiredAddonsConfig = buildAddonsConfig(); 249 o.desiredAddonsConfig = buildAddonsConfig();
244 o.desiredImageType = "foo"; 250 o.desiredImageType = "foo";
245 o.desiredLocations = buildUnnamed1640(); 251 o.desiredLocations = buildUnnamed1641();
246 o.desiredMasterVersion = "foo"; 252 o.desiredMasterVersion = "foo";
247 o.desiredMonitoringService = "foo"; 253 o.desiredMonitoringService = "foo";
248 o.desiredNodePoolAutoscaling = buildNodePoolAutoscaling(); 254 o.desiredNodePoolAutoscaling = buildNodePoolAutoscaling();
249 o.desiredNodePoolId = "foo"; 255 o.desiredNodePoolId = "foo";
250 o.desiredNodeVersion = "foo"; 256 o.desiredNodeVersion = "foo";
251 } 257 }
252 buildCounterClusterUpdate--; 258 buildCounterClusterUpdate--;
253 return o; 259 return o;
254 } 260 }
255 261
256 checkClusterUpdate(api.ClusterUpdate o) { 262 checkClusterUpdate(api.ClusterUpdate o) {
257 buildCounterClusterUpdate++; 263 buildCounterClusterUpdate++;
258 if (buildCounterClusterUpdate < 3) { 264 if (buildCounterClusterUpdate < 3) {
259 checkAddonsConfig(o.desiredAddonsConfig); 265 checkAddonsConfig(o.desiredAddonsConfig);
260 unittest.expect(o.desiredImageType, unittest.equals('foo')); 266 unittest.expect(o.desiredImageType, unittest.equals('foo'));
261 checkUnnamed1640(o.desiredLocations); 267 checkUnnamed1641(o.desiredLocations);
262 unittest.expect(o.desiredMasterVersion, unittest.equals('foo')); 268 unittest.expect(o.desiredMasterVersion, unittest.equals('foo'));
263 unittest.expect(o.desiredMonitoringService, unittest.equals('foo')); 269 unittest.expect(o.desiredMonitoringService, unittest.equals('foo'));
264 checkNodePoolAutoscaling(o.desiredNodePoolAutoscaling); 270 checkNodePoolAutoscaling(o.desiredNodePoolAutoscaling);
265 unittest.expect(o.desiredNodePoolId, unittest.equals('foo')); 271 unittest.expect(o.desiredNodePoolId, unittest.equals('foo'));
266 unittest.expect(o.desiredNodeVersion, unittest.equals('foo')); 272 unittest.expect(o.desiredNodeVersion, unittest.equals('foo'));
267 } 273 }
268 buildCounterClusterUpdate--; 274 buildCounterClusterUpdate--;
269 } 275 }
270 276
271 core.int buildCounterCreateClusterRequest = 0; 277 core.int buildCounterCreateClusterRequest = 0;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 } 360 }
355 361
356 checkHttpLoadBalancing(api.HttpLoadBalancing o) { 362 checkHttpLoadBalancing(api.HttpLoadBalancing o) {
357 buildCounterHttpLoadBalancing++; 363 buildCounterHttpLoadBalancing++;
358 if (buildCounterHttpLoadBalancing < 3) { 364 if (buildCounterHttpLoadBalancing < 3) {
359 unittest.expect(o.disabled, unittest.isTrue); 365 unittest.expect(o.disabled, unittest.isTrue);
360 } 366 }
361 buildCounterHttpLoadBalancing--; 367 buildCounterHttpLoadBalancing--;
362 } 368 }
363 369
364 buildUnnamed1641() { 370 core.int buildCounterItem = 0;
371 buildItem() {
372 var o = new api.Item();
373 buildCounterItem++;
374 if (buildCounterItem < 3) {
375 o.key = "foo";
376 o.value = "foo";
377 }
378 buildCounterItem--;
379 return o;
380 }
381
382 checkItem(api.Item o) {
383 buildCounterItem++;
384 if (buildCounterItem < 3) {
385 unittest.expect(o.key, unittest.equals('foo'));
386 unittest.expect(o.value, unittest.equals('foo'));
387 }
388 buildCounterItem--;
389 }
390
391 core.int buildCounterLegacyAbac = 0;
392 buildLegacyAbac() {
393 var o = new api.LegacyAbac();
394 buildCounterLegacyAbac++;
395 if (buildCounterLegacyAbac < 3) {
396 o.enabled = true;
397 }
398 buildCounterLegacyAbac--;
399 return o;
400 }
401
402 checkLegacyAbac(api.LegacyAbac o) {
403 buildCounterLegacyAbac++;
404 if (buildCounterLegacyAbac < 3) {
405 unittest.expect(o.enabled, unittest.isTrue);
406 }
407 buildCounterLegacyAbac--;
408 }
409
410 buildUnnamed1642() {
365 var o = new core.List<api.Cluster>(); 411 var o = new core.List<api.Cluster>();
366 o.add(buildCluster()); 412 o.add(buildCluster());
367 o.add(buildCluster()); 413 o.add(buildCluster());
368 return o; 414 return o;
369 } 415 }
370 416
371 checkUnnamed1641(core.List<api.Cluster> o) { 417 checkUnnamed1642(core.List<api.Cluster> o) {
372 unittest.expect(o, unittest.hasLength(2)); 418 unittest.expect(o, unittest.hasLength(2));
373 checkCluster(o[0]); 419 checkCluster(o[0]);
374 checkCluster(o[1]); 420 checkCluster(o[1]);
375 } 421 }
376 422
377 buildUnnamed1642() { 423 buildUnnamed1643() {
378 var o = new core.List<core.String>(); 424 var o = new core.List<core.String>();
379 o.add("foo"); 425 o.add("foo");
380 o.add("foo"); 426 o.add("foo");
381 return o; 427 return o;
382 } 428 }
383 429
384 checkUnnamed1642(core.List<core.String> o) { 430 checkUnnamed1643(core.List<core.String> o) {
385 unittest.expect(o, unittest.hasLength(2)); 431 unittest.expect(o, unittest.hasLength(2));
386 unittest.expect(o[0], unittest.equals('foo')); 432 unittest.expect(o[0], unittest.equals('foo'));
387 unittest.expect(o[1], unittest.equals('foo')); 433 unittest.expect(o[1], unittest.equals('foo'));
388 } 434 }
389 435
390 core.int buildCounterListClustersResponse = 0; 436 core.int buildCounterListClustersResponse = 0;
391 buildListClustersResponse() { 437 buildListClustersResponse() {
392 var o = new api.ListClustersResponse(); 438 var o = new api.ListClustersResponse();
393 buildCounterListClustersResponse++; 439 buildCounterListClustersResponse++;
394 if (buildCounterListClustersResponse < 3) { 440 if (buildCounterListClustersResponse < 3) {
395 o.clusters = buildUnnamed1641(); 441 o.clusters = buildUnnamed1642();
396 o.missingZones = buildUnnamed1642(); 442 o.missingZones = buildUnnamed1643();
397 } 443 }
398 buildCounterListClustersResponse--; 444 buildCounterListClustersResponse--;
399 return o; 445 return o;
400 } 446 }
401 447
402 checkListClustersResponse(api.ListClustersResponse o) { 448 checkListClustersResponse(api.ListClustersResponse o) {
403 buildCounterListClustersResponse++; 449 buildCounterListClustersResponse++;
404 if (buildCounterListClustersResponse < 3) { 450 if (buildCounterListClustersResponse < 3) {
405 checkUnnamed1641(o.clusters); 451 checkUnnamed1642(o.clusters);
406 checkUnnamed1642(o.missingZones); 452 checkUnnamed1643(o.missingZones);
407 } 453 }
408 buildCounterListClustersResponse--; 454 buildCounterListClustersResponse--;
409 } 455 }
410 456
411 buildUnnamed1643() { 457 buildUnnamed1644() {
412 var o = new core.List<api.NodePool>(); 458 var o = new core.List<api.NodePool>();
413 o.add(buildNodePool()); 459 o.add(buildNodePool());
414 o.add(buildNodePool()); 460 o.add(buildNodePool());
415 return o; 461 return o;
416 } 462 }
417 463
418 checkUnnamed1643(core.List<api.NodePool> o) { 464 checkUnnamed1644(core.List<api.NodePool> o) {
419 unittest.expect(o, unittest.hasLength(2)); 465 unittest.expect(o, unittest.hasLength(2));
420 checkNodePool(o[0]); 466 checkNodePool(o[0]);
421 checkNodePool(o[1]); 467 checkNodePool(o[1]);
422 } 468 }
423 469
424 core.int buildCounterListNodePoolsResponse = 0; 470 core.int buildCounterListNodePoolsResponse = 0;
425 buildListNodePoolsResponse() { 471 buildListNodePoolsResponse() {
426 var o = new api.ListNodePoolsResponse(); 472 var o = new api.ListNodePoolsResponse();
427 buildCounterListNodePoolsResponse++; 473 buildCounterListNodePoolsResponse++;
428 if (buildCounterListNodePoolsResponse < 3) { 474 if (buildCounterListNodePoolsResponse < 3) {
429 o.nodePools = buildUnnamed1643(); 475 o.nodePools = buildUnnamed1644();
430 } 476 }
431 buildCounterListNodePoolsResponse--; 477 buildCounterListNodePoolsResponse--;
432 return o; 478 return o;
433 } 479 }
434 480
435 checkListNodePoolsResponse(api.ListNodePoolsResponse o) { 481 checkListNodePoolsResponse(api.ListNodePoolsResponse o) {
436 buildCounterListNodePoolsResponse++; 482 buildCounterListNodePoolsResponse++;
437 if (buildCounterListNodePoolsResponse < 3) { 483 if (buildCounterListNodePoolsResponse < 3) {
438 checkUnnamed1643(o.nodePools); 484 checkUnnamed1644(o.nodePools);
439 } 485 }
440 buildCounterListNodePoolsResponse--; 486 buildCounterListNodePoolsResponse--;
441 } 487 }
442 488
443 buildUnnamed1644() { 489 buildUnnamed1645() {
444 var o = new core.List<core.String>(); 490 var o = new core.List<core.String>();
445 o.add("foo"); 491 o.add("foo");
446 o.add("foo"); 492 o.add("foo");
447 return o; 493 return o;
448 } 494 }
449 495
450 checkUnnamed1644(core.List<core.String> o) { 496 checkUnnamed1645(core.List<core.String> o) {
451 unittest.expect(o, unittest.hasLength(2)); 497 unittest.expect(o, unittest.hasLength(2));
452 unittest.expect(o[0], unittest.equals('foo')); 498 unittest.expect(o[0], unittest.equals('foo'));
453 unittest.expect(o[1], unittest.equals('foo')); 499 unittest.expect(o[1], unittest.equals('foo'));
454 } 500 }
455 501
456 buildUnnamed1645() { 502 buildUnnamed1646() {
457 var o = new core.List<api.Operation>(); 503 var o = new core.List<api.Operation>();
458 o.add(buildOperation()); 504 o.add(buildOperation());
459 o.add(buildOperation()); 505 o.add(buildOperation());
460 return o; 506 return o;
461 } 507 }
462 508
463 checkUnnamed1645(core.List<api.Operation> o) { 509 checkUnnamed1646(core.List<api.Operation> o) {
464 unittest.expect(o, unittest.hasLength(2)); 510 unittest.expect(o, unittest.hasLength(2));
465 checkOperation(o[0]); 511 checkOperation(o[0]);
466 checkOperation(o[1]); 512 checkOperation(o[1]);
467 } 513 }
468 514
469 core.int buildCounterListOperationsResponse = 0; 515 core.int buildCounterListOperationsResponse = 0;
470 buildListOperationsResponse() { 516 buildListOperationsResponse() {
471 var o = new api.ListOperationsResponse(); 517 var o = new api.ListOperationsResponse();
472 buildCounterListOperationsResponse++; 518 buildCounterListOperationsResponse++;
473 if (buildCounterListOperationsResponse < 3) { 519 if (buildCounterListOperationsResponse < 3) {
474 o.missingZones = buildUnnamed1644(); 520 o.missingZones = buildUnnamed1645();
475 o.operations = buildUnnamed1645(); 521 o.operations = buildUnnamed1646();
476 } 522 }
477 buildCounterListOperationsResponse--; 523 buildCounterListOperationsResponse--;
478 return o; 524 return o;
479 } 525 }
480 526
481 checkListOperationsResponse(api.ListOperationsResponse o) { 527 checkListOperationsResponse(api.ListOperationsResponse o) {
482 buildCounterListOperationsResponse++; 528 buildCounterListOperationsResponse++;
483 if (buildCounterListOperationsResponse < 3) { 529 if (buildCounterListOperationsResponse < 3) {
484 checkUnnamed1644(o.missingZones); 530 checkUnnamed1645(o.missingZones);
485 checkUnnamed1645(o.operations); 531 checkUnnamed1646(o.operations);
486 } 532 }
487 buildCounterListOperationsResponse--; 533 buildCounterListOperationsResponse--;
488 } 534 }
489 535
490 core.int buildCounterMasterAuth = 0; 536 core.int buildCounterMasterAuth = 0;
491 buildMasterAuth() { 537 buildMasterAuth() {
492 var o = new api.MasterAuth(); 538 var o = new api.MasterAuth();
493 buildCounterMasterAuth++; 539 buildCounterMasterAuth++;
494 if (buildCounterMasterAuth < 3) { 540 if (buildCounterMasterAuth < 3) {
495 o.clientCertificate = "foo"; 541 o.clientCertificate = "foo";
(...skipping 11 matching lines...) Expand all
507 if (buildCounterMasterAuth < 3) { 553 if (buildCounterMasterAuth < 3) {
508 unittest.expect(o.clientCertificate, unittest.equals('foo')); 554 unittest.expect(o.clientCertificate, unittest.equals('foo'));
509 unittest.expect(o.clientKey, unittest.equals('foo')); 555 unittest.expect(o.clientKey, unittest.equals('foo'));
510 unittest.expect(o.clusterCaCertificate, unittest.equals('foo')); 556 unittest.expect(o.clusterCaCertificate, unittest.equals('foo'));
511 unittest.expect(o.password, unittest.equals('foo')); 557 unittest.expect(o.password, unittest.equals('foo'));
512 unittest.expect(o.username, unittest.equals('foo')); 558 unittest.expect(o.username, unittest.equals('foo'));
513 } 559 }
514 buildCounterMasterAuth--; 560 buildCounterMasterAuth--;
515 } 561 }
516 562
517 buildUnnamed1646() {
518 var o = new core.Map<core.String, core.String>();
519 o["x"] = "foo";
520 o["y"] = "foo";
521 return o;
522 }
523
524 checkUnnamed1646(core.Map<core.String, core.String> o) {
525 unittest.expect(o, unittest.hasLength(2));
526 unittest.expect(o["x"], unittest.equals('foo'));
527 unittest.expect(o["y"], unittest.equals('foo'));
528 }
529
530 buildUnnamed1647() { 563 buildUnnamed1647() {
531 var o = new core.Map<core.String, core.String>(); 564 var o = new core.Map<core.String, core.String>();
532 o["x"] = "foo"; 565 o["x"] = "foo";
533 o["y"] = "foo"; 566 o["y"] = "foo";
534 return o; 567 return o;
535 } 568 }
536 569
537 checkUnnamed1647(core.Map<core.String, core.String> o) { 570 checkUnnamed1647(core.Map<core.String, core.String> o) {
538 unittest.expect(o, unittest.hasLength(2)); 571 unittest.expect(o, unittest.hasLength(2));
539 unittest.expect(o["x"], unittest.equals('foo')); 572 unittest.expect(o["x"], unittest.equals('foo'));
540 unittest.expect(o["y"], unittest.equals('foo')); 573 unittest.expect(o["y"], unittest.equals('foo'));
541 } 574 }
542 575
543 buildUnnamed1648() { 576 buildUnnamed1648() {
544 var o = new core.List<core.String>(); 577 var o = new core.Map<core.String, core.String>();
545 o.add("foo"); 578 o["x"] = "foo";
546 o.add("foo"); 579 o["y"] = "foo";
547 return o; 580 return o;
548 } 581 }
549 582
550 checkUnnamed1648(core.List<core.String> o) { 583 checkUnnamed1648(core.Map<core.String, core.String> o) {
551 unittest.expect(o, unittest.hasLength(2)); 584 unittest.expect(o, unittest.hasLength(2));
552 unittest.expect(o[0], unittest.equals('foo')); 585 unittest.expect(o["x"], unittest.equals('foo'));
553 unittest.expect(o[1], unittest.equals('foo')); 586 unittest.expect(o["y"], unittest.equals('foo'));
554 } 587 }
555 588
556 buildUnnamed1649() { 589 buildUnnamed1649() {
557 var o = new core.List<core.String>(); 590 var o = new core.List<core.String>();
558 o.add("foo"); 591 o.add("foo");
559 o.add("foo"); 592 o.add("foo");
560 return o; 593 return o;
561 } 594 }
562 595
563 checkUnnamed1649(core.List<core.String> o) { 596 checkUnnamed1649(core.List<core.String> o) {
564 unittest.expect(o, unittest.hasLength(2)); 597 unittest.expect(o, unittest.hasLength(2));
565 unittest.expect(o[0], unittest.equals('foo')); 598 unittest.expect(o[0], unittest.equals('foo'));
566 unittest.expect(o[1], unittest.equals('foo')); 599 unittest.expect(o[1], unittest.equals('foo'));
600 }
601
602 buildUnnamed1650() {
603 var o = new core.List<core.String>();
604 o.add("foo");
605 o.add("foo");
606 return o;
607 }
608
609 checkUnnamed1650(core.List<core.String> o) {
610 unittest.expect(o, unittest.hasLength(2));
611 unittest.expect(o[0], unittest.equals('foo'));
612 unittest.expect(o[1], unittest.equals('foo'));
567 } 613 }
568 614
569 core.int buildCounterNodeConfig = 0; 615 core.int buildCounterNodeConfig = 0;
570 buildNodeConfig() { 616 buildNodeConfig() {
571 var o = new api.NodeConfig(); 617 var o = new api.NodeConfig();
572 buildCounterNodeConfig++; 618 buildCounterNodeConfig++;
573 if (buildCounterNodeConfig < 3) { 619 if (buildCounterNodeConfig < 3) {
574 o.diskSizeGb = 42; 620 o.diskSizeGb = 42;
575 o.imageType = "foo"; 621 o.imageType = "foo";
576 o.labels = buildUnnamed1646(); 622 o.labels = buildUnnamed1647();
577 o.localSsdCount = 42; 623 o.localSsdCount = 42;
578 o.machineType = "foo"; 624 o.machineType = "foo";
579 o.metadata = buildUnnamed1647(); 625 o.metadata = buildUnnamed1648();
580 o.oauthScopes = buildUnnamed1648(); 626 o.oauthScopes = buildUnnamed1649();
581 o.preemptible = true; 627 o.preemptible = true;
582 o.serviceAccount = "foo"; 628 o.serviceAccount = "foo";
583 o.tags = buildUnnamed1649(); 629 o.tags = buildUnnamed1650();
584 } 630 }
585 buildCounterNodeConfig--; 631 buildCounterNodeConfig--;
586 return o; 632 return o;
587 } 633 }
588 634
589 checkNodeConfig(api.NodeConfig o) { 635 checkNodeConfig(api.NodeConfig o) {
590 buildCounterNodeConfig++; 636 buildCounterNodeConfig++;
591 if (buildCounterNodeConfig < 3) { 637 if (buildCounterNodeConfig < 3) {
592 unittest.expect(o.diskSizeGb, unittest.equals(42)); 638 unittest.expect(o.diskSizeGb, unittest.equals(42));
593 unittest.expect(o.imageType, unittest.equals('foo')); 639 unittest.expect(o.imageType, unittest.equals('foo'));
594 checkUnnamed1646(o.labels); 640 checkUnnamed1647(o.labels);
595 unittest.expect(o.localSsdCount, unittest.equals(42)); 641 unittest.expect(o.localSsdCount, unittest.equals(42));
596 unittest.expect(o.machineType, unittest.equals('foo')); 642 unittest.expect(o.machineType, unittest.equals('foo'));
597 checkUnnamed1647(o.metadata); 643 checkUnnamed1648(o.metadata);
598 checkUnnamed1648(o.oauthScopes); 644 checkUnnamed1649(o.oauthScopes);
599 unittest.expect(o.preemptible, unittest.isTrue); 645 unittest.expect(o.preemptible, unittest.isTrue);
600 unittest.expect(o.serviceAccount, unittest.equals('foo')); 646 unittest.expect(o.serviceAccount, unittest.equals('foo'));
601 checkUnnamed1649(o.tags); 647 checkUnnamed1650(o.tags);
602 } 648 }
603 buildCounterNodeConfig--; 649 buildCounterNodeConfig--;
604 } 650 }
605 651
606 core.int buildCounterNodeManagement = 0; 652 core.int buildCounterNodeManagement = 0;
607 buildNodeManagement() { 653 buildNodeManagement() {
608 var o = new api.NodeManagement(); 654 var o = new api.NodeManagement();
609 buildCounterNodeManagement++; 655 buildCounterNodeManagement++;
610 if (buildCounterNodeManagement < 3) { 656 if (buildCounterNodeManagement < 3) {
657 o.autoRepair = true;
611 o.autoUpgrade = true; 658 o.autoUpgrade = true;
612 o.upgradeOptions = buildAutoUpgradeOptions(); 659 o.upgradeOptions = buildAutoUpgradeOptions();
613 } 660 }
614 buildCounterNodeManagement--; 661 buildCounterNodeManagement--;
615 return o; 662 return o;
616 } 663 }
617 664
618 checkNodeManagement(api.NodeManagement o) { 665 checkNodeManagement(api.NodeManagement o) {
619 buildCounterNodeManagement++; 666 buildCounterNodeManagement++;
620 if (buildCounterNodeManagement < 3) { 667 if (buildCounterNodeManagement < 3) {
668 unittest.expect(o.autoRepair, unittest.isTrue);
621 unittest.expect(o.autoUpgrade, unittest.isTrue); 669 unittest.expect(o.autoUpgrade, unittest.isTrue);
622 checkAutoUpgradeOptions(o.upgradeOptions); 670 checkAutoUpgradeOptions(o.upgradeOptions);
623 } 671 }
624 buildCounterNodeManagement--; 672 buildCounterNodeManagement--;
625 } 673 }
626 674
627 buildUnnamed1650() { 675 buildUnnamed1651() {
628 var o = new core.List<core.String>(); 676 var o = new core.List<core.String>();
629 o.add("foo"); 677 o.add("foo");
630 o.add("foo"); 678 o.add("foo");
631 return o; 679 return o;
632 } 680 }
633 681
634 checkUnnamed1650(core.List<core.String> o) { 682 checkUnnamed1651(core.List<core.String> o) {
635 unittest.expect(o, unittest.hasLength(2)); 683 unittest.expect(o, unittest.hasLength(2));
636 unittest.expect(o[0], unittest.equals('foo')); 684 unittest.expect(o[0], unittest.equals('foo'));
637 unittest.expect(o[1], unittest.equals('foo')); 685 unittest.expect(o[1], unittest.equals('foo'));
638 } 686 }
639 687
640 core.int buildCounterNodePool = 0; 688 core.int buildCounterNodePool = 0;
641 buildNodePool() { 689 buildNodePool() {
642 var o = new api.NodePool(); 690 var o = new api.NodePool();
643 buildCounterNodePool++; 691 buildCounterNodePool++;
644 if (buildCounterNodePool < 3) { 692 if (buildCounterNodePool < 3) {
645 o.autoscaling = buildNodePoolAutoscaling(); 693 o.autoscaling = buildNodePoolAutoscaling();
646 o.config = buildNodeConfig(); 694 o.config = buildNodeConfig();
647 o.initialNodeCount = 42; 695 o.initialNodeCount = 42;
648 o.instanceGroupUrls = buildUnnamed1650(); 696 o.instanceGroupUrls = buildUnnamed1651();
649 o.management = buildNodeManagement(); 697 o.management = buildNodeManagement();
650 o.name = "foo"; 698 o.name = "foo";
651 o.selfLink = "foo"; 699 o.selfLink = "foo";
652 o.status = "foo"; 700 o.status = "foo";
653 o.statusMessage = "foo"; 701 o.statusMessage = "foo";
654 o.version = "foo"; 702 o.version = "foo";
655 } 703 }
656 buildCounterNodePool--; 704 buildCounterNodePool--;
657 return o; 705 return o;
658 } 706 }
659 707
660 checkNodePool(api.NodePool o) { 708 checkNodePool(api.NodePool o) {
661 buildCounterNodePool++; 709 buildCounterNodePool++;
662 if (buildCounterNodePool < 3) { 710 if (buildCounterNodePool < 3) {
663 checkNodePoolAutoscaling(o.autoscaling); 711 checkNodePoolAutoscaling(o.autoscaling);
664 checkNodeConfig(o.config); 712 checkNodeConfig(o.config);
665 unittest.expect(o.initialNodeCount, unittest.equals(42)); 713 unittest.expect(o.initialNodeCount, unittest.equals(42));
666 checkUnnamed1650(o.instanceGroupUrls); 714 checkUnnamed1651(o.instanceGroupUrls);
667 checkNodeManagement(o.management); 715 checkNodeManagement(o.management);
668 unittest.expect(o.name, unittest.equals('foo')); 716 unittest.expect(o.name, unittest.equals('foo'));
669 unittest.expect(o.selfLink, unittest.equals('foo')); 717 unittest.expect(o.selfLink, unittest.equals('foo'));
670 unittest.expect(o.status, unittest.equals('foo')); 718 unittest.expect(o.status, unittest.equals('foo'));
671 unittest.expect(o.statusMessage, unittest.equals('foo')); 719 unittest.expect(o.statusMessage, unittest.equals('foo'));
672 unittest.expect(o.version, unittest.equals('foo')); 720 unittest.expect(o.version, unittest.equals('foo'));
673 } 721 }
674 buildCounterNodePool--; 722 buildCounterNodePool--;
675 } 723 }
676 724
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 unittest.expect(o.operationType, unittest.equals('foo')); 771 unittest.expect(o.operationType, unittest.equals('foo'));
724 unittest.expect(o.selfLink, unittest.equals('foo')); 772 unittest.expect(o.selfLink, unittest.equals('foo'));
725 unittest.expect(o.status, unittest.equals('foo')); 773 unittest.expect(o.status, unittest.equals('foo'));
726 unittest.expect(o.statusMessage, unittest.equals('foo')); 774 unittest.expect(o.statusMessage, unittest.equals('foo'));
727 unittest.expect(o.targetLink, unittest.equals('foo')); 775 unittest.expect(o.targetLink, unittest.equals('foo'));
728 unittest.expect(o.zone, unittest.equals('foo')); 776 unittest.expect(o.zone, unittest.equals('foo'));
729 } 777 }
730 buildCounterOperation--; 778 buildCounterOperation--;
731 } 779 }
732 780
781 buildUnnamed1652() {
782 var o = new core.List<api.Item>();
783 o.add(buildItem());
784 o.add(buildItem());
785 return o;
786 }
787
788 checkUnnamed1652(core.List<api.Item> o) {
789 unittest.expect(o, unittest.hasLength(2));
790 checkItem(o[0]);
791 checkItem(o[1]);
792 }
793
794 core.int buildCounterResourceLabels = 0;
795 buildResourceLabels() {
796 var o = new api.ResourceLabels();
797 buildCounterResourceLabels++;
798 if (buildCounterResourceLabels < 3) {
799 o.items = buildUnnamed1652();
800 }
801 buildCounterResourceLabels--;
802 return o;
803 }
804
805 checkResourceLabels(api.ResourceLabels o) {
806 buildCounterResourceLabels++;
807 if (buildCounterResourceLabels < 3) {
808 checkUnnamed1652(o.items);
809 }
810 buildCounterResourceLabels--;
811 }
812
733 core.int buildCounterRollbackNodePoolUpgradeRequest = 0; 813 core.int buildCounterRollbackNodePoolUpgradeRequest = 0;
734 buildRollbackNodePoolUpgradeRequest() { 814 buildRollbackNodePoolUpgradeRequest() {
735 var o = new api.RollbackNodePoolUpgradeRequest(); 815 var o = new api.RollbackNodePoolUpgradeRequest();
736 buildCounterRollbackNodePoolUpgradeRequest++; 816 buildCounterRollbackNodePoolUpgradeRequest++;
737 if (buildCounterRollbackNodePoolUpgradeRequest < 3) { 817 if (buildCounterRollbackNodePoolUpgradeRequest < 3) {
738 } 818 }
739 buildCounterRollbackNodePoolUpgradeRequest--; 819 buildCounterRollbackNodePoolUpgradeRequest--;
740 return o; 820 return o;
741 } 821 }
742 822
743 checkRollbackNodePoolUpgradeRequest(api.RollbackNodePoolUpgradeRequest o) { 823 checkRollbackNodePoolUpgradeRequest(api.RollbackNodePoolUpgradeRequest o) {
744 buildCounterRollbackNodePoolUpgradeRequest++; 824 buildCounterRollbackNodePoolUpgradeRequest++;
745 if (buildCounterRollbackNodePoolUpgradeRequest < 3) { 825 if (buildCounterRollbackNodePoolUpgradeRequest < 3) {
746 } 826 }
747 buildCounterRollbackNodePoolUpgradeRequest--; 827 buildCounterRollbackNodePoolUpgradeRequest--;
748 } 828 }
749 829
750 buildUnnamed1651() {
751 var o = new core.List<core.String>();
752 o.add("foo");
753 o.add("foo");
754 return o;
755 }
756
757 checkUnnamed1651(core.List<core.String> o) {
758 unittest.expect(o, unittest.hasLength(2));
759 unittest.expect(o[0], unittest.equals('foo'));
760 unittest.expect(o[1], unittest.equals('foo'));
761 }
762
763 buildUnnamed1652() {
764 var o = new core.List<core.String>();
765 o.add("foo");
766 o.add("foo");
767 return o;
768 }
769
770 checkUnnamed1652(core.List<core.String> o) {
771 unittest.expect(o, unittest.hasLength(2));
772 unittest.expect(o[0], unittest.equals('foo'));
773 unittest.expect(o[1], unittest.equals('foo'));
774 }
775
776 buildUnnamed1653() { 830 buildUnnamed1653() {
777 var o = new core.List<core.String>(); 831 var o = new core.List<core.String>();
778 o.add("foo"); 832 o.add("foo");
779 o.add("foo"); 833 o.add("foo");
780 return o; 834 return o;
781 } 835 }
782 836
783 checkUnnamed1653(core.List<core.String> o) { 837 checkUnnamed1653(core.List<core.String> o) {
784 unittest.expect(o, unittest.hasLength(2)); 838 unittest.expect(o, unittest.hasLength(2));
785 unittest.expect(o[0], unittest.equals('foo')); 839 unittest.expect(o[0], unittest.equals('foo'));
786 unittest.expect(o[1], unittest.equals('foo')); 840 unittest.expect(o[1], unittest.equals('foo'));
841 }
842
843 buildUnnamed1654() {
844 var o = new core.List<core.String>();
845 o.add("foo");
846 o.add("foo");
847 return o;
848 }
849
850 checkUnnamed1654(core.List<core.String> o) {
851 unittest.expect(o, unittest.hasLength(2));
852 unittest.expect(o[0], unittest.equals('foo'));
853 unittest.expect(o[1], unittest.equals('foo'));
854 }
855
856 buildUnnamed1655() {
857 var o = new core.List<core.String>();
858 o.add("foo");
859 o.add("foo");
860 return o;
861 }
862
863 checkUnnamed1655(core.List<core.String> o) {
864 unittest.expect(o, unittest.hasLength(2));
865 unittest.expect(o[0], unittest.equals('foo'));
866 unittest.expect(o[1], unittest.equals('foo'));
787 } 867 }
788 868
789 core.int buildCounterServerConfig = 0; 869 core.int buildCounterServerConfig = 0;
790 buildServerConfig() { 870 buildServerConfig() {
791 var o = new api.ServerConfig(); 871 var o = new api.ServerConfig();
792 buildCounterServerConfig++; 872 buildCounterServerConfig++;
793 if (buildCounterServerConfig < 3) { 873 if (buildCounterServerConfig < 3) {
794 o.defaultClusterVersion = "foo"; 874 o.defaultClusterVersion = "foo";
795 o.defaultImageType = "foo"; 875 o.defaultImageType = "foo";
796 o.validImageTypes = buildUnnamed1651(); 876 o.validImageTypes = buildUnnamed1653();
797 o.validMasterVersions = buildUnnamed1652(); 877 o.validMasterVersions = buildUnnamed1654();
798 o.validNodeVersions = buildUnnamed1653(); 878 o.validNodeVersions = buildUnnamed1655();
799 } 879 }
800 buildCounterServerConfig--; 880 buildCounterServerConfig--;
801 return o; 881 return o;
802 } 882 }
803 883
804 checkServerConfig(api.ServerConfig o) { 884 checkServerConfig(api.ServerConfig o) {
805 buildCounterServerConfig++; 885 buildCounterServerConfig++;
806 if (buildCounterServerConfig < 3) { 886 if (buildCounterServerConfig < 3) {
807 unittest.expect(o.defaultClusterVersion, unittest.equals('foo')); 887 unittest.expect(o.defaultClusterVersion, unittest.equals('foo'));
808 unittest.expect(o.defaultImageType, unittest.equals('foo')); 888 unittest.expect(o.defaultImageType, unittest.equals('foo'));
809 checkUnnamed1651(o.validImageTypes); 889 checkUnnamed1653(o.validImageTypes);
810 checkUnnamed1652(o.validMasterVersions); 890 checkUnnamed1654(o.validMasterVersions);
811 checkUnnamed1653(o.validNodeVersions); 891 checkUnnamed1655(o.validNodeVersions);
812 } 892 }
813 buildCounterServerConfig--; 893 buildCounterServerConfig--;
814 } 894 }
815 895
896 core.int buildCounterSetLabelsRequest = 0;
897 buildSetLabelsRequest() {
898 var o = new api.SetLabelsRequest();
899 buildCounterSetLabelsRequest++;
900 if (buildCounterSetLabelsRequest < 3) {
901 o.labelFingerprint = "foo";
902 o.resourceLabels = buildResourceLabels();
903 }
904 buildCounterSetLabelsRequest--;
905 return o;
906 }
907
908 checkSetLabelsRequest(api.SetLabelsRequest o) {
909 buildCounterSetLabelsRequest++;
910 if (buildCounterSetLabelsRequest < 3) {
911 unittest.expect(o.labelFingerprint, unittest.equals('foo'));
912 checkResourceLabels(o.resourceLabels);
913 }
914 buildCounterSetLabelsRequest--;
915 }
916
917 core.int buildCounterSetLegacyAbacRequest = 0;
918 buildSetLegacyAbacRequest() {
919 var o = new api.SetLegacyAbacRequest();
920 buildCounterSetLegacyAbacRequest++;
921 if (buildCounterSetLegacyAbacRequest < 3) {
922 o.enabled = true;
923 }
924 buildCounterSetLegacyAbacRequest--;
925 return o;
926 }
927
928 checkSetLegacyAbacRequest(api.SetLegacyAbacRequest o) {
929 buildCounterSetLegacyAbacRequest++;
930 if (buildCounterSetLegacyAbacRequest < 3) {
931 unittest.expect(o.enabled, unittest.isTrue);
932 }
933 buildCounterSetLegacyAbacRequest--;
934 }
935
936 core.int buildCounterSetMasterAuthRequest = 0;
937 buildSetMasterAuthRequest() {
938 var o = new api.SetMasterAuthRequest();
939 buildCounterSetMasterAuthRequest++;
940 if (buildCounterSetMasterAuthRequest < 3) {
941 o.action = "foo";
942 o.update = buildMasterAuth();
943 }
944 buildCounterSetMasterAuthRequest--;
945 return o;
946 }
947
948 checkSetMasterAuthRequest(api.SetMasterAuthRequest o) {
949 buildCounterSetMasterAuthRequest++;
950 if (buildCounterSetMasterAuthRequest < 3) {
951 unittest.expect(o.action, unittest.equals('foo'));
952 checkMasterAuth(o.update);
953 }
954 buildCounterSetMasterAuthRequest--;
955 }
956
816 core.int buildCounterSetNodePoolManagementRequest = 0; 957 core.int buildCounterSetNodePoolManagementRequest = 0;
817 buildSetNodePoolManagementRequest() { 958 buildSetNodePoolManagementRequest() {
818 var o = new api.SetNodePoolManagementRequest(); 959 var o = new api.SetNodePoolManagementRequest();
819 buildCounterSetNodePoolManagementRequest++; 960 buildCounterSetNodePoolManagementRequest++;
820 if (buildCounterSetNodePoolManagementRequest < 3) { 961 if (buildCounterSetNodePoolManagementRequest < 3) {
821 o.management = buildNodeManagement(); 962 o.management = buildNodeManagement();
822 } 963 }
823 buildCounterSetNodePoolManagementRequest--; 964 buildCounterSetNodePoolManagementRequest--;
824 return o; 965 return o;
825 } 966 }
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 1077
937 unittest.group("obj-schema-HttpLoadBalancing", () { 1078 unittest.group("obj-schema-HttpLoadBalancing", () {
938 unittest.test("to-json--from-json", () { 1079 unittest.test("to-json--from-json", () {
939 var o = buildHttpLoadBalancing(); 1080 var o = buildHttpLoadBalancing();
940 var od = new api.HttpLoadBalancing.fromJson(o.toJson()); 1081 var od = new api.HttpLoadBalancing.fromJson(o.toJson());
941 checkHttpLoadBalancing(od); 1082 checkHttpLoadBalancing(od);
942 }); 1083 });
943 }); 1084 });
944 1085
945 1086
1087 unittest.group("obj-schema-Item", () {
1088 unittest.test("to-json--from-json", () {
1089 var o = buildItem();
1090 var od = new api.Item.fromJson(o.toJson());
1091 checkItem(od);
1092 });
1093 });
1094
1095
1096 unittest.group("obj-schema-LegacyAbac", () {
1097 unittest.test("to-json--from-json", () {
1098 var o = buildLegacyAbac();
1099 var od = new api.LegacyAbac.fromJson(o.toJson());
1100 checkLegacyAbac(od);
1101 });
1102 });
1103
1104
946 unittest.group("obj-schema-ListClustersResponse", () { 1105 unittest.group("obj-schema-ListClustersResponse", () {
947 unittest.test("to-json--from-json", () { 1106 unittest.test("to-json--from-json", () {
948 var o = buildListClustersResponse(); 1107 var o = buildListClustersResponse();
949 var od = new api.ListClustersResponse.fromJson(o.toJson()); 1108 var od = new api.ListClustersResponse.fromJson(o.toJson());
950 checkListClustersResponse(od); 1109 checkListClustersResponse(od);
951 }); 1110 });
952 }); 1111 });
953 1112
954 1113
955 unittest.group("obj-schema-ListNodePoolsResponse", () { 1114 unittest.group("obj-schema-ListNodePoolsResponse", () {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 1176
1018 unittest.group("obj-schema-Operation", () { 1177 unittest.group("obj-schema-Operation", () {
1019 unittest.test("to-json--from-json", () { 1178 unittest.test("to-json--from-json", () {
1020 var o = buildOperation(); 1179 var o = buildOperation();
1021 var od = new api.Operation.fromJson(o.toJson()); 1180 var od = new api.Operation.fromJson(o.toJson());
1022 checkOperation(od); 1181 checkOperation(od);
1023 }); 1182 });
1024 }); 1183 });
1025 1184
1026 1185
1186 unittest.group("obj-schema-ResourceLabels", () {
1187 unittest.test("to-json--from-json", () {
1188 var o = buildResourceLabels();
1189 var od = new api.ResourceLabels.fromJson(o.toJson());
1190 checkResourceLabels(od);
1191 });
1192 });
1193
1194
1027 unittest.group("obj-schema-RollbackNodePoolUpgradeRequest", () { 1195 unittest.group("obj-schema-RollbackNodePoolUpgradeRequest", () {
1028 unittest.test("to-json--from-json", () { 1196 unittest.test("to-json--from-json", () {
1029 var o = buildRollbackNodePoolUpgradeRequest(); 1197 var o = buildRollbackNodePoolUpgradeRequest();
1030 var od = new api.RollbackNodePoolUpgradeRequest.fromJson(o.toJson()); 1198 var od = new api.RollbackNodePoolUpgradeRequest.fromJson(o.toJson());
1031 checkRollbackNodePoolUpgradeRequest(od); 1199 checkRollbackNodePoolUpgradeRequest(od);
1032 }); 1200 });
1033 }); 1201 });
1034 1202
1035 1203
1036 unittest.group("obj-schema-ServerConfig", () { 1204 unittest.group("obj-schema-ServerConfig", () {
1037 unittest.test("to-json--from-json", () { 1205 unittest.test("to-json--from-json", () {
1038 var o = buildServerConfig(); 1206 var o = buildServerConfig();
1039 var od = new api.ServerConfig.fromJson(o.toJson()); 1207 var od = new api.ServerConfig.fromJson(o.toJson());
1040 checkServerConfig(od); 1208 checkServerConfig(od);
1041 }); 1209 });
1042 }); 1210 });
1043 1211
1044 1212
1213 unittest.group("obj-schema-SetLabelsRequest", () {
1214 unittest.test("to-json--from-json", () {
1215 var o = buildSetLabelsRequest();
1216 var od = new api.SetLabelsRequest.fromJson(o.toJson());
1217 checkSetLabelsRequest(od);
1218 });
1219 });
1220
1221
1222 unittest.group("obj-schema-SetLegacyAbacRequest", () {
1223 unittest.test("to-json--from-json", () {
1224 var o = buildSetLegacyAbacRequest();
1225 var od = new api.SetLegacyAbacRequest.fromJson(o.toJson());
1226 checkSetLegacyAbacRequest(od);
1227 });
1228 });
1229
1230
1231 unittest.group("obj-schema-SetMasterAuthRequest", () {
1232 unittest.test("to-json--from-json", () {
1233 var o = buildSetMasterAuthRequest();
1234 var od = new api.SetMasterAuthRequest.fromJson(o.toJson());
1235 checkSetMasterAuthRequest(od);
1236 });
1237 });
1238
1239
1045 unittest.group("obj-schema-SetNodePoolManagementRequest", () { 1240 unittest.group("obj-schema-SetNodePoolManagementRequest", () {
1046 unittest.test("to-json--from-json", () { 1241 unittest.test("to-json--from-json", () {
1047 var o = buildSetNodePoolManagementRequest(); 1242 var o = buildSetNodePoolManagementRequest();
1048 var od = new api.SetNodePoolManagementRequest.fromJson(o.toJson()); 1243 var od = new api.SetNodePoolManagementRequest.fromJson(o.toJson());
1049 checkSetNodePoolManagementRequest(od); 1244 checkSetNodePoolManagementRequest(od);
1050 }); 1245 });
1051 }); 1246 });
1052 1247
1053 1248
1054 unittest.group("obj-schema-UpdateClusterRequest", () { 1249 unittest.group("obj-schema-UpdateClusterRequest", () {
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
1306 "content-type" : "application/json; charset=utf-8", 1501 "content-type" : "application/json; charset=utf-8",
1307 }; 1502 };
1308 var resp = convert.JSON.encode(buildCluster()); 1503 var resp = convert.JSON.encode(buildCluster());
1309 return new async.Future.value(stringResponse(200, h, resp)); 1504 return new async.Future.value(stringResponse(200, h, resp));
1310 }), true); 1505 }), true);
1311 res.get(arg_projectId, arg_zone, arg_clusterId).then(unittest.expectAsync( ((api.Cluster response) { 1506 res.get(arg_projectId, arg_zone, arg_clusterId).then(unittest.expectAsync( ((api.Cluster response) {
1312 checkCluster(response); 1507 checkCluster(response);
1313 }))); 1508 })));
1314 }); 1509 });
1315 1510
1511 unittest.test("method--legacyAbac", () {
1512
1513 var mock = new HttpServerMock();
1514 api.ProjectsZonesClustersResourceApi res = new api.ContainerApi(mock).proj ects.zones.clusters;
1515 var arg_request = buildSetLegacyAbacRequest();
1516 var arg_projectId = "foo";
1517 var arg_zone = "foo";
1518 var arg_clusterId = "foo";
1519 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1520 var obj = new api.SetLegacyAbacRequest.fromJson(json);
1521 checkSetLegacyAbacRequest(obj);
1522
1523 var path = (req.url).path;
1524 var pathOffset = 0;
1525 var index;
1526 var subPart;
1527 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1528 pathOffset += 1;
1529 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1/projects/"));
1530 pathOffset += 12;
1531 index = path.indexOf("/zones/", pathOffset);
1532 unittest.expect(index >= 0, unittest.isTrue);
1533 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1534 pathOffset = index;
1535 unittest.expect(subPart, unittest.equals("$arg_projectId"));
1536 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("/zones/"));
1537 pathOffset += 7;
1538 index = path.indexOf("/clusters/", pathOffset);
1539 unittest.expect(index >= 0, unittest.isTrue);
1540 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1541 pathOffset = index;
1542 unittest.expect(subPart, unittest.equals("$arg_zone"));
1543 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/clusters/"));
1544 pathOffset += 10;
1545 index = path.indexOf("/legacyAbac", pathOffset);
1546 unittest.expect(index >= 0, unittest.isTrue);
1547 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1548 pathOffset = index;
1549 unittest.expect(subPart, unittest.equals("$arg_clusterId"));
1550 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("/legacyAbac"));
1551 pathOffset += 11;
1552
1553 var query = (req.url).query;
1554 var queryOffset = 0;
1555 var queryMap = {};
1556 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1557 parseBool(n) {
1558 if (n == "true") return true;
1559 if (n == "false") return false;
1560 if (n == null) return null;
1561 throw new core.ArgumentError("Invalid boolean: $n");
1562 }
1563 if (query.length > 0) {
1564 for (var part in query.split("&")) {
1565 var keyvalue = part.split("=");
1566 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1567 }
1568 }
1569
1570
1571 var h = {
1572 "content-type" : "application/json; charset=utf-8",
1573 };
1574 var resp = convert.JSON.encode(buildOperation());
1575 return new async.Future.value(stringResponse(200, h, resp));
1576 }), true);
1577 res.legacyAbac(arg_request, arg_projectId, arg_zone, arg_clusterId).then(u nittest.expectAsync(((api.Operation response) {
1578 checkOperation(response);
1579 })));
1580 });
1581
1316 unittest.test("method--list", () { 1582 unittest.test("method--list", () {
1317 1583
1318 var mock = new HttpServerMock(); 1584 var mock = new HttpServerMock();
1319 api.ProjectsZonesClustersResourceApi res = new api.ContainerApi(mock).proj ects.zones.clusters; 1585 api.ProjectsZonesClustersResourceApi res = new api.ContainerApi(mock).proj ects.zones.clusters;
1320 var arg_projectId = "foo"; 1586 var arg_projectId = "foo";
1321 var arg_zone = "foo"; 1587 var arg_zone = "foo";
1322 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1588 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1323 var path = (req.url).path; 1589 var path = (req.url).path;
1324 var pathOffset = 0; 1590 var pathOffset = 0;
1325 var index; 1591 var index;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1365 "content-type" : "application/json; charset=utf-8", 1631 "content-type" : "application/json; charset=utf-8",
1366 }; 1632 };
1367 var resp = convert.JSON.encode(buildListClustersResponse()); 1633 var resp = convert.JSON.encode(buildListClustersResponse());
1368 return new async.Future.value(stringResponse(200, h, resp)); 1634 return new async.Future.value(stringResponse(200, h, resp));
1369 }), true); 1635 }), true);
1370 res.list(arg_projectId, arg_zone).then(unittest.expectAsync(((api.ListClus tersResponse response) { 1636 res.list(arg_projectId, arg_zone).then(unittest.expectAsync(((api.ListClus tersResponse response) {
1371 checkListClustersResponse(response); 1637 checkListClustersResponse(response);
1372 }))); 1638 })));
1373 }); 1639 });
1374 1640
1641 unittest.test("method--resourceLabels", () {
1642
1643 var mock = new HttpServerMock();
1644 api.ProjectsZonesClustersResourceApi res = new api.ContainerApi(mock).proj ects.zones.clusters;
1645 var arg_request = buildSetLabelsRequest();
1646 var arg_projectId = "foo";
1647 var arg_zone = "foo";
1648 var arg_clusterId = "foo";
1649 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1650 var obj = new api.SetLabelsRequest.fromJson(json);
1651 checkSetLabelsRequest(obj);
1652
1653 var path = (req.url).path;
1654 var pathOffset = 0;
1655 var index;
1656 var subPart;
1657 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1658 pathOffset += 1;
1659 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1/projects/"));
1660 pathOffset += 12;
1661 index = path.indexOf("/zones/", pathOffset);
1662 unittest.expect(index >= 0, unittest.isTrue);
1663 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1664 pathOffset = index;
1665 unittest.expect(subPart, unittest.equals("$arg_projectId"));
1666 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("/zones/"));
1667 pathOffset += 7;
1668 index = path.indexOf("/clusters/", pathOffset);
1669 unittest.expect(index >= 0, unittest.isTrue);
1670 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1671 pathOffset = index;
1672 unittest.expect(subPart, unittest.equals("$arg_zone"));
1673 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/clusters/"));
1674 pathOffset += 10;
1675 index = path.indexOf("/resourceLabels", pathOffset);
1676 unittest.expect(index >= 0, unittest.isTrue);
1677 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1678 pathOffset = index;
1679 unittest.expect(subPart, unittest.equals("$arg_clusterId"));
1680 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("/resourceLabels"));
1681 pathOffset += 15;
1682
1683 var query = (req.url).query;
1684 var queryOffset = 0;
1685 var queryMap = {};
1686 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1687 parseBool(n) {
1688 if (n == "true") return true;
1689 if (n == "false") return false;
1690 if (n == null) return null;
1691 throw new core.ArgumentError("Invalid boolean: $n");
1692 }
1693 if (query.length > 0) {
1694 for (var part in query.split("&")) {
1695 var keyvalue = part.split("=");
1696 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1697 }
1698 }
1699
1700
1701 var h = {
1702 "content-type" : "application/json; charset=utf-8",
1703 };
1704 var resp = convert.JSON.encode(buildOperation());
1705 return new async.Future.value(stringResponse(200, h, resp));
1706 }), true);
1707 res.resourceLabels(arg_request, arg_projectId, arg_zone, arg_clusterId).th en(unittest.expectAsync(((api.Operation response) {
1708 checkOperation(response);
1709 })));
1710 });
1711
1712 unittest.test("method--setMasterAuth", () {
1713
1714 var mock = new HttpServerMock();
1715 api.ProjectsZonesClustersResourceApi res = new api.ContainerApi(mock).proj ects.zones.clusters;
1716 var arg_request = buildSetMasterAuthRequest();
1717 var arg_projectId = "foo";
1718 var arg_zone = "foo";
1719 var arg_clusterId = "foo";
1720 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1721 var obj = new api.SetMasterAuthRequest.fromJson(json);
1722 checkSetMasterAuthRequest(obj);
1723
1724 var path = (req.url).path;
1725 var pathOffset = 0;
1726 var index;
1727 var subPart;
1728 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1729 pathOffset += 1;
1730 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1/projects/"));
1731 pathOffset += 12;
1732 index = path.indexOf("/zones/", pathOffset);
1733 unittest.expect(index >= 0, unittest.isTrue);
1734 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1735 pathOffset = index;
1736 unittest.expect(subPart, unittest.equals("$arg_projectId"));
1737 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("/zones/"));
1738 pathOffset += 7;
1739 index = path.indexOf("/clusters/", pathOffset);
1740 unittest.expect(index >= 0, unittest.isTrue);
1741 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1742 pathOffset = index;
1743 unittest.expect(subPart, unittest.equals("$arg_zone"));
1744 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/clusters/"));
1745 pathOffset += 10;
1746 index = path.indexOf(":setMasterAuth", pathOffset);
1747 unittest.expect(index >= 0, unittest.isTrue);
1748 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1749 pathOffset = index;
1750 unittest.expect(subPart, unittest.equals("$arg_clusterId"));
1751 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals(":setMasterAuth"));
1752 pathOffset += 14;
1753
1754 var query = (req.url).query;
1755 var queryOffset = 0;
1756 var queryMap = {};
1757 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1758 parseBool(n) {
1759 if (n == "true") return true;
1760 if (n == "false") return false;
1761 if (n == null) return null;
1762 throw new core.ArgumentError("Invalid boolean: $n");
1763 }
1764 if (query.length > 0) {
1765 for (var part in query.split("&")) {
1766 var keyvalue = part.split("=");
1767 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1768 }
1769 }
1770
1771
1772 var h = {
1773 "content-type" : "application/json; charset=utf-8",
1774 };
1775 var resp = convert.JSON.encode(buildOperation());
1776 return new async.Future.value(stringResponse(200, h, resp));
1777 }), true);
1778 res.setMasterAuth(arg_request, arg_projectId, arg_zone, arg_clusterId).the n(unittest.expectAsync(((api.Operation response) {
1779 checkOperation(response);
1780 })));
1781 });
1782
1375 unittest.test("method--update", () { 1783 unittest.test("method--update", () {
1376 1784
1377 var mock = new HttpServerMock(); 1785 var mock = new HttpServerMock();
1378 api.ProjectsZonesClustersResourceApi res = new api.ContainerApi(mock).proj ects.zones.clusters; 1786 api.ProjectsZonesClustersResourceApi res = new api.ContainerApi(mock).proj ects.zones.clusters;
1379 var arg_request = buildUpdateClusterRequest(); 1787 var arg_request = buildUpdateClusterRequest();
1380 var arg_projectId = "foo"; 1788 var arg_projectId = "foo";
1381 var arg_zone = "foo"; 1789 var arg_zone = "foo";
1382 var arg_clusterId = "foo"; 1790 var arg_clusterId = "foo";
1383 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1791 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1384 var obj = new api.UpdateClusterRequest.fromJson(json); 1792 var obj = new api.UpdateClusterRequest.fromJson(json);
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
2076 res.list(arg_projectId, arg_zone).then(unittest.expectAsync(((api.ListOper ationsResponse response) { 2484 res.list(arg_projectId, arg_zone).then(unittest.expectAsync(((api.ListOper ationsResponse response) {
2077 checkListOperationsResponse(response); 2485 checkListOperationsResponse(response);
2078 }))); 2486 })));
2079 }); 2487 });
2080 2488
2081 }); 2489 });
2082 2490
2083 2491
2084 } 2492 }
2085 2493
OLDNEW
« no previous file with comments | « generated/googleapis/test/consumersurveys/v2_test.dart ('k') | generated/googleapis/test/content/v2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698