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

Side by Side Diff: generated/googleapis/test/deploymentmanager/v2_test.dart

Issue 1797933002: Api-roll 33: 2016-03-14 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Added resources/*/CHANGELOG.md, addresssed comments Created 4 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.deploymentmanager.v2.test; 1 library googleapis.deploymentmanager.v2.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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 63 }
64 64
65 checkConfigFile(api.ConfigFile o) { 65 checkConfigFile(api.ConfigFile o) {
66 buildCounterConfigFile++; 66 buildCounterConfigFile++;
67 if (buildCounterConfigFile < 3) { 67 if (buildCounterConfigFile < 3) {
68 unittest.expect(o.content, unittest.equals('foo')); 68 unittest.expect(o.content, unittest.equals('foo'));
69 } 69 }
70 buildCounterConfigFile--; 70 buildCounterConfigFile--;
71 } 71 }
72 72
73 buildUnnamed2339() {
74 var o = new core.List<api.DeploymentLabelEntry>();
75 o.add(buildDeploymentLabelEntry());
76 o.add(buildDeploymentLabelEntry());
77 return o;
78 }
79
80 checkUnnamed2339(core.List<api.DeploymentLabelEntry> o) {
81 unittest.expect(o, unittest.hasLength(2));
82 checkDeploymentLabelEntry(o[0]);
83 checkDeploymentLabelEntry(o[1]);
84 }
85
73 core.int buildCounterDeployment = 0; 86 core.int buildCounterDeployment = 0;
74 buildDeployment() { 87 buildDeployment() {
75 var o = new api.Deployment(); 88 var o = new api.Deployment();
76 buildCounterDeployment++; 89 buildCounterDeployment++;
77 if (buildCounterDeployment < 3) { 90 if (buildCounterDeployment < 3) {
78 o.description = "foo"; 91 o.description = "foo";
79 o.fingerprint = "foo"; 92 o.fingerprint = "foo";
80 o.id = "foo"; 93 o.id = "foo";
81 o.insertTime = "foo"; 94 o.insertTime = "foo";
95 o.labels = buildUnnamed2339();
82 o.manifest = "foo"; 96 o.manifest = "foo";
83 o.name = "foo"; 97 o.name = "foo";
84 o.operation = buildOperation(); 98 o.operation = buildOperation();
85 o.target = buildTargetConfiguration(); 99 o.target = buildTargetConfiguration();
86 o.update = buildDeploymentUpdate(); 100 o.update = buildDeploymentUpdate();
87 } 101 }
88 buildCounterDeployment--; 102 buildCounterDeployment--;
89 return o; 103 return o;
90 } 104 }
91 105
92 checkDeployment(api.Deployment o) { 106 checkDeployment(api.Deployment o) {
93 buildCounterDeployment++; 107 buildCounterDeployment++;
94 if (buildCounterDeployment < 3) { 108 if (buildCounterDeployment < 3) {
95 unittest.expect(o.description, unittest.equals('foo')); 109 unittest.expect(o.description, unittest.equals('foo'));
96 unittest.expect(o.fingerprint, unittest.equals('foo')); 110 unittest.expect(o.fingerprint, unittest.equals('foo'));
97 unittest.expect(o.id, unittest.equals('foo')); 111 unittest.expect(o.id, unittest.equals('foo'));
98 unittest.expect(o.insertTime, unittest.equals('foo')); 112 unittest.expect(o.insertTime, unittest.equals('foo'));
113 checkUnnamed2339(o.labels);
99 unittest.expect(o.manifest, unittest.equals('foo')); 114 unittest.expect(o.manifest, unittest.equals('foo'));
100 unittest.expect(o.name, unittest.equals('foo')); 115 unittest.expect(o.name, unittest.equals('foo'));
101 checkOperation(o.operation); 116 checkOperation(o.operation);
102 checkTargetConfiguration(o.target); 117 checkTargetConfiguration(o.target);
103 checkDeploymentUpdate(o.update); 118 checkDeploymentUpdate(o.update);
104 } 119 }
105 buildCounterDeployment--; 120 buildCounterDeployment--;
106 } 121 }
107 122
123 core.int buildCounterDeploymentLabelEntry = 0;
124 buildDeploymentLabelEntry() {
125 var o = new api.DeploymentLabelEntry();
126 buildCounterDeploymentLabelEntry++;
127 if (buildCounterDeploymentLabelEntry < 3) {
128 o.key = "foo";
129 o.value = "foo";
130 }
131 buildCounterDeploymentLabelEntry--;
132 return o;
133 }
134
135 checkDeploymentLabelEntry(api.DeploymentLabelEntry o) {
136 buildCounterDeploymentLabelEntry++;
137 if (buildCounterDeploymentLabelEntry < 3) {
138 unittest.expect(o.key, unittest.equals('foo'));
139 unittest.expect(o.value, unittest.equals('foo'));
140 }
141 buildCounterDeploymentLabelEntry--;
142 }
143
144 buildUnnamed2340() {
145 var o = new core.List<api.DeploymentUpdateLabelEntry>();
146 o.add(buildDeploymentUpdateLabelEntry());
147 o.add(buildDeploymentUpdateLabelEntry());
148 return o;
149 }
150
151 checkUnnamed2340(core.List<api.DeploymentUpdateLabelEntry> o) {
152 unittest.expect(o, unittest.hasLength(2));
153 checkDeploymentUpdateLabelEntry(o[0]);
154 checkDeploymentUpdateLabelEntry(o[1]);
155 }
156
108 core.int buildCounterDeploymentUpdate = 0; 157 core.int buildCounterDeploymentUpdate = 0;
109 buildDeploymentUpdate() { 158 buildDeploymentUpdate() {
110 var o = new api.DeploymentUpdate(); 159 var o = new api.DeploymentUpdate();
111 buildCounterDeploymentUpdate++; 160 buildCounterDeploymentUpdate++;
112 if (buildCounterDeploymentUpdate < 3) { 161 if (buildCounterDeploymentUpdate < 3) {
162 o.labels = buildUnnamed2340();
113 o.manifest = "foo"; 163 o.manifest = "foo";
114 } 164 }
115 buildCounterDeploymentUpdate--; 165 buildCounterDeploymentUpdate--;
116 return o; 166 return o;
117 } 167 }
118 168
119 checkDeploymentUpdate(api.DeploymentUpdate o) { 169 checkDeploymentUpdate(api.DeploymentUpdate o) {
120 buildCounterDeploymentUpdate++; 170 buildCounterDeploymentUpdate++;
121 if (buildCounterDeploymentUpdate < 3) { 171 if (buildCounterDeploymentUpdate < 3) {
172 checkUnnamed2340(o.labels);
122 unittest.expect(o.manifest, unittest.equals('foo')); 173 unittest.expect(o.manifest, unittest.equals('foo'));
123 } 174 }
124 buildCounterDeploymentUpdate--; 175 buildCounterDeploymentUpdate--;
125 } 176 }
126 177
178 core.int buildCounterDeploymentUpdateLabelEntry = 0;
179 buildDeploymentUpdateLabelEntry() {
180 var o = new api.DeploymentUpdateLabelEntry();
181 buildCounterDeploymentUpdateLabelEntry++;
182 if (buildCounterDeploymentUpdateLabelEntry < 3) {
183 o.key = "foo";
184 o.value = "foo";
185 }
186 buildCounterDeploymentUpdateLabelEntry--;
187 return o;
188 }
189
190 checkDeploymentUpdateLabelEntry(api.DeploymentUpdateLabelEntry o) {
191 buildCounterDeploymentUpdateLabelEntry++;
192 if (buildCounterDeploymentUpdateLabelEntry < 3) {
193 unittest.expect(o.key, unittest.equals('foo'));
194 unittest.expect(o.value, unittest.equals('foo'));
195 }
196 buildCounterDeploymentUpdateLabelEntry--;
197 }
198
127 core.int buildCounterDeploymentsCancelPreviewRequest = 0; 199 core.int buildCounterDeploymentsCancelPreviewRequest = 0;
128 buildDeploymentsCancelPreviewRequest() { 200 buildDeploymentsCancelPreviewRequest() {
129 var o = new api.DeploymentsCancelPreviewRequest(); 201 var o = new api.DeploymentsCancelPreviewRequest();
130 buildCounterDeploymentsCancelPreviewRequest++; 202 buildCounterDeploymentsCancelPreviewRequest++;
131 if (buildCounterDeploymentsCancelPreviewRequest < 3) { 203 if (buildCounterDeploymentsCancelPreviewRequest < 3) {
132 o.fingerprint = "foo"; 204 o.fingerprint = "foo";
133 } 205 }
134 buildCounterDeploymentsCancelPreviewRequest--; 206 buildCounterDeploymentsCancelPreviewRequest--;
135 return o; 207 return o;
136 } 208 }
137 209
138 checkDeploymentsCancelPreviewRequest(api.DeploymentsCancelPreviewRequest o) { 210 checkDeploymentsCancelPreviewRequest(api.DeploymentsCancelPreviewRequest o) {
139 buildCounterDeploymentsCancelPreviewRequest++; 211 buildCounterDeploymentsCancelPreviewRequest++;
140 if (buildCounterDeploymentsCancelPreviewRequest < 3) { 212 if (buildCounterDeploymentsCancelPreviewRequest < 3) {
141 unittest.expect(o.fingerprint, unittest.equals('foo')); 213 unittest.expect(o.fingerprint, unittest.equals('foo'));
142 } 214 }
143 buildCounterDeploymentsCancelPreviewRequest--; 215 buildCounterDeploymentsCancelPreviewRequest--;
144 } 216 }
145 217
146 buildUnnamed2024() { 218 buildUnnamed2341() {
147 var o = new core.List<api.Deployment>(); 219 var o = new core.List<api.Deployment>();
148 o.add(buildDeployment()); 220 o.add(buildDeployment());
149 o.add(buildDeployment()); 221 o.add(buildDeployment());
150 return o; 222 return o;
151 } 223 }
152 224
153 checkUnnamed2024(core.List<api.Deployment> o) { 225 checkUnnamed2341(core.List<api.Deployment> o) {
154 unittest.expect(o, unittest.hasLength(2)); 226 unittest.expect(o, unittest.hasLength(2));
155 checkDeployment(o[0]); 227 checkDeployment(o[0]);
156 checkDeployment(o[1]); 228 checkDeployment(o[1]);
157 } 229 }
158 230
159 core.int buildCounterDeploymentsListResponse = 0; 231 core.int buildCounterDeploymentsListResponse = 0;
160 buildDeploymentsListResponse() { 232 buildDeploymentsListResponse() {
161 var o = new api.DeploymentsListResponse(); 233 var o = new api.DeploymentsListResponse();
162 buildCounterDeploymentsListResponse++; 234 buildCounterDeploymentsListResponse++;
163 if (buildCounterDeploymentsListResponse < 3) { 235 if (buildCounterDeploymentsListResponse < 3) {
164 o.deployments = buildUnnamed2024(); 236 o.deployments = buildUnnamed2341();
165 o.nextPageToken = "foo"; 237 o.nextPageToken = "foo";
166 } 238 }
167 buildCounterDeploymentsListResponse--; 239 buildCounterDeploymentsListResponse--;
168 return o; 240 return o;
169 } 241 }
170 242
171 checkDeploymentsListResponse(api.DeploymentsListResponse o) { 243 checkDeploymentsListResponse(api.DeploymentsListResponse o) {
172 buildCounterDeploymentsListResponse++; 244 buildCounterDeploymentsListResponse++;
173 if (buildCounterDeploymentsListResponse < 3) { 245 if (buildCounterDeploymentsListResponse < 3) {
174 checkUnnamed2024(o.deployments); 246 checkUnnamed2341(o.deployments);
175 unittest.expect(o.nextPageToken, unittest.equals('foo')); 247 unittest.expect(o.nextPageToken, unittest.equals('foo'));
176 } 248 }
177 buildCounterDeploymentsListResponse--; 249 buildCounterDeploymentsListResponse--;
178 } 250 }
179 251
180 core.int buildCounterDeploymentsStopRequest = 0; 252 core.int buildCounterDeploymentsStopRequest = 0;
181 buildDeploymentsStopRequest() { 253 buildDeploymentsStopRequest() {
182 var o = new api.DeploymentsStopRequest(); 254 var o = new api.DeploymentsStopRequest();
183 buildCounterDeploymentsStopRequest++; 255 buildCounterDeploymentsStopRequest++;
184 if (buildCounterDeploymentsStopRequest < 3) { 256 if (buildCounterDeploymentsStopRequest < 3) {
(...skipping 25 matching lines...) Expand all
210 282
211 checkImportFile(api.ImportFile o) { 283 checkImportFile(api.ImportFile o) {
212 buildCounterImportFile++; 284 buildCounterImportFile++;
213 if (buildCounterImportFile < 3) { 285 if (buildCounterImportFile < 3) {
214 unittest.expect(o.content, unittest.equals('foo')); 286 unittest.expect(o.content, unittest.equals('foo'));
215 unittest.expect(o.name, unittest.equals('foo')); 287 unittest.expect(o.name, unittest.equals('foo'));
216 } 288 }
217 buildCounterImportFile--; 289 buildCounterImportFile--;
218 } 290 }
219 291
220 buildUnnamed2025() { 292 buildUnnamed2342() {
221 var o = new core.List<api.ImportFile>(); 293 var o = new core.List<api.ImportFile>();
222 o.add(buildImportFile()); 294 o.add(buildImportFile());
223 o.add(buildImportFile()); 295 o.add(buildImportFile());
224 return o; 296 return o;
225 } 297 }
226 298
227 checkUnnamed2025(core.List<api.ImportFile> o) { 299 checkUnnamed2342(core.List<api.ImportFile> o) {
228 unittest.expect(o, unittest.hasLength(2)); 300 unittest.expect(o, unittest.hasLength(2));
229 checkImportFile(o[0]); 301 checkImportFile(o[0]);
230 checkImportFile(o[1]); 302 checkImportFile(o[1]);
231 } 303 }
232 304
233 core.int buildCounterManifest = 0; 305 core.int buildCounterManifest = 0;
234 buildManifest() { 306 buildManifest() {
235 var o = new api.Manifest(); 307 var o = new api.Manifest();
236 buildCounterManifest++; 308 buildCounterManifest++;
237 if (buildCounterManifest < 3) { 309 if (buildCounterManifest < 3) {
238 o.config = buildConfigFile(); 310 o.config = buildConfigFile();
239 o.expandedConfig = "foo"; 311 o.expandedConfig = "foo";
240 o.id = "foo"; 312 o.id = "foo";
241 o.imports = buildUnnamed2025(); 313 o.imports = buildUnnamed2342();
242 o.insertTime = "foo"; 314 o.insertTime = "foo";
243 o.layout = "foo"; 315 o.layout = "foo";
244 o.name = "foo"; 316 o.name = "foo";
245 o.selfLink = "foo"; 317 o.selfLink = "foo";
246 } 318 }
247 buildCounterManifest--; 319 buildCounterManifest--;
248 return o; 320 return o;
249 } 321 }
250 322
251 checkManifest(api.Manifest o) { 323 checkManifest(api.Manifest o) {
252 buildCounterManifest++; 324 buildCounterManifest++;
253 if (buildCounterManifest < 3) { 325 if (buildCounterManifest < 3) {
254 checkConfigFile(o.config); 326 checkConfigFile(o.config);
255 unittest.expect(o.expandedConfig, unittest.equals('foo')); 327 unittest.expect(o.expandedConfig, unittest.equals('foo'));
256 unittest.expect(o.id, unittest.equals('foo')); 328 unittest.expect(o.id, unittest.equals('foo'));
257 checkUnnamed2025(o.imports); 329 checkUnnamed2342(o.imports);
258 unittest.expect(o.insertTime, unittest.equals('foo')); 330 unittest.expect(o.insertTime, unittest.equals('foo'));
259 unittest.expect(o.layout, unittest.equals('foo')); 331 unittest.expect(o.layout, unittest.equals('foo'));
260 unittest.expect(o.name, unittest.equals('foo')); 332 unittest.expect(o.name, unittest.equals('foo'));
261 unittest.expect(o.selfLink, unittest.equals('foo')); 333 unittest.expect(o.selfLink, unittest.equals('foo'));
262 } 334 }
263 buildCounterManifest--; 335 buildCounterManifest--;
264 } 336 }
265 337
266 buildUnnamed2026() { 338 buildUnnamed2343() {
267 var o = new core.List<api.Manifest>(); 339 var o = new core.List<api.Manifest>();
268 o.add(buildManifest()); 340 o.add(buildManifest());
269 o.add(buildManifest()); 341 o.add(buildManifest());
270 return o; 342 return o;
271 } 343 }
272 344
273 checkUnnamed2026(core.List<api.Manifest> o) { 345 checkUnnamed2343(core.List<api.Manifest> o) {
274 unittest.expect(o, unittest.hasLength(2)); 346 unittest.expect(o, unittest.hasLength(2));
275 checkManifest(o[0]); 347 checkManifest(o[0]);
276 checkManifest(o[1]); 348 checkManifest(o[1]);
277 } 349 }
278 350
279 core.int buildCounterManifestsListResponse = 0; 351 core.int buildCounterManifestsListResponse = 0;
280 buildManifestsListResponse() { 352 buildManifestsListResponse() {
281 var o = new api.ManifestsListResponse(); 353 var o = new api.ManifestsListResponse();
282 buildCounterManifestsListResponse++; 354 buildCounterManifestsListResponse++;
283 if (buildCounterManifestsListResponse < 3) { 355 if (buildCounterManifestsListResponse < 3) {
284 o.manifests = buildUnnamed2026(); 356 o.manifests = buildUnnamed2343();
285 o.nextPageToken = "foo"; 357 o.nextPageToken = "foo";
286 } 358 }
287 buildCounterManifestsListResponse--; 359 buildCounterManifestsListResponse--;
288 return o; 360 return o;
289 } 361 }
290 362
291 checkManifestsListResponse(api.ManifestsListResponse o) { 363 checkManifestsListResponse(api.ManifestsListResponse o) {
292 buildCounterManifestsListResponse++; 364 buildCounterManifestsListResponse++;
293 if (buildCounterManifestsListResponse < 3) { 365 if (buildCounterManifestsListResponse < 3) {
294 checkUnnamed2026(o.manifests); 366 checkUnnamed2343(o.manifests);
295 unittest.expect(o.nextPageToken, unittest.equals('foo')); 367 unittest.expect(o.nextPageToken, unittest.equals('foo'));
296 } 368 }
297 buildCounterManifestsListResponse--; 369 buildCounterManifestsListResponse--;
298 } 370 }
299 371
300 core.int buildCounterOperationErrorErrors = 0; 372 core.int buildCounterOperationErrorErrors = 0;
301 buildOperationErrorErrors() { 373 buildOperationErrorErrors() {
302 var o = new api.OperationErrorErrors(); 374 var o = new api.OperationErrorErrors();
303 buildCounterOperationErrorErrors++; 375 buildCounterOperationErrorErrors++;
304 if (buildCounterOperationErrorErrors < 3) { 376 if (buildCounterOperationErrorErrors < 3) {
305 o.code = "foo"; 377 o.code = "foo";
306 o.location = "foo"; 378 o.location = "foo";
307 o.message = "foo"; 379 o.message = "foo";
308 } 380 }
309 buildCounterOperationErrorErrors--; 381 buildCounterOperationErrorErrors--;
310 return o; 382 return o;
311 } 383 }
312 384
313 checkOperationErrorErrors(api.OperationErrorErrors o) { 385 checkOperationErrorErrors(api.OperationErrorErrors o) {
314 buildCounterOperationErrorErrors++; 386 buildCounterOperationErrorErrors++;
315 if (buildCounterOperationErrorErrors < 3) { 387 if (buildCounterOperationErrorErrors < 3) {
316 unittest.expect(o.code, unittest.equals('foo')); 388 unittest.expect(o.code, unittest.equals('foo'));
317 unittest.expect(o.location, unittest.equals('foo')); 389 unittest.expect(o.location, unittest.equals('foo'));
318 unittest.expect(o.message, unittest.equals('foo')); 390 unittest.expect(o.message, unittest.equals('foo'));
319 } 391 }
320 buildCounterOperationErrorErrors--; 392 buildCounterOperationErrorErrors--;
321 } 393 }
322 394
323 buildUnnamed2027() { 395 buildUnnamed2344() {
324 var o = new core.List<api.OperationErrorErrors>(); 396 var o = new core.List<api.OperationErrorErrors>();
325 o.add(buildOperationErrorErrors()); 397 o.add(buildOperationErrorErrors());
326 o.add(buildOperationErrorErrors()); 398 o.add(buildOperationErrorErrors());
327 return o; 399 return o;
328 } 400 }
329 401
330 checkUnnamed2027(core.List<api.OperationErrorErrors> o) { 402 checkUnnamed2344(core.List<api.OperationErrorErrors> o) {
331 unittest.expect(o, unittest.hasLength(2)); 403 unittest.expect(o, unittest.hasLength(2));
332 checkOperationErrorErrors(o[0]); 404 checkOperationErrorErrors(o[0]);
333 checkOperationErrorErrors(o[1]); 405 checkOperationErrorErrors(o[1]);
334 } 406 }
335 407
336 core.int buildCounterOperationError = 0; 408 core.int buildCounterOperationError = 0;
337 buildOperationError() { 409 buildOperationError() {
338 var o = new api.OperationError(); 410 var o = new api.OperationError();
339 buildCounterOperationError++; 411 buildCounterOperationError++;
340 if (buildCounterOperationError < 3) { 412 if (buildCounterOperationError < 3) {
341 o.errors = buildUnnamed2027(); 413 o.errors = buildUnnamed2344();
342 } 414 }
343 buildCounterOperationError--; 415 buildCounterOperationError--;
344 return o; 416 return o;
345 } 417 }
346 418
347 checkOperationError(api.OperationError o) { 419 checkOperationError(api.OperationError o) {
348 buildCounterOperationError++; 420 buildCounterOperationError++;
349 if (buildCounterOperationError < 3) { 421 if (buildCounterOperationError < 3) {
350 checkUnnamed2027(o.errors); 422 checkUnnamed2344(o.errors);
351 } 423 }
352 buildCounterOperationError--; 424 buildCounterOperationError--;
353 } 425 }
354 426
355 core.int buildCounterOperationWarningsData = 0; 427 core.int buildCounterOperationWarningsData = 0;
356 buildOperationWarningsData() { 428 buildOperationWarningsData() {
357 var o = new api.OperationWarningsData(); 429 var o = new api.OperationWarningsData();
358 buildCounterOperationWarningsData++; 430 buildCounterOperationWarningsData++;
359 if (buildCounterOperationWarningsData < 3) { 431 if (buildCounterOperationWarningsData < 3) {
360 o.key = "foo"; 432 o.key = "foo";
361 o.value = "foo"; 433 o.value = "foo";
362 } 434 }
363 buildCounterOperationWarningsData--; 435 buildCounterOperationWarningsData--;
364 return o; 436 return o;
365 } 437 }
366 438
367 checkOperationWarningsData(api.OperationWarningsData o) { 439 checkOperationWarningsData(api.OperationWarningsData o) {
368 buildCounterOperationWarningsData++; 440 buildCounterOperationWarningsData++;
369 if (buildCounterOperationWarningsData < 3) { 441 if (buildCounterOperationWarningsData < 3) {
370 unittest.expect(o.key, unittest.equals('foo')); 442 unittest.expect(o.key, unittest.equals('foo'));
371 unittest.expect(o.value, unittest.equals('foo')); 443 unittest.expect(o.value, unittest.equals('foo'));
372 } 444 }
373 buildCounterOperationWarningsData--; 445 buildCounterOperationWarningsData--;
374 } 446 }
375 447
376 buildUnnamed2028() { 448 buildUnnamed2345() {
377 var o = new core.List<api.OperationWarningsData>(); 449 var o = new core.List<api.OperationWarningsData>();
378 o.add(buildOperationWarningsData()); 450 o.add(buildOperationWarningsData());
379 o.add(buildOperationWarningsData()); 451 o.add(buildOperationWarningsData());
380 return o; 452 return o;
381 } 453 }
382 454
383 checkUnnamed2028(core.List<api.OperationWarningsData> o) { 455 checkUnnamed2345(core.List<api.OperationWarningsData> o) {
384 unittest.expect(o, unittest.hasLength(2)); 456 unittest.expect(o, unittest.hasLength(2));
385 checkOperationWarningsData(o[0]); 457 checkOperationWarningsData(o[0]);
386 checkOperationWarningsData(o[1]); 458 checkOperationWarningsData(o[1]);
387 } 459 }
388 460
389 core.int buildCounterOperationWarnings = 0; 461 core.int buildCounterOperationWarnings = 0;
390 buildOperationWarnings() { 462 buildOperationWarnings() {
391 var o = new api.OperationWarnings(); 463 var o = new api.OperationWarnings();
392 buildCounterOperationWarnings++; 464 buildCounterOperationWarnings++;
393 if (buildCounterOperationWarnings < 3) { 465 if (buildCounterOperationWarnings < 3) {
394 o.code = "foo"; 466 o.code = "foo";
395 o.data = buildUnnamed2028(); 467 o.data = buildUnnamed2345();
396 o.message = "foo"; 468 o.message = "foo";
397 } 469 }
398 buildCounterOperationWarnings--; 470 buildCounterOperationWarnings--;
399 return o; 471 return o;
400 } 472 }
401 473
402 checkOperationWarnings(api.OperationWarnings o) { 474 checkOperationWarnings(api.OperationWarnings o) {
403 buildCounterOperationWarnings++; 475 buildCounterOperationWarnings++;
404 if (buildCounterOperationWarnings < 3) { 476 if (buildCounterOperationWarnings < 3) {
405 unittest.expect(o.code, unittest.equals('foo')); 477 unittest.expect(o.code, unittest.equals('foo'));
406 checkUnnamed2028(o.data); 478 checkUnnamed2345(o.data);
407 unittest.expect(o.message, unittest.equals('foo')); 479 unittest.expect(o.message, unittest.equals('foo'));
408 } 480 }
409 buildCounterOperationWarnings--; 481 buildCounterOperationWarnings--;
410 } 482 }
411 483
412 buildUnnamed2029() { 484 buildUnnamed2346() {
413 var o = new core.List<api.OperationWarnings>(); 485 var o = new core.List<api.OperationWarnings>();
414 o.add(buildOperationWarnings()); 486 o.add(buildOperationWarnings());
415 o.add(buildOperationWarnings()); 487 o.add(buildOperationWarnings());
416 return o; 488 return o;
417 } 489 }
418 490
419 checkUnnamed2029(core.List<api.OperationWarnings> o) { 491 checkUnnamed2346(core.List<api.OperationWarnings> o) {
420 unittest.expect(o, unittest.hasLength(2)); 492 unittest.expect(o, unittest.hasLength(2));
421 checkOperationWarnings(o[0]); 493 checkOperationWarnings(o[0]);
422 checkOperationWarnings(o[1]); 494 checkOperationWarnings(o[1]);
423 } 495 }
424 496
425 core.int buildCounterOperation = 0; 497 core.int buildCounterOperation = 0;
426 buildOperation() { 498 buildOperation() {
427 var o = new api.Operation(); 499 var o = new api.Operation();
428 buildCounterOperation++; 500 buildCounterOperation++;
429 if (buildCounterOperation < 3) { 501 if (buildCounterOperation < 3) {
(...skipping 11 matching lines...) Expand all
441 o.operationType = "foo"; 513 o.operationType = "foo";
442 o.progress = 42; 514 o.progress = 42;
443 o.region = "foo"; 515 o.region = "foo";
444 o.selfLink = "foo"; 516 o.selfLink = "foo";
445 o.startTime = "foo"; 517 o.startTime = "foo";
446 o.status = "foo"; 518 o.status = "foo";
447 o.statusMessage = "foo"; 519 o.statusMessage = "foo";
448 o.targetId = "foo"; 520 o.targetId = "foo";
449 o.targetLink = "foo"; 521 o.targetLink = "foo";
450 o.user = "foo"; 522 o.user = "foo";
451 o.warnings = buildUnnamed2029(); 523 o.warnings = buildUnnamed2346();
452 o.zone = "foo"; 524 o.zone = "foo";
453 } 525 }
454 buildCounterOperation--; 526 buildCounterOperation--;
455 return o; 527 return o;
456 } 528 }
457 529
458 checkOperation(api.Operation o) { 530 checkOperation(api.Operation o) {
459 buildCounterOperation++; 531 buildCounterOperation++;
460 if (buildCounterOperation < 3) { 532 if (buildCounterOperation < 3) {
461 unittest.expect(o.clientOperationId, unittest.equals('foo')); 533 unittest.expect(o.clientOperationId, unittest.equals('foo'));
(...skipping 10 matching lines...) Expand all
472 unittest.expect(o.operationType, unittest.equals('foo')); 544 unittest.expect(o.operationType, unittest.equals('foo'));
473 unittest.expect(o.progress, unittest.equals(42)); 545 unittest.expect(o.progress, unittest.equals(42));
474 unittest.expect(o.region, unittest.equals('foo')); 546 unittest.expect(o.region, unittest.equals('foo'));
475 unittest.expect(o.selfLink, unittest.equals('foo')); 547 unittest.expect(o.selfLink, unittest.equals('foo'));
476 unittest.expect(o.startTime, unittest.equals('foo')); 548 unittest.expect(o.startTime, unittest.equals('foo'));
477 unittest.expect(o.status, unittest.equals('foo')); 549 unittest.expect(o.status, unittest.equals('foo'));
478 unittest.expect(o.statusMessage, unittest.equals('foo')); 550 unittest.expect(o.statusMessage, unittest.equals('foo'));
479 unittest.expect(o.targetId, unittest.equals('foo')); 551 unittest.expect(o.targetId, unittest.equals('foo'));
480 unittest.expect(o.targetLink, unittest.equals('foo')); 552 unittest.expect(o.targetLink, unittest.equals('foo'));
481 unittest.expect(o.user, unittest.equals('foo')); 553 unittest.expect(o.user, unittest.equals('foo'));
482 checkUnnamed2029(o.warnings); 554 checkUnnamed2346(o.warnings);
483 unittest.expect(o.zone, unittest.equals('foo')); 555 unittest.expect(o.zone, unittest.equals('foo'));
484 } 556 }
485 buildCounterOperation--; 557 buildCounterOperation--;
486 } 558 }
487 559
488 buildUnnamed2030() { 560 buildUnnamed2347() {
489 var o = new core.List<api.Operation>(); 561 var o = new core.List<api.Operation>();
490 o.add(buildOperation()); 562 o.add(buildOperation());
491 o.add(buildOperation()); 563 o.add(buildOperation());
492 return o; 564 return o;
493 } 565 }
494 566
495 checkUnnamed2030(core.List<api.Operation> o) { 567 checkUnnamed2347(core.List<api.Operation> o) {
496 unittest.expect(o, unittest.hasLength(2)); 568 unittest.expect(o, unittest.hasLength(2));
497 checkOperation(o[0]); 569 checkOperation(o[0]);
498 checkOperation(o[1]); 570 checkOperation(o[1]);
499 } 571 }
500 572
501 core.int buildCounterOperationsListResponse = 0; 573 core.int buildCounterOperationsListResponse = 0;
502 buildOperationsListResponse() { 574 buildOperationsListResponse() {
503 var o = new api.OperationsListResponse(); 575 var o = new api.OperationsListResponse();
504 buildCounterOperationsListResponse++; 576 buildCounterOperationsListResponse++;
505 if (buildCounterOperationsListResponse < 3) { 577 if (buildCounterOperationsListResponse < 3) {
506 o.nextPageToken = "foo"; 578 o.nextPageToken = "foo";
507 o.operations = buildUnnamed2030(); 579 o.operations = buildUnnamed2347();
508 } 580 }
509 buildCounterOperationsListResponse--; 581 buildCounterOperationsListResponse--;
510 return o; 582 return o;
511 } 583 }
512 584
513 checkOperationsListResponse(api.OperationsListResponse o) { 585 checkOperationsListResponse(api.OperationsListResponse o) {
514 buildCounterOperationsListResponse++; 586 buildCounterOperationsListResponse++;
515 if (buildCounterOperationsListResponse < 3) { 587 if (buildCounterOperationsListResponse < 3) {
516 unittest.expect(o.nextPageToken, unittest.equals('foo')); 588 unittest.expect(o.nextPageToken, unittest.equals('foo'));
517 checkUnnamed2030(o.operations); 589 checkUnnamed2347(o.operations);
518 } 590 }
519 buildCounterOperationsListResponse--; 591 buildCounterOperationsListResponse--;
520 } 592 }
521 593
522 core.int buildCounterResourceWarningsData = 0; 594 core.int buildCounterResourceWarningsData = 0;
523 buildResourceWarningsData() { 595 buildResourceWarningsData() {
524 var o = new api.ResourceWarningsData(); 596 var o = new api.ResourceWarningsData();
525 buildCounterResourceWarningsData++; 597 buildCounterResourceWarningsData++;
526 if (buildCounterResourceWarningsData < 3) { 598 if (buildCounterResourceWarningsData < 3) {
527 o.key = "foo"; 599 o.key = "foo";
528 o.value = "foo"; 600 o.value = "foo";
529 } 601 }
530 buildCounterResourceWarningsData--; 602 buildCounterResourceWarningsData--;
531 return o; 603 return o;
532 } 604 }
533 605
534 checkResourceWarningsData(api.ResourceWarningsData o) { 606 checkResourceWarningsData(api.ResourceWarningsData o) {
535 buildCounterResourceWarningsData++; 607 buildCounterResourceWarningsData++;
536 if (buildCounterResourceWarningsData < 3) { 608 if (buildCounterResourceWarningsData < 3) {
537 unittest.expect(o.key, unittest.equals('foo')); 609 unittest.expect(o.key, unittest.equals('foo'));
538 unittest.expect(o.value, unittest.equals('foo')); 610 unittest.expect(o.value, unittest.equals('foo'));
539 } 611 }
540 buildCounterResourceWarningsData--; 612 buildCounterResourceWarningsData--;
541 } 613 }
542 614
543 buildUnnamed2031() { 615 buildUnnamed2348() {
544 var o = new core.List<api.ResourceWarningsData>(); 616 var o = new core.List<api.ResourceWarningsData>();
545 o.add(buildResourceWarningsData()); 617 o.add(buildResourceWarningsData());
546 o.add(buildResourceWarningsData()); 618 o.add(buildResourceWarningsData());
547 return o; 619 return o;
548 } 620 }
549 621
550 checkUnnamed2031(core.List<api.ResourceWarningsData> o) { 622 checkUnnamed2348(core.List<api.ResourceWarningsData> o) {
551 unittest.expect(o, unittest.hasLength(2)); 623 unittest.expect(o, unittest.hasLength(2));
552 checkResourceWarningsData(o[0]); 624 checkResourceWarningsData(o[0]);
553 checkResourceWarningsData(o[1]); 625 checkResourceWarningsData(o[1]);
554 } 626 }
555 627
556 core.int buildCounterResourceWarnings = 0; 628 core.int buildCounterResourceWarnings = 0;
557 buildResourceWarnings() { 629 buildResourceWarnings() {
558 var o = new api.ResourceWarnings(); 630 var o = new api.ResourceWarnings();
559 buildCounterResourceWarnings++; 631 buildCounterResourceWarnings++;
560 if (buildCounterResourceWarnings < 3) { 632 if (buildCounterResourceWarnings < 3) {
561 o.code = "foo"; 633 o.code = "foo";
562 o.data = buildUnnamed2031(); 634 o.data = buildUnnamed2348();
563 o.message = "foo"; 635 o.message = "foo";
564 } 636 }
565 buildCounterResourceWarnings--; 637 buildCounterResourceWarnings--;
566 return o; 638 return o;
567 } 639 }
568 640
569 checkResourceWarnings(api.ResourceWarnings o) { 641 checkResourceWarnings(api.ResourceWarnings o) {
570 buildCounterResourceWarnings++; 642 buildCounterResourceWarnings++;
571 if (buildCounterResourceWarnings < 3) { 643 if (buildCounterResourceWarnings < 3) {
572 unittest.expect(o.code, unittest.equals('foo')); 644 unittest.expect(o.code, unittest.equals('foo'));
573 checkUnnamed2031(o.data); 645 checkUnnamed2348(o.data);
574 unittest.expect(o.message, unittest.equals('foo')); 646 unittest.expect(o.message, unittest.equals('foo'));
575 } 647 }
576 buildCounterResourceWarnings--; 648 buildCounterResourceWarnings--;
577 } 649 }
578 650
579 buildUnnamed2032() { 651 buildUnnamed2349() {
580 var o = new core.List<api.ResourceWarnings>(); 652 var o = new core.List<api.ResourceWarnings>();
581 o.add(buildResourceWarnings()); 653 o.add(buildResourceWarnings());
582 o.add(buildResourceWarnings()); 654 o.add(buildResourceWarnings());
583 return o; 655 return o;
584 } 656 }
585 657
586 checkUnnamed2032(core.List<api.ResourceWarnings> o) { 658 checkUnnamed2349(core.List<api.ResourceWarnings> o) {
587 unittest.expect(o, unittest.hasLength(2)); 659 unittest.expect(o, unittest.hasLength(2));
588 checkResourceWarnings(o[0]); 660 checkResourceWarnings(o[0]);
589 checkResourceWarnings(o[1]); 661 checkResourceWarnings(o[1]);
590 } 662 }
591 663
592 core.int buildCounterResource = 0; 664 core.int buildCounterResource = 0;
593 buildResource() { 665 buildResource() {
594 var o = new api.Resource(); 666 var o = new api.Resource();
595 buildCounterResource++; 667 buildCounterResource++;
596 if (buildCounterResource < 3) { 668 if (buildCounterResource < 3) {
597 o.finalProperties = "foo"; 669 o.finalProperties = "foo";
598 o.id = "foo"; 670 o.id = "foo";
599 o.insertTime = "foo"; 671 o.insertTime = "foo";
600 o.manifest = "foo"; 672 o.manifest = "foo";
601 o.name = "foo"; 673 o.name = "foo";
602 o.properties = "foo"; 674 o.properties = "foo";
603 o.type = "foo"; 675 o.type = "foo";
604 o.update = buildResourceUpdate(); 676 o.update = buildResourceUpdate();
605 o.updateTime = "foo"; 677 o.updateTime = "foo";
606 o.url = "foo"; 678 o.url = "foo";
607 o.warnings = buildUnnamed2032(); 679 o.warnings = buildUnnamed2349();
608 } 680 }
609 buildCounterResource--; 681 buildCounterResource--;
610 return o; 682 return o;
611 } 683 }
612 684
613 checkResource(api.Resource o) { 685 checkResource(api.Resource o) {
614 buildCounterResource++; 686 buildCounterResource++;
615 if (buildCounterResource < 3) { 687 if (buildCounterResource < 3) {
616 unittest.expect(o.finalProperties, unittest.equals('foo')); 688 unittest.expect(o.finalProperties, unittest.equals('foo'));
617 unittest.expect(o.id, unittest.equals('foo')); 689 unittest.expect(o.id, unittest.equals('foo'));
618 unittest.expect(o.insertTime, unittest.equals('foo')); 690 unittest.expect(o.insertTime, unittest.equals('foo'));
619 unittest.expect(o.manifest, unittest.equals('foo')); 691 unittest.expect(o.manifest, unittest.equals('foo'));
620 unittest.expect(o.name, unittest.equals('foo')); 692 unittest.expect(o.name, unittest.equals('foo'));
621 unittest.expect(o.properties, unittest.equals('foo')); 693 unittest.expect(o.properties, unittest.equals('foo'));
622 unittest.expect(o.type, unittest.equals('foo')); 694 unittest.expect(o.type, unittest.equals('foo'));
623 checkResourceUpdate(o.update); 695 checkResourceUpdate(o.update);
624 unittest.expect(o.updateTime, unittest.equals('foo')); 696 unittest.expect(o.updateTime, unittest.equals('foo'));
625 unittest.expect(o.url, unittest.equals('foo')); 697 unittest.expect(o.url, unittest.equals('foo'));
626 checkUnnamed2032(o.warnings); 698 checkUnnamed2349(o.warnings);
627 } 699 }
628 buildCounterResource--; 700 buildCounterResource--;
629 } 701 }
630 702
631 core.int buildCounterResourceUpdateErrorErrors = 0; 703 core.int buildCounterResourceUpdateErrorErrors = 0;
632 buildResourceUpdateErrorErrors() { 704 buildResourceUpdateErrorErrors() {
633 var o = new api.ResourceUpdateErrorErrors(); 705 var o = new api.ResourceUpdateErrorErrors();
634 buildCounterResourceUpdateErrorErrors++; 706 buildCounterResourceUpdateErrorErrors++;
635 if (buildCounterResourceUpdateErrorErrors < 3) { 707 if (buildCounterResourceUpdateErrorErrors < 3) {
636 o.code = "foo"; 708 o.code = "foo";
637 o.location = "foo"; 709 o.location = "foo";
638 o.message = "foo"; 710 o.message = "foo";
639 } 711 }
640 buildCounterResourceUpdateErrorErrors--; 712 buildCounterResourceUpdateErrorErrors--;
641 return o; 713 return o;
642 } 714 }
643 715
644 checkResourceUpdateErrorErrors(api.ResourceUpdateErrorErrors o) { 716 checkResourceUpdateErrorErrors(api.ResourceUpdateErrorErrors o) {
645 buildCounterResourceUpdateErrorErrors++; 717 buildCounterResourceUpdateErrorErrors++;
646 if (buildCounterResourceUpdateErrorErrors < 3) { 718 if (buildCounterResourceUpdateErrorErrors < 3) {
647 unittest.expect(o.code, unittest.equals('foo')); 719 unittest.expect(o.code, unittest.equals('foo'));
648 unittest.expect(o.location, unittest.equals('foo')); 720 unittest.expect(o.location, unittest.equals('foo'));
649 unittest.expect(o.message, unittest.equals('foo')); 721 unittest.expect(o.message, unittest.equals('foo'));
650 } 722 }
651 buildCounterResourceUpdateErrorErrors--; 723 buildCounterResourceUpdateErrorErrors--;
652 } 724 }
653 725
654 buildUnnamed2033() { 726 buildUnnamed2350() {
655 var o = new core.List<api.ResourceUpdateErrorErrors>(); 727 var o = new core.List<api.ResourceUpdateErrorErrors>();
656 o.add(buildResourceUpdateErrorErrors()); 728 o.add(buildResourceUpdateErrorErrors());
657 o.add(buildResourceUpdateErrorErrors()); 729 o.add(buildResourceUpdateErrorErrors());
658 return o; 730 return o;
659 } 731 }
660 732
661 checkUnnamed2033(core.List<api.ResourceUpdateErrorErrors> o) { 733 checkUnnamed2350(core.List<api.ResourceUpdateErrorErrors> o) {
662 unittest.expect(o, unittest.hasLength(2)); 734 unittest.expect(o, unittest.hasLength(2));
663 checkResourceUpdateErrorErrors(o[0]); 735 checkResourceUpdateErrorErrors(o[0]);
664 checkResourceUpdateErrorErrors(o[1]); 736 checkResourceUpdateErrorErrors(o[1]);
665 } 737 }
666 738
667 core.int buildCounterResourceUpdateError = 0; 739 core.int buildCounterResourceUpdateError = 0;
668 buildResourceUpdateError() { 740 buildResourceUpdateError() {
669 var o = new api.ResourceUpdateError(); 741 var o = new api.ResourceUpdateError();
670 buildCounterResourceUpdateError++; 742 buildCounterResourceUpdateError++;
671 if (buildCounterResourceUpdateError < 3) { 743 if (buildCounterResourceUpdateError < 3) {
672 o.errors = buildUnnamed2033(); 744 o.errors = buildUnnamed2350();
673 } 745 }
674 buildCounterResourceUpdateError--; 746 buildCounterResourceUpdateError--;
675 return o; 747 return o;
676 } 748 }
677 749
678 checkResourceUpdateError(api.ResourceUpdateError o) { 750 checkResourceUpdateError(api.ResourceUpdateError o) {
679 buildCounterResourceUpdateError++; 751 buildCounterResourceUpdateError++;
680 if (buildCounterResourceUpdateError < 3) { 752 if (buildCounterResourceUpdateError < 3) {
681 checkUnnamed2033(o.errors); 753 checkUnnamed2350(o.errors);
682 } 754 }
683 buildCounterResourceUpdateError--; 755 buildCounterResourceUpdateError--;
684 } 756 }
685 757
686 core.int buildCounterResourceUpdateWarningsData = 0; 758 core.int buildCounterResourceUpdateWarningsData = 0;
687 buildResourceUpdateWarningsData() { 759 buildResourceUpdateWarningsData() {
688 var o = new api.ResourceUpdateWarningsData(); 760 var o = new api.ResourceUpdateWarningsData();
689 buildCounterResourceUpdateWarningsData++; 761 buildCounterResourceUpdateWarningsData++;
690 if (buildCounterResourceUpdateWarningsData < 3) { 762 if (buildCounterResourceUpdateWarningsData < 3) {
691 o.key = "foo"; 763 o.key = "foo";
692 o.value = "foo"; 764 o.value = "foo";
693 } 765 }
694 buildCounterResourceUpdateWarningsData--; 766 buildCounterResourceUpdateWarningsData--;
695 return o; 767 return o;
696 } 768 }
697 769
698 checkResourceUpdateWarningsData(api.ResourceUpdateWarningsData o) { 770 checkResourceUpdateWarningsData(api.ResourceUpdateWarningsData o) {
699 buildCounterResourceUpdateWarningsData++; 771 buildCounterResourceUpdateWarningsData++;
700 if (buildCounterResourceUpdateWarningsData < 3) { 772 if (buildCounterResourceUpdateWarningsData < 3) {
701 unittest.expect(o.key, unittest.equals('foo')); 773 unittest.expect(o.key, unittest.equals('foo'));
702 unittest.expect(o.value, unittest.equals('foo')); 774 unittest.expect(o.value, unittest.equals('foo'));
703 } 775 }
704 buildCounterResourceUpdateWarningsData--; 776 buildCounterResourceUpdateWarningsData--;
705 } 777 }
706 778
707 buildUnnamed2034() { 779 buildUnnamed2351() {
708 var o = new core.List<api.ResourceUpdateWarningsData>(); 780 var o = new core.List<api.ResourceUpdateWarningsData>();
709 o.add(buildResourceUpdateWarningsData()); 781 o.add(buildResourceUpdateWarningsData());
710 o.add(buildResourceUpdateWarningsData()); 782 o.add(buildResourceUpdateWarningsData());
711 return o; 783 return o;
712 } 784 }
713 785
714 checkUnnamed2034(core.List<api.ResourceUpdateWarningsData> o) { 786 checkUnnamed2351(core.List<api.ResourceUpdateWarningsData> o) {
715 unittest.expect(o, unittest.hasLength(2)); 787 unittest.expect(o, unittest.hasLength(2));
716 checkResourceUpdateWarningsData(o[0]); 788 checkResourceUpdateWarningsData(o[0]);
717 checkResourceUpdateWarningsData(o[1]); 789 checkResourceUpdateWarningsData(o[1]);
718 } 790 }
719 791
720 core.int buildCounterResourceUpdateWarnings = 0; 792 core.int buildCounterResourceUpdateWarnings = 0;
721 buildResourceUpdateWarnings() { 793 buildResourceUpdateWarnings() {
722 var o = new api.ResourceUpdateWarnings(); 794 var o = new api.ResourceUpdateWarnings();
723 buildCounterResourceUpdateWarnings++; 795 buildCounterResourceUpdateWarnings++;
724 if (buildCounterResourceUpdateWarnings < 3) { 796 if (buildCounterResourceUpdateWarnings < 3) {
725 o.code = "foo"; 797 o.code = "foo";
726 o.data = buildUnnamed2034(); 798 o.data = buildUnnamed2351();
727 o.message = "foo"; 799 o.message = "foo";
728 } 800 }
729 buildCounterResourceUpdateWarnings--; 801 buildCounterResourceUpdateWarnings--;
730 return o; 802 return o;
731 } 803 }
732 804
733 checkResourceUpdateWarnings(api.ResourceUpdateWarnings o) { 805 checkResourceUpdateWarnings(api.ResourceUpdateWarnings o) {
734 buildCounterResourceUpdateWarnings++; 806 buildCounterResourceUpdateWarnings++;
735 if (buildCounterResourceUpdateWarnings < 3) { 807 if (buildCounterResourceUpdateWarnings < 3) {
736 unittest.expect(o.code, unittest.equals('foo')); 808 unittest.expect(o.code, unittest.equals('foo'));
737 checkUnnamed2034(o.data); 809 checkUnnamed2351(o.data);
738 unittest.expect(o.message, unittest.equals('foo')); 810 unittest.expect(o.message, unittest.equals('foo'));
739 } 811 }
740 buildCounterResourceUpdateWarnings--; 812 buildCounterResourceUpdateWarnings--;
741 } 813 }
742 814
743 buildUnnamed2035() { 815 buildUnnamed2352() {
744 var o = new core.List<api.ResourceUpdateWarnings>(); 816 var o = new core.List<api.ResourceUpdateWarnings>();
745 o.add(buildResourceUpdateWarnings()); 817 o.add(buildResourceUpdateWarnings());
746 o.add(buildResourceUpdateWarnings()); 818 o.add(buildResourceUpdateWarnings());
747 return o; 819 return o;
748 } 820 }
749 821
750 checkUnnamed2035(core.List<api.ResourceUpdateWarnings> o) { 822 checkUnnamed2352(core.List<api.ResourceUpdateWarnings> o) {
751 unittest.expect(o, unittest.hasLength(2)); 823 unittest.expect(o, unittest.hasLength(2));
752 checkResourceUpdateWarnings(o[0]); 824 checkResourceUpdateWarnings(o[0]);
753 checkResourceUpdateWarnings(o[1]); 825 checkResourceUpdateWarnings(o[1]);
754 } 826 }
755 827
756 core.int buildCounterResourceUpdate = 0; 828 core.int buildCounterResourceUpdate = 0;
757 buildResourceUpdate() { 829 buildResourceUpdate() {
758 var o = new api.ResourceUpdate(); 830 var o = new api.ResourceUpdate();
759 buildCounterResourceUpdate++; 831 buildCounterResourceUpdate++;
760 if (buildCounterResourceUpdate < 3) { 832 if (buildCounterResourceUpdate < 3) {
761 o.error = buildResourceUpdateError(); 833 o.error = buildResourceUpdateError();
762 o.finalProperties = "foo"; 834 o.finalProperties = "foo";
763 o.intent = "foo"; 835 o.intent = "foo";
764 o.manifest = "foo"; 836 o.manifest = "foo";
765 o.properties = "foo"; 837 o.properties = "foo";
766 o.state = "foo"; 838 o.state = "foo";
767 o.warnings = buildUnnamed2035(); 839 o.warnings = buildUnnamed2352();
768 } 840 }
769 buildCounterResourceUpdate--; 841 buildCounterResourceUpdate--;
770 return o; 842 return o;
771 } 843 }
772 844
773 checkResourceUpdate(api.ResourceUpdate o) { 845 checkResourceUpdate(api.ResourceUpdate o) {
774 buildCounterResourceUpdate++; 846 buildCounterResourceUpdate++;
775 if (buildCounterResourceUpdate < 3) { 847 if (buildCounterResourceUpdate < 3) {
776 checkResourceUpdateError(o.error); 848 checkResourceUpdateError(o.error);
777 unittest.expect(o.finalProperties, unittest.equals('foo')); 849 unittest.expect(o.finalProperties, unittest.equals('foo'));
778 unittest.expect(o.intent, unittest.equals('foo')); 850 unittest.expect(o.intent, unittest.equals('foo'));
779 unittest.expect(o.manifest, unittest.equals('foo')); 851 unittest.expect(o.manifest, unittest.equals('foo'));
780 unittest.expect(o.properties, unittest.equals('foo')); 852 unittest.expect(o.properties, unittest.equals('foo'));
781 unittest.expect(o.state, unittest.equals('foo')); 853 unittest.expect(o.state, unittest.equals('foo'));
782 checkUnnamed2035(o.warnings); 854 checkUnnamed2352(o.warnings);
783 } 855 }
784 buildCounterResourceUpdate--; 856 buildCounterResourceUpdate--;
785 } 857 }
786 858
787 buildUnnamed2036() { 859 buildUnnamed2353() {
788 var o = new core.List<api.Resource>(); 860 var o = new core.List<api.Resource>();
789 o.add(buildResource()); 861 o.add(buildResource());
790 o.add(buildResource()); 862 o.add(buildResource());
791 return o; 863 return o;
792 } 864 }
793 865
794 checkUnnamed2036(core.List<api.Resource> o) { 866 checkUnnamed2353(core.List<api.Resource> o) {
795 unittest.expect(o, unittest.hasLength(2)); 867 unittest.expect(o, unittest.hasLength(2));
796 checkResource(o[0]); 868 checkResource(o[0]);
797 checkResource(o[1]); 869 checkResource(o[1]);
798 } 870 }
799 871
800 core.int buildCounterResourcesListResponse = 0; 872 core.int buildCounterResourcesListResponse = 0;
801 buildResourcesListResponse() { 873 buildResourcesListResponse() {
802 var o = new api.ResourcesListResponse(); 874 var o = new api.ResourcesListResponse();
803 buildCounterResourcesListResponse++; 875 buildCounterResourcesListResponse++;
804 if (buildCounterResourcesListResponse < 3) { 876 if (buildCounterResourcesListResponse < 3) {
805 o.nextPageToken = "foo"; 877 o.nextPageToken = "foo";
806 o.resources = buildUnnamed2036(); 878 o.resources = buildUnnamed2353();
807 } 879 }
808 buildCounterResourcesListResponse--; 880 buildCounterResourcesListResponse--;
809 return o; 881 return o;
810 } 882 }
811 883
812 checkResourcesListResponse(api.ResourcesListResponse o) { 884 checkResourcesListResponse(api.ResourcesListResponse o) {
813 buildCounterResourcesListResponse++; 885 buildCounterResourcesListResponse++;
814 if (buildCounterResourcesListResponse < 3) { 886 if (buildCounterResourcesListResponse < 3) {
815 unittest.expect(o.nextPageToken, unittest.equals('foo')); 887 unittest.expect(o.nextPageToken, unittest.equals('foo'));
816 checkUnnamed2036(o.resources); 888 checkUnnamed2353(o.resources);
817 } 889 }
818 buildCounterResourcesListResponse--; 890 buildCounterResourcesListResponse--;
819 } 891 }
820 892
821 buildUnnamed2037() { 893 buildUnnamed2354() {
822 var o = new core.List<api.ImportFile>(); 894 var o = new core.List<api.ImportFile>();
823 o.add(buildImportFile()); 895 o.add(buildImportFile());
824 o.add(buildImportFile()); 896 o.add(buildImportFile());
825 return o; 897 return o;
826 } 898 }
827 899
828 checkUnnamed2037(core.List<api.ImportFile> o) { 900 checkUnnamed2354(core.List<api.ImportFile> o) {
829 unittest.expect(o, unittest.hasLength(2)); 901 unittest.expect(o, unittest.hasLength(2));
830 checkImportFile(o[0]); 902 checkImportFile(o[0]);
831 checkImportFile(o[1]); 903 checkImportFile(o[1]);
832 } 904 }
833 905
834 core.int buildCounterTargetConfiguration = 0; 906 core.int buildCounterTargetConfiguration = 0;
835 buildTargetConfiguration() { 907 buildTargetConfiguration() {
836 var o = new api.TargetConfiguration(); 908 var o = new api.TargetConfiguration();
837 buildCounterTargetConfiguration++; 909 buildCounterTargetConfiguration++;
838 if (buildCounterTargetConfiguration < 3) { 910 if (buildCounterTargetConfiguration < 3) {
839 o.config = buildConfigFile(); 911 o.config = buildConfigFile();
840 o.imports = buildUnnamed2037(); 912 o.imports = buildUnnamed2354();
841 } 913 }
842 buildCounterTargetConfiguration--; 914 buildCounterTargetConfiguration--;
843 return o; 915 return o;
844 } 916 }
845 917
846 checkTargetConfiguration(api.TargetConfiguration o) { 918 checkTargetConfiguration(api.TargetConfiguration o) {
847 buildCounterTargetConfiguration++; 919 buildCounterTargetConfiguration++;
848 if (buildCounterTargetConfiguration < 3) { 920 if (buildCounterTargetConfiguration < 3) {
849 checkConfigFile(o.config); 921 checkConfigFile(o.config);
850 checkUnnamed2037(o.imports); 922 checkUnnamed2354(o.imports);
851 } 923 }
852 buildCounterTargetConfiguration--; 924 buildCounterTargetConfiguration--;
853 } 925 }
854 926
855 core.int buildCounterType = 0; 927 core.int buildCounterType = 0;
856 buildType() { 928 buildType() {
857 var o = new api.Type(); 929 var o = new api.Type();
858 buildCounterType++; 930 buildCounterType++;
859 if (buildCounterType < 3) { 931 if (buildCounterType < 3) {
860 o.id = "foo"; 932 o.id = "foo";
861 o.insertTime = "foo"; 933 o.insertTime = "foo";
862 o.name = "foo"; 934 o.name = "foo";
863 o.selfLink = "foo"; 935 o.selfLink = "foo";
864 } 936 }
865 buildCounterType--; 937 buildCounterType--;
866 return o; 938 return o;
867 } 939 }
868 940
869 checkType(api.Type o) { 941 checkType(api.Type o) {
870 buildCounterType++; 942 buildCounterType++;
871 if (buildCounterType < 3) { 943 if (buildCounterType < 3) {
872 unittest.expect(o.id, unittest.equals('foo')); 944 unittest.expect(o.id, unittest.equals('foo'));
873 unittest.expect(o.insertTime, unittest.equals('foo')); 945 unittest.expect(o.insertTime, unittest.equals('foo'));
874 unittest.expect(o.name, unittest.equals('foo')); 946 unittest.expect(o.name, unittest.equals('foo'));
875 unittest.expect(o.selfLink, unittest.equals('foo')); 947 unittest.expect(o.selfLink, unittest.equals('foo'));
876 } 948 }
877 buildCounterType--; 949 buildCounterType--;
878 } 950 }
879 951
880 buildUnnamed2038() { 952 buildUnnamed2355() {
881 var o = new core.List<api.Type>(); 953 var o = new core.List<api.Type>();
882 o.add(buildType()); 954 o.add(buildType());
883 o.add(buildType()); 955 o.add(buildType());
884 return o; 956 return o;
885 } 957 }
886 958
887 checkUnnamed2038(core.List<api.Type> o) { 959 checkUnnamed2355(core.List<api.Type> o) {
888 unittest.expect(o, unittest.hasLength(2)); 960 unittest.expect(o, unittest.hasLength(2));
889 checkType(o[0]); 961 checkType(o[0]);
890 checkType(o[1]); 962 checkType(o[1]);
891 } 963 }
892 964
893 core.int buildCounterTypesListResponse = 0; 965 core.int buildCounterTypesListResponse = 0;
894 buildTypesListResponse() { 966 buildTypesListResponse() {
895 var o = new api.TypesListResponse(); 967 var o = new api.TypesListResponse();
896 buildCounterTypesListResponse++; 968 buildCounterTypesListResponse++;
897 if (buildCounterTypesListResponse < 3) { 969 if (buildCounterTypesListResponse < 3) {
898 o.nextPageToken = "foo"; 970 o.nextPageToken = "foo";
899 o.types = buildUnnamed2038(); 971 o.types = buildUnnamed2355();
900 } 972 }
901 buildCounterTypesListResponse--; 973 buildCounterTypesListResponse--;
902 return o; 974 return o;
903 } 975 }
904 976
905 checkTypesListResponse(api.TypesListResponse o) { 977 checkTypesListResponse(api.TypesListResponse o) {
906 buildCounterTypesListResponse++; 978 buildCounterTypesListResponse++;
907 if (buildCounterTypesListResponse < 3) { 979 if (buildCounterTypesListResponse < 3) {
908 unittest.expect(o.nextPageToken, unittest.equals('foo')); 980 unittest.expect(o.nextPageToken, unittest.equals('foo'));
909 checkUnnamed2038(o.types); 981 checkUnnamed2355(o.types);
910 } 982 }
911 buildCounterTypesListResponse--; 983 buildCounterTypesListResponse--;
912 } 984 }
913 985
914 986
915 main() { 987 main() {
916 unittest.group("obj-schema-ConfigFile", () { 988 unittest.group("obj-schema-ConfigFile", () {
917 unittest.test("to-json--from-json", () { 989 unittest.test("to-json--from-json", () {
918 var o = buildConfigFile(); 990 var o = buildConfigFile();
919 var od = new api.ConfigFile.fromJson(o.toJson()); 991 var od = new api.ConfigFile.fromJson(o.toJson());
920 checkConfigFile(od); 992 checkConfigFile(od);
921 }); 993 });
922 }); 994 });
923 995
924 996
925 unittest.group("obj-schema-Deployment", () { 997 unittest.group("obj-schema-Deployment", () {
926 unittest.test("to-json--from-json", () { 998 unittest.test("to-json--from-json", () {
927 var o = buildDeployment(); 999 var o = buildDeployment();
928 var od = new api.Deployment.fromJson(o.toJson()); 1000 var od = new api.Deployment.fromJson(o.toJson());
929 checkDeployment(od); 1001 checkDeployment(od);
930 }); 1002 });
931 }); 1003 });
932 1004
933 1005
1006 unittest.group("obj-schema-DeploymentLabelEntry", () {
1007 unittest.test("to-json--from-json", () {
1008 var o = buildDeploymentLabelEntry();
1009 var od = new api.DeploymentLabelEntry.fromJson(o.toJson());
1010 checkDeploymentLabelEntry(od);
1011 });
1012 });
1013
1014
934 unittest.group("obj-schema-DeploymentUpdate", () { 1015 unittest.group("obj-schema-DeploymentUpdate", () {
935 unittest.test("to-json--from-json", () { 1016 unittest.test("to-json--from-json", () {
936 var o = buildDeploymentUpdate(); 1017 var o = buildDeploymentUpdate();
937 var od = new api.DeploymentUpdate.fromJson(o.toJson()); 1018 var od = new api.DeploymentUpdate.fromJson(o.toJson());
938 checkDeploymentUpdate(od); 1019 checkDeploymentUpdate(od);
939 }); 1020 });
940 }); 1021 });
941 1022
942 1023
1024 unittest.group("obj-schema-DeploymentUpdateLabelEntry", () {
1025 unittest.test("to-json--from-json", () {
1026 var o = buildDeploymentUpdateLabelEntry();
1027 var od = new api.DeploymentUpdateLabelEntry.fromJson(o.toJson());
1028 checkDeploymentUpdateLabelEntry(od);
1029 });
1030 });
1031
1032
943 unittest.group("obj-schema-DeploymentsCancelPreviewRequest", () { 1033 unittest.group("obj-schema-DeploymentsCancelPreviewRequest", () {
944 unittest.test("to-json--from-json", () { 1034 unittest.test("to-json--from-json", () {
945 var o = buildDeploymentsCancelPreviewRequest(); 1035 var o = buildDeploymentsCancelPreviewRequest();
946 var od = new api.DeploymentsCancelPreviewRequest.fromJson(o.toJson()); 1036 var od = new api.DeploymentsCancelPreviewRequest.fromJson(o.toJson());
947 checkDeploymentsCancelPreviewRequest(od); 1037 checkDeploymentsCancelPreviewRequest(od);
948 }); 1038 });
949 }); 1039 });
950 1040
951 1041
952 unittest.group("obj-schema-DeploymentsListResponse", () { 1042 unittest.group("obj-schema-DeploymentsListResponse", () {
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after
1878 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page Token: arg_pageToken).then(unittest.expectAsync(((api.TypesListResponse response ) { 1968 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page Token: arg_pageToken).then(unittest.expectAsync(((api.TypesListResponse response ) {
1879 checkTypesListResponse(response); 1969 checkTypesListResponse(response);
1880 }))); 1970 })));
1881 }); 1971 });
1882 1972
1883 }); 1973 });
1884 1974
1885 1975
1886 } 1976 }
1887 1977
OLDNEW
« no previous file with comments | « generated/googleapis/test/dataproc/v1_test.dart ('k') | generated/googleapis/test/dfareporting/v1_3_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698