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

Side by Side Diff: generated/googleapis_beta/test/manager/v1beta2_test.dart

Issue 595873002: Api roll 1: 2014-09-23 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years, 2 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_beta.manager.v1beta2.test; 1 library googleapis_beta.manager.v1beta2.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 21 matching lines...) Expand all
32 checkAccessConfig(api.AccessConfig o) { 32 checkAccessConfig(api.AccessConfig o) {
33 buildCounterAccessConfig++; 33 buildCounterAccessConfig++;
34 if (buildCounterAccessConfig < 3) { 34 if (buildCounterAccessConfig < 3) {
35 unittest.expect(o.name, unittest.equals('foo')); 35 unittest.expect(o.name, unittest.equals('foo'));
36 unittest.expect(o.natIp, unittest.equals('foo')); 36 unittest.expect(o.natIp, unittest.equals('foo'));
37 unittest.expect(o.type, unittest.equals('foo')); 37 unittest.expect(o.type, unittest.equals('foo'));
38 } 38 }
39 buildCounterAccessConfig--; 39 buildCounterAccessConfig--;
40 } 40 }
41 41
42 buildUnnamed1092() { 42 buildUnnamed1120() {
43 var o = new core.List<core.String>(); 43 var o = new core.List<core.String>();
44 o.add("foo"); 44 o.add("foo");
45 o.add("foo"); 45 o.add("foo");
46 return o; 46 return o;
47 } 47 }
48 48
49 checkUnnamed1092(core.List<core.String> o) { 49 checkUnnamed1120(core.List<core.String> o) {
50 unittest.expect(o, unittest.hasLength(2)); 50 unittest.expect(o, unittest.hasLength(2));
51 unittest.expect(o[0], unittest.equals('foo')); 51 unittest.expect(o[0], unittest.equals('foo'));
52 unittest.expect(o[1], unittest.equals('foo')); 52 unittest.expect(o[1], unittest.equals('foo'));
53 } 53 }
54 54
55 core.int buildCounterAction = 0; 55 core.int buildCounterAction = 0;
56 buildAction() { 56 buildAction() {
57 var o = new api.Action(); 57 var o = new api.Action();
58 buildCounterAction++; 58 buildCounterAction++;
59 if (buildCounterAction < 3) { 59 if (buildCounterAction < 3) {
60 o.commands = buildUnnamed1092(); 60 o.commands = buildUnnamed1120();
61 o.timeoutMs = 42; 61 o.timeoutMs = 42;
62 } 62 }
63 buildCounterAction--; 63 buildCounterAction--;
64 return o; 64 return o;
65 } 65 }
66 66
67 checkAction(api.Action o) { 67 checkAction(api.Action o) {
68 buildCounterAction++; 68 buildCounterAction++;
69 if (buildCounterAction < 3) { 69 if (buildCounterAction < 3) {
70 checkUnnamed1092(o.commands); 70 checkUnnamed1120(o.commands);
71 unittest.expect(o.timeoutMs, unittest.equals(42)); 71 unittest.expect(o.timeoutMs, unittest.equals(42));
72 } 72 }
73 buildCounterAction--; 73 buildCounterAction--;
74 } 74 }
75 75
76 buildUnnamed1093() { 76 buildUnnamed1121() {
77 var o = new core.List<core.String>(); 77 var o = new core.List<core.String>();
78 o.add("foo"); 78 o.add("foo");
79 o.add("foo"); 79 o.add("foo");
80 return o; 80 return o;
81 } 81 }
82 82
83 checkUnnamed1093(core.List<core.String> o) { 83 checkUnnamed1121(core.List<core.String> o) {
84 unittest.expect(o, unittest.hasLength(2)); 84 unittest.expect(o, unittest.hasLength(2));
85 unittest.expect(o[0], unittest.equals('foo')); 85 unittest.expect(o[0], unittest.equals('foo'));
86 unittest.expect(o[1], unittest.equals('foo')); 86 unittest.expect(o[1], unittest.equals('foo'));
87 } 87 }
88 88
89 core.int buildCounterAllowedRule = 0; 89 core.int buildCounterAllowedRule = 0;
90 buildAllowedRule() { 90 buildAllowedRule() {
91 var o = new api.AllowedRule(); 91 var o = new api.AllowedRule();
92 buildCounterAllowedRule++; 92 buildCounterAllowedRule++;
93 if (buildCounterAllowedRule < 3) { 93 if (buildCounterAllowedRule < 3) {
94 o.IPProtocol = "foo"; 94 o.IPProtocol = "foo";
95 o.ports = buildUnnamed1093(); 95 o.ports = buildUnnamed1121();
96 } 96 }
97 buildCounterAllowedRule--; 97 buildCounterAllowedRule--;
98 return o; 98 return o;
99 } 99 }
100 100
101 checkAllowedRule(api.AllowedRule o) { 101 checkAllowedRule(api.AllowedRule o) {
102 buildCounterAllowedRule++; 102 buildCounterAllowedRule++;
103 if (buildCounterAllowedRule < 3) { 103 if (buildCounterAllowedRule < 3) {
104 unittest.expect(o.IPProtocol, unittest.equals('foo')); 104 unittest.expect(o.IPProtocol, unittest.equals('foo'));
105 checkUnnamed1093(o.ports); 105 checkUnnamed1121(o.ports);
106 } 106 }
107 buildCounterAllowedRule--; 107 buildCounterAllowedRule--;
108 } 108 }
109 109
110 core.int buildCounterAutoscalingModule = 0; 110 core.int buildCounterAutoscalingModule = 0;
111 buildAutoscalingModule() { 111 buildAutoscalingModule() {
112 var o = new api.AutoscalingModule(); 112 var o = new api.AutoscalingModule();
113 buildCounterAutoscalingModule++; 113 buildCounterAutoscalingModule++;
114 if (buildCounterAutoscalingModule < 3) { 114 if (buildCounterAutoscalingModule < 3) {
115 o.coolDownPeriodSec = 42; 115 o.coolDownPeriodSec = 42;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 171
172 checkDeployState(api.DeployState o) { 172 checkDeployState(api.DeployState o) {
173 buildCounterDeployState++; 173 buildCounterDeployState++;
174 if (buildCounterDeployState < 3) { 174 if (buildCounterDeployState < 3) {
175 unittest.expect(o.details, unittest.equals('foo')); 175 unittest.expect(o.details, unittest.equals('foo'));
176 unittest.expect(o.status, unittest.equals('foo')); 176 unittest.expect(o.status, unittest.equals('foo'));
177 } 177 }
178 buildCounterDeployState--; 178 buildCounterDeployState--;
179 } 179 }
180 180
181 buildUnnamed1094() { 181 buildUnnamed1122() {
182 var o = new core.Map<core.String, api.ModuleStatus>(); 182 var o = new core.Map<core.String, api.ModuleStatus>();
183 o["x"] = buildModuleStatus(); 183 o["x"] = buildModuleStatus();
184 o["y"] = buildModuleStatus(); 184 o["y"] = buildModuleStatus();
185 return o; 185 return o;
186 } 186 }
187 187
188 checkUnnamed1094(core.Map<core.String, api.ModuleStatus> o) { 188 checkUnnamed1122(core.Map<core.String, api.ModuleStatus> o) {
189 unittest.expect(o, unittest.hasLength(2)); 189 unittest.expect(o, unittest.hasLength(2));
190 checkModuleStatus(o["x"]); 190 checkModuleStatus(o["x"]);
191 checkModuleStatus(o["y"]); 191 checkModuleStatus(o["y"]);
192 } 192 }
193 193
194 buildUnnamed1095() { 194 buildUnnamed1123() {
195 var o = new core.List<api.ParamOverride>(); 195 var o = new core.List<api.ParamOverride>();
196 o.add(buildParamOverride()); 196 o.add(buildParamOverride());
197 o.add(buildParamOverride()); 197 o.add(buildParamOverride());
198 return o; 198 return o;
199 } 199 }
200 200
201 checkUnnamed1095(core.List<api.ParamOverride> o) { 201 checkUnnamed1123(core.List<api.ParamOverride> o) {
202 unittest.expect(o, unittest.hasLength(2)); 202 unittest.expect(o, unittest.hasLength(2));
203 checkParamOverride(o[0]); 203 checkParamOverride(o[0]);
204 checkParamOverride(o[1]); 204 checkParamOverride(o[1]);
205 } 205 }
206 206
207 core.int buildCounterDeployment = 0; 207 core.int buildCounterDeployment = 0;
208 buildDeployment() { 208 buildDeployment() {
209 var o = new api.Deployment(); 209 var o = new api.Deployment();
210 buildCounterDeployment++; 210 buildCounterDeployment++;
211 if (buildCounterDeployment < 3) { 211 if (buildCounterDeployment < 3) {
212 o.creationDate = "foo"; 212 o.creationDate = "foo";
213 o.description = "foo"; 213 o.description = "foo";
214 o.modules = buildUnnamed1094(); 214 o.modules = buildUnnamed1122();
215 o.name = "foo"; 215 o.name = "foo";
216 o.overrides = buildUnnamed1095(); 216 o.overrides = buildUnnamed1123();
217 o.state = buildDeployState(); 217 o.state = buildDeployState();
218 o.templateName = "foo"; 218 o.templateName = "foo";
219 } 219 }
220 buildCounterDeployment--; 220 buildCounterDeployment--;
221 return o; 221 return o;
222 } 222 }
223 223
224 checkDeployment(api.Deployment o) { 224 checkDeployment(api.Deployment o) {
225 buildCounterDeployment++; 225 buildCounterDeployment++;
226 if (buildCounterDeployment < 3) { 226 if (buildCounterDeployment < 3) {
227 unittest.expect(o.creationDate, unittest.equals('foo')); 227 unittest.expect(o.creationDate, unittest.equals('foo'));
228 unittest.expect(o.description, unittest.equals('foo')); 228 unittest.expect(o.description, unittest.equals('foo'));
229 checkUnnamed1094(o.modules); 229 checkUnnamed1122(o.modules);
230 unittest.expect(o.name, unittest.equals('foo')); 230 unittest.expect(o.name, unittest.equals('foo'));
231 checkUnnamed1095(o.overrides); 231 checkUnnamed1123(o.overrides);
232 checkDeployState(o.state); 232 checkDeployState(o.state);
233 unittest.expect(o.templateName, unittest.equals('foo')); 233 unittest.expect(o.templateName, unittest.equals('foo'));
234 } 234 }
235 buildCounterDeployment--; 235 buildCounterDeployment--;
236 } 236 }
237 237
238 buildUnnamed1096() { 238 buildUnnamed1124() {
239 var o = new core.List<api.Deployment>(); 239 var o = new core.List<api.Deployment>();
240 o.add(buildDeployment()); 240 o.add(buildDeployment());
241 o.add(buildDeployment()); 241 o.add(buildDeployment());
242 return o; 242 return o;
243 } 243 }
244 244
245 checkUnnamed1096(core.List<api.Deployment> o) { 245 checkUnnamed1124(core.List<api.Deployment> o) {
246 unittest.expect(o, unittest.hasLength(2)); 246 unittest.expect(o, unittest.hasLength(2));
247 checkDeployment(o[0]); 247 checkDeployment(o[0]);
248 checkDeployment(o[1]); 248 checkDeployment(o[1]);
249 } 249 }
250 250
251 core.int buildCounterDeploymentsListResponse = 0; 251 core.int buildCounterDeploymentsListResponse = 0;
252 buildDeploymentsListResponse() { 252 buildDeploymentsListResponse() {
253 var o = new api.DeploymentsListResponse(); 253 var o = new api.DeploymentsListResponse();
254 buildCounterDeploymentsListResponse++; 254 buildCounterDeploymentsListResponse++;
255 if (buildCounterDeploymentsListResponse < 3) { 255 if (buildCounterDeploymentsListResponse < 3) {
256 o.nextPageToken = "foo"; 256 o.nextPageToken = "foo";
257 o.resources = buildUnnamed1096(); 257 o.resources = buildUnnamed1124();
258 } 258 }
259 buildCounterDeploymentsListResponse--; 259 buildCounterDeploymentsListResponse--;
260 return o; 260 return o;
261 } 261 }
262 262
263 checkDeploymentsListResponse(api.DeploymentsListResponse o) { 263 checkDeploymentsListResponse(api.DeploymentsListResponse o) {
264 buildCounterDeploymentsListResponse++; 264 buildCounterDeploymentsListResponse++;
265 if (buildCounterDeploymentsListResponse < 3) { 265 if (buildCounterDeploymentsListResponse < 3) {
266 unittest.expect(o.nextPageToken, unittest.equals('foo')); 266 unittest.expect(o.nextPageToken, unittest.equals('foo'));
267 checkUnnamed1096(o.resources); 267 checkUnnamed1124(o.resources);
268 } 268 }
269 buildCounterDeploymentsListResponse--; 269 buildCounterDeploymentsListResponse--;
270 } 270 }
271 271
272 core.int buildCounterDiskAttachment = 0; 272 core.int buildCounterDiskAttachment = 0;
273 buildDiskAttachment() { 273 buildDiskAttachment() {
274 var o = new api.DiskAttachment(); 274 var o = new api.DiskAttachment();
275 buildCounterDiskAttachment++; 275 buildCounterDiskAttachment++;
276 if (buildCounterDiskAttachment < 3) { 276 if (buildCounterDiskAttachment < 3) {
277 o.deviceName = "foo"; 277 o.deviceName = "foo";
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 325
326 checkExistingDisk(api.ExistingDisk o) { 326 checkExistingDisk(api.ExistingDisk o) {
327 buildCounterExistingDisk++; 327 buildCounterExistingDisk++;
328 if (buildCounterExistingDisk < 3) { 328 if (buildCounterExistingDisk < 3) {
329 checkDiskAttachment(o.attachment); 329 checkDiskAttachment(o.attachment);
330 unittest.expect(o.source, unittest.equals('foo')); 330 unittest.expect(o.source, unittest.equals('foo'));
331 } 331 }
332 buildCounterExistingDisk--; 332 buildCounterExistingDisk--;
333 } 333 }
334 334
335 buildUnnamed1097() { 335 buildUnnamed1125() {
336 var o = new core.List<api.AllowedRule>(); 336 var o = new core.List<api.AllowedRule>();
337 o.add(buildAllowedRule()); 337 o.add(buildAllowedRule());
338 o.add(buildAllowedRule()); 338 o.add(buildAllowedRule());
339 return o; 339 return o;
340 } 340 }
341 341
342 checkUnnamed1097(core.List<api.AllowedRule> o) { 342 checkUnnamed1125(core.List<api.AllowedRule> o) {
343 unittest.expect(o, unittest.hasLength(2)); 343 unittest.expect(o, unittest.hasLength(2));
344 checkAllowedRule(o[0]); 344 checkAllowedRule(o[0]);
345 checkAllowedRule(o[1]); 345 checkAllowedRule(o[1]);
346 } 346 }
347 347
348 buildUnnamed1098() { 348 buildUnnamed1126() {
349 var o = new core.List<core.String>(); 349 var o = new core.List<core.String>();
350 o.add("foo"); 350 o.add("foo");
351 o.add("foo"); 351 o.add("foo");
352 return o; 352 return o;
353 } 353 }
354 354
355 checkUnnamed1098(core.List<core.String> o) { 355 checkUnnamed1126(core.List<core.String> o) {
356 unittest.expect(o, unittest.hasLength(2)); 356 unittest.expect(o, unittest.hasLength(2));
357 unittest.expect(o[0], unittest.equals('foo')); 357 unittest.expect(o[0], unittest.equals('foo'));
358 unittest.expect(o[1], unittest.equals('foo')); 358 unittest.expect(o[1], unittest.equals('foo'));
359 } 359 }
360 360
361 buildUnnamed1099() { 361 buildUnnamed1127() {
362 var o = new core.List<core.String>(); 362 var o = new core.List<core.String>();
363 o.add("foo"); 363 o.add("foo");
364 o.add("foo"); 364 o.add("foo");
365 return o; 365 return o;
366 } 366 }
367 367
368 checkUnnamed1099(core.List<core.String> o) { 368 checkUnnamed1127(core.List<core.String> o) {
369 unittest.expect(o, unittest.hasLength(2)); 369 unittest.expect(o, unittest.hasLength(2));
370 unittest.expect(o[0], unittest.equals('foo')); 370 unittest.expect(o[0], unittest.equals('foo'));
371 unittest.expect(o[1], unittest.equals('foo')); 371 unittest.expect(o[1], unittest.equals('foo'));
372 } 372 }
373 373
374 buildUnnamed1100() { 374 buildUnnamed1128() {
375 var o = new core.List<core.String>(); 375 var o = new core.List<core.String>();
376 o.add("foo"); 376 o.add("foo");
377 o.add("foo"); 377 o.add("foo");
378 return o; 378 return o;
379 } 379 }
380 380
381 checkUnnamed1100(core.List<core.String> o) { 381 checkUnnamed1128(core.List<core.String> o) {
382 unittest.expect(o, unittest.hasLength(2)); 382 unittest.expect(o, unittest.hasLength(2));
383 unittest.expect(o[0], unittest.equals('foo')); 383 unittest.expect(o[0], unittest.equals('foo'));
384 unittest.expect(o[1], unittest.equals('foo')); 384 unittest.expect(o[1], unittest.equals('foo'));
385 } 385 }
386 386
387 core.int buildCounterFirewallModule = 0; 387 core.int buildCounterFirewallModule = 0;
388 buildFirewallModule() { 388 buildFirewallModule() {
389 var o = new api.FirewallModule(); 389 var o = new api.FirewallModule();
390 buildCounterFirewallModule++; 390 buildCounterFirewallModule++;
391 if (buildCounterFirewallModule < 3) { 391 if (buildCounterFirewallModule < 3) {
392 o.allowed = buildUnnamed1097(); 392 o.allowed = buildUnnamed1125();
393 o.description = "foo"; 393 o.description = "foo";
394 o.network = "foo"; 394 o.network = "foo";
395 o.sourceRanges = buildUnnamed1098(); 395 o.sourceRanges = buildUnnamed1126();
396 o.sourceTags = buildUnnamed1099(); 396 o.sourceTags = buildUnnamed1127();
397 o.targetTags = buildUnnamed1100(); 397 o.targetTags = buildUnnamed1128();
398 } 398 }
399 buildCounterFirewallModule--; 399 buildCounterFirewallModule--;
400 return o; 400 return o;
401 } 401 }
402 402
403 checkFirewallModule(api.FirewallModule o) { 403 checkFirewallModule(api.FirewallModule o) {
404 buildCounterFirewallModule++; 404 buildCounterFirewallModule++;
405 if (buildCounterFirewallModule < 3) { 405 if (buildCounterFirewallModule < 3) {
406 checkUnnamed1097(o.allowed); 406 checkUnnamed1125(o.allowed);
407 unittest.expect(o.description, unittest.equals('foo')); 407 unittest.expect(o.description, unittest.equals('foo'));
408 unittest.expect(o.network, unittest.equals('foo')); 408 unittest.expect(o.network, unittest.equals('foo'));
409 checkUnnamed1098(o.sourceRanges); 409 checkUnnamed1126(o.sourceRanges);
410 checkUnnamed1099(o.sourceTags); 410 checkUnnamed1127(o.sourceTags);
411 checkUnnamed1100(o.targetTags); 411 checkUnnamed1128(o.targetTags);
412 } 412 }
413 buildCounterFirewallModule--; 413 buildCounterFirewallModule--;
414 } 414 }
415 415
416 core.int buildCounterFirewallModuleStatus = 0; 416 core.int buildCounterFirewallModuleStatus = 0;
417 buildFirewallModuleStatus() { 417 buildFirewallModuleStatus() {
418 var o = new api.FirewallModuleStatus(); 418 var o = new api.FirewallModuleStatus();
419 buildCounterFirewallModuleStatus++; 419 buildCounterFirewallModuleStatus++;
420 if (buildCounterFirewallModuleStatus < 3) { 420 if (buildCounterFirewallModuleStatus < 3) {
421 o.firewallUrl = "foo"; 421 o.firewallUrl = "foo";
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 } 477 }
478 478
479 checkHealthCheckModuleStatus(api.HealthCheckModuleStatus o) { 479 checkHealthCheckModuleStatus(api.HealthCheckModuleStatus o) {
480 buildCounterHealthCheckModuleStatus++; 480 buildCounterHealthCheckModuleStatus++;
481 if (buildCounterHealthCheckModuleStatus < 3) { 481 if (buildCounterHealthCheckModuleStatus < 3) {
482 unittest.expect(o.healthCheckUrl, unittest.equals('foo')); 482 unittest.expect(o.healthCheckUrl, unittest.equals('foo'));
483 } 483 }
484 buildCounterHealthCheckModuleStatus--; 484 buildCounterHealthCheckModuleStatus--;
485 } 485 }
486 486
487 buildUnnamed1101() { 487 buildUnnamed1129() {
488 var o = new core.List<core.String>(); 488 var o = new core.List<core.String>();
489 o.add("foo"); 489 o.add("foo");
490 o.add("foo"); 490 o.add("foo");
491 return o; 491 return o;
492 } 492 }
493 493
494 checkUnnamed1101(core.List<core.String> o) { 494 checkUnnamed1129(core.List<core.String> o) {
495 unittest.expect(o, unittest.hasLength(2)); 495 unittest.expect(o, unittest.hasLength(2));
496 unittest.expect(o[0], unittest.equals('foo')); 496 unittest.expect(o[0], unittest.equals('foo'));
497 unittest.expect(o[1], unittest.equals('foo')); 497 unittest.expect(o[1], unittest.equals('foo'));
498 } 498 }
499 499
500 buildUnnamed1102() { 500 buildUnnamed1130() {
501 var o = new core.List<core.String>(); 501 var o = new core.List<core.String>();
502 o.add("foo"); 502 o.add("foo");
503 o.add("foo"); 503 o.add("foo");
504 return o; 504 return o;
505 } 505 }
506 506
507 checkUnnamed1102(core.List<core.String> o) { 507 checkUnnamed1130(core.List<core.String> o) {
508 unittest.expect(o, unittest.hasLength(2)); 508 unittest.expect(o, unittest.hasLength(2));
509 unittest.expect(o[0], unittest.equals('foo')); 509 unittest.expect(o[0], unittest.equals('foo'));
510 unittest.expect(o[1], unittest.equals('foo')); 510 unittest.expect(o[1], unittest.equals('foo'));
511 } 511 }
512 512
513 core.int buildCounterLbModule = 0; 513 core.int buildCounterLbModule = 0;
514 buildLbModule() { 514 buildLbModule() {
515 var o = new api.LbModule(); 515 var o = new api.LbModule();
516 buildCounterLbModule++; 516 buildCounterLbModule++;
517 if (buildCounterLbModule < 3) { 517 if (buildCounterLbModule < 3) {
518 o.description = "foo"; 518 o.description = "foo";
519 o.healthChecks = buildUnnamed1101(); 519 o.healthChecks = buildUnnamed1129();
520 o.ipAddress = "foo"; 520 o.ipAddress = "foo";
521 o.ipProtocol = "foo"; 521 o.ipProtocol = "foo";
522 o.portRange = "foo"; 522 o.portRange = "foo";
523 o.sessionAffinity = "foo"; 523 o.sessionAffinity = "foo";
524 o.targetModules = buildUnnamed1102(); 524 o.targetModules = buildUnnamed1130();
525 } 525 }
526 buildCounterLbModule--; 526 buildCounterLbModule--;
527 return o; 527 return o;
528 } 528 }
529 529
530 checkLbModule(api.LbModule o) { 530 checkLbModule(api.LbModule o) {
531 buildCounterLbModule++; 531 buildCounterLbModule++;
532 if (buildCounterLbModule < 3) { 532 if (buildCounterLbModule < 3) {
533 unittest.expect(o.description, unittest.equals('foo')); 533 unittest.expect(o.description, unittest.equals('foo'));
534 checkUnnamed1101(o.healthChecks); 534 checkUnnamed1129(o.healthChecks);
535 unittest.expect(o.ipAddress, unittest.equals('foo')); 535 unittest.expect(o.ipAddress, unittest.equals('foo'));
536 unittest.expect(o.ipProtocol, unittest.equals('foo')); 536 unittest.expect(o.ipProtocol, unittest.equals('foo'));
537 unittest.expect(o.portRange, unittest.equals('foo')); 537 unittest.expect(o.portRange, unittest.equals('foo'));
538 unittest.expect(o.sessionAffinity, unittest.equals('foo')); 538 unittest.expect(o.sessionAffinity, unittest.equals('foo'));
539 checkUnnamed1102(o.targetModules); 539 checkUnnamed1130(o.targetModules);
540 } 540 }
541 buildCounterLbModule--; 541 buildCounterLbModule--;
542 } 542 }
543 543
544 core.int buildCounterLbModuleStatus = 0; 544 core.int buildCounterLbModuleStatus = 0;
545 buildLbModuleStatus() { 545 buildLbModuleStatus() {
546 var o = new api.LbModuleStatus(); 546 var o = new api.LbModuleStatus();
547 buildCounterLbModuleStatus++; 547 buildCounterLbModuleStatus++;
548 if (buildCounterLbModuleStatus < 3) { 548 if (buildCounterLbModuleStatus < 3) {
549 o.forwardingRuleUrl = "foo"; 549 o.forwardingRuleUrl = "foo";
550 o.targetPoolUrl = "foo"; 550 o.targetPoolUrl = "foo";
551 } 551 }
552 buildCounterLbModuleStatus--; 552 buildCounterLbModuleStatus--;
553 return o; 553 return o;
554 } 554 }
555 555
556 checkLbModuleStatus(api.LbModuleStatus o) { 556 checkLbModuleStatus(api.LbModuleStatus o) {
557 buildCounterLbModuleStatus++; 557 buildCounterLbModuleStatus++;
558 if (buildCounterLbModuleStatus < 3) { 558 if (buildCounterLbModuleStatus < 3) {
559 unittest.expect(o.forwardingRuleUrl, unittest.equals('foo')); 559 unittest.expect(o.forwardingRuleUrl, unittest.equals('foo'));
560 unittest.expect(o.targetPoolUrl, unittest.equals('foo')); 560 unittest.expect(o.targetPoolUrl, unittest.equals('foo'));
561 } 561 }
562 buildCounterLbModuleStatus--; 562 buildCounterLbModuleStatus--;
563 } 563 }
564 564
565 buildUnnamed1103() { 565 buildUnnamed1131() {
566 var o = new core.List<api.MetadataItem>(); 566 var o = new core.List<api.MetadataItem>();
567 o.add(buildMetadataItem()); 567 o.add(buildMetadataItem());
568 o.add(buildMetadataItem()); 568 o.add(buildMetadataItem());
569 return o; 569 return o;
570 } 570 }
571 571
572 checkUnnamed1103(core.List<api.MetadataItem> o) { 572 checkUnnamed1131(core.List<api.MetadataItem> o) {
573 unittest.expect(o, unittest.hasLength(2)); 573 unittest.expect(o, unittest.hasLength(2));
574 checkMetadataItem(o[0]); 574 checkMetadataItem(o[0]);
575 checkMetadataItem(o[1]); 575 checkMetadataItem(o[1]);
576 } 576 }
577 577
578 core.int buildCounterMetadata = 0; 578 core.int buildCounterMetadata = 0;
579 buildMetadata() { 579 buildMetadata() {
580 var o = new api.Metadata(); 580 var o = new api.Metadata();
581 buildCounterMetadata++; 581 buildCounterMetadata++;
582 if (buildCounterMetadata < 3) { 582 if (buildCounterMetadata < 3) {
583 o.fingerPrint = "foo"; 583 o.fingerPrint = "foo";
584 o.items = buildUnnamed1103(); 584 o.items = buildUnnamed1131();
585 } 585 }
586 buildCounterMetadata--; 586 buildCounterMetadata--;
587 return o; 587 return o;
588 } 588 }
589 589
590 checkMetadata(api.Metadata o) { 590 checkMetadata(api.Metadata o) {
591 buildCounterMetadata++; 591 buildCounterMetadata++;
592 if (buildCounterMetadata < 3) { 592 if (buildCounterMetadata < 3) {
593 unittest.expect(o.fingerPrint, unittest.equals('foo')); 593 unittest.expect(o.fingerPrint, unittest.equals('foo'));
594 checkUnnamed1103(o.items); 594 checkUnnamed1131(o.items);
595 } 595 }
596 buildCounterMetadata--; 596 buildCounterMetadata--;
597 } 597 }
598 598
599 core.int buildCounterMetadataItem = 0; 599 core.int buildCounterMetadataItem = 0;
600 buildMetadataItem() { 600 buildMetadataItem() {
601 var o = new api.MetadataItem(); 601 var o = new api.MetadataItem();
602 buildCounterMetadataItem++; 602 buildCounterMetadataItem++;
603 if (buildCounterMetadataItem < 3) { 603 if (buildCounterMetadataItem < 3) {
604 o.key = "foo"; 604 o.key = "foo";
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 checkHealthCheckModuleStatus(o.healthCheckModuleStatus); 674 checkHealthCheckModuleStatus(o.healthCheckModuleStatus);
675 checkLbModuleStatus(o.lbModuleStatus); 675 checkLbModuleStatus(o.lbModuleStatus);
676 checkNetworkModuleStatus(o.networkModuleStatus); 676 checkNetworkModuleStatus(o.networkModuleStatus);
677 checkReplicaPoolModuleStatus(o.replicaPoolModuleStatus); 677 checkReplicaPoolModuleStatus(o.replicaPoolModuleStatus);
678 checkDeployState(o.state); 678 checkDeployState(o.state);
679 unittest.expect(o.type, unittest.equals('foo')); 679 unittest.expect(o.type, unittest.equals('foo'));
680 } 680 }
681 buildCounterModuleStatus--; 681 buildCounterModuleStatus--;
682 } 682 }
683 683
684 buildUnnamed1104() { 684 buildUnnamed1132() {
685 var o = new core.List<api.AccessConfig>(); 685 var o = new core.List<api.AccessConfig>();
686 o.add(buildAccessConfig()); 686 o.add(buildAccessConfig());
687 o.add(buildAccessConfig()); 687 o.add(buildAccessConfig());
688 return o; 688 return o;
689 } 689 }
690 690
691 checkUnnamed1104(core.List<api.AccessConfig> o) { 691 checkUnnamed1132(core.List<api.AccessConfig> o) {
692 unittest.expect(o, unittest.hasLength(2)); 692 unittest.expect(o, unittest.hasLength(2));
693 checkAccessConfig(o[0]); 693 checkAccessConfig(o[0]);
694 checkAccessConfig(o[1]); 694 checkAccessConfig(o[1]);
695 } 695 }
696 696
697 core.int buildCounterNetworkInterface = 0; 697 core.int buildCounterNetworkInterface = 0;
698 buildNetworkInterface() { 698 buildNetworkInterface() {
699 var o = new api.NetworkInterface(); 699 var o = new api.NetworkInterface();
700 buildCounterNetworkInterface++; 700 buildCounterNetworkInterface++;
701 if (buildCounterNetworkInterface < 3) { 701 if (buildCounterNetworkInterface < 3) {
702 o.accessConfigs = buildUnnamed1104(); 702 o.accessConfigs = buildUnnamed1132();
703 o.name = "foo"; 703 o.name = "foo";
704 o.network = "foo"; 704 o.network = "foo";
705 o.networkIp = "foo"; 705 o.networkIp = "foo";
706 } 706 }
707 buildCounterNetworkInterface--; 707 buildCounterNetworkInterface--;
708 return o; 708 return o;
709 } 709 }
710 710
711 checkNetworkInterface(api.NetworkInterface o) { 711 checkNetworkInterface(api.NetworkInterface o) {
712 buildCounterNetworkInterface++; 712 buildCounterNetworkInterface++;
713 if (buildCounterNetworkInterface < 3) { 713 if (buildCounterNetworkInterface < 3) {
714 checkUnnamed1104(o.accessConfigs); 714 checkUnnamed1132(o.accessConfigs);
715 unittest.expect(o.name, unittest.equals('foo')); 715 unittest.expect(o.name, unittest.equals('foo'));
716 unittest.expect(o.network, unittest.equals('foo')); 716 unittest.expect(o.network, unittest.equals('foo'));
717 unittest.expect(o.networkIp, unittest.equals('foo')); 717 unittest.expect(o.networkIp, unittest.equals('foo'));
718 } 718 }
719 buildCounterNetworkInterface--; 719 buildCounterNetworkInterface--;
720 } 720 }
721 721
722 core.int buildCounterNetworkModule = 0; 722 core.int buildCounterNetworkModule = 0;
723 buildNetworkModule() { 723 buildNetworkModule() {
724 var o = new api.NetworkModule(); 724 var o = new api.NetworkModule();
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 } 785 }
786 buildCounterNewDisk--; 786 buildCounterNewDisk--;
787 } 787 }
788 788
789 core.int buildCounterNewDiskInitializeParams = 0; 789 core.int buildCounterNewDiskInitializeParams = 0;
790 buildNewDiskInitializeParams() { 790 buildNewDiskInitializeParams() {
791 var o = new api.NewDiskInitializeParams(); 791 var o = new api.NewDiskInitializeParams();
792 buildCounterNewDiskInitializeParams++; 792 buildCounterNewDiskInitializeParams++;
793 if (buildCounterNewDiskInitializeParams < 3) { 793 if (buildCounterNewDiskInitializeParams < 3) {
794 o.diskSizeGb = "foo"; 794 o.diskSizeGb = "foo";
795 o.diskType = "foo";
795 o.sourceImage = "foo"; 796 o.sourceImage = "foo";
796 } 797 }
797 buildCounterNewDiskInitializeParams--; 798 buildCounterNewDiskInitializeParams--;
798 return o; 799 return o;
799 } 800 }
800 801
801 checkNewDiskInitializeParams(api.NewDiskInitializeParams o) { 802 checkNewDiskInitializeParams(api.NewDiskInitializeParams o) {
802 buildCounterNewDiskInitializeParams++; 803 buildCounterNewDiskInitializeParams++;
803 if (buildCounterNewDiskInitializeParams < 3) { 804 if (buildCounterNewDiskInitializeParams < 3) {
804 unittest.expect(o.diskSizeGb, unittest.equals('foo')); 805 unittest.expect(o.diskSizeGb, unittest.equals('foo'));
806 unittest.expect(o.diskType, unittest.equals('foo'));
805 unittest.expect(o.sourceImage, unittest.equals('foo')); 807 unittest.expect(o.sourceImage, unittest.equals('foo'));
806 } 808 }
807 buildCounterNewDiskInitializeParams--; 809 buildCounterNewDiskInitializeParams--;
808 } 810 }
809 811
810 core.int buildCounterParamOverride = 0; 812 core.int buildCounterParamOverride = 0;
811 buildParamOverride() { 813 buildParamOverride() {
812 var o = new api.ParamOverride(); 814 var o = new api.ParamOverride();
813 buildCounterParamOverride++; 815 buildCounterParamOverride++;
814 if (buildCounterParamOverride < 3) { 816 if (buildCounterParamOverride < 3) {
815 o.path = "foo"; 817 o.path = "foo";
816 o.value = "foo"; 818 o.value = "foo";
817 } 819 }
818 buildCounterParamOverride--; 820 buildCounterParamOverride--;
819 return o; 821 return o;
820 } 822 }
821 823
822 checkParamOverride(api.ParamOverride o) { 824 checkParamOverride(api.ParamOverride o) {
823 buildCounterParamOverride++; 825 buildCounterParamOverride++;
824 if (buildCounterParamOverride < 3) { 826 if (buildCounterParamOverride < 3) {
825 unittest.expect(o.path, unittest.equals('foo')); 827 unittest.expect(o.path, unittest.equals('foo'));
826 unittest.expect(o.value, unittest.equals('foo')); 828 unittest.expect(o.value, unittest.equals('foo'));
827 } 829 }
828 buildCounterParamOverride--; 830 buildCounterParamOverride--;
829 } 831 }
830 832
831 buildUnnamed1105() { 833 buildUnnamed1133() {
832 var o = new core.Map<core.String, api.EnvVariable>(); 834 var o = new core.Map<core.String, api.EnvVariable>();
833 o["x"] = buildEnvVariable(); 835 o["x"] = buildEnvVariable();
834 o["y"] = buildEnvVariable(); 836 o["y"] = buildEnvVariable();
835 return o; 837 return o;
836 } 838 }
837 839
838 checkUnnamed1105(core.Map<core.String, api.EnvVariable> o) { 840 checkUnnamed1133(core.Map<core.String, api.EnvVariable> o) {
839 unittest.expect(o, unittest.hasLength(2)); 841 unittest.expect(o, unittest.hasLength(2));
840 checkEnvVariable(o["x"]); 842 checkEnvVariable(o["x"]);
841 checkEnvVariable(o["y"]); 843 checkEnvVariable(o["y"]);
842 } 844 }
843 845
844 buildUnnamed1106() { 846 buildUnnamed1134() {
845 var o = new core.List<core.String>(); 847 var o = new core.List<core.String>();
846 o.add("foo"); 848 o.add("foo");
847 o.add("foo"); 849 o.add("foo");
848 return o; 850 return o;
849 } 851 }
850 852
851 checkUnnamed1106(core.List<core.String> o) { 853 checkUnnamed1134(core.List<core.String> o) {
852 unittest.expect(o, unittest.hasLength(2)); 854 unittest.expect(o, unittest.hasLength(2));
853 unittest.expect(o[0], unittest.equals('foo')); 855 unittest.expect(o[0], unittest.equals('foo'));
854 unittest.expect(o[1], unittest.equals('foo')); 856 unittest.expect(o[1], unittest.equals('foo'));
855 } 857 }
856 858
857 core.int buildCounterReplicaPoolModule = 0; 859 core.int buildCounterReplicaPoolModule = 0;
858 buildReplicaPoolModule() { 860 buildReplicaPoolModule() {
859 var o = new api.ReplicaPoolModule(); 861 var o = new api.ReplicaPoolModule();
860 buildCounterReplicaPoolModule++; 862 buildCounterReplicaPoolModule++;
861 if (buildCounterReplicaPoolModule < 3) { 863 if (buildCounterReplicaPoolModule < 3) {
862 o.envVariables = buildUnnamed1105(); 864 o.envVariables = buildUnnamed1133();
863 o.healthChecks = buildUnnamed1106(); 865 o.healthChecks = buildUnnamed1134();
864 o.numReplicas = 42; 866 o.numReplicas = 42;
865 o.replicaPoolParams = buildReplicaPoolParams(); 867 o.replicaPoolParams = buildReplicaPoolParams();
866 o.resourceView = "foo"; 868 o.resourceView = "foo";
867 } 869 }
868 buildCounterReplicaPoolModule--; 870 buildCounterReplicaPoolModule--;
869 return o; 871 return o;
870 } 872 }
871 873
872 checkReplicaPoolModule(api.ReplicaPoolModule o) { 874 checkReplicaPoolModule(api.ReplicaPoolModule o) {
873 buildCounterReplicaPoolModule++; 875 buildCounterReplicaPoolModule++;
874 if (buildCounterReplicaPoolModule < 3) { 876 if (buildCounterReplicaPoolModule < 3) {
875 checkUnnamed1105(o.envVariables); 877 checkUnnamed1133(o.envVariables);
876 checkUnnamed1106(o.healthChecks); 878 checkUnnamed1134(o.healthChecks);
877 unittest.expect(o.numReplicas, unittest.equals(42)); 879 unittest.expect(o.numReplicas, unittest.equals(42));
878 checkReplicaPoolParams(o.replicaPoolParams); 880 checkReplicaPoolParams(o.replicaPoolParams);
879 unittest.expect(o.resourceView, unittest.equals('foo')); 881 unittest.expect(o.resourceView, unittest.equals('foo'));
880 } 882 }
881 buildCounterReplicaPoolModule--; 883 buildCounterReplicaPoolModule--;
882 } 884 }
883 885
884 core.int buildCounterReplicaPoolModuleStatus = 0; 886 core.int buildCounterReplicaPoolModuleStatus = 0;
885 buildReplicaPoolModuleStatus() { 887 buildReplicaPoolModuleStatus() {
886 var o = new api.ReplicaPoolModuleStatus(); 888 var o = new api.ReplicaPoolModuleStatus();
(...skipping 27 matching lines...) Expand all
914 } 916 }
915 917
916 checkReplicaPoolParams(api.ReplicaPoolParams o) { 918 checkReplicaPoolParams(api.ReplicaPoolParams o) {
917 buildCounterReplicaPoolParams++; 919 buildCounterReplicaPoolParams++;
918 if (buildCounterReplicaPoolParams < 3) { 920 if (buildCounterReplicaPoolParams < 3) {
919 checkReplicaPoolParamsV1Beta1(o.v1beta1); 921 checkReplicaPoolParamsV1Beta1(o.v1beta1);
920 } 922 }
921 buildCounterReplicaPoolParams--; 923 buildCounterReplicaPoolParams--;
922 } 924 }
923 925
924 buildUnnamed1107() { 926 buildUnnamed1135() {
925 var o = new core.List<api.ExistingDisk>(); 927 var o = new core.List<api.ExistingDisk>();
926 o.add(buildExistingDisk()); 928 o.add(buildExistingDisk());
927 o.add(buildExistingDisk()); 929 o.add(buildExistingDisk());
928 return o; 930 return o;
929 } 931 }
930 932
931 checkUnnamed1107(core.List<api.ExistingDisk> o) { 933 checkUnnamed1135(core.List<api.ExistingDisk> o) {
932 unittest.expect(o, unittest.hasLength(2)); 934 unittest.expect(o, unittest.hasLength(2));
933 checkExistingDisk(o[0]); 935 checkExistingDisk(o[0]);
934 checkExistingDisk(o[1]); 936 checkExistingDisk(o[1]);
935 } 937 }
936 938
937 buildUnnamed1108() { 939 buildUnnamed1136() {
938 var o = new core.List<api.NewDisk>(); 940 var o = new core.List<api.NewDisk>();
939 o.add(buildNewDisk()); 941 o.add(buildNewDisk());
940 o.add(buildNewDisk()); 942 o.add(buildNewDisk());
941 return o; 943 return o;
942 } 944 }
943 945
944 checkUnnamed1108(core.List<api.NewDisk> o) { 946 checkUnnamed1136(core.List<api.NewDisk> o) {
945 unittest.expect(o, unittest.hasLength(2)); 947 unittest.expect(o, unittest.hasLength(2));
946 checkNewDisk(o[0]); 948 checkNewDisk(o[0]);
947 checkNewDisk(o[1]); 949 checkNewDisk(o[1]);
948 } 950 }
949 951
950 buildUnnamed1109() { 952 buildUnnamed1137() {
951 var o = new core.List<api.NetworkInterface>(); 953 var o = new core.List<api.NetworkInterface>();
952 o.add(buildNetworkInterface()); 954 o.add(buildNetworkInterface());
953 o.add(buildNetworkInterface()); 955 o.add(buildNetworkInterface());
954 return o; 956 return o;
955 } 957 }
956 958
957 checkUnnamed1109(core.List<api.NetworkInterface> o) { 959 checkUnnamed1137(core.List<api.NetworkInterface> o) {
958 unittest.expect(o, unittest.hasLength(2)); 960 unittest.expect(o, unittest.hasLength(2));
959 checkNetworkInterface(o[0]); 961 checkNetworkInterface(o[0]);
960 checkNetworkInterface(o[1]); 962 checkNetworkInterface(o[1]);
961 } 963 }
962 964
963 buildUnnamed1110() { 965 buildUnnamed1138() {
964 var o = new core.List<api.ServiceAccount>(); 966 var o = new core.List<api.ServiceAccount>();
965 o.add(buildServiceAccount()); 967 o.add(buildServiceAccount());
966 o.add(buildServiceAccount()); 968 o.add(buildServiceAccount());
967 return o; 969 return o;
968 } 970 }
969 971
970 checkUnnamed1110(core.List<api.ServiceAccount> o) { 972 checkUnnamed1138(core.List<api.ServiceAccount> o) {
971 unittest.expect(o, unittest.hasLength(2)); 973 unittest.expect(o, unittest.hasLength(2));
972 checkServiceAccount(o[0]); 974 checkServiceAccount(o[0]);
973 checkServiceAccount(o[1]); 975 checkServiceAccount(o[1]);
974 } 976 }
975 977
976 core.int buildCounterReplicaPoolParamsV1Beta1 = 0; 978 core.int buildCounterReplicaPoolParamsV1Beta1 = 0;
977 buildReplicaPoolParamsV1Beta1() { 979 buildReplicaPoolParamsV1Beta1() {
978 var o = new api.ReplicaPoolParamsV1Beta1(); 980 var o = new api.ReplicaPoolParamsV1Beta1();
979 buildCounterReplicaPoolParamsV1Beta1++; 981 buildCounterReplicaPoolParamsV1Beta1++;
980 if (buildCounterReplicaPoolParamsV1Beta1 < 3) { 982 if (buildCounterReplicaPoolParamsV1Beta1 < 3) {
981 o.autoRestart = true; 983 o.autoRestart = true;
982 o.baseInstanceName = "foo"; 984 o.baseInstanceName = "foo";
983 o.canIpForward = true; 985 o.canIpForward = true;
984 o.description = "foo"; 986 o.description = "foo";
985 o.disksToAttach = buildUnnamed1107(); 987 o.disksToAttach = buildUnnamed1135();
986 o.disksToCreate = buildUnnamed1108(); 988 o.disksToCreate = buildUnnamed1136();
987 o.initAction = "foo"; 989 o.initAction = "foo";
988 o.machineType = "foo"; 990 o.machineType = "foo";
989 o.metadata = buildMetadata(); 991 o.metadata = buildMetadata();
990 o.networkInterfaces = buildUnnamed1109(); 992 o.networkInterfaces = buildUnnamed1137();
991 o.onHostMaintenance = "foo"; 993 o.onHostMaintenance = "foo";
992 o.serviceAccounts = buildUnnamed1110(); 994 o.serviceAccounts = buildUnnamed1138();
993 o.tags = buildTag(); 995 o.tags = buildTag();
994 o.zone = "foo"; 996 o.zone = "foo";
995 } 997 }
996 buildCounterReplicaPoolParamsV1Beta1--; 998 buildCounterReplicaPoolParamsV1Beta1--;
997 return o; 999 return o;
998 } 1000 }
999 1001
1000 checkReplicaPoolParamsV1Beta1(api.ReplicaPoolParamsV1Beta1 o) { 1002 checkReplicaPoolParamsV1Beta1(api.ReplicaPoolParamsV1Beta1 o) {
1001 buildCounterReplicaPoolParamsV1Beta1++; 1003 buildCounterReplicaPoolParamsV1Beta1++;
1002 if (buildCounterReplicaPoolParamsV1Beta1 < 3) { 1004 if (buildCounterReplicaPoolParamsV1Beta1 < 3) {
1003 unittest.expect(o.autoRestart, unittest.isTrue); 1005 unittest.expect(o.autoRestart, unittest.isTrue);
1004 unittest.expect(o.baseInstanceName, unittest.equals('foo')); 1006 unittest.expect(o.baseInstanceName, unittest.equals('foo'));
1005 unittest.expect(o.canIpForward, unittest.isTrue); 1007 unittest.expect(o.canIpForward, unittest.isTrue);
1006 unittest.expect(o.description, unittest.equals('foo')); 1008 unittest.expect(o.description, unittest.equals('foo'));
1007 checkUnnamed1107(o.disksToAttach); 1009 checkUnnamed1135(o.disksToAttach);
1008 checkUnnamed1108(o.disksToCreate); 1010 checkUnnamed1136(o.disksToCreate);
1009 unittest.expect(o.initAction, unittest.equals('foo')); 1011 unittest.expect(o.initAction, unittest.equals('foo'));
1010 unittest.expect(o.machineType, unittest.equals('foo')); 1012 unittest.expect(o.machineType, unittest.equals('foo'));
1011 checkMetadata(o.metadata); 1013 checkMetadata(o.metadata);
1012 checkUnnamed1109(o.networkInterfaces); 1014 checkUnnamed1137(o.networkInterfaces);
1013 unittest.expect(o.onHostMaintenance, unittest.equals('foo')); 1015 unittest.expect(o.onHostMaintenance, unittest.equals('foo'));
1014 checkUnnamed1110(o.serviceAccounts); 1016 checkUnnamed1138(o.serviceAccounts);
1015 checkTag(o.tags); 1017 checkTag(o.tags);
1016 unittest.expect(o.zone, unittest.equals('foo')); 1018 unittest.expect(o.zone, unittest.equals('foo'));
1017 } 1019 }
1018 buildCounterReplicaPoolParamsV1Beta1--; 1020 buildCounterReplicaPoolParamsV1Beta1--;
1019 } 1021 }
1020 1022
1021 buildUnnamed1111() { 1023 buildUnnamed1139() {
1022 var o = new core.List<core.String>(); 1024 var o = new core.List<core.String>();
1023 o.add("foo"); 1025 o.add("foo");
1024 o.add("foo"); 1026 o.add("foo");
1025 return o; 1027 return o;
1026 } 1028 }
1027 1029
1028 checkUnnamed1111(core.List<core.String> o) { 1030 checkUnnamed1139(core.List<core.String> o) {
1029 unittest.expect(o, unittest.hasLength(2)); 1031 unittest.expect(o, unittest.hasLength(2));
1030 unittest.expect(o[0], unittest.equals('foo')); 1032 unittest.expect(o[0], unittest.equals('foo'));
1031 unittest.expect(o[1], unittest.equals('foo')); 1033 unittest.expect(o[1], unittest.equals('foo'));
1032 } 1034 }
1033 1035
1034 core.int buildCounterServiceAccount = 0; 1036 core.int buildCounterServiceAccount = 0;
1035 buildServiceAccount() { 1037 buildServiceAccount() {
1036 var o = new api.ServiceAccount(); 1038 var o = new api.ServiceAccount();
1037 buildCounterServiceAccount++; 1039 buildCounterServiceAccount++;
1038 if (buildCounterServiceAccount < 3) { 1040 if (buildCounterServiceAccount < 3) {
1039 o.email = "foo"; 1041 o.email = "foo";
1040 o.scopes = buildUnnamed1111(); 1042 o.scopes = buildUnnamed1139();
1041 } 1043 }
1042 buildCounterServiceAccount--; 1044 buildCounterServiceAccount--;
1043 return o; 1045 return o;
1044 } 1046 }
1045 1047
1046 checkServiceAccount(api.ServiceAccount o) { 1048 checkServiceAccount(api.ServiceAccount o) {
1047 buildCounterServiceAccount++; 1049 buildCounterServiceAccount++;
1048 if (buildCounterServiceAccount < 3) { 1050 if (buildCounterServiceAccount < 3) {
1049 unittest.expect(o.email, unittest.equals('foo')); 1051 unittest.expect(o.email, unittest.equals('foo'));
1050 checkUnnamed1111(o.scopes); 1052 checkUnnamed1139(o.scopes);
1051 } 1053 }
1052 buildCounterServiceAccount--; 1054 buildCounterServiceAccount--;
1053 } 1055 }
1054 1056
1055 buildUnnamed1112() { 1057 buildUnnamed1140() {
1056 var o = new core.List<core.String>(); 1058 var o = new core.List<core.String>();
1057 o.add("foo"); 1059 o.add("foo");
1058 o.add("foo"); 1060 o.add("foo");
1059 return o; 1061 return o;
1060 } 1062 }
1061 1063
1062 checkUnnamed1112(core.List<core.String> o) { 1064 checkUnnamed1140(core.List<core.String> o) {
1063 unittest.expect(o, unittest.hasLength(2)); 1065 unittest.expect(o, unittest.hasLength(2));
1064 unittest.expect(o[0], unittest.equals('foo')); 1066 unittest.expect(o[0], unittest.equals('foo'));
1065 unittest.expect(o[1], unittest.equals('foo')); 1067 unittest.expect(o[1], unittest.equals('foo'));
1066 } 1068 }
1067 1069
1068 core.int buildCounterTag = 0; 1070 core.int buildCounterTag = 0;
1069 buildTag() { 1071 buildTag() {
1070 var o = new api.Tag(); 1072 var o = new api.Tag();
1071 buildCounterTag++; 1073 buildCounterTag++;
1072 if (buildCounterTag < 3) { 1074 if (buildCounterTag < 3) {
1073 o.fingerPrint = "foo"; 1075 o.fingerPrint = "foo";
1074 o.items = buildUnnamed1112(); 1076 o.items = buildUnnamed1140();
1075 } 1077 }
1076 buildCounterTag--; 1078 buildCounterTag--;
1077 return o; 1079 return o;
1078 } 1080 }
1079 1081
1080 checkTag(api.Tag o) { 1082 checkTag(api.Tag o) {
1081 buildCounterTag++; 1083 buildCounterTag++;
1082 if (buildCounterTag < 3) { 1084 if (buildCounterTag < 3) {
1083 unittest.expect(o.fingerPrint, unittest.equals('foo')); 1085 unittest.expect(o.fingerPrint, unittest.equals('foo'));
1084 checkUnnamed1112(o.items); 1086 checkUnnamed1140(o.items);
1085 } 1087 }
1086 buildCounterTag--; 1088 buildCounterTag--;
1087 } 1089 }
1088 1090
1089 buildUnnamed1113() { 1091 buildUnnamed1141() {
1090 var o = new core.Map<core.String, api.Action>(); 1092 var o = new core.Map<core.String, api.Action>();
1091 o["x"] = buildAction(); 1093 o["x"] = buildAction();
1092 o["y"] = buildAction(); 1094 o["y"] = buildAction();
1093 return o; 1095 return o;
1094 } 1096 }
1095 1097
1096 checkUnnamed1113(core.Map<core.String, api.Action> o) { 1098 checkUnnamed1141(core.Map<core.String, api.Action> o) {
1097 unittest.expect(o, unittest.hasLength(2)); 1099 unittest.expect(o, unittest.hasLength(2));
1098 checkAction(o["x"]); 1100 checkAction(o["x"]);
1099 checkAction(o["y"]); 1101 checkAction(o["y"]);
1100 } 1102 }
1101 1103
1102 buildUnnamed1114() { 1104 buildUnnamed1142() {
1103 var o = new core.Map<core.String, api.Module>(); 1105 var o = new core.Map<core.String, api.Module>();
1104 o["x"] = buildModule(); 1106 o["x"] = buildModule();
1105 o["y"] = buildModule(); 1107 o["y"] = buildModule();
1106 return o; 1108 return o;
1107 } 1109 }
1108 1110
1109 checkUnnamed1114(core.Map<core.String, api.Module> o) { 1111 checkUnnamed1142(core.Map<core.String, api.Module> o) {
1110 unittest.expect(o, unittest.hasLength(2)); 1112 unittest.expect(o, unittest.hasLength(2));
1111 checkModule(o["x"]); 1113 checkModule(o["x"]);
1112 checkModule(o["y"]); 1114 checkModule(o["y"]);
1113 } 1115 }
1114 1116
1115 core.int buildCounterTemplate = 0; 1117 core.int buildCounterTemplate = 0;
1116 buildTemplate() { 1118 buildTemplate() {
1117 var o = new api.Template(); 1119 var o = new api.Template();
1118 buildCounterTemplate++; 1120 buildCounterTemplate++;
1119 if (buildCounterTemplate < 3) { 1121 if (buildCounterTemplate < 3) {
1120 o.actions = buildUnnamed1113(); 1122 o.actions = buildUnnamed1141();
1121 o.description = "foo"; 1123 o.description = "foo";
1122 o.modules = buildUnnamed1114(); 1124 o.modules = buildUnnamed1142();
1123 o.name = "foo"; 1125 o.name = "foo";
1124 } 1126 }
1125 buildCounterTemplate--; 1127 buildCounterTemplate--;
1126 return o; 1128 return o;
1127 } 1129 }
1128 1130
1129 checkTemplate(api.Template o) { 1131 checkTemplate(api.Template o) {
1130 buildCounterTemplate++; 1132 buildCounterTemplate++;
1131 if (buildCounterTemplate < 3) { 1133 if (buildCounterTemplate < 3) {
1132 checkUnnamed1113(o.actions); 1134 checkUnnamed1141(o.actions);
1133 unittest.expect(o.description, unittest.equals('foo')); 1135 unittest.expect(o.description, unittest.equals('foo'));
1134 checkUnnamed1114(o.modules); 1136 checkUnnamed1142(o.modules);
1135 unittest.expect(o.name, unittest.equals('foo')); 1137 unittest.expect(o.name, unittest.equals('foo'));
1136 } 1138 }
1137 buildCounterTemplate--; 1139 buildCounterTemplate--;
1138 } 1140 }
1139 1141
1140 buildUnnamed1115() { 1142 buildUnnamed1143() {
1141 var o = new core.List<api.Template>(); 1143 var o = new core.List<api.Template>();
1142 o.add(buildTemplate()); 1144 o.add(buildTemplate());
1143 o.add(buildTemplate()); 1145 o.add(buildTemplate());
1144 return o; 1146 return o;
1145 } 1147 }
1146 1148
1147 checkUnnamed1115(core.List<api.Template> o) { 1149 checkUnnamed1143(core.List<api.Template> o) {
1148 unittest.expect(o, unittest.hasLength(2)); 1150 unittest.expect(o, unittest.hasLength(2));
1149 checkTemplate(o[0]); 1151 checkTemplate(o[0]);
1150 checkTemplate(o[1]); 1152 checkTemplate(o[1]);
1151 } 1153 }
1152 1154
1153 core.int buildCounterTemplatesListResponse = 0; 1155 core.int buildCounterTemplatesListResponse = 0;
1154 buildTemplatesListResponse() { 1156 buildTemplatesListResponse() {
1155 var o = new api.TemplatesListResponse(); 1157 var o = new api.TemplatesListResponse();
1156 buildCounterTemplatesListResponse++; 1158 buildCounterTemplatesListResponse++;
1157 if (buildCounterTemplatesListResponse < 3) { 1159 if (buildCounterTemplatesListResponse < 3) {
1158 o.nextPageToken = "foo"; 1160 o.nextPageToken = "foo";
1159 o.resources = buildUnnamed1115(); 1161 o.resources = buildUnnamed1143();
1160 } 1162 }
1161 buildCounterTemplatesListResponse--; 1163 buildCounterTemplatesListResponse--;
1162 return o; 1164 return o;
1163 } 1165 }
1164 1166
1165 checkTemplatesListResponse(api.TemplatesListResponse o) { 1167 checkTemplatesListResponse(api.TemplatesListResponse o) {
1166 buildCounterTemplatesListResponse++; 1168 buildCounterTemplatesListResponse++;
1167 if (buildCounterTemplatesListResponse < 3) { 1169 if (buildCounterTemplatesListResponse < 3) {
1168 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1170 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1169 checkUnnamed1115(o.resources); 1171 checkUnnamed1143(o.resources);
1170 } 1172 }
1171 buildCounterTemplatesListResponse--; 1173 buildCounterTemplatesListResponse--;
1172 } 1174 }
1173 1175
1174 1176
1175 main() { 1177 main() {
1176 unittest.group("obj-schema-AccessConfig", () { 1178 unittest.group("obj-schema-AccessConfig", () {
1177 unittest.test("to-json--from-json", () { 1179 unittest.test("to-json--from-json", () {
1178 var o = buildAccessConfig(); 1180 var o = buildAccessConfig();
1179 var od = new api.AccessConfig.fromJson(o.toJson()); 1181 var od = new api.AccessConfig.fromJson(o.toJson());
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
1494 var mock = new common_test.HttpServerMock(); 1496 var mock = new common_test.HttpServerMock();
1495 api.DeploymentsResourceApi res = new api.ManagerApi(mock).deployments; 1497 api.DeploymentsResourceApi res = new api.ManagerApi(mock).deployments;
1496 var arg_projectId = "foo"; 1498 var arg_projectId = "foo";
1497 var arg_region = "foo"; 1499 var arg_region = "foo";
1498 var arg_deploymentName = "foo"; 1500 var arg_deploymentName = "foo";
1499 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1501 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1500 var path = (req.url).path; 1502 var path = (req.url).path;
1501 var pathOffset = 0; 1503 var pathOffset = 0;
1502 var index; 1504 var index;
1503 var subPart; 1505 var subPart;
1504 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq uals("/manager/v1beta2/projects/")); 1506 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1505 pathOffset += 26; 1507 pathOffset += 1;
1506 index = path.indexOf("/regions/", pathOffset);
1507 unittest.expect(index >= 0, unittest.isTrue);
1508 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1509 pathOffset = index;
1510 unittest.expect(subPart, unittest.equals("$arg_projectId"));
1511 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/regions/"));
1512 pathOffset += 9;
1513 index = path.indexOf("/deployments/", pathOffset);
1514 unittest.expect(index >= 0, unittest.isTrue);
1515 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1516 pathOffset = index;
1517 unittest.expect(subPart, unittest.equals("$arg_region"));
1518 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("/deployments/"));
1519 pathOffset += 13;
1520 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
1521 pathOffset = path.length;
1522 unittest.expect(subPart, unittest.equals("$arg_deploymentName"));
1523 1508
1524 var query = (req.url).query; 1509 var query = (req.url).query;
1525 var queryOffset = 0; 1510 var queryOffset = 0;
1526 var queryMap = {}; 1511 var queryMap = {};
1527 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 1512 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1528 parseBool(n) { 1513 parseBool(n) {
1529 if (n == "true") return true; 1514 if (n == "true") return true;
1530 if (n == "false") return false; 1515 if (n == "false") return false;
1531 if (n == null) return null; 1516 if (n == null) return null;
1532 throw new core.ArgumentError("Invalid boolean: $n"); 1517 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 20 matching lines...) Expand all
1553 var mock = new common_test.HttpServerMock(); 1538 var mock = new common_test.HttpServerMock();
1554 api.DeploymentsResourceApi res = new api.ManagerApi(mock).deployments; 1539 api.DeploymentsResourceApi res = new api.ManagerApi(mock).deployments;
1555 var arg_projectId = "foo"; 1540 var arg_projectId = "foo";
1556 var arg_region = "foo"; 1541 var arg_region = "foo";
1557 var arg_deploymentName = "foo"; 1542 var arg_deploymentName = "foo";
1558 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1543 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1559 var path = (req.url).path; 1544 var path = (req.url).path;
1560 var pathOffset = 0; 1545 var pathOffset = 0;
1561 var index; 1546 var index;
1562 var subPart; 1547 var subPart;
1563 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq uals("/manager/v1beta2/projects/")); 1548 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1564 pathOffset += 26; 1549 pathOffset += 1;
1565 index = path.indexOf("/regions/", pathOffset);
1566 unittest.expect(index >= 0, unittest.isTrue);
1567 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1568 pathOffset = index;
1569 unittest.expect(subPart, unittest.equals("$arg_projectId"));
1570 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/regions/"));
1571 pathOffset += 9;
1572 index = path.indexOf("/deployments/", pathOffset);
1573 unittest.expect(index >= 0, unittest.isTrue);
1574 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1575 pathOffset = index;
1576 unittest.expect(subPart, unittest.equals("$arg_region"));
1577 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("/deployments/"));
1578 pathOffset += 13;
1579 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
1580 pathOffset = path.length;
1581 unittest.expect(subPart, unittest.equals("$arg_deploymentName"));
1582 1550
1583 var query = (req.url).query; 1551 var query = (req.url).query;
1584 var queryOffset = 0; 1552 var queryOffset = 0;
1585 var queryMap = {}; 1553 var queryMap = {};
1586 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 1554 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1587 parseBool(n) { 1555 parseBool(n) {
1588 if (n == "true") return true; 1556 if (n == "true") return true;
1589 if (n == "false") return false; 1557 if (n == "false") return false;
1590 if (n == null) return null; 1558 if (n == null) return null;
1591 throw new core.ArgumentError("Invalid boolean: $n"); 1559 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 25 matching lines...) Expand all
1617 var arg_projectId = "foo"; 1585 var arg_projectId = "foo";
1618 var arg_region = "foo"; 1586 var arg_region = "foo";
1619 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1587 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1620 var obj = new api.Deployment.fromJson(json); 1588 var obj = new api.Deployment.fromJson(json);
1621 checkDeployment(obj); 1589 checkDeployment(obj);
1622 1590
1623 var path = (req.url).path; 1591 var path = (req.url).path;
1624 var pathOffset = 0; 1592 var pathOffset = 0;
1625 var index; 1593 var index;
1626 var subPart; 1594 var subPart;
1627 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq uals("/manager/v1beta2/projects/")); 1595 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1628 pathOffset += 26; 1596 pathOffset += 1;
1629 index = path.indexOf("/regions/", pathOffset);
1630 unittest.expect(index >= 0, unittest.isTrue);
1631 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1632 pathOffset = index;
1633 unittest.expect(subPart, unittest.equals("$arg_projectId"));
1634 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/regions/"));
1635 pathOffset += 9;
1636 index = path.indexOf("/deployments", pathOffset);
1637 unittest.expect(index >= 0, unittest.isTrue);
1638 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1639 pathOffset = index;
1640 unittest.expect(subPart, unittest.equals("$arg_region"));
1641 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/deployments"));
1642 pathOffset += 12;
1643 1597
1644 var query = (req.url).query; 1598 var query = (req.url).query;
1645 var queryOffset = 0; 1599 var queryOffset = 0;
1646 var queryMap = {}; 1600 var queryMap = {};
1647 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 1601 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1648 parseBool(n) { 1602 parseBool(n) {
1649 if (n == "true") return true; 1603 if (n == "true") return true;
1650 if (n == "false") return false; 1604 if (n == "false") return false;
1651 if (n == null) return null; 1605 if (n == null) return null;
1652 throw new core.ArgumentError("Invalid boolean: $n"); 1606 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 23 matching lines...) Expand all
1676 api.DeploymentsResourceApi res = new api.ManagerApi(mock).deployments; 1630 api.DeploymentsResourceApi res = new api.ManagerApi(mock).deployments;
1677 var arg_projectId = "foo"; 1631 var arg_projectId = "foo";
1678 var arg_region = "foo"; 1632 var arg_region = "foo";
1679 var arg_maxResults = 42; 1633 var arg_maxResults = 42;
1680 var arg_pageToken = "foo"; 1634 var arg_pageToken = "foo";
1681 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1635 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1682 var path = (req.url).path; 1636 var path = (req.url).path;
1683 var pathOffset = 0; 1637 var pathOffset = 0;
1684 var index; 1638 var index;
1685 var subPart; 1639 var subPart;
1686 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq uals("/manager/v1beta2/projects/")); 1640 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1687 pathOffset += 26; 1641 pathOffset += 1;
1688 index = path.indexOf("/regions/", pathOffset);
1689 unittest.expect(index >= 0, unittest.isTrue);
1690 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1691 pathOffset = index;
1692 unittest.expect(subPart, unittest.equals("$arg_projectId"));
1693 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/regions/"));
1694 pathOffset += 9;
1695 index = path.indexOf("/deployments", pathOffset);
1696 unittest.expect(index >= 0, unittest.isTrue);
1697 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1698 pathOffset = index;
1699 unittest.expect(subPart, unittest.equals("$arg_region"));
1700 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/deployments"));
1701 pathOffset += 12;
1702 1642
1703 var query = (req.url).query; 1643 var query = (req.url).query;
1704 var queryOffset = 0; 1644 var queryOffset = 0;
1705 var queryMap = {}; 1645 var queryMap = {};
1706 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 1646 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1707 parseBool(n) { 1647 parseBool(n) {
1708 if (n == "true") return true; 1648 if (n == "true") return true;
1709 if (n == "false") return false; 1649 if (n == "false") return false;
1710 if (n == null) return null; 1650 if (n == null) return null;
1711 throw new core.ArgumentError("Invalid boolean: $n"); 1651 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 27 matching lines...) Expand all
1739 1679
1740 var mock = new common_test.HttpServerMock(); 1680 var mock = new common_test.HttpServerMock();
1741 api.TemplatesResourceApi res = new api.ManagerApi(mock).templates; 1681 api.TemplatesResourceApi res = new api.ManagerApi(mock).templates;
1742 var arg_projectId = "foo"; 1682 var arg_projectId = "foo";
1743 var arg_templateName = "foo"; 1683 var arg_templateName = "foo";
1744 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1684 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1745 var path = (req.url).path; 1685 var path = (req.url).path;
1746 var pathOffset = 0; 1686 var pathOffset = 0;
1747 var index; 1687 var index;
1748 var subPart; 1688 var subPart;
1749 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq uals("/manager/v1beta2/projects/")); 1689 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1750 pathOffset += 26; 1690 pathOffset += 1;
1751 index = path.indexOf("/templates/", pathOffset);
1752 unittest.expect(index >= 0, unittest.isTrue);
1753 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1754 pathOffset = index;
1755 unittest.expect(subPart, unittest.equals("$arg_projectId"));
1756 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("/templates/"));
1757 pathOffset += 11;
1758 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
1759 pathOffset = path.length;
1760 unittest.expect(subPart, unittest.equals("$arg_templateName"));
1761 1691
1762 var query = (req.url).query; 1692 var query = (req.url).query;
1763 var queryOffset = 0; 1693 var queryOffset = 0;
1764 var queryMap = {}; 1694 var queryMap = {};
1765 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 1695 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1766 parseBool(n) { 1696 parseBool(n) {
1767 if (n == "true") return true; 1697 if (n == "true") return true;
1768 if (n == "false") return false; 1698 if (n == "false") return false;
1769 if (n == null) return null; 1699 if (n == null) return null;
1770 throw new core.ArgumentError("Invalid boolean: $n"); 1700 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 19 matching lines...) Expand all
1790 1720
1791 var mock = new common_test.HttpServerMock(); 1721 var mock = new common_test.HttpServerMock();
1792 api.TemplatesResourceApi res = new api.ManagerApi(mock).templates; 1722 api.TemplatesResourceApi res = new api.ManagerApi(mock).templates;
1793 var arg_projectId = "foo"; 1723 var arg_projectId = "foo";
1794 var arg_templateName = "foo"; 1724 var arg_templateName = "foo";
1795 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1725 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1796 var path = (req.url).path; 1726 var path = (req.url).path;
1797 var pathOffset = 0; 1727 var pathOffset = 0;
1798 var index; 1728 var index;
1799 var subPart; 1729 var subPart;
1800 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq uals("/manager/v1beta2/projects/")); 1730 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1801 pathOffset += 26; 1731 pathOffset += 1;
1802 index = path.indexOf("/templates/", pathOffset);
1803 unittest.expect(index >= 0, unittest.isTrue);
1804 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1805 pathOffset = index;
1806 unittest.expect(subPart, unittest.equals("$arg_projectId"));
1807 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("/templates/"));
1808 pathOffset += 11;
1809 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
1810 pathOffset = path.length;
1811 unittest.expect(subPart, unittest.equals("$arg_templateName"));
1812 1732
1813 var query = (req.url).query; 1733 var query = (req.url).query;
1814 var queryOffset = 0; 1734 var queryOffset = 0;
1815 var queryMap = {}; 1735 var queryMap = {};
1816 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 1736 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1817 parseBool(n) { 1737 parseBool(n) {
1818 if (n == "true") return true; 1738 if (n == "true") return true;
1819 if (n == "false") return false; 1739 if (n == "false") return false;
1820 if (n == null) return null; 1740 if (n == null) return null;
1821 throw new core.ArgumentError("Invalid boolean: $n"); 1741 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 24 matching lines...) Expand all
1846 var arg_request = buildTemplate(); 1766 var arg_request = buildTemplate();
1847 var arg_projectId = "foo"; 1767 var arg_projectId = "foo";
1848 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1768 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1849 var obj = new api.Template.fromJson(json); 1769 var obj = new api.Template.fromJson(json);
1850 checkTemplate(obj); 1770 checkTemplate(obj);
1851 1771
1852 var path = (req.url).path; 1772 var path = (req.url).path;
1853 var pathOffset = 0; 1773 var pathOffset = 0;
1854 var index; 1774 var index;
1855 var subPart; 1775 var subPart;
1856 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq uals("/manager/v1beta2/projects/")); 1776 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1857 pathOffset += 26; 1777 pathOffset += 1;
1858 index = path.indexOf("/templates", pathOffset);
1859 unittest.expect(index >= 0, unittest.isTrue);
1860 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1861 pathOffset = index;
1862 unittest.expect(subPart, unittest.equals("$arg_projectId"));
1863 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/templates"));
1864 pathOffset += 10;
1865 1778
1866 var query = (req.url).query; 1779 var query = (req.url).query;
1867 var queryOffset = 0; 1780 var queryOffset = 0;
1868 var queryMap = {}; 1781 var queryMap = {};
1869 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 1782 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1870 parseBool(n) { 1783 parseBool(n) {
1871 if (n == "true") return true; 1784 if (n == "true") return true;
1872 if (n == "false") return false; 1785 if (n == "false") return false;
1873 if (n == null) return null; 1786 if (n == null) return null;
1874 throw new core.ArgumentError("Invalid boolean: $n"); 1787 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 22 matching lines...) Expand all
1897 var mock = new common_test.HttpServerMock(); 1810 var mock = new common_test.HttpServerMock();
1898 api.TemplatesResourceApi res = new api.ManagerApi(mock).templates; 1811 api.TemplatesResourceApi res = new api.ManagerApi(mock).templates;
1899 var arg_projectId = "foo"; 1812 var arg_projectId = "foo";
1900 var arg_maxResults = 42; 1813 var arg_maxResults = 42;
1901 var arg_pageToken = "foo"; 1814 var arg_pageToken = "foo";
1902 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1815 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1903 var path = (req.url).path; 1816 var path = (req.url).path;
1904 var pathOffset = 0; 1817 var pathOffset = 0;
1905 var index; 1818 var index;
1906 var subPart; 1819 var subPart;
1907 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq uals("/manager/v1beta2/projects/")); 1820 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1908 pathOffset += 26; 1821 pathOffset += 1;
1909 index = path.indexOf("/templates", pathOffset);
1910 unittest.expect(index >= 0, unittest.isTrue);
1911 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1912 pathOffset = index;
1913 unittest.expect(subPart, unittest.equals("$arg_projectId"));
1914 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/templates"));
1915 pathOffset += 10;
1916 1822
1917 var query = (req.url).query; 1823 var query = (req.url).query;
1918 var queryOffset = 0; 1824 var queryOffset = 0;
1919 var queryMap = {}; 1825 var queryMap = {};
1920 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 1826 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1921 parseBool(n) { 1827 parseBool(n) {
1922 if (n == "true") return true; 1828 if (n == "true") return true;
1923 if (n == "false") return false; 1829 if (n == "false") return false;
1924 if (n == null) return null; 1830 if (n == null) return null;
1925 throw new core.ArgumentError("Invalid boolean: $n"); 1831 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 17 matching lines...) Expand all
1943 res.list(arg_projectId, maxResults: arg_maxResults, pageToken: arg_pageTok en).then(unittest.expectAsync(((api.TemplatesListResponse response) { 1849 res.list(arg_projectId, maxResults: arg_maxResults, pageToken: arg_pageTok en).then(unittest.expectAsync(((api.TemplatesListResponse response) {
1944 checkTemplatesListResponse(response); 1850 checkTemplatesListResponse(response);
1945 }))); 1851 })));
1946 }); 1852 });
1947 1853
1948 }); 1854 });
1949 1855
1950 1856
1951 } 1857 }
1952 1858
OLDNEW
« no previous file with comments | « generated/googleapis_beta/test/genomics/v1beta_test.dart ('k') | generated/googleapis_beta/test/pubsub/v1beta1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698