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

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

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 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.resourceviews.v1beta2.test; 1 library googleapis_beta.resourceviews.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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 checkLabel(api.Label o) { 66 checkLabel(api.Label o) {
67 buildCounterLabel++; 67 buildCounterLabel++;
68 if (buildCounterLabel < 3) { 68 if (buildCounterLabel < 3) {
69 unittest.expect(o.key, unittest.equals('foo')); 69 unittest.expect(o.key, unittest.equals('foo'));
70 unittest.expect(o.value, unittest.equals('foo')); 70 unittest.expect(o.value, unittest.equals('foo'));
71 } 71 }
72 buildCounterLabel--; 72 buildCounterLabel--;
73 } 73 }
74 74
75 buildUnnamed3249() { 75 buildUnnamed3341() {
76 var o = new core.List<core.int>(); 76 var o = new core.List<core.int>();
77 o.add(42); 77 o.add(42);
78 o.add(42); 78 o.add(42);
79 return o; 79 return o;
80 } 80 }
81 81
82 checkUnnamed3249(core.List<core.int> o) { 82 checkUnnamed3341(core.List<core.int> o) {
83 unittest.expect(o, unittest.hasLength(2)); 83 unittest.expect(o, unittest.hasLength(2));
84 unittest.expect(o[0], unittest.equals(42)); 84 unittest.expect(o[0], unittest.equals(42));
85 unittest.expect(o[1], unittest.equals(42)); 85 unittest.expect(o[1], unittest.equals(42));
86 } 86 }
87 87
88 buildUnnamed3250() { 88 buildUnnamed3342() {
89 var o = new core.Map<core.String, core.List<core.int>>(); 89 var o = new core.Map<core.String, core.List<core.int>>();
90 o["x"] = buildUnnamed3249(); 90 o["x"] = buildUnnamed3341();
91 o["y"] = buildUnnamed3249(); 91 o["y"] = buildUnnamed3341();
92 return o; 92 return o;
93 } 93 }
94 94
95 checkUnnamed3250(core.Map<core.String, core.List<core.int>> o) { 95 checkUnnamed3342(core.Map<core.String, core.List<core.int>> o) {
96 unittest.expect(o, unittest.hasLength(2)); 96 unittest.expect(o, unittest.hasLength(2));
97 checkUnnamed3249(o["x"]); 97 checkUnnamed3341(o["x"]);
98 checkUnnamed3249(o["y"]); 98 checkUnnamed3341(o["y"]);
99 } 99 }
100 100
101 core.int buildCounterListResourceResponseItem = 0; 101 core.int buildCounterListResourceResponseItem = 0;
102 buildListResourceResponseItem() { 102 buildListResourceResponseItem() {
103 var o = new api.ListResourceResponseItem(); 103 var o = new api.ListResourceResponseItem();
104 buildCounterListResourceResponseItem++; 104 buildCounterListResourceResponseItem++;
105 if (buildCounterListResourceResponseItem < 3) { 105 if (buildCounterListResourceResponseItem < 3) {
106 o.endpoints = buildUnnamed3250(); 106 o.endpoints = buildUnnamed3342();
107 o.resource = "foo"; 107 o.resource = "foo";
108 } 108 }
109 buildCounterListResourceResponseItem--; 109 buildCounterListResourceResponseItem--;
110 return o; 110 return o;
111 } 111 }
112 112
113 checkListResourceResponseItem(api.ListResourceResponseItem o) { 113 checkListResourceResponseItem(api.ListResourceResponseItem o) {
114 buildCounterListResourceResponseItem++; 114 buildCounterListResourceResponseItem++;
115 if (buildCounterListResourceResponseItem < 3) { 115 if (buildCounterListResourceResponseItem < 3) {
116 checkUnnamed3250(o.endpoints); 116 checkUnnamed3342(o.endpoints);
117 unittest.expect(o.resource, unittest.equals('foo')); 117 unittest.expect(o.resource, unittest.equals('foo'));
118 } 118 }
119 buildCounterListResourceResponseItem--; 119 buildCounterListResourceResponseItem--;
120 } 120 }
121 121
122 core.int buildCounterOperationErrorErrors = 0; 122 core.int buildCounterOperationErrorErrors = 0;
123 buildOperationErrorErrors() { 123 buildOperationErrorErrors() {
124 var o = new api.OperationErrorErrors(); 124 var o = new api.OperationErrorErrors();
125 buildCounterOperationErrorErrors++; 125 buildCounterOperationErrorErrors++;
126 if (buildCounterOperationErrorErrors < 3) { 126 if (buildCounterOperationErrorErrors < 3) {
127 o.code = "foo"; 127 o.code = "foo";
128 o.location = "foo"; 128 o.location = "foo";
129 o.message = "foo"; 129 o.message = "foo";
130 } 130 }
131 buildCounterOperationErrorErrors--; 131 buildCounterOperationErrorErrors--;
132 return o; 132 return o;
133 } 133 }
134 134
135 checkOperationErrorErrors(api.OperationErrorErrors o) { 135 checkOperationErrorErrors(api.OperationErrorErrors o) {
136 buildCounterOperationErrorErrors++; 136 buildCounterOperationErrorErrors++;
137 if (buildCounterOperationErrorErrors < 3) { 137 if (buildCounterOperationErrorErrors < 3) {
138 unittest.expect(o.code, unittest.equals('foo')); 138 unittest.expect(o.code, unittest.equals('foo'));
139 unittest.expect(o.location, unittest.equals('foo')); 139 unittest.expect(o.location, unittest.equals('foo'));
140 unittest.expect(o.message, unittest.equals('foo')); 140 unittest.expect(o.message, unittest.equals('foo'));
141 } 141 }
142 buildCounterOperationErrorErrors--; 142 buildCounterOperationErrorErrors--;
143 } 143 }
144 144
145 buildUnnamed3251() { 145 buildUnnamed3343() {
146 var o = new core.List<api.OperationErrorErrors>(); 146 var o = new core.List<api.OperationErrorErrors>();
147 o.add(buildOperationErrorErrors()); 147 o.add(buildOperationErrorErrors());
148 o.add(buildOperationErrorErrors()); 148 o.add(buildOperationErrorErrors());
149 return o; 149 return o;
150 } 150 }
151 151
152 checkUnnamed3251(core.List<api.OperationErrorErrors> o) { 152 checkUnnamed3343(core.List<api.OperationErrorErrors> o) {
153 unittest.expect(o, unittest.hasLength(2)); 153 unittest.expect(o, unittest.hasLength(2));
154 checkOperationErrorErrors(o[0]); 154 checkOperationErrorErrors(o[0]);
155 checkOperationErrorErrors(o[1]); 155 checkOperationErrorErrors(o[1]);
156 } 156 }
157 157
158 core.int buildCounterOperationError = 0; 158 core.int buildCounterOperationError = 0;
159 buildOperationError() { 159 buildOperationError() {
160 var o = new api.OperationError(); 160 var o = new api.OperationError();
161 buildCounterOperationError++; 161 buildCounterOperationError++;
162 if (buildCounterOperationError < 3) { 162 if (buildCounterOperationError < 3) {
163 o.errors = buildUnnamed3251(); 163 o.errors = buildUnnamed3343();
164 } 164 }
165 buildCounterOperationError--; 165 buildCounterOperationError--;
166 return o; 166 return o;
167 } 167 }
168 168
169 checkOperationError(api.OperationError o) { 169 checkOperationError(api.OperationError o) {
170 buildCounterOperationError++; 170 buildCounterOperationError++;
171 if (buildCounterOperationError < 3) { 171 if (buildCounterOperationError < 3) {
172 checkUnnamed3251(o.errors); 172 checkUnnamed3343(o.errors);
173 } 173 }
174 buildCounterOperationError--; 174 buildCounterOperationError--;
175 } 175 }
176 176
177 core.int buildCounterOperationWarningsData = 0; 177 core.int buildCounterOperationWarningsData = 0;
178 buildOperationWarningsData() { 178 buildOperationWarningsData() {
179 var o = new api.OperationWarningsData(); 179 var o = new api.OperationWarningsData();
180 buildCounterOperationWarningsData++; 180 buildCounterOperationWarningsData++;
181 if (buildCounterOperationWarningsData < 3) { 181 if (buildCounterOperationWarningsData < 3) {
182 o.key = "foo"; 182 o.key = "foo";
183 o.value = "foo"; 183 o.value = "foo";
184 } 184 }
185 buildCounterOperationWarningsData--; 185 buildCounterOperationWarningsData--;
186 return o; 186 return o;
187 } 187 }
188 188
189 checkOperationWarningsData(api.OperationWarningsData o) { 189 checkOperationWarningsData(api.OperationWarningsData o) {
190 buildCounterOperationWarningsData++; 190 buildCounterOperationWarningsData++;
191 if (buildCounterOperationWarningsData < 3) { 191 if (buildCounterOperationWarningsData < 3) {
192 unittest.expect(o.key, unittest.equals('foo')); 192 unittest.expect(o.key, unittest.equals('foo'));
193 unittest.expect(o.value, unittest.equals('foo')); 193 unittest.expect(o.value, unittest.equals('foo'));
194 } 194 }
195 buildCounterOperationWarningsData--; 195 buildCounterOperationWarningsData--;
196 } 196 }
197 197
198 buildUnnamed3252() { 198 buildUnnamed3344() {
199 var o = new core.List<api.OperationWarningsData>(); 199 var o = new core.List<api.OperationWarningsData>();
200 o.add(buildOperationWarningsData()); 200 o.add(buildOperationWarningsData());
201 o.add(buildOperationWarningsData()); 201 o.add(buildOperationWarningsData());
202 return o; 202 return o;
203 } 203 }
204 204
205 checkUnnamed3252(core.List<api.OperationWarningsData> o) { 205 checkUnnamed3344(core.List<api.OperationWarningsData> o) {
206 unittest.expect(o, unittest.hasLength(2)); 206 unittest.expect(o, unittest.hasLength(2));
207 checkOperationWarningsData(o[0]); 207 checkOperationWarningsData(o[0]);
208 checkOperationWarningsData(o[1]); 208 checkOperationWarningsData(o[1]);
209 } 209 }
210 210
211 core.int buildCounterOperationWarnings = 0; 211 core.int buildCounterOperationWarnings = 0;
212 buildOperationWarnings() { 212 buildOperationWarnings() {
213 var o = new api.OperationWarnings(); 213 var o = new api.OperationWarnings();
214 buildCounterOperationWarnings++; 214 buildCounterOperationWarnings++;
215 if (buildCounterOperationWarnings < 3) { 215 if (buildCounterOperationWarnings < 3) {
216 o.code = "foo"; 216 o.code = "foo";
217 o.data = buildUnnamed3252(); 217 o.data = buildUnnamed3344();
218 o.message = "foo"; 218 o.message = "foo";
219 } 219 }
220 buildCounterOperationWarnings--; 220 buildCounterOperationWarnings--;
221 return o; 221 return o;
222 } 222 }
223 223
224 checkOperationWarnings(api.OperationWarnings o) { 224 checkOperationWarnings(api.OperationWarnings o) {
225 buildCounterOperationWarnings++; 225 buildCounterOperationWarnings++;
226 if (buildCounterOperationWarnings < 3) { 226 if (buildCounterOperationWarnings < 3) {
227 unittest.expect(o.code, unittest.equals('foo')); 227 unittest.expect(o.code, unittest.equals('foo'));
228 checkUnnamed3252(o.data); 228 checkUnnamed3344(o.data);
229 unittest.expect(o.message, unittest.equals('foo')); 229 unittest.expect(o.message, unittest.equals('foo'));
230 } 230 }
231 buildCounterOperationWarnings--; 231 buildCounterOperationWarnings--;
232 } 232 }
233 233
234 buildUnnamed3253() { 234 buildUnnamed3345() {
235 var o = new core.List<api.OperationWarnings>(); 235 var o = new core.List<api.OperationWarnings>();
236 o.add(buildOperationWarnings()); 236 o.add(buildOperationWarnings());
237 o.add(buildOperationWarnings()); 237 o.add(buildOperationWarnings());
238 return o; 238 return o;
239 } 239 }
240 240
241 checkUnnamed3253(core.List<api.OperationWarnings> o) { 241 checkUnnamed3345(core.List<api.OperationWarnings> o) {
242 unittest.expect(o, unittest.hasLength(2)); 242 unittest.expect(o, unittest.hasLength(2));
243 checkOperationWarnings(o[0]); 243 checkOperationWarnings(o[0]);
244 checkOperationWarnings(o[1]); 244 checkOperationWarnings(o[1]);
245 } 245 }
246 246
247 core.int buildCounterOperation = 0; 247 core.int buildCounterOperation = 0;
248 buildOperation() { 248 buildOperation() {
249 var o = new api.Operation(); 249 var o = new api.Operation();
250 buildCounterOperation++; 250 buildCounterOperation++;
251 if (buildCounterOperation < 3) { 251 if (buildCounterOperation < 3) {
(...skipping 10 matching lines...) Expand all
262 o.operationType = "foo"; 262 o.operationType = "foo";
263 o.progress = 42; 263 o.progress = 42;
264 o.region = "foo"; 264 o.region = "foo";
265 o.selfLink = "foo"; 265 o.selfLink = "foo";
266 o.startTime = "foo"; 266 o.startTime = "foo";
267 o.status = "foo"; 267 o.status = "foo";
268 o.statusMessage = "foo"; 268 o.statusMessage = "foo";
269 o.targetId = "foo"; 269 o.targetId = "foo";
270 o.targetLink = "foo"; 270 o.targetLink = "foo";
271 o.user = "foo"; 271 o.user = "foo";
272 o.warnings = buildUnnamed3253(); 272 o.warnings = buildUnnamed3345();
273 o.zone = "foo"; 273 o.zone = "foo";
274 } 274 }
275 buildCounterOperation--; 275 buildCounterOperation--;
276 return o; 276 return o;
277 } 277 }
278 278
279 checkOperation(api.Operation o) { 279 checkOperation(api.Operation o) {
280 buildCounterOperation++; 280 buildCounterOperation++;
281 if (buildCounterOperation < 3) { 281 if (buildCounterOperation < 3) {
282 unittest.expect(o.clientOperationId, unittest.equals('foo')); 282 unittest.expect(o.clientOperationId, unittest.equals('foo'));
283 unittest.expect(o.creationTimestamp, unittest.equals('foo')); 283 unittest.expect(o.creationTimestamp, unittest.equals('foo'));
284 unittest.expect(o.endTime, unittest.equals('foo')); 284 unittest.expect(o.endTime, unittest.equals('foo'));
285 checkOperationError(o.error); 285 checkOperationError(o.error);
286 unittest.expect(o.httpErrorMessage, unittest.equals('foo')); 286 unittest.expect(o.httpErrorMessage, unittest.equals('foo'));
287 unittest.expect(o.httpErrorStatusCode, unittest.equals(42)); 287 unittest.expect(o.httpErrorStatusCode, unittest.equals(42));
288 unittest.expect(o.id, unittest.equals('foo')); 288 unittest.expect(o.id, unittest.equals('foo'));
289 unittest.expect(o.insertTime, unittest.equals('foo')); 289 unittest.expect(o.insertTime, unittest.equals('foo'));
290 unittest.expect(o.kind, unittest.equals('foo')); 290 unittest.expect(o.kind, unittest.equals('foo'));
291 unittest.expect(o.name, unittest.equals('foo')); 291 unittest.expect(o.name, unittest.equals('foo'));
292 unittest.expect(o.operationType, unittest.equals('foo')); 292 unittest.expect(o.operationType, unittest.equals('foo'));
293 unittest.expect(o.progress, unittest.equals(42)); 293 unittest.expect(o.progress, unittest.equals(42));
294 unittest.expect(o.region, unittest.equals('foo')); 294 unittest.expect(o.region, unittest.equals('foo'));
295 unittest.expect(o.selfLink, unittest.equals('foo')); 295 unittest.expect(o.selfLink, unittest.equals('foo'));
296 unittest.expect(o.startTime, unittest.equals('foo')); 296 unittest.expect(o.startTime, unittest.equals('foo'));
297 unittest.expect(o.status, unittest.equals('foo')); 297 unittest.expect(o.status, unittest.equals('foo'));
298 unittest.expect(o.statusMessage, unittest.equals('foo')); 298 unittest.expect(o.statusMessage, unittest.equals('foo'));
299 unittest.expect(o.targetId, unittest.equals('foo')); 299 unittest.expect(o.targetId, unittest.equals('foo'));
300 unittest.expect(o.targetLink, unittest.equals('foo')); 300 unittest.expect(o.targetLink, unittest.equals('foo'));
301 unittest.expect(o.user, unittest.equals('foo')); 301 unittest.expect(o.user, unittest.equals('foo'));
302 checkUnnamed3253(o.warnings); 302 checkUnnamed3345(o.warnings);
303 unittest.expect(o.zone, unittest.equals('foo')); 303 unittest.expect(o.zone, unittest.equals('foo'));
304 } 304 }
305 buildCounterOperation--; 305 buildCounterOperation--;
306 } 306 }
307 307
308 buildUnnamed3254() { 308 buildUnnamed3346() {
309 var o = new core.List<api.Operation>(); 309 var o = new core.List<api.Operation>();
310 o.add(buildOperation()); 310 o.add(buildOperation());
311 o.add(buildOperation()); 311 o.add(buildOperation());
312 return o; 312 return o;
313 } 313 }
314 314
315 checkUnnamed3254(core.List<api.Operation> o) { 315 checkUnnamed3346(core.List<api.Operation> o) {
316 unittest.expect(o, unittest.hasLength(2)); 316 unittest.expect(o, unittest.hasLength(2));
317 checkOperation(o[0]); 317 checkOperation(o[0]);
318 checkOperation(o[1]); 318 checkOperation(o[1]);
319 } 319 }
320 320
321 core.int buildCounterOperationList = 0; 321 core.int buildCounterOperationList = 0;
322 buildOperationList() { 322 buildOperationList() {
323 var o = new api.OperationList(); 323 var o = new api.OperationList();
324 buildCounterOperationList++; 324 buildCounterOperationList++;
325 if (buildCounterOperationList < 3) { 325 if (buildCounterOperationList < 3) {
326 o.id = "foo"; 326 o.id = "foo";
327 o.items = buildUnnamed3254(); 327 o.items = buildUnnamed3346();
328 o.kind = "foo"; 328 o.kind = "foo";
329 o.nextPageToken = "foo"; 329 o.nextPageToken = "foo";
330 o.selfLink = "foo"; 330 o.selfLink = "foo";
331 } 331 }
332 buildCounterOperationList--; 332 buildCounterOperationList--;
333 return o; 333 return o;
334 } 334 }
335 335
336 checkOperationList(api.OperationList o) { 336 checkOperationList(api.OperationList o) {
337 buildCounterOperationList++; 337 buildCounterOperationList++;
338 if (buildCounterOperationList < 3) { 338 if (buildCounterOperationList < 3) {
339 unittest.expect(o.id, unittest.equals('foo')); 339 unittest.expect(o.id, unittest.equals('foo'));
340 checkUnnamed3254(o.items); 340 checkUnnamed3346(o.items);
341 unittest.expect(o.kind, unittest.equals('foo')); 341 unittest.expect(o.kind, unittest.equals('foo'));
342 unittest.expect(o.nextPageToken, unittest.equals('foo')); 342 unittest.expect(o.nextPageToken, unittest.equals('foo'));
343 unittest.expect(o.selfLink, unittest.equals('foo')); 343 unittest.expect(o.selfLink, unittest.equals('foo'));
344 } 344 }
345 buildCounterOperationList--; 345 buildCounterOperationList--;
346 } 346 }
347 347
348 buildUnnamed3255() { 348 buildUnnamed3347() {
349 var o = new core.List<api.ServiceEndpoint>(); 349 var o = new core.List<api.ServiceEndpoint>();
350 o.add(buildServiceEndpoint()); 350 o.add(buildServiceEndpoint());
351 o.add(buildServiceEndpoint()); 351 o.add(buildServiceEndpoint());
352 return o; 352 return o;
353 } 353 }
354 354
355 checkUnnamed3255(core.List<api.ServiceEndpoint> o) { 355 checkUnnamed3347(core.List<api.ServiceEndpoint> o) {
356 unittest.expect(o, unittest.hasLength(2)); 356 unittest.expect(o, unittest.hasLength(2));
357 checkServiceEndpoint(o[0]); 357 checkServiceEndpoint(o[0]);
358 checkServiceEndpoint(o[1]); 358 checkServiceEndpoint(o[1]);
359 } 359 }
360 360
361 buildUnnamed3256() { 361 buildUnnamed3348() {
362 var o = new core.List<api.Label>(); 362 var o = new core.List<api.Label>();
363 o.add(buildLabel()); 363 o.add(buildLabel());
364 o.add(buildLabel()); 364 o.add(buildLabel());
365 return o; 365 return o;
366 } 366 }
367 367
368 checkUnnamed3256(core.List<api.Label> o) { 368 checkUnnamed3348(core.List<api.Label> o) {
369 unittest.expect(o, unittest.hasLength(2)); 369 unittest.expect(o, unittest.hasLength(2));
370 checkLabel(o[0]); 370 checkLabel(o[0]);
371 checkLabel(o[1]); 371 checkLabel(o[1]);
372 } 372 }
373 373
374 buildUnnamed3257() { 374 buildUnnamed3349() {
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 checkUnnamed3257(core.List<core.String> o) { 381 checkUnnamed3349(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 buildCounterResourceView = 0; 387 core.int buildCounterResourceView = 0;
388 buildResourceView() { 388 buildResourceView() {
389 var o = new api.ResourceView(); 389 var o = new api.ResourceView();
390 buildCounterResourceView++; 390 buildCounterResourceView++;
391 if (buildCounterResourceView < 3) { 391 if (buildCounterResourceView < 3) {
392 o.creationTimestamp = "foo"; 392 o.creationTimestamp = "foo";
393 o.description = "foo"; 393 o.description = "foo";
394 o.endpoints = buildUnnamed3255(); 394 o.endpoints = buildUnnamed3347();
395 o.fingerprint = "foo"; 395 o.fingerprint = "foo";
396 o.id = "foo"; 396 o.id = "foo";
397 o.kind = "foo"; 397 o.kind = "foo";
398 o.labels = buildUnnamed3256(); 398 o.labels = buildUnnamed3348();
399 o.name = "foo"; 399 o.name = "foo";
400 o.network = "foo"; 400 o.network = "foo";
401 o.resources = buildUnnamed3257(); 401 o.resources = buildUnnamed3349();
402 o.selfLink = "foo"; 402 o.selfLink = "foo";
403 o.size = 42; 403 o.size = 42;
404 } 404 }
405 buildCounterResourceView--; 405 buildCounterResourceView--;
406 return o; 406 return o;
407 } 407 }
408 408
409 checkResourceView(api.ResourceView o) { 409 checkResourceView(api.ResourceView o) {
410 buildCounterResourceView++; 410 buildCounterResourceView++;
411 if (buildCounterResourceView < 3) { 411 if (buildCounterResourceView < 3) {
412 unittest.expect(o.creationTimestamp, unittest.equals('foo')); 412 unittest.expect(o.creationTimestamp, unittest.equals('foo'));
413 unittest.expect(o.description, unittest.equals('foo')); 413 unittest.expect(o.description, unittest.equals('foo'));
414 checkUnnamed3255(o.endpoints); 414 checkUnnamed3347(o.endpoints);
415 unittest.expect(o.fingerprint, unittest.equals('foo')); 415 unittest.expect(o.fingerprint, unittest.equals('foo'));
416 unittest.expect(o.id, unittest.equals('foo')); 416 unittest.expect(o.id, unittest.equals('foo'));
417 unittest.expect(o.kind, unittest.equals('foo')); 417 unittest.expect(o.kind, unittest.equals('foo'));
418 checkUnnamed3256(o.labels); 418 checkUnnamed3348(o.labels);
419 unittest.expect(o.name, unittest.equals('foo')); 419 unittest.expect(o.name, unittest.equals('foo'));
420 unittest.expect(o.network, unittest.equals('foo')); 420 unittest.expect(o.network, unittest.equals('foo'));
421 checkUnnamed3257(o.resources); 421 checkUnnamed3349(o.resources);
422 unittest.expect(o.selfLink, unittest.equals('foo')); 422 unittest.expect(o.selfLink, unittest.equals('foo'));
423 unittest.expect(o.size, unittest.equals(42)); 423 unittest.expect(o.size, unittest.equals(42));
424 } 424 }
425 buildCounterResourceView--; 425 buildCounterResourceView--;
426 } 426 }
427 427
428 core.int buildCounterServiceEndpoint = 0; 428 core.int buildCounterServiceEndpoint = 0;
429 buildServiceEndpoint() { 429 buildServiceEndpoint() {
430 var o = new api.ServiceEndpoint(); 430 var o = new api.ServiceEndpoint();
431 buildCounterServiceEndpoint++; 431 buildCounterServiceEndpoint++;
432 if (buildCounterServiceEndpoint < 3) { 432 if (buildCounterServiceEndpoint < 3) {
433 o.name = "foo"; 433 o.name = "foo";
434 o.port = 42; 434 o.port = 42;
435 } 435 }
436 buildCounterServiceEndpoint--; 436 buildCounterServiceEndpoint--;
437 return o; 437 return o;
438 } 438 }
439 439
440 checkServiceEndpoint(api.ServiceEndpoint o) { 440 checkServiceEndpoint(api.ServiceEndpoint o) {
441 buildCounterServiceEndpoint++; 441 buildCounterServiceEndpoint++;
442 if (buildCounterServiceEndpoint < 3) { 442 if (buildCounterServiceEndpoint < 3) {
443 unittest.expect(o.name, unittest.equals('foo')); 443 unittest.expect(o.name, unittest.equals('foo'));
444 unittest.expect(o.port, unittest.equals(42)); 444 unittest.expect(o.port, unittest.equals(42));
445 } 445 }
446 buildCounterServiceEndpoint--; 446 buildCounterServiceEndpoint--;
447 } 447 }
448 448
449 buildUnnamed3258() { 449 buildUnnamed3350() {
450 var o = new core.List<core.String>(); 450 var o = new core.List<core.String>();
451 o.add("foo"); 451 o.add("foo");
452 o.add("foo"); 452 o.add("foo");
453 return o; 453 return o;
454 } 454 }
455 455
456 checkUnnamed3258(core.List<core.String> o) { 456 checkUnnamed3350(core.List<core.String> o) {
457 unittest.expect(o, unittest.hasLength(2)); 457 unittest.expect(o, unittest.hasLength(2));
458 unittest.expect(o[0], unittest.equals('foo')); 458 unittest.expect(o[0], unittest.equals('foo'));
459 unittest.expect(o[1], unittest.equals('foo')); 459 unittest.expect(o[1], unittest.equals('foo'));
460 } 460 }
461 461
462 core.int buildCounterZoneViewsAddResourcesRequest = 0; 462 core.int buildCounterZoneViewsAddResourcesRequest = 0;
463 buildZoneViewsAddResourcesRequest() { 463 buildZoneViewsAddResourcesRequest() {
464 var o = new api.ZoneViewsAddResourcesRequest(); 464 var o = new api.ZoneViewsAddResourcesRequest();
465 buildCounterZoneViewsAddResourcesRequest++; 465 buildCounterZoneViewsAddResourcesRequest++;
466 if (buildCounterZoneViewsAddResourcesRequest < 3) { 466 if (buildCounterZoneViewsAddResourcesRequest < 3) {
467 o.resources = buildUnnamed3258(); 467 o.resources = buildUnnamed3350();
468 } 468 }
469 buildCounterZoneViewsAddResourcesRequest--; 469 buildCounterZoneViewsAddResourcesRequest--;
470 return o; 470 return o;
471 } 471 }
472 472
473 checkZoneViewsAddResourcesRequest(api.ZoneViewsAddResourcesRequest o) { 473 checkZoneViewsAddResourcesRequest(api.ZoneViewsAddResourcesRequest o) {
474 buildCounterZoneViewsAddResourcesRequest++; 474 buildCounterZoneViewsAddResourcesRequest++;
475 if (buildCounterZoneViewsAddResourcesRequest < 3) { 475 if (buildCounterZoneViewsAddResourcesRequest < 3) {
476 checkUnnamed3258(o.resources); 476 checkUnnamed3350(o.resources);
477 } 477 }
478 buildCounterZoneViewsAddResourcesRequest--; 478 buildCounterZoneViewsAddResourcesRequest--;
479 } 479 }
480 480
481 buildUnnamed3259() { 481 buildUnnamed3351() {
482 var o = new core.List<api.ServiceEndpoint>(); 482 var o = new core.List<api.ServiceEndpoint>();
483 o.add(buildServiceEndpoint()); 483 o.add(buildServiceEndpoint());
484 o.add(buildServiceEndpoint()); 484 o.add(buildServiceEndpoint());
485 return o; 485 return o;
486 } 486 }
487 487
488 checkUnnamed3259(core.List<api.ServiceEndpoint> o) { 488 checkUnnamed3351(core.List<api.ServiceEndpoint> o) {
489 unittest.expect(o, unittest.hasLength(2)); 489 unittest.expect(o, unittest.hasLength(2));
490 checkServiceEndpoint(o[0]); 490 checkServiceEndpoint(o[0]);
491 checkServiceEndpoint(o[1]); 491 checkServiceEndpoint(o[1]);
492 } 492 }
493 493
494 core.int buildCounterZoneViewsGetServiceResponse = 0; 494 core.int buildCounterZoneViewsGetServiceResponse = 0;
495 buildZoneViewsGetServiceResponse() { 495 buildZoneViewsGetServiceResponse() {
496 var o = new api.ZoneViewsGetServiceResponse(); 496 var o = new api.ZoneViewsGetServiceResponse();
497 buildCounterZoneViewsGetServiceResponse++; 497 buildCounterZoneViewsGetServiceResponse++;
498 if (buildCounterZoneViewsGetServiceResponse < 3) { 498 if (buildCounterZoneViewsGetServiceResponse < 3) {
499 o.endpoints = buildUnnamed3259(); 499 o.endpoints = buildUnnamed3351();
500 o.fingerprint = "foo"; 500 o.fingerprint = "foo";
501 } 501 }
502 buildCounterZoneViewsGetServiceResponse--; 502 buildCounterZoneViewsGetServiceResponse--;
503 return o; 503 return o;
504 } 504 }
505 505
506 checkZoneViewsGetServiceResponse(api.ZoneViewsGetServiceResponse o) { 506 checkZoneViewsGetServiceResponse(api.ZoneViewsGetServiceResponse o) {
507 buildCounterZoneViewsGetServiceResponse++; 507 buildCounterZoneViewsGetServiceResponse++;
508 if (buildCounterZoneViewsGetServiceResponse < 3) { 508 if (buildCounterZoneViewsGetServiceResponse < 3) {
509 checkUnnamed3259(o.endpoints); 509 checkUnnamed3351(o.endpoints);
510 unittest.expect(o.fingerprint, unittest.equals('foo')); 510 unittest.expect(o.fingerprint, unittest.equals('foo'));
511 } 511 }
512 buildCounterZoneViewsGetServiceResponse--; 512 buildCounterZoneViewsGetServiceResponse--;
513 } 513 }
514 514
515 buildUnnamed3260() { 515 buildUnnamed3352() {
516 var o = new core.List<api.ResourceView>(); 516 var o = new core.List<api.ResourceView>();
517 o.add(buildResourceView()); 517 o.add(buildResourceView());
518 o.add(buildResourceView()); 518 o.add(buildResourceView());
519 return o; 519 return o;
520 } 520 }
521 521
522 checkUnnamed3260(core.List<api.ResourceView> o) { 522 checkUnnamed3352(core.List<api.ResourceView> o) {
523 unittest.expect(o, unittest.hasLength(2)); 523 unittest.expect(o, unittest.hasLength(2));
524 checkResourceView(o[0]); 524 checkResourceView(o[0]);
525 checkResourceView(o[1]); 525 checkResourceView(o[1]);
526 } 526 }
527 527
528 core.int buildCounterZoneViewsList = 0; 528 core.int buildCounterZoneViewsList = 0;
529 buildZoneViewsList() { 529 buildZoneViewsList() {
530 var o = new api.ZoneViewsList(); 530 var o = new api.ZoneViewsList();
531 buildCounterZoneViewsList++; 531 buildCounterZoneViewsList++;
532 if (buildCounterZoneViewsList < 3) { 532 if (buildCounterZoneViewsList < 3) {
533 o.items = buildUnnamed3260(); 533 o.items = buildUnnamed3352();
534 o.kind = "foo"; 534 o.kind = "foo";
535 o.nextPageToken = "foo"; 535 o.nextPageToken = "foo";
536 o.selfLink = "foo"; 536 o.selfLink = "foo";
537 } 537 }
538 buildCounterZoneViewsList--; 538 buildCounterZoneViewsList--;
539 return o; 539 return o;
540 } 540 }
541 541
542 checkZoneViewsList(api.ZoneViewsList o) { 542 checkZoneViewsList(api.ZoneViewsList o) {
543 buildCounterZoneViewsList++; 543 buildCounterZoneViewsList++;
544 if (buildCounterZoneViewsList < 3) { 544 if (buildCounterZoneViewsList < 3) {
545 checkUnnamed3260(o.items); 545 checkUnnamed3352(o.items);
546 unittest.expect(o.kind, unittest.equals('foo')); 546 unittest.expect(o.kind, unittest.equals('foo'));
547 unittest.expect(o.nextPageToken, unittest.equals('foo')); 547 unittest.expect(o.nextPageToken, unittest.equals('foo'));
548 unittest.expect(o.selfLink, unittest.equals('foo')); 548 unittest.expect(o.selfLink, unittest.equals('foo'));
549 } 549 }
550 buildCounterZoneViewsList--; 550 buildCounterZoneViewsList--;
551 } 551 }
552 552
553 buildUnnamed3261() { 553 buildUnnamed3353() {
554 var o = new core.List<api.ListResourceResponseItem>(); 554 var o = new core.List<api.ListResourceResponseItem>();
555 o.add(buildListResourceResponseItem()); 555 o.add(buildListResourceResponseItem());
556 o.add(buildListResourceResponseItem()); 556 o.add(buildListResourceResponseItem());
557 return o; 557 return o;
558 } 558 }
559 559
560 checkUnnamed3261(core.List<api.ListResourceResponseItem> o) { 560 checkUnnamed3353(core.List<api.ListResourceResponseItem> o) {
561 unittest.expect(o, unittest.hasLength(2)); 561 unittest.expect(o, unittest.hasLength(2));
562 checkListResourceResponseItem(o[0]); 562 checkListResourceResponseItem(o[0]);
563 checkListResourceResponseItem(o[1]); 563 checkListResourceResponseItem(o[1]);
564 } 564 }
565 565
566 core.int buildCounterZoneViewsListResourcesResponse = 0; 566 core.int buildCounterZoneViewsListResourcesResponse = 0;
567 buildZoneViewsListResourcesResponse() { 567 buildZoneViewsListResourcesResponse() {
568 var o = new api.ZoneViewsListResourcesResponse(); 568 var o = new api.ZoneViewsListResourcesResponse();
569 buildCounterZoneViewsListResourcesResponse++; 569 buildCounterZoneViewsListResourcesResponse++;
570 if (buildCounterZoneViewsListResourcesResponse < 3) { 570 if (buildCounterZoneViewsListResourcesResponse < 3) {
571 o.items = buildUnnamed3261(); 571 o.items = buildUnnamed3353();
572 o.network = "foo"; 572 o.network = "foo";
573 o.nextPageToken = "foo"; 573 o.nextPageToken = "foo";
574 } 574 }
575 buildCounterZoneViewsListResourcesResponse--; 575 buildCounterZoneViewsListResourcesResponse--;
576 return o; 576 return o;
577 } 577 }
578 578
579 checkZoneViewsListResourcesResponse(api.ZoneViewsListResourcesResponse o) { 579 checkZoneViewsListResourcesResponse(api.ZoneViewsListResourcesResponse o) {
580 buildCounterZoneViewsListResourcesResponse++; 580 buildCounterZoneViewsListResourcesResponse++;
581 if (buildCounterZoneViewsListResourcesResponse < 3) { 581 if (buildCounterZoneViewsListResourcesResponse < 3) {
582 checkUnnamed3261(o.items); 582 checkUnnamed3353(o.items);
583 unittest.expect(o.network, unittest.equals('foo')); 583 unittest.expect(o.network, unittest.equals('foo'));
584 unittest.expect(o.nextPageToken, unittest.equals('foo')); 584 unittest.expect(o.nextPageToken, unittest.equals('foo'));
585 } 585 }
586 buildCounterZoneViewsListResourcesResponse--; 586 buildCounterZoneViewsListResourcesResponse--;
587 } 587 }
588 588
589 buildUnnamed3262() { 589 buildUnnamed3354() {
590 var o = new core.List<core.String>(); 590 var o = new core.List<core.String>();
591 o.add("foo"); 591 o.add("foo");
592 o.add("foo"); 592 o.add("foo");
593 return o; 593 return o;
594 } 594 }
595 595
596 checkUnnamed3262(core.List<core.String> o) { 596 checkUnnamed3354(core.List<core.String> o) {
597 unittest.expect(o, unittest.hasLength(2)); 597 unittest.expect(o, unittest.hasLength(2));
598 unittest.expect(o[0], unittest.equals('foo')); 598 unittest.expect(o[0], unittest.equals('foo'));
599 unittest.expect(o[1], unittest.equals('foo')); 599 unittest.expect(o[1], unittest.equals('foo'));
600 } 600 }
601 601
602 core.int buildCounterZoneViewsRemoveResourcesRequest = 0; 602 core.int buildCounterZoneViewsRemoveResourcesRequest = 0;
603 buildZoneViewsRemoveResourcesRequest() { 603 buildZoneViewsRemoveResourcesRequest() {
604 var o = new api.ZoneViewsRemoveResourcesRequest(); 604 var o = new api.ZoneViewsRemoveResourcesRequest();
605 buildCounterZoneViewsRemoveResourcesRequest++; 605 buildCounterZoneViewsRemoveResourcesRequest++;
606 if (buildCounterZoneViewsRemoveResourcesRequest < 3) { 606 if (buildCounterZoneViewsRemoveResourcesRequest < 3) {
607 o.resources = buildUnnamed3262(); 607 o.resources = buildUnnamed3354();
608 } 608 }
609 buildCounterZoneViewsRemoveResourcesRequest--; 609 buildCounterZoneViewsRemoveResourcesRequest--;
610 return o; 610 return o;
611 } 611 }
612 612
613 checkZoneViewsRemoveResourcesRequest(api.ZoneViewsRemoveResourcesRequest o) { 613 checkZoneViewsRemoveResourcesRequest(api.ZoneViewsRemoveResourcesRequest o) {
614 buildCounterZoneViewsRemoveResourcesRequest++; 614 buildCounterZoneViewsRemoveResourcesRequest++;
615 if (buildCounterZoneViewsRemoveResourcesRequest < 3) { 615 if (buildCounterZoneViewsRemoveResourcesRequest < 3) {
616 checkUnnamed3262(o.resources); 616 checkUnnamed3354(o.resources);
617 } 617 }
618 buildCounterZoneViewsRemoveResourcesRequest--; 618 buildCounterZoneViewsRemoveResourcesRequest--;
619 } 619 }
620 620
621 buildUnnamed3263() { 621 buildUnnamed3355() {
622 var o = new core.List<api.ServiceEndpoint>(); 622 var o = new core.List<api.ServiceEndpoint>();
623 o.add(buildServiceEndpoint()); 623 o.add(buildServiceEndpoint());
624 o.add(buildServiceEndpoint()); 624 o.add(buildServiceEndpoint());
625 return o; 625 return o;
626 } 626 }
627 627
628 checkUnnamed3263(core.List<api.ServiceEndpoint> o) { 628 checkUnnamed3355(core.List<api.ServiceEndpoint> o) {
629 unittest.expect(o, unittest.hasLength(2)); 629 unittest.expect(o, unittest.hasLength(2));
630 checkServiceEndpoint(o[0]); 630 checkServiceEndpoint(o[0]);
631 checkServiceEndpoint(o[1]); 631 checkServiceEndpoint(o[1]);
632 } 632 }
633 633
634 core.int buildCounterZoneViewsSetServiceRequest = 0; 634 core.int buildCounterZoneViewsSetServiceRequest = 0;
635 buildZoneViewsSetServiceRequest() { 635 buildZoneViewsSetServiceRequest() {
636 var o = new api.ZoneViewsSetServiceRequest(); 636 var o = new api.ZoneViewsSetServiceRequest();
637 buildCounterZoneViewsSetServiceRequest++; 637 buildCounterZoneViewsSetServiceRequest++;
638 if (buildCounterZoneViewsSetServiceRequest < 3) { 638 if (buildCounterZoneViewsSetServiceRequest < 3) {
639 o.endpoints = buildUnnamed3263(); 639 o.endpoints = buildUnnamed3355();
640 o.fingerprint = "foo"; 640 o.fingerprint = "foo";
641 o.resourceName = "foo"; 641 o.resourceName = "foo";
642 } 642 }
643 buildCounterZoneViewsSetServiceRequest--; 643 buildCounterZoneViewsSetServiceRequest--;
644 return o; 644 return o;
645 } 645 }
646 646
647 checkZoneViewsSetServiceRequest(api.ZoneViewsSetServiceRequest o) { 647 checkZoneViewsSetServiceRequest(api.ZoneViewsSetServiceRequest o) {
648 buildCounterZoneViewsSetServiceRequest++; 648 buildCounterZoneViewsSetServiceRequest++;
649 if (buildCounterZoneViewsSetServiceRequest < 3) { 649 if (buildCounterZoneViewsSetServiceRequest < 3) {
650 checkUnnamed3263(o.endpoints); 650 checkUnnamed3355(o.endpoints);
651 unittest.expect(o.fingerprint, unittest.equals('foo')); 651 unittest.expect(o.fingerprint, unittest.equals('foo'));
652 unittest.expect(o.resourceName, unittest.equals('foo')); 652 unittest.expect(o.resourceName, unittest.equals('foo'));
653 } 653 }
654 buildCounterZoneViewsSetServiceRequest--; 654 buildCounterZoneViewsSetServiceRequest--;
655 } 655 }
656 656
657 657
658 main() { 658 main() {
659 unittest.group("obj-schema-Label", () { 659 unittest.group("obj-schema-Label", () {
660 unittest.test("to-json--from-json", () { 660 unittest.test("to-json--from-json", () {
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
1322 res.setService(arg_request, arg_project, arg_zone, arg_resourceView).then( unittest.expectAsync(((api.Operation response) { 1322 res.setService(arg_request, arg_project, arg_zone, arg_resourceView).then( unittest.expectAsync(((api.Operation response) {
1323 checkOperation(response); 1323 checkOperation(response);
1324 }))); 1324 })));
1325 }); 1325 });
1326 1326
1327 }); 1327 });
1328 1328
1329 1329
1330 } 1330 }
1331 1331
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698