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

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

Issue 2734843002: Api-roll 46: 2017-03-06 (Closed)
Patch Set: Created 3 years, 9 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 buildUnnamed1799() { 113 buildUnnamed1569() {
114 var o = new core.List<core.String>(); 114 var o = new core.List<core.String>();
115 o.add("foo"); 115 o.add("foo");
116 o.add("foo"); 116 o.add("foo");
117 return o; 117 return o;
118 } 118 }
119 119
120 checkUnnamed1799(core.List<core.String> o) { 120 checkUnnamed1569(core.List<core.String> o) {
121 unittest.expect(o, unittest.hasLength(2)); 121 unittest.expect(o, unittest.hasLength(2));
122 unittest.expect(o[0], unittest.equals('foo')); 122 unittest.expect(o[0], unittest.equals('foo'));
123 unittest.expect(o[1], unittest.equals('foo')); 123 unittest.expect(o[1], unittest.equals('foo'));
124 } 124 }
125 125
126 buildUnnamed1800() { 126 buildUnnamed1570() {
127 var o = new core.List<core.String>(); 127 var o = new core.List<core.String>();
128 o.add("foo"); 128 o.add("foo");
129 o.add("foo"); 129 o.add("foo");
130 return o; 130 return o;
131 } 131 }
132 132
133 checkUnnamed1800(core.List<core.String> o) { 133 checkUnnamed1570(core.List<core.String> o) {
134 unittest.expect(o, unittest.hasLength(2)); 134 unittest.expect(o, unittest.hasLength(2));
135 unittest.expect(o[0], unittest.equals('foo')); 135 unittest.expect(o[0], unittest.equals('foo'));
136 unittest.expect(o[1], unittest.equals('foo')); 136 unittest.expect(o[1], unittest.equals('foo'));
137 } 137 }
138 138
139 buildUnnamed1801() { 139 buildUnnamed1571() {
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 checkUnnamed1801(core.List<api.NodePool> o) { 146 checkUnnamed1571(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 = buildUnnamed1799(); 169 o.instanceGroupUrls = buildUnnamed1569();
170 o.locations = buildUnnamed1800(); 170 o.locations = buildUnnamed1570();
171 o.loggingService = "foo"; 171 o.loggingService = "foo";
172 o.masterAuth = buildMasterAuth(); 172 o.masterAuth = buildMasterAuth();
173 o.monitoringService = "foo"; 173 o.monitoringService = "foo";
174 o.name = "foo"; 174 o.name = "foo";
175 o.network = "foo"; 175 o.network = "foo";
176 o.nodeConfig = buildNodeConfig(); 176 o.nodeConfig = buildNodeConfig();
177 o.nodeIpv4CidrSize = 42; 177 o.nodeIpv4CidrSize = 42;
178 o.nodePools = buildUnnamed1801(); 178 o.nodePools = buildUnnamed1571();
179 o.selfLink = "foo"; 179 o.selfLink = "foo";
180 o.servicesIpv4Cidr = "foo"; 180 o.servicesIpv4Cidr = "foo";
181 o.status = "foo"; 181 o.status = "foo";
182 o.statusMessage = "foo"; 182 o.statusMessage = "foo";
183 o.subnetwork = "foo"; 183 o.subnetwork = "foo";
184 o.zone = "foo"; 184 o.zone = "foo";
185 } 185 }
186 buildCounterCluster--; 186 buildCounterCluster--;
187 return o; 187 return o;
188 } 188 }
189 189
190 checkCluster(api.Cluster o) { 190 checkCluster(api.Cluster o) {
191 buildCounterCluster++; 191 buildCounterCluster++;
192 if (buildCounterCluster < 3) { 192 if (buildCounterCluster < 3) {
193 checkAddonsConfig(o.addonsConfig); 193 checkAddonsConfig(o.addonsConfig);
194 unittest.expect(o.clusterIpv4Cidr, unittest.equals('foo')); 194 unittest.expect(o.clusterIpv4Cidr, unittest.equals('foo'));
195 unittest.expect(o.createTime, unittest.equals('foo')); 195 unittest.expect(o.createTime, unittest.equals('foo'));
196 unittest.expect(o.currentMasterVersion, unittest.equals('foo')); 196 unittest.expect(o.currentMasterVersion, unittest.equals('foo'));
197 unittest.expect(o.currentNodeCount, unittest.equals(42)); 197 unittest.expect(o.currentNodeCount, unittest.equals(42));
198 unittest.expect(o.currentNodeVersion, unittest.equals('foo')); 198 unittest.expect(o.currentNodeVersion, unittest.equals('foo'));
199 unittest.expect(o.description, unittest.equals('foo')); 199 unittest.expect(o.description, unittest.equals('foo'));
200 unittest.expect(o.enableKubernetesAlpha, unittest.isTrue); 200 unittest.expect(o.enableKubernetesAlpha, unittest.isTrue);
201 unittest.expect(o.endpoint, unittest.equals('foo')); 201 unittest.expect(o.endpoint, unittest.equals('foo'));
202 unittest.expect(o.expireTime, unittest.equals('foo')); 202 unittest.expect(o.expireTime, unittest.equals('foo'));
203 unittest.expect(o.initialClusterVersion, unittest.equals('foo')); 203 unittest.expect(o.initialClusterVersion, unittest.equals('foo'));
204 unittest.expect(o.initialNodeCount, unittest.equals(42)); 204 unittest.expect(o.initialNodeCount, unittest.equals(42));
205 checkUnnamed1799(o.instanceGroupUrls); 205 checkUnnamed1569(o.instanceGroupUrls);
206 checkUnnamed1800(o.locations); 206 checkUnnamed1570(o.locations);
207 unittest.expect(o.loggingService, unittest.equals('foo')); 207 unittest.expect(o.loggingService, unittest.equals('foo'));
208 checkMasterAuth(o.masterAuth); 208 checkMasterAuth(o.masterAuth);
209 unittest.expect(o.monitoringService, unittest.equals('foo')); 209 unittest.expect(o.monitoringService, unittest.equals('foo'));
210 unittest.expect(o.name, unittest.equals('foo')); 210 unittest.expect(o.name, unittest.equals('foo'));
211 unittest.expect(o.network, unittest.equals('foo')); 211 unittest.expect(o.network, unittest.equals('foo'));
212 checkNodeConfig(o.nodeConfig); 212 checkNodeConfig(o.nodeConfig);
213 unittest.expect(o.nodeIpv4CidrSize, unittest.equals(42)); 213 unittest.expect(o.nodeIpv4CidrSize, unittest.equals(42));
214 checkUnnamed1801(o.nodePools); 214 checkUnnamed1571(o.nodePools);
215 unittest.expect(o.selfLink, unittest.equals('foo')); 215 unittest.expect(o.selfLink, unittest.equals('foo'));
216 unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo')); 216 unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo'));
217 unittest.expect(o.status, unittest.equals('foo')); 217 unittest.expect(o.status, unittest.equals('foo'));
218 unittest.expect(o.statusMessage, unittest.equals('foo')); 218 unittest.expect(o.statusMessage, unittest.equals('foo'));
219 unittest.expect(o.subnetwork, unittest.equals('foo')); 219 unittest.expect(o.subnetwork, unittest.equals('foo'));
220 unittest.expect(o.zone, unittest.equals('foo')); 220 unittest.expect(o.zone, unittest.equals('foo'));
221 } 221 }
222 buildCounterCluster--; 222 buildCounterCluster--;
223 } 223 }
224 224
225 buildUnnamed1802() { 225 buildUnnamed1572() {
226 var o = new core.List<core.String>(); 226 var o = new core.List<core.String>();
227 o.add("foo"); 227 o.add("foo");
228 o.add("foo"); 228 o.add("foo");
229 return o; 229 return o;
230 } 230 }
231 231
232 checkUnnamed1802(core.List<core.String> o) { 232 checkUnnamed1572(core.List<core.String> o) {
233 unittest.expect(o, unittest.hasLength(2)); 233 unittest.expect(o, unittest.hasLength(2));
234 unittest.expect(o[0], unittest.equals('foo')); 234 unittest.expect(o[0], unittest.equals('foo'));
235 unittest.expect(o[1], unittest.equals('foo')); 235 unittest.expect(o[1], unittest.equals('foo'));
236 } 236 }
237 237
238 core.int buildCounterClusterUpdate = 0; 238 core.int buildCounterClusterUpdate = 0;
239 buildClusterUpdate() { 239 buildClusterUpdate() {
240 var o = new api.ClusterUpdate(); 240 var o = new api.ClusterUpdate();
241 buildCounterClusterUpdate++; 241 buildCounterClusterUpdate++;
242 if (buildCounterClusterUpdate < 3) { 242 if (buildCounterClusterUpdate < 3) {
243 o.desiredAddonsConfig = buildAddonsConfig(); 243 o.desiredAddonsConfig = buildAddonsConfig();
244 o.desiredImageType = "foo"; 244 o.desiredImageType = "foo";
245 o.desiredLocations = buildUnnamed1802(); 245 o.desiredLocations = buildUnnamed1572();
246 o.desiredMasterVersion = "foo"; 246 o.desiredMasterVersion = "foo";
247 o.desiredMonitoringService = "foo"; 247 o.desiredMonitoringService = "foo";
248 o.desiredNodePoolAutoscaling = buildNodePoolAutoscaling(); 248 o.desiredNodePoolAutoscaling = buildNodePoolAutoscaling();
249 o.desiredNodePoolId = "foo"; 249 o.desiredNodePoolId = "foo";
250 o.desiredNodeVersion = "foo"; 250 o.desiredNodeVersion = "foo";
251 } 251 }
252 buildCounterClusterUpdate--; 252 buildCounterClusterUpdate--;
253 return o; 253 return o;
254 } 254 }
255 255
256 checkClusterUpdate(api.ClusterUpdate o) { 256 checkClusterUpdate(api.ClusterUpdate o) {
257 buildCounterClusterUpdate++; 257 buildCounterClusterUpdate++;
258 if (buildCounterClusterUpdate < 3) { 258 if (buildCounterClusterUpdate < 3) {
259 checkAddonsConfig(o.desiredAddonsConfig); 259 checkAddonsConfig(o.desiredAddonsConfig);
260 unittest.expect(o.desiredImageType, unittest.equals('foo')); 260 unittest.expect(o.desiredImageType, unittest.equals('foo'));
261 checkUnnamed1802(o.desiredLocations); 261 checkUnnamed1572(o.desiredLocations);
262 unittest.expect(o.desiredMasterVersion, unittest.equals('foo')); 262 unittest.expect(o.desiredMasterVersion, unittest.equals('foo'));
263 unittest.expect(o.desiredMonitoringService, unittest.equals('foo')); 263 unittest.expect(o.desiredMonitoringService, unittest.equals('foo'));
264 checkNodePoolAutoscaling(o.desiredNodePoolAutoscaling); 264 checkNodePoolAutoscaling(o.desiredNodePoolAutoscaling);
265 unittest.expect(o.desiredNodePoolId, unittest.equals('foo')); 265 unittest.expect(o.desiredNodePoolId, unittest.equals('foo'));
266 unittest.expect(o.desiredNodeVersion, unittest.equals('foo')); 266 unittest.expect(o.desiredNodeVersion, unittest.equals('foo'));
267 } 267 }
268 buildCounterClusterUpdate--; 268 buildCounterClusterUpdate--;
269 } 269 }
270 270
271 core.int buildCounterCreateClusterRequest = 0; 271 core.int buildCounterCreateClusterRequest = 0;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 } 354 }
355 355
356 checkHttpLoadBalancing(api.HttpLoadBalancing o) { 356 checkHttpLoadBalancing(api.HttpLoadBalancing o) {
357 buildCounterHttpLoadBalancing++; 357 buildCounterHttpLoadBalancing++;
358 if (buildCounterHttpLoadBalancing < 3) { 358 if (buildCounterHttpLoadBalancing < 3) {
359 unittest.expect(o.disabled, unittest.isTrue); 359 unittest.expect(o.disabled, unittest.isTrue);
360 } 360 }
361 buildCounterHttpLoadBalancing--; 361 buildCounterHttpLoadBalancing--;
362 } 362 }
363 363
364 buildUnnamed1803() { 364 buildUnnamed1573() {
365 var o = new core.List<api.Cluster>(); 365 var o = new core.List<api.Cluster>();
366 o.add(buildCluster()); 366 o.add(buildCluster());
367 o.add(buildCluster()); 367 o.add(buildCluster());
368 return o; 368 return o;
369 } 369 }
370 370
371 checkUnnamed1803(core.List<api.Cluster> o) { 371 checkUnnamed1573(core.List<api.Cluster> o) {
372 unittest.expect(o, unittest.hasLength(2)); 372 unittest.expect(o, unittest.hasLength(2));
373 checkCluster(o[0]); 373 checkCluster(o[0]);
374 checkCluster(o[1]); 374 checkCluster(o[1]);
375 } 375 }
376 376
377 buildUnnamed1804() { 377 buildUnnamed1574() {
378 var o = new core.List<core.String>(); 378 var o = new core.List<core.String>();
379 o.add("foo"); 379 o.add("foo");
380 o.add("foo"); 380 o.add("foo");
381 return o; 381 return o;
382 } 382 }
383 383
384 checkUnnamed1804(core.List<core.String> o) { 384 checkUnnamed1574(core.List<core.String> o) {
385 unittest.expect(o, unittest.hasLength(2)); 385 unittest.expect(o, unittest.hasLength(2));
386 unittest.expect(o[0], unittest.equals('foo')); 386 unittest.expect(o[0], unittest.equals('foo'));
387 unittest.expect(o[1], unittest.equals('foo')); 387 unittest.expect(o[1], unittest.equals('foo'));
388 } 388 }
389 389
390 core.int buildCounterListClustersResponse = 0; 390 core.int buildCounterListClustersResponse = 0;
391 buildListClustersResponse() { 391 buildListClustersResponse() {
392 var o = new api.ListClustersResponse(); 392 var o = new api.ListClustersResponse();
393 buildCounterListClustersResponse++; 393 buildCounterListClustersResponse++;
394 if (buildCounterListClustersResponse < 3) { 394 if (buildCounterListClustersResponse < 3) {
395 o.clusters = buildUnnamed1803(); 395 o.clusters = buildUnnamed1573();
396 o.missingZones = buildUnnamed1804(); 396 o.missingZones = buildUnnamed1574();
397 } 397 }
398 buildCounterListClustersResponse--; 398 buildCounterListClustersResponse--;
399 return o; 399 return o;
400 } 400 }
401 401
402 checkListClustersResponse(api.ListClustersResponse o) { 402 checkListClustersResponse(api.ListClustersResponse o) {
403 buildCounterListClustersResponse++; 403 buildCounterListClustersResponse++;
404 if (buildCounterListClustersResponse < 3) { 404 if (buildCounterListClustersResponse < 3) {
405 checkUnnamed1803(o.clusters); 405 checkUnnamed1573(o.clusters);
406 checkUnnamed1804(o.missingZones); 406 checkUnnamed1574(o.missingZones);
407 } 407 }
408 buildCounterListClustersResponse--; 408 buildCounterListClustersResponse--;
409 } 409 }
410 410
411 buildUnnamed1805() { 411 buildUnnamed1575() {
412 var o = new core.List<api.NodePool>(); 412 var o = new core.List<api.NodePool>();
413 o.add(buildNodePool()); 413 o.add(buildNodePool());
414 o.add(buildNodePool()); 414 o.add(buildNodePool());
415 return o; 415 return o;
416 } 416 }
417 417
418 checkUnnamed1805(core.List<api.NodePool> o) { 418 checkUnnamed1575(core.List<api.NodePool> o) {
419 unittest.expect(o, unittest.hasLength(2)); 419 unittest.expect(o, unittest.hasLength(2));
420 checkNodePool(o[0]); 420 checkNodePool(o[0]);
421 checkNodePool(o[1]); 421 checkNodePool(o[1]);
422 } 422 }
423 423
424 core.int buildCounterListNodePoolsResponse = 0; 424 core.int buildCounterListNodePoolsResponse = 0;
425 buildListNodePoolsResponse() { 425 buildListNodePoolsResponse() {
426 var o = new api.ListNodePoolsResponse(); 426 var o = new api.ListNodePoolsResponse();
427 buildCounterListNodePoolsResponse++; 427 buildCounterListNodePoolsResponse++;
428 if (buildCounterListNodePoolsResponse < 3) { 428 if (buildCounterListNodePoolsResponse < 3) {
429 o.nodePools = buildUnnamed1805(); 429 o.nodePools = buildUnnamed1575();
430 } 430 }
431 buildCounterListNodePoolsResponse--; 431 buildCounterListNodePoolsResponse--;
432 return o; 432 return o;
433 } 433 }
434 434
435 checkListNodePoolsResponse(api.ListNodePoolsResponse o) { 435 checkListNodePoolsResponse(api.ListNodePoolsResponse o) {
436 buildCounterListNodePoolsResponse++; 436 buildCounterListNodePoolsResponse++;
437 if (buildCounterListNodePoolsResponse < 3) { 437 if (buildCounterListNodePoolsResponse < 3) {
438 checkUnnamed1805(o.nodePools); 438 checkUnnamed1575(o.nodePools);
439 } 439 }
440 buildCounterListNodePoolsResponse--; 440 buildCounterListNodePoolsResponse--;
441 } 441 }
442 442
443 buildUnnamed1806() { 443 buildUnnamed1576() {
444 var o = new core.List<core.String>(); 444 var o = new core.List<core.String>();
445 o.add("foo"); 445 o.add("foo");
446 o.add("foo"); 446 o.add("foo");
447 return o; 447 return o;
448 } 448 }
449 449
450 checkUnnamed1806(core.List<core.String> o) { 450 checkUnnamed1576(core.List<core.String> o) {
451 unittest.expect(o, unittest.hasLength(2)); 451 unittest.expect(o, unittest.hasLength(2));
452 unittest.expect(o[0], unittest.equals('foo')); 452 unittest.expect(o[0], unittest.equals('foo'));
453 unittest.expect(o[1], unittest.equals('foo')); 453 unittest.expect(o[1], unittest.equals('foo'));
454 } 454 }
455 455
456 buildUnnamed1807() { 456 buildUnnamed1577() {
457 var o = new core.List<api.Operation>(); 457 var o = new core.List<api.Operation>();
458 o.add(buildOperation()); 458 o.add(buildOperation());
459 o.add(buildOperation()); 459 o.add(buildOperation());
460 return o; 460 return o;
461 } 461 }
462 462
463 checkUnnamed1807(core.List<api.Operation> o) { 463 checkUnnamed1577(core.List<api.Operation> o) {
464 unittest.expect(o, unittest.hasLength(2)); 464 unittest.expect(o, unittest.hasLength(2));
465 checkOperation(o[0]); 465 checkOperation(o[0]);
466 checkOperation(o[1]); 466 checkOperation(o[1]);
467 } 467 }
468 468
469 core.int buildCounterListOperationsResponse = 0; 469 core.int buildCounterListOperationsResponse = 0;
470 buildListOperationsResponse() { 470 buildListOperationsResponse() {
471 var o = new api.ListOperationsResponse(); 471 var o = new api.ListOperationsResponse();
472 buildCounterListOperationsResponse++; 472 buildCounterListOperationsResponse++;
473 if (buildCounterListOperationsResponse < 3) { 473 if (buildCounterListOperationsResponse < 3) {
474 o.missingZones = buildUnnamed1806(); 474 o.missingZones = buildUnnamed1576();
475 o.operations = buildUnnamed1807(); 475 o.operations = buildUnnamed1577();
476 } 476 }
477 buildCounterListOperationsResponse--; 477 buildCounterListOperationsResponse--;
478 return o; 478 return o;
479 } 479 }
480 480
481 checkListOperationsResponse(api.ListOperationsResponse o) { 481 checkListOperationsResponse(api.ListOperationsResponse o) {
482 buildCounterListOperationsResponse++; 482 buildCounterListOperationsResponse++;
483 if (buildCounterListOperationsResponse < 3) { 483 if (buildCounterListOperationsResponse < 3) {
484 checkUnnamed1806(o.missingZones); 484 checkUnnamed1576(o.missingZones);
485 checkUnnamed1807(o.operations); 485 checkUnnamed1577(o.operations);
486 } 486 }
487 buildCounterListOperationsResponse--; 487 buildCounterListOperationsResponse--;
488 } 488 }
489 489
490 core.int buildCounterMasterAuth = 0; 490 core.int buildCounterMasterAuth = 0;
491 buildMasterAuth() { 491 buildMasterAuth() {
492 var o = new api.MasterAuth(); 492 var o = new api.MasterAuth();
493 buildCounterMasterAuth++; 493 buildCounterMasterAuth++;
494 if (buildCounterMasterAuth < 3) { 494 if (buildCounterMasterAuth < 3) {
495 o.clientCertificate = "foo"; 495 o.clientCertificate = "foo";
(...skipping 11 matching lines...) Expand all
507 if (buildCounterMasterAuth < 3) { 507 if (buildCounterMasterAuth < 3) {
508 unittest.expect(o.clientCertificate, unittest.equals('foo')); 508 unittest.expect(o.clientCertificate, unittest.equals('foo'));
509 unittest.expect(o.clientKey, unittest.equals('foo')); 509 unittest.expect(o.clientKey, unittest.equals('foo'));
510 unittest.expect(o.clusterCaCertificate, unittest.equals('foo')); 510 unittest.expect(o.clusterCaCertificate, unittest.equals('foo'));
511 unittest.expect(o.password, unittest.equals('foo')); 511 unittest.expect(o.password, unittest.equals('foo'));
512 unittest.expect(o.username, unittest.equals('foo')); 512 unittest.expect(o.username, unittest.equals('foo'));
513 } 513 }
514 buildCounterMasterAuth--; 514 buildCounterMasterAuth--;
515 } 515 }
516 516
517 buildUnnamed1808() { 517 buildUnnamed1578() {
518 var o = new core.Map<core.String, core.String>(); 518 var o = new core.Map<core.String, core.String>();
519 o["x"] = "foo"; 519 o["x"] = "foo";
520 o["y"] = "foo"; 520 o["y"] = "foo";
521 return o; 521 return o;
522 } 522 }
523 523
524 checkUnnamed1808(core.Map<core.String, core.String> o) { 524 checkUnnamed1578(core.Map<core.String, core.String> o) {
525 unittest.expect(o, unittest.hasLength(2)); 525 unittest.expect(o, unittest.hasLength(2));
526 unittest.expect(o["x"], unittest.equals('foo')); 526 unittest.expect(o["x"], unittest.equals('foo'));
527 unittest.expect(o["y"], unittest.equals('foo')); 527 unittest.expect(o["y"], unittest.equals('foo'));
528 } 528 }
529 529
530 buildUnnamed1809() { 530 buildUnnamed1579() {
531 var o = new core.Map<core.String, core.String>(); 531 var o = new core.Map<core.String, core.String>();
532 o["x"] = "foo"; 532 o["x"] = "foo";
533 o["y"] = "foo"; 533 o["y"] = "foo";
534 return o; 534 return o;
535 } 535 }
536 536
537 checkUnnamed1809(core.Map<core.String, core.String> o) { 537 checkUnnamed1579(core.Map<core.String, core.String> o) {
538 unittest.expect(o, unittest.hasLength(2)); 538 unittest.expect(o, unittest.hasLength(2));
539 unittest.expect(o["x"], unittest.equals('foo')); 539 unittest.expect(o["x"], unittest.equals('foo'));
540 unittest.expect(o["y"], unittest.equals('foo')); 540 unittest.expect(o["y"], unittest.equals('foo'));
541 } 541 }
542 542
543 buildUnnamed1810() { 543 buildUnnamed1580() {
544 var o = new core.List<core.String>(); 544 var o = new core.List<core.String>();
545 o.add("foo"); 545 o.add("foo");
546 o.add("foo"); 546 o.add("foo");
547 return o; 547 return o;
548 } 548 }
549 549
550 checkUnnamed1810(core.List<core.String> o) { 550 checkUnnamed1580(core.List<core.String> o) {
551 unittest.expect(o, unittest.hasLength(2)); 551 unittest.expect(o, unittest.hasLength(2));
552 unittest.expect(o[0], unittest.equals('foo')); 552 unittest.expect(o[0], unittest.equals('foo'));
553 unittest.expect(o[1], unittest.equals('foo')); 553 unittest.expect(o[1], unittest.equals('foo'));
554 } 554 }
555 555
556 buildUnnamed1811() { 556 buildUnnamed1581() {
557 var o = new core.List<core.String>(); 557 var o = new core.List<core.String>();
558 o.add("foo"); 558 o.add("foo");
559 o.add("foo"); 559 o.add("foo");
560 return o; 560 return o;
561 } 561 }
562 562
563 checkUnnamed1811(core.List<core.String> o) { 563 checkUnnamed1581(core.List<core.String> o) {
564 unittest.expect(o, unittest.hasLength(2)); 564 unittest.expect(o, unittest.hasLength(2));
565 unittest.expect(o[0], unittest.equals('foo')); 565 unittest.expect(o[0], unittest.equals('foo'));
566 unittest.expect(o[1], unittest.equals('foo')); 566 unittest.expect(o[1], unittest.equals('foo'));
567 } 567 }
568 568
569 core.int buildCounterNodeConfig = 0; 569 core.int buildCounterNodeConfig = 0;
570 buildNodeConfig() { 570 buildNodeConfig() {
571 var o = new api.NodeConfig(); 571 var o = new api.NodeConfig();
572 buildCounterNodeConfig++; 572 buildCounterNodeConfig++;
573 if (buildCounterNodeConfig < 3) { 573 if (buildCounterNodeConfig < 3) {
574 o.diskSizeGb = 42; 574 o.diskSizeGb = 42;
575 o.imageType = "foo"; 575 o.imageType = "foo";
576 o.labels = buildUnnamed1808(); 576 o.labels = buildUnnamed1578();
577 o.localSsdCount = 42; 577 o.localSsdCount = 42;
578 o.machineType = "foo"; 578 o.machineType = "foo";
579 o.metadata = buildUnnamed1809(); 579 o.metadata = buildUnnamed1579();
580 o.oauthScopes = buildUnnamed1810(); 580 o.oauthScopes = buildUnnamed1580();
581 o.preemptible = true; 581 o.preemptible = true;
582 o.serviceAccount = "foo"; 582 o.serviceAccount = "foo";
583 o.tags = buildUnnamed1811(); 583 o.tags = buildUnnamed1581();
584 } 584 }
585 buildCounterNodeConfig--; 585 buildCounterNodeConfig--;
586 return o; 586 return o;
587 } 587 }
588 588
589 checkNodeConfig(api.NodeConfig o) { 589 checkNodeConfig(api.NodeConfig o) {
590 buildCounterNodeConfig++; 590 buildCounterNodeConfig++;
591 if (buildCounterNodeConfig < 3) { 591 if (buildCounterNodeConfig < 3) {
592 unittest.expect(o.diskSizeGb, unittest.equals(42)); 592 unittest.expect(o.diskSizeGb, unittest.equals(42));
593 unittest.expect(o.imageType, unittest.equals('foo')); 593 unittest.expect(o.imageType, unittest.equals('foo'));
594 checkUnnamed1808(o.labels); 594 checkUnnamed1578(o.labels);
595 unittest.expect(o.localSsdCount, unittest.equals(42)); 595 unittest.expect(o.localSsdCount, unittest.equals(42));
596 unittest.expect(o.machineType, unittest.equals('foo')); 596 unittest.expect(o.machineType, unittest.equals('foo'));
597 checkUnnamed1809(o.metadata); 597 checkUnnamed1579(o.metadata);
598 checkUnnamed1810(o.oauthScopes); 598 checkUnnamed1580(o.oauthScopes);
599 unittest.expect(o.preemptible, unittest.isTrue); 599 unittest.expect(o.preemptible, unittest.isTrue);
600 unittest.expect(o.serviceAccount, unittest.equals('foo')); 600 unittest.expect(o.serviceAccount, unittest.equals('foo'));
601 checkUnnamed1811(o.tags); 601 checkUnnamed1581(o.tags);
602 } 602 }
603 buildCounterNodeConfig--; 603 buildCounterNodeConfig--;
604 } 604 }
605 605
606 core.int buildCounterNodeManagement = 0; 606 core.int buildCounterNodeManagement = 0;
607 buildNodeManagement() { 607 buildNodeManagement() {
608 var o = new api.NodeManagement(); 608 var o = new api.NodeManagement();
609 buildCounterNodeManagement++; 609 buildCounterNodeManagement++;
610 if (buildCounterNodeManagement < 3) { 610 if (buildCounterNodeManagement < 3) {
611 o.autoUpgrade = true; 611 o.autoUpgrade = true;
612 o.upgradeOptions = buildAutoUpgradeOptions(); 612 o.upgradeOptions = buildAutoUpgradeOptions();
613 } 613 }
614 buildCounterNodeManagement--; 614 buildCounterNodeManagement--;
615 return o; 615 return o;
616 } 616 }
617 617
618 checkNodeManagement(api.NodeManagement o) { 618 checkNodeManagement(api.NodeManagement o) {
619 buildCounterNodeManagement++; 619 buildCounterNodeManagement++;
620 if (buildCounterNodeManagement < 3) { 620 if (buildCounterNodeManagement < 3) {
621 unittest.expect(o.autoUpgrade, unittest.isTrue); 621 unittest.expect(o.autoUpgrade, unittest.isTrue);
622 checkAutoUpgradeOptions(o.upgradeOptions); 622 checkAutoUpgradeOptions(o.upgradeOptions);
623 } 623 }
624 buildCounterNodeManagement--; 624 buildCounterNodeManagement--;
625 } 625 }
626 626
627 buildUnnamed1812() { 627 buildUnnamed1582() {
628 var o = new core.List<core.String>(); 628 var o = new core.List<core.String>();
629 o.add("foo"); 629 o.add("foo");
630 o.add("foo"); 630 o.add("foo");
631 return o; 631 return o;
632 } 632 }
633 633
634 checkUnnamed1812(core.List<core.String> o) { 634 checkUnnamed1582(core.List<core.String> o) {
635 unittest.expect(o, unittest.hasLength(2)); 635 unittest.expect(o, unittest.hasLength(2));
636 unittest.expect(o[0], unittest.equals('foo')); 636 unittest.expect(o[0], unittest.equals('foo'));
637 unittest.expect(o[1], unittest.equals('foo')); 637 unittest.expect(o[1], unittest.equals('foo'));
638 } 638 }
639 639
640 core.int buildCounterNodePool = 0; 640 core.int buildCounterNodePool = 0;
641 buildNodePool() { 641 buildNodePool() {
642 var o = new api.NodePool(); 642 var o = new api.NodePool();
643 buildCounterNodePool++; 643 buildCounterNodePool++;
644 if (buildCounterNodePool < 3) { 644 if (buildCounterNodePool < 3) {
645 o.autoscaling = buildNodePoolAutoscaling(); 645 o.autoscaling = buildNodePoolAutoscaling();
646 o.config = buildNodeConfig(); 646 o.config = buildNodeConfig();
647 o.initialNodeCount = 42; 647 o.initialNodeCount = 42;
648 o.instanceGroupUrls = buildUnnamed1812(); 648 o.instanceGroupUrls = buildUnnamed1582();
649 o.management = buildNodeManagement(); 649 o.management = buildNodeManagement();
650 o.name = "foo"; 650 o.name = "foo";
651 o.selfLink = "foo"; 651 o.selfLink = "foo";
652 o.status = "foo"; 652 o.status = "foo";
653 o.statusMessage = "foo"; 653 o.statusMessage = "foo";
654 o.version = "foo"; 654 o.version = "foo";
655 } 655 }
656 buildCounterNodePool--; 656 buildCounterNodePool--;
657 return o; 657 return o;
658 } 658 }
659 659
660 checkNodePool(api.NodePool o) { 660 checkNodePool(api.NodePool o) {
661 buildCounterNodePool++; 661 buildCounterNodePool++;
662 if (buildCounterNodePool < 3) { 662 if (buildCounterNodePool < 3) {
663 checkNodePoolAutoscaling(o.autoscaling); 663 checkNodePoolAutoscaling(o.autoscaling);
664 checkNodeConfig(o.config); 664 checkNodeConfig(o.config);
665 unittest.expect(o.initialNodeCount, unittest.equals(42)); 665 unittest.expect(o.initialNodeCount, unittest.equals(42));
666 checkUnnamed1812(o.instanceGroupUrls); 666 checkUnnamed1582(o.instanceGroupUrls);
667 checkNodeManagement(o.management); 667 checkNodeManagement(o.management);
668 unittest.expect(o.name, unittest.equals('foo')); 668 unittest.expect(o.name, unittest.equals('foo'));
669 unittest.expect(o.selfLink, unittest.equals('foo')); 669 unittest.expect(o.selfLink, unittest.equals('foo'));
670 unittest.expect(o.status, unittest.equals('foo')); 670 unittest.expect(o.status, unittest.equals('foo'));
671 unittest.expect(o.statusMessage, unittest.equals('foo')); 671 unittest.expect(o.statusMessage, unittest.equals('foo'));
672 unittest.expect(o.version, unittest.equals('foo')); 672 unittest.expect(o.version, unittest.equals('foo'));
673 } 673 }
674 buildCounterNodePool--; 674 buildCounterNodePool--;
675 } 675 }
676 676
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 return o; 740 return o;
741 } 741 }
742 742
743 checkRollbackNodePoolUpgradeRequest(api.RollbackNodePoolUpgradeRequest o) { 743 checkRollbackNodePoolUpgradeRequest(api.RollbackNodePoolUpgradeRequest o) {
744 buildCounterRollbackNodePoolUpgradeRequest++; 744 buildCounterRollbackNodePoolUpgradeRequest++;
745 if (buildCounterRollbackNodePoolUpgradeRequest < 3) { 745 if (buildCounterRollbackNodePoolUpgradeRequest < 3) {
746 } 746 }
747 buildCounterRollbackNodePoolUpgradeRequest--; 747 buildCounterRollbackNodePoolUpgradeRequest--;
748 } 748 }
749 749
750 buildUnnamed1813() { 750 buildUnnamed1583() {
751 var o = new core.List<core.String>(); 751 var o = new core.List<core.String>();
752 o.add("foo"); 752 o.add("foo");
753 o.add("foo"); 753 o.add("foo");
754 return o; 754 return o;
755 } 755 }
756 756
757 checkUnnamed1813(core.List<core.String> o) { 757 checkUnnamed1583(core.List<core.String> o) {
758 unittest.expect(o, unittest.hasLength(2)); 758 unittest.expect(o, unittest.hasLength(2));
759 unittest.expect(o[0], unittest.equals('foo')); 759 unittest.expect(o[0], unittest.equals('foo'));
760 unittest.expect(o[1], unittest.equals('foo')); 760 unittest.expect(o[1], unittest.equals('foo'));
761 } 761 }
762 762
763 buildUnnamed1814() { 763 buildUnnamed1584() {
764 var o = new core.List<core.String>(); 764 var o = new core.List<core.String>();
765 o.add("foo"); 765 o.add("foo");
766 o.add("foo"); 766 o.add("foo");
767 return o; 767 return o;
768 } 768 }
769 769
770 checkUnnamed1814(core.List<core.String> o) { 770 checkUnnamed1584(core.List<core.String> o) {
771 unittest.expect(o, unittest.hasLength(2)); 771 unittest.expect(o, unittest.hasLength(2));
772 unittest.expect(o[0], unittest.equals('foo')); 772 unittest.expect(o[0], unittest.equals('foo'));
773 unittest.expect(o[1], unittest.equals('foo')); 773 unittest.expect(o[1], unittest.equals('foo'));
774 } 774 }
775 775
776 buildUnnamed1815() { 776 buildUnnamed1585() {
777 var o = new core.List<core.String>(); 777 var o = new core.List<core.String>();
778 o.add("foo"); 778 o.add("foo");
779 o.add("foo"); 779 o.add("foo");
780 return o; 780 return o;
781 } 781 }
782 782
783 checkUnnamed1815(core.List<core.String> o) { 783 checkUnnamed1585(core.List<core.String> o) {
784 unittest.expect(o, unittest.hasLength(2)); 784 unittest.expect(o, unittest.hasLength(2));
785 unittest.expect(o[0], unittest.equals('foo')); 785 unittest.expect(o[0], unittest.equals('foo'));
786 unittest.expect(o[1], unittest.equals('foo')); 786 unittest.expect(o[1], unittest.equals('foo'));
787 } 787 }
788 788
789 core.int buildCounterServerConfig = 0; 789 core.int buildCounterServerConfig = 0;
790 buildServerConfig() { 790 buildServerConfig() {
791 var o = new api.ServerConfig(); 791 var o = new api.ServerConfig();
792 buildCounterServerConfig++; 792 buildCounterServerConfig++;
793 if (buildCounterServerConfig < 3) { 793 if (buildCounterServerConfig < 3) {
794 o.defaultClusterVersion = "foo"; 794 o.defaultClusterVersion = "foo";
795 o.defaultImageType = "foo"; 795 o.defaultImageType = "foo";
796 o.validImageTypes = buildUnnamed1813(); 796 o.validImageTypes = buildUnnamed1583();
797 o.validMasterVersions = buildUnnamed1814(); 797 o.validMasterVersions = buildUnnamed1584();
798 o.validNodeVersions = buildUnnamed1815(); 798 o.validNodeVersions = buildUnnamed1585();
799 } 799 }
800 buildCounterServerConfig--; 800 buildCounterServerConfig--;
801 return o; 801 return o;
802 } 802 }
803 803
804 checkServerConfig(api.ServerConfig o) { 804 checkServerConfig(api.ServerConfig o) {
805 buildCounterServerConfig++; 805 buildCounterServerConfig++;
806 if (buildCounterServerConfig < 3) { 806 if (buildCounterServerConfig < 3) {
807 unittest.expect(o.defaultClusterVersion, unittest.equals('foo')); 807 unittest.expect(o.defaultClusterVersion, unittest.equals('foo'));
808 unittest.expect(o.defaultImageType, unittest.equals('foo')); 808 unittest.expect(o.defaultImageType, unittest.equals('foo'));
809 checkUnnamed1813(o.validImageTypes); 809 checkUnnamed1583(o.validImageTypes);
810 checkUnnamed1814(o.validMasterVersions); 810 checkUnnamed1584(o.validMasterVersions);
811 checkUnnamed1815(o.validNodeVersions); 811 checkUnnamed1585(o.validNodeVersions);
812 } 812 }
813 buildCounterServerConfig--; 813 buildCounterServerConfig--;
814 } 814 }
815 815
816 core.int buildCounterSetNodePoolManagementRequest = 0; 816 core.int buildCounterSetNodePoolManagementRequest = 0;
817 buildSetNodePoolManagementRequest() { 817 buildSetNodePoolManagementRequest() {
818 var o = new api.SetNodePoolManagementRequest(); 818 var o = new api.SetNodePoolManagementRequest();
819 buildCounterSetNodePoolManagementRequest++; 819 buildCounterSetNodePoolManagementRequest++;
820 if (buildCounterSetNodePoolManagementRequest < 3) { 820 if (buildCounterSetNodePoolManagementRequest < 3) {
821 o.management = buildNodeManagement(); 821 o.management = buildNodeManagement();
(...skipping 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after
2076 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) {
2077 checkListOperationsResponse(response); 2077 checkListOperationsResponse(response);
2078 }))); 2078 })));
2079 }); 2079 });
2080 2080
2081 }); 2081 });
2082 2082
2083 2083
2084 } 2084 }
2085 2085
OLDNEW
« no previous file with comments | « generated/googleapis/test/compute/v1_test.dart ('k') | generated/googleapis/test/content/v2sandbox_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698