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

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

Issue 2987103002: Api-Roll 52: 2017-07-31 (Closed)
Patch Set: Created 3 years, 4 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.androidenterprise.v1.test; 1 library googleapis.androidenterprise.v1.test;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing; 9 import 'package:http/testing.dart' as http_testing;
10 import 'package:test/test.dart' as unittest; 10 import 'package:test/test.dart' as unittest;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 checkAdministratorWebToken(api.AdministratorWebToken o) { 85 checkAdministratorWebToken(api.AdministratorWebToken o) {
86 buildCounterAdministratorWebToken++; 86 buildCounterAdministratorWebToken++;
87 if (buildCounterAdministratorWebToken < 3) { 87 if (buildCounterAdministratorWebToken < 3) {
88 unittest.expect(o.kind, unittest.equals('foo')); 88 unittest.expect(o.kind, unittest.equals('foo'));
89 unittest.expect(o.token, unittest.equals('foo')); 89 unittest.expect(o.token, unittest.equals('foo'));
90 } 90 }
91 buildCounterAdministratorWebToken--; 91 buildCounterAdministratorWebToken--;
92 } 92 }
93 93
94 buildUnnamed2106() { 94 buildUnnamed2140() {
95 var o = new core.List<core.String>(); 95 var o = new core.List<core.String>();
96 o.add("foo"); 96 o.add("foo");
97 o.add("foo"); 97 o.add("foo");
98 return o; 98 return o;
99 } 99 }
100 100
101 checkUnnamed2106(core.List<core.String> o) { 101 checkUnnamed2140(core.List<core.String> o) {
102 unittest.expect(o, unittest.hasLength(2)); 102 unittest.expect(o, unittest.hasLength(2));
103 unittest.expect(o[0], unittest.equals('foo')); 103 unittest.expect(o[0], unittest.equals('foo'));
104 unittest.expect(o[1], unittest.equals('foo')); 104 unittest.expect(o[1], unittest.equals('foo'));
105 } 105 }
106 106
107 core.int buildCounterAdministratorWebTokenSpec = 0; 107 core.int buildCounterAdministratorWebTokenSpec = 0;
108 buildAdministratorWebTokenSpec() { 108 buildAdministratorWebTokenSpec() {
109 var o = new api.AdministratorWebTokenSpec(); 109 var o = new api.AdministratorWebTokenSpec();
110 buildCounterAdministratorWebTokenSpec++; 110 buildCounterAdministratorWebTokenSpec++;
111 if (buildCounterAdministratorWebTokenSpec < 3) { 111 if (buildCounterAdministratorWebTokenSpec < 3) {
112 o.kind = "foo"; 112 o.kind = "foo";
113 o.parent = "foo"; 113 o.parent = "foo";
114 o.permission = buildUnnamed2106(); 114 o.permission = buildUnnamed2140();
115 } 115 }
116 buildCounterAdministratorWebTokenSpec--; 116 buildCounterAdministratorWebTokenSpec--;
117 return o; 117 return o;
118 } 118 }
119 119
120 checkAdministratorWebTokenSpec(api.AdministratorWebTokenSpec o) { 120 checkAdministratorWebTokenSpec(api.AdministratorWebTokenSpec o) {
121 buildCounterAdministratorWebTokenSpec++; 121 buildCounterAdministratorWebTokenSpec++;
122 if (buildCounterAdministratorWebTokenSpec < 3) { 122 if (buildCounterAdministratorWebTokenSpec < 3) {
123 unittest.expect(o.kind, unittest.equals('foo')); 123 unittest.expect(o.kind, unittest.equals('foo'));
124 unittest.expect(o.parent, unittest.equals('foo')); 124 unittest.expect(o.parent, unittest.equals('foo'));
125 checkUnnamed2106(o.permission); 125 checkUnnamed2140(o.permission);
126 } 126 }
127 buildCounterAdministratorWebTokenSpec--; 127 buildCounterAdministratorWebTokenSpec--;
128 } 128 }
129 129
130 buildUnnamed2107() { 130 core.int buildCounterAndroidDevicePolicyConfig = 0;
131 buildAndroidDevicePolicyConfig() {
132 var o = new api.AndroidDevicePolicyConfig();
133 buildCounterAndroidDevicePolicyConfig++;
134 if (buildCounterAndroidDevicePolicyConfig < 3) {
135 o.kind = "foo";
136 o.state = "foo";
137 }
138 buildCounterAndroidDevicePolicyConfig--;
139 return o;
140 }
141
142 checkAndroidDevicePolicyConfig(api.AndroidDevicePolicyConfig o) {
143 buildCounterAndroidDevicePolicyConfig++;
144 if (buildCounterAndroidDevicePolicyConfig < 3) {
145 unittest.expect(o.kind, unittest.equals('foo'));
146 unittest.expect(o.state, unittest.equals('foo'));
147 }
148 buildCounterAndroidDevicePolicyConfig--;
149 }
150
151 buildUnnamed2141() {
131 var o = new core.List<api.AppRestrictionsSchemaRestriction>(); 152 var o = new core.List<api.AppRestrictionsSchemaRestriction>();
132 o.add(buildAppRestrictionsSchemaRestriction()); 153 o.add(buildAppRestrictionsSchemaRestriction());
133 o.add(buildAppRestrictionsSchemaRestriction()); 154 o.add(buildAppRestrictionsSchemaRestriction());
134 return o; 155 return o;
135 } 156 }
136 157
137 checkUnnamed2107(core.List<api.AppRestrictionsSchemaRestriction> o) { 158 checkUnnamed2141(core.List<api.AppRestrictionsSchemaRestriction> o) {
138 unittest.expect(o, unittest.hasLength(2)); 159 unittest.expect(o, unittest.hasLength(2));
139 checkAppRestrictionsSchemaRestriction(o[0]); 160 checkAppRestrictionsSchemaRestriction(o[0]);
140 checkAppRestrictionsSchemaRestriction(o[1]); 161 checkAppRestrictionsSchemaRestriction(o[1]);
141 } 162 }
142 163
143 core.int buildCounterAppRestrictionsSchema = 0; 164 core.int buildCounterAppRestrictionsSchema = 0;
144 buildAppRestrictionsSchema() { 165 buildAppRestrictionsSchema() {
145 var o = new api.AppRestrictionsSchema(); 166 var o = new api.AppRestrictionsSchema();
146 buildCounterAppRestrictionsSchema++; 167 buildCounterAppRestrictionsSchema++;
147 if (buildCounterAppRestrictionsSchema < 3) { 168 if (buildCounterAppRestrictionsSchema < 3) {
148 o.kind = "foo"; 169 o.kind = "foo";
149 o.restrictions = buildUnnamed2107(); 170 o.restrictions = buildUnnamed2141();
150 } 171 }
151 buildCounterAppRestrictionsSchema--; 172 buildCounterAppRestrictionsSchema--;
152 return o; 173 return o;
153 } 174 }
154 175
155 checkAppRestrictionsSchema(api.AppRestrictionsSchema o) { 176 checkAppRestrictionsSchema(api.AppRestrictionsSchema o) {
156 buildCounterAppRestrictionsSchema++; 177 buildCounterAppRestrictionsSchema++;
157 if (buildCounterAppRestrictionsSchema < 3) { 178 if (buildCounterAppRestrictionsSchema < 3) {
158 unittest.expect(o.kind, unittest.equals('foo')); 179 unittest.expect(o.kind, unittest.equals('foo'));
159 checkUnnamed2107(o.restrictions); 180 checkUnnamed2141(o.restrictions);
160 } 181 }
161 buildCounterAppRestrictionsSchema--; 182 buildCounterAppRestrictionsSchema--;
162 } 183 }
163 184
164 core.int buildCounterAppRestrictionsSchemaChangeEvent = 0; 185 core.int buildCounterAppRestrictionsSchemaChangeEvent = 0;
165 buildAppRestrictionsSchemaChangeEvent() { 186 buildAppRestrictionsSchemaChangeEvent() {
166 var o = new api.AppRestrictionsSchemaChangeEvent(); 187 var o = new api.AppRestrictionsSchemaChangeEvent();
167 buildCounterAppRestrictionsSchemaChangeEvent++; 188 buildCounterAppRestrictionsSchemaChangeEvent++;
168 if (buildCounterAppRestrictionsSchemaChangeEvent < 3) { 189 if (buildCounterAppRestrictionsSchemaChangeEvent < 3) {
169 o.productId = "foo"; 190 o.productId = "foo";
170 } 191 }
171 buildCounterAppRestrictionsSchemaChangeEvent--; 192 buildCounterAppRestrictionsSchemaChangeEvent--;
172 return o; 193 return o;
173 } 194 }
174 195
175 checkAppRestrictionsSchemaChangeEvent(api.AppRestrictionsSchemaChangeEvent o) { 196 checkAppRestrictionsSchemaChangeEvent(api.AppRestrictionsSchemaChangeEvent o) {
176 buildCounterAppRestrictionsSchemaChangeEvent++; 197 buildCounterAppRestrictionsSchemaChangeEvent++;
177 if (buildCounterAppRestrictionsSchemaChangeEvent < 3) { 198 if (buildCounterAppRestrictionsSchemaChangeEvent < 3) {
178 unittest.expect(o.productId, unittest.equals('foo')); 199 unittest.expect(o.productId, unittest.equals('foo'));
179 } 200 }
180 buildCounterAppRestrictionsSchemaChangeEvent--; 201 buildCounterAppRestrictionsSchemaChangeEvent--;
181 } 202 }
182 203
183 buildUnnamed2108() { 204 buildUnnamed2142() {
184 var o = new core.List<core.String>(); 205 var o = new core.List<core.String>();
185 o.add("foo"); 206 o.add("foo");
186 o.add("foo"); 207 o.add("foo");
187 return o; 208 return o;
188 } 209 }
189 210
190 checkUnnamed2108(core.List<core.String> o) { 211 checkUnnamed2142(core.List<core.String> o) {
191 unittest.expect(o, unittest.hasLength(2)); 212 unittest.expect(o, unittest.hasLength(2));
192 unittest.expect(o[0], unittest.equals('foo')); 213 unittest.expect(o[0], unittest.equals('foo'));
193 unittest.expect(o[1], unittest.equals('foo')); 214 unittest.expect(o[1], unittest.equals('foo'));
194 } 215 }
195 216
196 buildUnnamed2109() { 217 buildUnnamed2143() {
197 var o = new core.List<core.String>(); 218 var o = new core.List<core.String>();
198 o.add("foo"); 219 o.add("foo");
199 o.add("foo"); 220 o.add("foo");
200 return o; 221 return o;
201 } 222 }
202 223
203 checkUnnamed2109(core.List<core.String> o) { 224 checkUnnamed2143(core.List<core.String> o) {
204 unittest.expect(o, unittest.hasLength(2)); 225 unittest.expect(o, unittest.hasLength(2));
205 unittest.expect(o[0], unittest.equals('foo')); 226 unittest.expect(o[0], unittest.equals('foo'));
206 unittest.expect(o[1], unittest.equals('foo')); 227 unittest.expect(o[1], unittest.equals('foo'));
207 } 228 }
208 229
209 buildUnnamed2110() { 230 buildUnnamed2144() {
210 var o = new core.List<api.AppRestrictionsSchemaRestriction>(); 231 var o = new core.List<api.AppRestrictionsSchemaRestriction>();
211 o.add(buildAppRestrictionsSchemaRestriction()); 232 o.add(buildAppRestrictionsSchemaRestriction());
212 o.add(buildAppRestrictionsSchemaRestriction()); 233 o.add(buildAppRestrictionsSchemaRestriction());
213 return o; 234 return o;
214 } 235 }
215 236
216 checkUnnamed2110(core.List<api.AppRestrictionsSchemaRestriction> o) { 237 checkUnnamed2144(core.List<api.AppRestrictionsSchemaRestriction> o) {
217 unittest.expect(o, unittest.hasLength(2)); 238 unittest.expect(o, unittest.hasLength(2));
218 checkAppRestrictionsSchemaRestriction(o[0]); 239 checkAppRestrictionsSchemaRestriction(o[0]);
219 checkAppRestrictionsSchemaRestriction(o[1]); 240 checkAppRestrictionsSchemaRestriction(o[1]);
220 } 241 }
221 242
222 core.int buildCounterAppRestrictionsSchemaRestriction = 0; 243 core.int buildCounterAppRestrictionsSchemaRestriction = 0;
223 buildAppRestrictionsSchemaRestriction() { 244 buildAppRestrictionsSchemaRestriction() {
224 var o = new api.AppRestrictionsSchemaRestriction(); 245 var o = new api.AppRestrictionsSchemaRestriction();
225 buildCounterAppRestrictionsSchemaRestriction++; 246 buildCounterAppRestrictionsSchemaRestriction++;
226 if (buildCounterAppRestrictionsSchemaRestriction < 3) { 247 if (buildCounterAppRestrictionsSchemaRestriction < 3) {
227 o.defaultValue = buildAppRestrictionsSchemaRestrictionRestrictionValue(); 248 o.defaultValue = buildAppRestrictionsSchemaRestrictionRestrictionValue();
228 o.description = "foo"; 249 o.description = "foo";
229 o.entry = buildUnnamed2108(); 250 o.entry = buildUnnamed2142();
230 o.entryValue = buildUnnamed2109(); 251 o.entryValue = buildUnnamed2143();
231 o.key = "foo"; 252 o.key = "foo";
232 o.nestedRestriction = buildUnnamed2110(); 253 o.nestedRestriction = buildUnnamed2144();
233 o.restrictionType = "foo"; 254 o.restrictionType = "foo";
234 o.title = "foo"; 255 o.title = "foo";
235 } 256 }
236 buildCounterAppRestrictionsSchemaRestriction--; 257 buildCounterAppRestrictionsSchemaRestriction--;
237 return o; 258 return o;
238 } 259 }
239 260
240 checkAppRestrictionsSchemaRestriction(api.AppRestrictionsSchemaRestriction o) { 261 checkAppRestrictionsSchemaRestriction(api.AppRestrictionsSchemaRestriction o) {
241 buildCounterAppRestrictionsSchemaRestriction++; 262 buildCounterAppRestrictionsSchemaRestriction++;
242 if (buildCounterAppRestrictionsSchemaRestriction < 3) { 263 if (buildCounterAppRestrictionsSchemaRestriction < 3) {
243 checkAppRestrictionsSchemaRestrictionRestrictionValue(o.defaultValue); 264 checkAppRestrictionsSchemaRestrictionRestrictionValue(o.defaultValue);
244 unittest.expect(o.description, unittest.equals('foo')); 265 unittest.expect(o.description, unittest.equals('foo'));
245 checkUnnamed2108(o.entry); 266 checkUnnamed2142(o.entry);
246 checkUnnamed2109(o.entryValue); 267 checkUnnamed2143(o.entryValue);
247 unittest.expect(o.key, unittest.equals('foo')); 268 unittest.expect(o.key, unittest.equals('foo'));
248 checkUnnamed2110(o.nestedRestriction); 269 checkUnnamed2144(o.nestedRestriction);
249 unittest.expect(o.restrictionType, unittest.equals('foo')); 270 unittest.expect(o.restrictionType, unittest.equals('foo'));
250 unittest.expect(o.title, unittest.equals('foo')); 271 unittest.expect(o.title, unittest.equals('foo'));
251 } 272 }
252 buildCounterAppRestrictionsSchemaRestriction--; 273 buildCounterAppRestrictionsSchemaRestriction--;
253 } 274 }
254 275
255 buildUnnamed2111() { 276 buildUnnamed2145() {
256 var o = new core.List<core.String>(); 277 var o = new core.List<core.String>();
257 o.add("foo"); 278 o.add("foo");
258 o.add("foo"); 279 o.add("foo");
259 return o; 280 return o;
260 } 281 }
261 282
262 checkUnnamed2111(core.List<core.String> o) { 283 checkUnnamed2145(core.List<core.String> o) {
263 unittest.expect(o, unittest.hasLength(2)); 284 unittest.expect(o, unittest.hasLength(2));
264 unittest.expect(o[0], unittest.equals('foo')); 285 unittest.expect(o[0], unittest.equals('foo'));
265 unittest.expect(o[1], unittest.equals('foo')); 286 unittest.expect(o[1], unittest.equals('foo'));
266 } 287 }
267 288
268 core.int buildCounterAppRestrictionsSchemaRestrictionRestrictionValue = 0; 289 core.int buildCounterAppRestrictionsSchemaRestrictionRestrictionValue = 0;
269 buildAppRestrictionsSchemaRestrictionRestrictionValue() { 290 buildAppRestrictionsSchemaRestrictionRestrictionValue() {
270 var o = new api.AppRestrictionsSchemaRestrictionRestrictionValue(); 291 var o = new api.AppRestrictionsSchemaRestrictionRestrictionValue();
271 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue++; 292 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue++;
272 if (buildCounterAppRestrictionsSchemaRestrictionRestrictionValue < 3) { 293 if (buildCounterAppRestrictionsSchemaRestrictionRestrictionValue < 3) {
273 o.type = "foo"; 294 o.type = "foo";
274 o.valueBool = true; 295 o.valueBool = true;
275 o.valueInteger = 42; 296 o.valueInteger = 42;
276 o.valueMultiselect = buildUnnamed2111(); 297 o.valueMultiselect = buildUnnamed2145();
277 o.valueString = "foo"; 298 o.valueString = "foo";
278 } 299 }
279 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; 300 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--;
280 return o; 301 return o;
281 } 302 }
282 303
283 checkAppRestrictionsSchemaRestrictionRestrictionValue(api.AppRestrictionsSchemaR estrictionRestrictionValue o) { 304 checkAppRestrictionsSchemaRestrictionRestrictionValue(api.AppRestrictionsSchemaR estrictionRestrictionValue o) {
284 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue++; 305 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue++;
285 if (buildCounterAppRestrictionsSchemaRestrictionRestrictionValue < 3) { 306 if (buildCounterAppRestrictionsSchemaRestrictionRestrictionValue < 3) {
286 unittest.expect(o.type, unittest.equals('foo')); 307 unittest.expect(o.type, unittest.equals('foo'));
287 unittest.expect(o.valueBool, unittest.isTrue); 308 unittest.expect(o.valueBool, unittest.isTrue);
288 unittest.expect(o.valueInteger, unittest.equals(42)); 309 unittest.expect(o.valueInteger, unittest.equals(42));
289 checkUnnamed2111(o.valueMultiselect); 310 checkUnnamed2145(o.valueMultiselect);
290 unittest.expect(o.valueString, unittest.equals('foo')); 311 unittest.expect(o.valueString, unittest.equals('foo'));
291 } 312 }
292 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; 313 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--;
293 } 314 }
294 315
295 core.int buildCounterAppUpdateEvent = 0; 316 core.int buildCounterAppUpdateEvent = 0;
296 buildAppUpdateEvent() { 317 buildAppUpdateEvent() {
297 var o = new api.AppUpdateEvent(); 318 var o = new api.AppUpdateEvent();
298 buildCounterAppUpdateEvent++; 319 buildCounterAppUpdateEvent++;
299 if (buildCounterAppUpdateEvent < 3) { 320 if (buildCounterAppUpdateEvent < 3) {
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 432
412 checkDeviceState(api.DeviceState o) { 433 checkDeviceState(api.DeviceState o) {
413 buildCounterDeviceState++; 434 buildCounterDeviceState++;
414 if (buildCounterDeviceState < 3) { 435 if (buildCounterDeviceState < 3) {
415 unittest.expect(o.accountState, unittest.equals('foo')); 436 unittest.expect(o.accountState, unittest.equals('foo'));
416 unittest.expect(o.kind, unittest.equals('foo')); 437 unittest.expect(o.kind, unittest.equals('foo'));
417 } 438 }
418 buildCounterDeviceState--; 439 buildCounterDeviceState--;
419 } 440 }
420 441
421 buildUnnamed2112() { 442 buildUnnamed2146() {
422 var o = new core.List<api.Device>(); 443 var o = new core.List<api.Device>();
423 o.add(buildDevice()); 444 o.add(buildDevice());
424 o.add(buildDevice()); 445 o.add(buildDevice());
425 return o; 446 return o;
426 } 447 }
427 448
428 checkUnnamed2112(core.List<api.Device> o) { 449 checkUnnamed2146(core.List<api.Device> o) {
429 unittest.expect(o, unittest.hasLength(2)); 450 unittest.expect(o, unittest.hasLength(2));
430 checkDevice(o[0]); 451 checkDevice(o[0]);
431 checkDevice(o[1]); 452 checkDevice(o[1]);
432 } 453 }
433 454
434 core.int buildCounterDevicesListResponse = 0; 455 core.int buildCounterDevicesListResponse = 0;
435 buildDevicesListResponse() { 456 buildDevicesListResponse() {
436 var o = new api.DevicesListResponse(); 457 var o = new api.DevicesListResponse();
437 buildCounterDevicesListResponse++; 458 buildCounterDevicesListResponse++;
438 if (buildCounterDevicesListResponse < 3) { 459 if (buildCounterDevicesListResponse < 3) {
439 o.device = buildUnnamed2112(); 460 o.device = buildUnnamed2146();
440 o.kind = "foo"; 461 o.kind = "foo";
441 } 462 }
442 buildCounterDevicesListResponse--; 463 buildCounterDevicesListResponse--;
443 return o; 464 return o;
444 } 465 }
445 466
446 checkDevicesListResponse(api.DevicesListResponse o) { 467 checkDevicesListResponse(api.DevicesListResponse o) {
447 buildCounterDevicesListResponse++; 468 buildCounterDevicesListResponse++;
448 if (buildCounterDevicesListResponse < 3) { 469 if (buildCounterDevicesListResponse < 3) {
449 checkUnnamed2112(o.device); 470 checkUnnamed2146(o.device);
450 unittest.expect(o.kind, unittest.equals('foo')); 471 unittest.expect(o.kind, unittest.equals('foo'));
451 } 472 }
452 buildCounterDevicesListResponse--; 473 buildCounterDevicesListResponse--;
453 } 474 }
454 475
455 buildUnnamed2113() { 476 buildUnnamed2147() {
456 var o = new core.List<api.Administrator>(); 477 var o = new core.List<api.Administrator>();
457 o.add(buildAdministrator()); 478 o.add(buildAdministrator());
458 o.add(buildAdministrator()); 479 o.add(buildAdministrator());
459 return o; 480 return o;
460 } 481 }
461 482
462 checkUnnamed2113(core.List<api.Administrator> o) { 483 checkUnnamed2147(core.List<api.Administrator> o) {
463 unittest.expect(o, unittest.hasLength(2)); 484 unittest.expect(o, unittest.hasLength(2));
464 checkAdministrator(o[0]); 485 checkAdministrator(o[0]);
465 checkAdministrator(o[1]); 486 checkAdministrator(o[1]);
466 } 487 }
467 488
468 core.int buildCounterEnterprise = 0; 489 core.int buildCounterEnterprise = 0;
469 buildEnterprise() { 490 buildEnterprise() {
470 var o = new api.Enterprise(); 491 var o = new api.Enterprise();
471 buildCounterEnterprise++; 492 buildCounterEnterprise++;
472 if (buildCounterEnterprise < 3) { 493 if (buildCounterEnterprise < 3) {
473 o.administrator = buildUnnamed2113(); 494 o.administrator = buildUnnamed2147();
474 o.id = "foo"; 495 o.id = "foo";
475 o.kind = "foo"; 496 o.kind = "foo";
476 o.name = "foo"; 497 o.name = "foo";
477 o.primaryDomain = "foo"; 498 o.primaryDomain = "foo";
478 } 499 }
479 buildCounterEnterprise--; 500 buildCounterEnterprise--;
480 return o; 501 return o;
481 } 502 }
482 503
483 checkEnterprise(api.Enterprise o) { 504 checkEnterprise(api.Enterprise o) {
484 buildCounterEnterprise++; 505 buildCounterEnterprise++;
485 if (buildCounterEnterprise < 3) { 506 if (buildCounterEnterprise < 3) {
486 checkUnnamed2113(o.administrator); 507 checkUnnamed2147(o.administrator);
487 unittest.expect(o.id, unittest.equals('foo')); 508 unittest.expect(o.id, unittest.equals('foo'));
488 unittest.expect(o.kind, unittest.equals('foo')); 509 unittest.expect(o.kind, unittest.equals('foo'));
489 unittest.expect(o.name, unittest.equals('foo')); 510 unittest.expect(o.name, unittest.equals('foo'));
490 unittest.expect(o.primaryDomain, unittest.equals('foo')); 511 unittest.expect(o.primaryDomain, unittest.equals('foo'));
491 } 512 }
492 buildCounterEnterprise--; 513 buildCounterEnterprise--;
493 } 514 }
494 515
495 core.int buildCounterEnterpriseAccount = 0; 516 core.int buildCounterEnterpriseAccount = 0;
496 buildEnterpriseAccount() { 517 buildEnterpriseAccount() {
497 var o = new api.EnterpriseAccount(); 518 var o = new api.EnterpriseAccount();
498 buildCounterEnterpriseAccount++; 519 buildCounterEnterpriseAccount++;
499 if (buildCounterEnterpriseAccount < 3) { 520 if (buildCounterEnterpriseAccount < 3) {
500 o.accountEmail = "foo"; 521 o.accountEmail = "foo";
501 o.kind = "foo"; 522 o.kind = "foo";
502 } 523 }
503 buildCounterEnterpriseAccount--; 524 buildCounterEnterpriseAccount--;
504 return o; 525 return o;
505 } 526 }
506 527
507 checkEnterpriseAccount(api.EnterpriseAccount o) { 528 checkEnterpriseAccount(api.EnterpriseAccount o) {
508 buildCounterEnterpriseAccount++; 529 buildCounterEnterpriseAccount++;
509 if (buildCounterEnterpriseAccount < 3) { 530 if (buildCounterEnterpriseAccount < 3) {
510 unittest.expect(o.accountEmail, unittest.equals('foo')); 531 unittest.expect(o.accountEmail, unittest.equals('foo'));
511 unittest.expect(o.kind, unittest.equals('foo')); 532 unittest.expect(o.kind, unittest.equals('foo'));
512 } 533 }
513 buildCounterEnterpriseAccount--; 534 buildCounterEnterpriseAccount--;
514 } 535 }
515 536
516 buildUnnamed2114() { 537 buildUnnamed2148() {
517 var o = new core.List<api.Enterprise>(); 538 var o = new core.List<api.Enterprise>();
518 o.add(buildEnterprise()); 539 o.add(buildEnterprise());
519 o.add(buildEnterprise()); 540 o.add(buildEnterprise());
520 return o; 541 return o;
521 } 542 }
522 543
523 checkUnnamed2114(core.List<api.Enterprise> o) { 544 checkUnnamed2148(core.List<api.Enterprise> o) {
524 unittest.expect(o, unittest.hasLength(2)); 545 unittest.expect(o, unittest.hasLength(2));
525 checkEnterprise(o[0]); 546 checkEnterprise(o[0]);
526 checkEnterprise(o[1]); 547 checkEnterprise(o[1]);
527 } 548 }
528 549
529 core.int buildCounterEnterprisesListResponse = 0; 550 core.int buildCounterEnterprisesListResponse = 0;
530 buildEnterprisesListResponse() { 551 buildEnterprisesListResponse() {
531 var o = new api.EnterprisesListResponse(); 552 var o = new api.EnterprisesListResponse();
532 buildCounterEnterprisesListResponse++; 553 buildCounterEnterprisesListResponse++;
533 if (buildCounterEnterprisesListResponse < 3) { 554 if (buildCounterEnterprisesListResponse < 3) {
534 o.enterprise = buildUnnamed2114(); 555 o.enterprise = buildUnnamed2148();
535 o.kind = "foo"; 556 o.kind = "foo";
536 } 557 }
537 buildCounterEnterprisesListResponse--; 558 buildCounterEnterprisesListResponse--;
538 return o; 559 return o;
539 } 560 }
540 561
541 checkEnterprisesListResponse(api.EnterprisesListResponse o) { 562 checkEnterprisesListResponse(api.EnterprisesListResponse o) {
542 buildCounterEnterprisesListResponse++; 563 buildCounterEnterprisesListResponse++;
543 if (buildCounterEnterprisesListResponse < 3) { 564 if (buildCounterEnterprisesListResponse < 3) {
544 checkUnnamed2114(o.enterprise); 565 checkUnnamed2148(o.enterprise);
545 unittest.expect(o.kind, unittest.equals('foo')); 566 unittest.expect(o.kind, unittest.equals('foo'));
546 } 567 }
547 buildCounterEnterprisesListResponse--; 568 buildCounterEnterprisesListResponse--;
548 } 569 }
549 570
550 core.int buildCounterEnterprisesSendTestPushNotificationResponse = 0; 571 core.int buildCounterEnterprisesSendTestPushNotificationResponse = 0;
551 buildEnterprisesSendTestPushNotificationResponse() { 572 buildEnterprisesSendTestPushNotificationResponse() {
552 var o = new api.EnterprisesSendTestPushNotificationResponse(); 573 var o = new api.EnterprisesSendTestPushNotificationResponse();
553 buildCounterEnterprisesSendTestPushNotificationResponse++; 574 buildCounterEnterprisesSendTestPushNotificationResponse++;
554 if (buildCounterEnterprisesSendTestPushNotificationResponse < 3) { 575 if (buildCounterEnterprisesSendTestPushNotificationResponse < 3) {
(...skipping 29 matching lines...) Expand all
584 checkEntitlement(api.Entitlement o) { 605 checkEntitlement(api.Entitlement o) {
585 buildCounterEntitlement++; 606 buildCounterEntitlement++;
586 if (buildCounterEntitlement < 3) { 607 if (buildCounterEntitlement < 3) {
587 unittest.expect(o.kind, unittest.equals('foo')); 608 unittest.expect(o.kind, unittest.equals('foo'));
588 unittest.expect(o.productId, unittest.equals('foo')); 609 unittest.expect(o.productId, unittest.equals('foo'));
589 unittest.expect(o.reason, unittest.equals('foo')); 610 unittest.expect(o.reason, unittest.equals('foo'));
590 } 611 }
591 buildCounterEntitlement--; 612 buildCounterEntitlement--;
592 } 613 }
593 614
594 buildUnnamed2115() { 615 buildUnnamed2149() {
595 var o = new core.List<api.Entitlement>(); 616 var o = new core.List<api.Entitlement>();
596 o.add(buildEntitlement()); 617 o.add(buildEntitlement());
597 o.add(buildEntitlement()); 618 o.add(buildEntitlement());
598 return o; 619 return o;
599 } 620 }
600 621
601 checkUnnamed2115(core.List<api.Entitlement> o) { 622 checkUnnamed2149(core.List<api.Entitlement> o) {
602 unittest.expect(o, unittest.hasLength(2)); 623 unittest.expect(o, unittest.hasLength(2));
603 checkEntitlement(o[0]); 624 checkEntitlement(o[0]);
604 checkEntitlement(o[1]); 625 checkEntitlement(o[1]);
605 } 626 }
606 627
607 core.int buildCounterEntitlementsListResponse = 0; 628 core.int buildCounterEntitlementsListResponse = 0;
608 buildEntitlementsListResponse() { 629 buildEntitlementsListResponse() {
609 var o = new api.EntitlementsListResponse(); 630 var o = new api.EntitlementsListResponse();
610 buildCounterEntitlementsListResponse++; 631 buildCounterEntitlementsListResponse++;
611 if (buildCounterEntitlementsListResponse < 3) { 632 if (buildCounterEntitlementsListResponse < 3) {
612 o.entitlement = buildUnnamed2115(); 633 o.entitlement = buildUnnamed2149();
613 o.kind = "foo"; 634 o.kind = "foo";
614 } 635 }
615 buildCounterEntitlementsListResponse--; 636 buildCounterEntitlementsListResponse--;
616 return o; 637 return o;
617 } 638 }
618 639
619 checkEntitlementsListResponse(api.EntitlementsListResponse o) { 640 checkEntitlementsListResponse(api.EntitlementsListResponse o) {
620 buildCounterEntitlementsListResponse++; 641 buildCounterEntitlementsListResponse++;
621 if (buildCounterEntitlementsListResponse < 3) { 642 if (buildCounterEntitlementsListResponse < 3) {
622 checkUnnamed2115(o.entitlement); 643 checkUnnamed2149(o.entitlement);
623 unittest.expect(o.kind, unittest.equals('foo')); 644 unittest.expect(o.kind, unittest.equals('foo'));
624 } 645 }
625 buildCounterEntitlementsListResponse--; 646 buildCounterEntitlementsListResponse--;
626 } 647 }
627 648
628 core.int buildCounterGroupLicense = 0; 649 core.int buildCounterGroupLicense = 0;
629 buildGroupLicense() { 650 buildGroupLicense() {
630 var o = new api.GroupLicense(); 651 var o = new api.GroupLicense();
631 buildCounterGroupLicense++; 652 buildCounterGroupLicense++;
632 if (buildCounterGroupLicense < 3) { 653 if (buildCounterGroupLicense < 3) {
(...skipping 16 matching lines...) Expand all
649 unittest.expect(o.approval, unittest.equals('foo')); 670 unittest.expect(o.approval, unittest.equals('foo'));
650 unittest.expect(o.kind, unittest.equals('foo')); 671 unittest.expect(o.kind, unittest.equals('foo'));
651 unittest.expect(o.numProvisioned, unittest.equals(42)); 672 unittest.expect(o.numProvisioned, unittest.equals(42));
652 unittest.expect(o.numPurchased, unittest.equals(42)); 673 unittest.expect(o.numPurchased, unittest.equals(42));
653 unittest.expect(o.permissions, unittest.equals('foo')); 674 unittest.expect(o.permissions, unittest.equals('foo'));
654 unittest.expect(o.productId, unittest.equals('foo')); 675 unittest.expect(o.productId, unittest.equals('foo'));
655 } 676 }
656 buildCounterGroupLicense--; 677 buildCounterGroupLicense--;
657 } 678 }
658 679
659 buildUnnamed2116() { 680 buildUnnamed2150() {
660 var o = new core.List<api.User>(); 681 var o = new core.List<api.User>();
661 o.add(buildUser()); 682 o.add(buildUser());
662 o.add(buildUser()); 683 o.add(buildUser());
663 return o; 684 return o;
664 } 685 }
665 686
666 checkUnnamed2116(core.List<api.User> o) { 687 checkUnnamed2150(core.List<api.User> o) {
667 unittest.expect(o, unittest.hasLength(2)); 688 unittest.expect(o, unittest.hasLength(2));
668 checkUser(o[0]); 689 checkUser(o[0]);
669 checkUser(o[1]); 690 checkUser(o[1]);
670 } 691 }
671 692
672 core.int buildCounterGroupLicenseUsersListResponse = 0; 693 core.int buildCounterGroupLicenseUsersListResponse = 0;
673 buildGroupLicenseUsersListResponse() { 694 buildGroupLicenseUsersListResponse() {
674 var o = new api.GroupLicenseUsersListResponse(); 695 var o = new api.GroupLicenseUsersListResponse();
675 buildCounterGroupLicenseUsersListResponse++; 696 buildCounterGroupLicenseUsersListResponse++;
676 if (buildCounterGroupLicenseUsersListResponse < 3) { 697 if (buildCounterGroupLicenseUsersListResponse < 3) {
677 o.kind = "foo"; 698 o.kind = "foo";
678 o.user = buildUnnamed2116(); 699 o.user = buildUnnamed2150();
679 } 700 }
680 buildCounterGroupLicenseUsersListResponse--; 701 buildCounterGroupLicenseUsersListResponse--;
681 return o; 702 return o;
682 } 703 }
683 704
684 checkGroupLicenseUsersListResponse(api.GroupLicenseUsersListResponse o) { 705 checkGroupLicenseUsersListResponse(api.GroupLicenseUsersListResponse o) {
685 buildCounterGroupLicenseUsersListResponse++; 706 buildCounterGroupLicenseUsersListResponse++;
686 if (buildCounterGroupLicenseUsersListResponse < 3) { 707 if (buildCounterGroupLicenseUsersListResponse < 3) {
687 unittest.expect(o.kind, unittest.equals('foo')); 708 unittest.expect(o.kind, unittest.equals('foo'));
688 checkUnnamed2116(o.user); 709 checkUnnamed2150(o.user);
689 } 710 }
690 buildCounterGroupLicenseUsersListResponse--; 711 buildCounterGroupLicenseUsersListResponse--;
691 } 712 }
692 713
693 buildUnnamed2117() { 714 buildUnnamed2151() {
694 var o = new core.List<api.GroupLicense>(); 715 var o = new core.List<api.GroupLicense>();
695 o.add(buildGroupLicense()); 716 o.add(buildGroupLicense());
696 o.add(buildGroupLicense()); 717 o.add(buildGroupLicense());
697 return o; 718 return o;
698 } 719 }
699 720
700 checkUnnamed2117(core.List<api.GroupLicense> o) { 721 checkUnnamed2151(core.List<api.GroupLicense> o) {
701 unittest.expect(o, unittest.hasLength(2)); 722 unittest.expect(o, unittest.hasLength(2));
702 checkGroupLicense(o[0]); 723 checkGroupLicense(o[0]);
703 checkGroupLicense(o[1]); 724 checkGroupLicense(o[1]);
704 } 725 }
705 726
706 core.int buildCounterGroupLicensesListResponse = 0; 727 core.int buildCounterGroupLicensesListResponse = 0;
707 buildGroupLicensesListResponse() { 728 buildGroupLicensesListResponse() {
708 var o = new api.GroupLicensesListResponse(); 729 var o = new api.GroupLicensesListResponse();
709 buildCounterGroupLicensesListResponse++; 730 buildCounterGroupLicensesListResponse++;
710 if (buildCounterGroupLicensesListResponse < 3) { 731 if (buildCounterGroupLicensesListResponse < 3) {
711 o.groupLicense = buildUnnamed2117(); 732 o.groupLicense = buildUnnamed2151();
712 o.kind = "foo"; 733 o.kind = "foo";
713 } 734 }
714 buildCounterGroupLicensesListResponse--; 735 buildCounterGroupLicensesListResponse--;
715 return o; 736 return o;
716 } 737 }
717 738
718 checkGroupLicensesListResponse(api.GroupLicensesListResponse o) { 739 checkGroupLicensesListResponse(api.GroupLicensesListResponse o) {
719 buildCounterGroupLicensesListResponse++; 740 buildCounterGroupLicensesListResponse++;
720 if (buildCounterGroupLicensesListResponse < 3) { 741 if (buildCounterGroupLicensesListResponse < 3) {
721 checkUnnamed2117(o.groupLicense); 742 checkUnnamed2151(o.groupLicense);
722 unittest.expect(o.kind, unittest.equals('foo')); 743 unittest.expect(o.kind, unittest.equals('foo'));
723 } 744 }
724 buildCounterGroupLicensesListResponse--; 745 buildCounterGroupLicensesListResponse--;
725 } 746 }
726 747
727 core.int buildCounterInstall = 0; 748 core.int buildCounterInstall = 0;
728 buildInstall() { 749 buildInstall() {
729 var o = new api.Install(); 750 var o = new api.Install();
730 buildCounterInstall++; 751 buildCounterInstall++;
731 if (buildCounterInstall < 3) { 752 if (buildCounterInstall < 3) {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 if (buildCounterInstallFailureEvent < 3) { 790 if (buildCounterInstallFailureEvent < 3) {
770 unittest.expect(o.deviceId, unittest.equals('foo')); 791 unittest.expect(o.deviceId, unittest.equals('foo'));
771 unittest.expect(o.failureDetails, unittest.equals('foo')); 792 unittest.expect(o.failureDetails, unittest.equals('foo'));
772 unittest.expect(o.failureReason, unittest.equals('foo')); 793 unittest.expect(o.failureReason, unittest.equals('foo'));
773 unittest.expect(o.productId, unittest.equals('foo')); 794 unittest.expect(o.productId, unittest.equals('foo'));
774 unittest.expect(o.userId, unittest.equals('foo')); 795 unittest.expect(o.userId, unittest.equals('foo'));
775 } 796 }
776 buildCounterInstallFailureEvent--; 797 buildCounterInstallFailureEvent--;
777 } 798 }
778 799
779 buildUnnamed2118() { 800 buildUnnamed2152() {
780 var o = new core.List<api.Install>(); 801 var o = new core.List<api.Install>();
781 o.add(buildInstall()); 802 o.add(buildInstall());
782 o.add(buildInstall()); 803 o.add(buildInstall());
783 return o; 804 return o;
784 } 805 }
785 806
786 checkUnnamed2118(core.List<api.Install> o) { 807 checkUnnamed2152(core.List<api.Install> o) {
787 unittest.expect(o, unittest.hasLength(2)); 808 unittest.expect(o, unittest.hasLength(2));
788 checkInstall(o[0]); 809 checkInstall(o[0]);
789 checkInstall(o[1]); 810 checkInstall(o[1]);
790 } 811 }
791 812
792 core.int buildCounterInstallsListResponse = 0; 813 core.int buildCounterInstallsListResponse = 0;
793 buildInstallsListResponse() { 814 buildInstallsListResponse() {
794 var o = new api.InstallsListResponse(); 815 var o = new api.InstallsListResponse();
795 buildCounterInstallsListResponse++; 816 buildCounterInstallsListResponse++;
796 if (buildCounterInstallsListResponse < 3) { 817 if (buildCounterInstallsListResponse < 3) {
797 o.install = buildUnnamed2118(); 818 o.install = buildUnnamed2152();
798 o.kind = "foo"; 819 o.kind = "foo";
799 } 820 }
800 buildCounterInstallsListResponse--; 821 buildCounterInstallsListResponse--;
801 return o; 822 return o;
802 } 823 }
803 824
804 checkInstallsListResponse(api.InstallsListResponse o) { 825 checkInstallsListResponse(api.InstallsListResponse o) {
805 buildCounterInstallsListResponse++; 826 buildCounterInstallsListResponse++;
806 if (buildCounterInstallsListResponse < 3) { 827 if (buildCounterInstallsListResponse < 3) {
807 checkUnnamed2118(o.install); 828 checkUnnamed2152(o.install);
808 unittest.expect(o.kind, unittest.equals('foo')); 829 unittest.expect(o.kind, unittest.equals('foo'));
809 } 830 }
810 buildCounterInstallsListResponse--; 831 buildCounterInstallsListResponse--;
811 } 832 }
812 833
813 core.int buildCounterLocalizedText = 0; 834 core.int buildCounterLocalizedText = 0;
814 buildLocalizedText() { 835 buildLocalizedText() {
815 var o = new api.LocalizedText(); 836 var o = new api.LocalizedText();
816 buildCounterLocalizedText++; 837 buildCounterLocalizedText++;
817 if (buildCounterLocalizedText < 3) { 838 if (buildCounterLocalizedText < 3) {
818 o.locale = "foo"; 839 o.locale = "foo";
819 o.text = "foo"; 840 o.text = "foo";
820 } 841 }
821 buildCounterLocalizedText--; 842 buildCounterLocalizedText--;
822 return o; 843 return o;
823 } 844 }
824 845
825 checkLocalizedText(api.LocalizedText o) { 846 checkLocalizedText(api.LocalizedText o) {
826 buildCounterLocalizedText++; 847 buildCounterLocalizedText++;
827 if (buildCounterLocalizedText < 3) { 848 if (buildCounterLocalizedText < 3) {
828 unittest.expect(o.locale, unittest.equals('foo')); 849 unittest.expect(o.locale, unittest.equals('foo'));
829 unittest.expect(o.text, unittest.equals('foo')); 850 unittest.expect(o.text, unittest.equals('foo'));
830 } 851 }
831 buildCounterLocalizedText--; 852 buildCounterLocalizedText--;
832 } 853 }
833 854
834 buildUnnamed2119() { 855 buildUnnamed2153() {
835 var o = new core.List<api.ManagedProperty>(); 856 var o = new core.List<api.ManagedProperty>();
836 o.add(buildManagedProperty()); 857 o.add(buildManagedProperty());
837 o.add(buildManagedProperty()); 858 o.add(buildManagedProperty());
838 return o; 859 return o;
839 } 860 }
840 861
841 checkUnnamed2119(core.List<api.ManagedProperty> o) { 862 checkUnnamed2153(core.List<api.ManagedProperty> o) {
842 unittest.expect(o, unittest.hasLength(2)); 863 unittest.expect(o, unittest.hasLength(2));
843 checkManagedProperty(o[0]); 864 checkManagedProperty(o[0]);
844 checkManagedProperty(o[1]); 865 checkManagedProperty(o[1]);
845 } 866 }
846 867
847 core.int buildCounterManagedConfiguration = 0; 868 core.int buildCounterManagedConfiguration = 0;
848 buildManagedConfiguration() { 869 buildManagedConfiguration() {
849 var o = new api.ManagedConfiguration(); 870 var o = new api.ManagedConfiguration();
850 buildCounterManagedConfiguration++; 871 buildCounterManagedConfiguration++;
851 if (buildCounterManagedConfiguration < 3) { 872 if (buildCounterManagedConfiguration < 3) {
852 o.kind = "foo"; 873 o.kind = "foo";
853 o.managedProperty = buildUnnamed2119(); 874 o.managedProperty = buildUnnamed2153();
854 o.productId = "foo"; 875 o.productId = "foo";
855 } 876 }
856 buildCounterManagedConfiguration--; 877 buildCounterManagedConfiguration--;
857 return o; 878 return o;
858 } 879 }
859 880
860 checkManagedConfiguration(api.ManagedConfiguration o) { 881 checkManagedConfiguration(api.ManagedConfiguration o) {
861 buildCounterManagedConfiguration++; 882 buildCounterManagedConfiguration++;
862 if (buildCounterManagedConfiguration < 3) { 883 if (buildCounterManagedConfiguration < 3) {
863 unittest.expect(o.kind, unittest.equals('foo')); 884 unittest.expect(o.kind, unittest.equals('foo'));
864 checkUnnamed2119(o.managedProperty); 885 checkUnnamed2153(o.managedProperty);
865 unittest.expect(o.productId, unittest.equals('foo')); 886 unittest.expect(o.productId, unittest.equals('foo'));
866 } 887 }
867 buildCounterManagedConfiguration--; 888 buildCounterManagedConfiguration--;
868 } 889 }
869 890
870 buildUnnamed2120() { 891 buildUnnamed2154() {
871 var o = new core.List<api.ManagedConfiguration>(); 892 var o = new core.List<api.ManagedConfiguration>();
872 o.add(buildManagedConfiguration()); 893 o.add(buildManagedConfiguration());
873 o.add(buildManagedConfiguration()); 894 o.add(buildManagedConfiguration());
874 return o; 895 return o;
875 } 896 }
876 897
877 checkUnnamed2120(core.List<api.ManagedConfiguration> o) { 898 checkUnnamed2154(core.List<api.ManagedConfiguration> o) {
878 unittest.expect(o, unittest.hasLength(2)); 899 unittest.expect(o, unittest.hasLength(2));
879 checkManagedConfiguration(o[0]); 900 checkManagedConfiguration(o[0]);
880 checkManagedConfiguration(o[1]); 901 checkManagedConfiguration(o[1]);
881 } 902 }
882 903
883 core.int buildCounterManagedConfigurationsForDeviceListResponse = 0; 904 core.int buildCounterManagedConfigurationsForDeviceListResponse = 0;
884 buildManagedConfigurationsForDeviceListResponse() { 905 buildManagedConfigurationsForDeviceListResponse() {
885 var o = new api.ManagedConfigurationsForDeviceListResponse(); 906 var o = new api.ManagedConfigurationsForDeviceListResponse();
886 buildCounterManagedConfigurationsForDeviceListResponse++; 907 buildCounterManagedConfigurationsForDeviceListResponse++;
887 if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { 908 if (buildCounterManagedConfigurationsForDeviceListResponse < 3) {
888 o.kind = "foo"; 909 o.kind = "foo";
889 o.managedConfigurationForDevice = buildUnnamed2120(); 910 o.managedConfigurationForDevice = buildUnnamed2154();
890 } 911 }
891 buildCounterManagedConfigurationsForDeviceListResponse--; 912 buildCounterManagedConfigurationsForDeviceListResponse--;
892 return o; 913 return o;
893 } 914 }
894 915
895 checkManagedConfigurationsForDeviceListResponse(api.ManagedConfigurationsForDevi ceListResponse o) { 916 checkManagedConfigurationsForDeviceListResponse(api.ManagedConfigurationsForDevi ceListResponse o) {
896 buildCounterManagedConfigurationsForDeviceListResponse++; 917 buildCounterManagedConfigurationsForDeviceListResponse++;
897 if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { 918 if (buildCounterManagedConfigurationsForDeviceListResponse < 3) {
898 unittest.expect(o.kind, unittest.equals('foo')); 919 unittest.expect(o.kind, unittest.equals('foo'));
899 checkUnnamed2120(o.managedConfigurationForDevice); 920 checkUnnamed2154(o.managedConfigurationForDevice);
900 } 921 }
901 buildCounterManagedConfigurationsForDeviceListResponse--; 922 buildCounterManagedConfigurationsForDeviceListResponse--;
902 } 923 }
903 924
904 buildUnnamed2121() { 925 buildUnnamed2155() {
905 var o = new core.List<api.ManagedConfiguration>(); 926 var o = new core.List<api.ManagedConfiguration>();
906 o.add(buildManagedConfiguration()); 927 o.add(buildManagedConfiguration());
907 o.add(buildManagedConfiguration()); 928 o.add(buildManagedConfiguration());
908 return o; 929 return o;
909 } 930 }
910 931
911 checkUnnamed2121(core.List<api.ManagedConfiguration> o) { 932 checkUnnamed2155(core.List<api.ManagedConfiguration> o) {
912 unittest.expect(o, unittest.hasLength(2)); 933 unittest.expect(o, unittest.hasLength(2));
913 checkManagedConfiguration(o[0]); 934 checkManagedConfiguration(o[0]);
914 checkManagedConfiguration(o[1]); 935 checkManagedConfiguration(o[1]);
915 } 936 }
916 937
917 core.int buildCounterManagedConfigurationsForUserListResponse = 0; 938 core.int buildCounterManagedConfigurationsForUserListResponse = 0;
918 buildManagedConfigurationsForUserListResponse() { 939 buildManagedConfigurationsForUserListResponse() {
919 var o = new api.ManagedConfigurationsForUserListResponse(); 940 var o = new api.ManagedConfigurationsForUserListResponse();
920 buildCounterManagedConfigurationsForUserListResponse++; 941 buildCounterManagedConfigurationsForUserListResponse++;
921 if (buildCounterManagedConfigurationsForUserListResponse < 3) { 942 if (buildCounterManagedConfigurationsForUserListResponse < 3) {
922 o.kind = "foo"; 943 o.kind = "foo";
923 o.managedConfigurationForUser = buildUnnamed2121(); 944 o.managedConfigurationForUser = buildUnnamed2155();
924 } 945 }
925 buildCounterManagedConfigurationsForUserListResponse--; 946 buildCounterManagedConfigurationsForUserListResponse--;
926 return o; 947 return o;
927 } 948 }
928 949
929 checkManagedConfigurationsForUserListResponse(api.ManagedConfigurationsForUserLi stResponse o) { 950 checkManagedConfigurationsForUserListResponse(api.ManagedConfigurationsForUserLi stResponse o) {
930 buildCounterManagedConfigurationsForUserListResponse++; 951 buildCounterManagedConfigurationsForUserListResponse++;
931 if (buildCounterManagedConfigurationsForUserListResponse < 3) { 952 if (buildCounterManagedConfigurationsForUserListResponse < 3) {
932 unittest.expect(o.kind, unittest.equals('foo')); 953 unittest.expect(o.kind, unittest.equals('foo'));
933 checkUnnamed2121(o.managedConfigurationForUser); 954 checkUnnamed2155(o.managedConfigurationForUser);
934 } 955 }
935 buildCounterManagedConfigurationsForUserListResponse--; 956 buildCounterManagedConfigurationsForUserListResponse--;
936 } 957 }
937 958
938 buildUnnamed2122() { 959 buildUnnamed2156() {
939 var o = new core.List<api.ManagedPropertyBundle>(); 960 var o = new core.List<api.ManagedPropertyBundle>();
940 o.add(buildManagedPropertyBundle()); 961 o.add(buildManagedPropertyBundle());
941 o.add(buildManagedPropertyBundle()); 962 o.add(buildManagedPropertyBundle());
942 return o; 963 return o;
943 } 964 }
944 965
945 checkUnnamed2122(core.List<api.ManagedPropertyBundle> o) { 966 checkUnnamed2156(core.List<api.ManagedPropertyBundle> o) {
946 unittest.expect(o, unittest.hasLength(2)); 967 unittest.expect(o, unittest.hasLength(2));
947 checkManagedPropertyBundle(o[0]); 968 checkManagedPropertyBundle(o[0]);
948 checkManagedPropertyBundle(o[1]); 969 checkManagedPropertyBundle(o[1]);
949 } 970 }
950 971
951 buildUnnamed2123() { 972 buildUnnamed2157() {
952 var o = new core.List<core.String>(); 973 var o = new core.List<core.String>();
953 o.add("foo"); 974 o.add("foo");
954 o.add("foo"); 975 o.add("foo");
955 return o; 976 return o;
956 } 977 }
957 978
958 checkUnnamed2123(core.List<core.String> o) { 979 checkUnnamed2157(core.List<core.String> o) {
959 unittest.expect(o, unittest.hasLength(2)); 980 unittest.expect(o, unittest.hasLength(2));
960 unittest.expect(o[0], unittest.equals('foo')); 981 unittest.expect(o[0], unittest.equals('foo'));
961 unittest.expect(o[1], unittest.equals('foo')); 982 unittest.expect(o[1], unittest.equals('foo'));
962 } 983 }
963 984
964 core.int buildCounterManagedProperty = 0; 985 core.int buildCounterManagedProperty = 0;
965 buildManagedProperty() { 986 buildManagedProperty() {
966 var o = new api.ManagedProperty(); 987 var o = new api.ManagedProperty();
967 buildCounterManagedProperty++; 988 buildCounterManagedProperty++;
968 if (buildCounterManagedProperty < 3) { 989 if (buildCounterManagedProperty < 3) {
969 o.key = "foo"; 990 o.key = "foo";
970 o.valueBool = true; 991 o.valueBool = true;
971 o.valueBundle = buildManagedPropertyBundle(); 992 o.valueBundle = buildManagedPropertyBundle();
972 o.valueBundleArray = buildUnnamed2122(); 993 o.valueBundleArray = buildUnnamed2156();
973 o.valueInteger = 42; 994 o.valueInteger = 42;
974 o.valueString = "foo"; 995 o.valueString = "foo";
975 o.valueStringArray = buildUnnamed2123(); 996 o.valueStringArray = buildUnnamed2157();
976 } 997 }
977 buildCounterManagedProperty--; 998 buildCounterManagedProperty--;
978 return o; 999 return o;
979 } 1000 }
980 1001
981 checkManagedProperty(api.ManagedProperty o) { 1002 checkManagedProperty(api.ManagedProperty o) {
982 buildCounterManagedProperty++; 1003 buildCounterManagedProperty++;
983 if (buildCounterManagedProperty < 3) { 1004 if (buildCounterManagedProperty < 3) {
984 unittest.expect(o.key, unittest.equals('foo')); 1005 unittest.expect(o.key, unittest.equals('foo'));
985 unittest.expect(o.valueBool, unittest.isTrue); 1006 unittest.expect(o.valueBool, unittest.isTrue);
986 checkManagedPropertyBundle(o.valueBundle); 1007 checkManagedPropertyBundle(o.valueBundle);
987 checkUnnamed2122(o.valueBundleArray); 1008 checkUnnamed2156(o.valueBundleArray);
988 unittest.expect(o.valueInteger, unittest.equals(42)); 1009 unittest.expect(o.valueInteger, unittest.equals(42));
989 unittest.expect(o.valueString, unittest.equals('foo')); 1010 unittest.expect(o.valueString, unittest.equals('foo'));
990 checkUnnamed2123(o.valueStringArray); 1011 checkUnnamed2157(o.valueStringArray);
991 } 1012 }
992 buildCounterManagedProperty--; 1013 buildCounterManagedProperty--;
993 } 1014 }
994 1015
995 buildUnnamed2124() { 1016 buildUnnamed2158() {
996 var o = new core.List<api.ManagedProperty>(); 1017 var o = new core.List<api.ManagedProperty>();
997 o.add(buildManagedProperty()); 1018 o.add(buildManagedProperty());
998 o.add(buildManagedProperty()); 1019 o.add(buildManagedProperty());
999 return o; 1020 return o;
1000 } 1021 }
1001 1022
1002 checkUnnamed2124(core.List<api.ManagedProperty> o) { 1023 checkUnnamed2158(core.List<api.ManagedProperty> o) {
1003 unittest.expect(o, unittest.hasLength(2)); 1024 unittest.expect(o, unittest.hasLength(2));
1004 checkManagedProperty(o[0]); 1025 checkManagedProperty(o[0]);
1005 checkManagedProperty(o[1]); 1026 checkManagedProperty(o[1]);
1006 } 1027 }
1007 1028
1008 core.int buildCounterManagedPropertyBundle = 0; 1029 core.int buildCounterManagedPropertyBundle = 0;
1009 buildManagedPropertyBundle() { 1030 buildManagedPropertyBundle() {
1010 var o = new api.ManagedPropertyBundle(); 1031 var o = new api.ManagedPropertyBundle();
1011 buildCounterManagedPropertyBundle++; 1032 buildCounterManagedPropertyBundle++;
1012 if (buildCounterManagedPropertyBundle < 3) { 1033 if (buildCounterManagedPropertyBundle < 3) {
1013 o.managedProperty = buildUnnamed2124(); 1034 o.managedProperty = buildUnnamed2158();
1014 } 1035 }
1015 buildCounterManagedPropertyBundle--; 1036 buildCounterManagedPropertyBundle--;
1016 return o; 1037 return o;
1017 } 1038 }
1018 1039
1019 checkManagedPropertyBundle(api.ManagedPropertyBundle o) { 1040 checkManagedPropertyBundle(api.ManagedPropertyBundle o) {
1020 buildCounterManagedPropertyBundle++; 1041 buildCounterManagedPropertyBundle++;
1021 if (buildCounterManagedPropertyBundle < 3) { 1042 if (buildCounterManagedPropertyBundle < 3) {
1022 checkUnnamed2124(o.managedProperty); 1043 checkUnnamed2158(o.managedProperty);
1023 } 1044 }
1024 buildCounterManagedPropertyBundle--; 1045 buildCounterManagedPropertyBundle--;
1025 } 1046 }
1026 1047
1027 core.int buildCounterNewDeviceEvent = 0; 1048 core.int buildCounterNewDeviceEvent = 0;
1028 buildNewDeviceEvent() { 1049 buildNewDeviceEvent() {
1029 var o = new api.NewDeviceEvent(); 1050 var o = new api.NewDeviceEvent();
1030 buildCounterNewDeviceEvent++; 1051 buildCounterNewDeviceEvent++;
1031 if (buildCounterNewDeviceEvent < 3) { 1052 if (buildCounterNewDeviceEvent < 3) {
1032 o.deviceId = "foo"; 1053 o.deviceId = "foo";
1033 o.managementType = "foo"; 1054 o.managementType = "foo";
1034 o.userId = "foo"; 1055 o.userId = "foo";
1035 } 1056 }
1036 buildCounterNewDeviceEvent--; 1057 buildCounterNewDeviceEvent--;
1037 return o; 1058 return o;
1038 } 1059 }
1039 1060
1040 checkNewDeviceEvent(api.NewDeviceEvent o) { 1061 checkNewDeviceEvent(api.NewDeviceEvent o) {
1041 buildCounterNewDeviceEvent++; 1062 buildCounterNewDeviceEvent++;
1042 if (buildCounterNewDeviceEvent < 3) { 1063 if (buildCounterNewDeviceEvent < 3) {
1043 unittest.expect(o.deviceId, unittest.equals('foo')); 1064 unittest.expect(o.deviceId, unittest.equals('foo'));
1044 unittest.expect(o.managementType, unittest.equals('foo')); 1065 unittest.expect(o.managementType, unittest.equals('foo'));
1045 unittest.expect(o.userId, unittest.equals('foo')); 1066 unittest.expect(o.userId, unittest.equals('foo'));
1046 } 1067 }
1047 buildCounterNewDeviceEvent--; 1068 buildCounterNewDeviceEvent--;
1048 } 1069 }
1049 1070
1050 buildUnnamed2125() { 1071 buildUnnamed2159() {
1051 var o = new core.List<core.String>(); 1072 var o = new core.List<core.String>();
1052 o.add("foo"); 1073 o.add("foo");
1053 o.add("foo"); 1074 o.add("foo");
1054 return o; 1075 return o;
1055 } 1076 }
1056 1077
1057 checkUnnamed2125(core.List<core.String> o) { 1078 checkUnnamed2159(core.List<core.String> o) {
1058 unittest.expect(o, unittest.hasLength(2)); 1079 unittest.expect(o, unittest.hasLength(2));
1059 unittest.expect(o[0], unittest.equals('foo')); 1080 unittest.expect(o[0], unittest.equals('foo'));
1060 unittest.expect(o[1], unittest.equals('foo')); 1081 unittest.expect(o[1], unittest.equals('foo'));
1061 } 1082 }
1062 1083
1063 buildUnnamed2126() { 1084 buildUnnamed2160() {
1064 var o = new core.List<core.String>(); 1085 var o = new core.List<core.String>();
1065 o.add("foo"); 1086 o.add("foo");
1066 o.add("foo"); 1087 o.add("foo");
1067 return o; 1088 return o;
1068 } 1089 }
1069 1090
1070 checkUnnamed2126(core.List<core.String> o) { 1091 checkUnnamed2160(core.List<core.String> o) {
1071 unittest.expect(o, unittest.hasLength(2)); 1092 unittest.expect(o, unittest.hasLength(2));
1072 unittest.expect(o[0], unittest.equals('foo')); 1093 unittest.expect(o[0], unittest.equals('foo'));
1073 unittest.expect(o[1], unittest.equals('foo')); 1094 unittest.expect(o[1], unittest.equals('foo'));
1074 } 1095 }
1075 1096
1076 core.int buildCounterNewPermissionsEvent = 0; 1097 core.int buildCounterNewPermissionsEvent = 0;
1077 buildNewPermissionsEvent() { 1098 buildNewPermissionsEvent() {
1078 var o = new api.NewPermissionsEvent(); 1099 var o = new api.NewPermissionsEvent();
1079 buildCounterNewPermissionsEvent++; 1100 buildCounterNewPermissionsEvent++;
1080 if (buildCounterNewPermissionsEvent < 3) { 1101 if (buildCounterNewPermissionsEvent < 3) {
1081 o.approvedPermissions = buildUnnamed2125(); 1102 o.approvedPermissions = buildUnnamed2159();
1082 o.productId = "foo"; 1103 o.productId = "foo";
1083 o.requestedPermissions = buildUnnamed2126(); 1104 o.requestedPermissions = buildUnnamed2160();
1084 } 1105 }
1085 buildCounterNewPermissionsEvent--; 1106 buildCounterNewPermissionsEvent--;
1086 return o; 1107 return o;
1087 } 1108 }
1088 1109
1089 checkNewPermissionsEvent(api.NewPermissionsEvent o) { 1110 checkNewPermissionsEvent(api.NewPermissionsEvent o) {
1090 buildCounterNewPermissionsEvent++; 1111 buildCounterNewPermissionsEvent++;
1091 if (buildCounterNewPermissionsEvent < 3) { 1112 if (buildCounterNewPermissionsEvent < 3) {
1092 checkUnnamed2125(o.approvedPermissions); 1113 checkUnnamed2159(o.approvedPermissions);
1093 unittest.expect(o.productId, unittest.equals('foo')); 1114 unittest.expect(o.productId, unittest.equals('foo'));
1094 checkUnnamed2126(o.requestedPermissions); 1115 checkUnnamed2160(o.requestedPermissions);
1095 } 1116 }
1096 buildCounterNewPermissionsEvent--; 1117 buildCounterNewPermissionsEvent--;
1097 } 1118 }
1098 1119
1099 core.int buildCounterNotification = 0; 1120 core.int buildCounterNotification = 0;
1100 buildNotification() { 1121 buildNotification() {
1101 var o = new api.Notification(); 1122 var o = new api.Notification();
1102 buildCounterNotification++; 1123 buildCounterNotification++;
1103 if (buildCounterNotification < 3) { 1124 if (buildCounterNotification < 3) {
1104 o.appRestrictionsSchemaChangeEvent = buildAppRestrictionsSchemaChangeEvent() ; 1125 o.appRestrictionsSchemaChangeEvent = buildAppRestrictionsSchemaChangeEvent() ;
(...skipping 21 matching lines...) Expand all
1126 checkNewDeviceEvent(o.newDeviceEvent); 1147 checkNewDeviceEvent(o.newDeviceEvent);
1127 checkNewPermissionsEvent(o.newPermissionsEvent); 1148 checkNewPermissionsEvent(o.newPermissionsEvent);
1128 unittest.expect(o.notificationType, unittest.equals('foo')); 1149 unittest.expect(o.notificationType, unittest.equals('foo'));
1129 checkProductApprovalEvent(o.productApprovalEvent); 1150 checkProductApprovalEvent(o.productApprovalEvent);
1130 checkProductAvailabilityChangeEvent(o.productAvailabilityChangeEvent); 1151 checkProductAvailabilityChangeEvent(o.productAvailabilityChangeEvent);
1131 unittest.expect(o.timestampMillis, unittest.equals('foo')); 1152 unittest.expect(o.timestampMillis, unittest.equals('foo'));
1132 } 1153 }
1133 buildCounterNotification--; 1154 buildCounterNotification--;
1134 } 1155 }
1135 1156
1136 buildUnnamed2127() { 1157 buildUnnamed2161() {
1137 var o = new core.List<api.Notification>(); 1158 var o = new core.List<api.Notification>();
1138 o.add(buildNotification()); 1159 o.add(buildNotification());
1139 o.add(buildNotification()); 1160 o.add(buildNotification());
1140 return o; 1161 return o;
1141 } 1162 }
1142 1163
1143 checkUnnamed2127(core.List<api.Notification> o) { 1164 checkUnnamed2161(core.List<api.Notification> o) {
1144 unittest.expect(o, unittest.hasLength(2)); 1165 unittest.expect(o, unittest.hasLength(2));
1145 checkNotification(o[0]); 1166 checkNotification(o[0]);
1146 checkNotification(o[1]); 1167 checkNotification(o[1]);
1147 } 1168 }
1148 1169
1149 core.int buildCounterNotificationSet = 0; 1170 core.int buildCounterNotificationSet = 0;
1150 buildNotificationSet() { 1171 buildNotificationSet() {
1151 var o = new api.NotificationSet(); 1172 var o = new api.NotificationSet();
1152 buildCounterNotificationSet++; 1173 buildCounterNotificationSet++;
1153 if (buildCounterNotificationSet < 3) { 1174 if (buildCounterNotificationSet < 3) {
1154 o.kind = "foo"; 1175 o.kind = "foo";
1155 o.notification = buildUnnamed2127(); 1176 o.notification = buildUnnamed2161();
1156 o.notificationSetId = "foo"; 1177 o.notificationSetId = "foo";
1157 } 1178 }
1158 buildCounterNotificationSet--; 1179 buildCounterNotificationSet--;
1159 return o; 1180 return o;
1160 } 1181 }
1161 1182
1162 checkNotificationSet(api.NotificationSet o) { 1183 checkNotificationSet(api.NotificationSet o) {
1163 buildCounterNotificationSet++; 1184 buildCounterNotificationSet++;
1164 if (buildCounterNotificationSet < 3) { 1185 if (buildCounterNotificationSet < 3) {
1165 unittest.expect(o.kind, unittest.equals('foo')); 1186 unittest.expect(o.kind, unittest.equals('foo'));
1166 checkUnnamed2127(o.notification); 1187 checkUnnamed2161(o.notification);
1167 unittest.expect(o.notificationSetId, unittest.equals('foo')); 1188 unittest.expect(o.notificationSetId, unittest.equals('foo'));
1168 } 1189 }
1169 buildCounterNotificationSet--; 1190 buildCounterNotificationSet--;
1170 } 1191 }
1171 1192
1172 core.int buildCounterPageInfo = 0; 1193 core.int buildCounterPageInfo = 0;
1173 buildPageInfo() { 1194 buildPageInfo() {
1174 var o = new api.PageInfo(); 1195 var o = new api.PageInfo();
1175 buildCounterPageInfo++; 1196 buildCounterPageInfo++;
1176 if (buildCounterPageInfo < 3) { 1197 if (buildCounterPageInfo < 3) {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 buildCounterPermission++; 1231 buildCounterPermission++;
1211 if (buildCounterPermission < 3) { 1232 if (buildCounterPermission < 3) {
1212 unittest.expect(o.description, unittest.equals('foo')); 1233 unittest.expect(o.description, unittest.equals('foo'));
1213 unittest.expect(o.kind, unittest.equals('foo')); 1234 unittest.expect(o.kind, unittest.equals('foo'));
1214 unittest.expect(o.name, unittest.equals('foo')); 1235 unittest.expect(o.name, unittest.equals('foo'));
1215 unittest.expect(o.permissionId, unittest.equals('foo')); 1236 unittest.expect(o.permissionId, unittest.equals('foo'));
1216 } 1237 }
1217 buildCounterPermission--; 1238 buildCounterPermission--;
1218 } 1239 }
1219 1240
1220 buildUnnamed2128() { 1241 buildUnnamed2162() {
1221 var o = new core.List<api.AppVersion>(); 1242 var o = new core.List<api.AppVersion>();
1222 o.add(buildAppVersion()); 1243 o.add(buildAppVersion());
1223 o.add(buildAppVersion()); 1244 o.add(buildAppVersion());
1224 return o; 1245 return o;
1225 } 1246 }
1226 1247
1227 checkUnnamed2128(core.List<api.AppVersion> o) { 1248 checkUnnamed2162(core.List<api.AppVersion> o) {
1228 unittest.expect(o, unittest.hasLength(2)); 1249 unittest.expect(o, unittest.hasLength(2));
1229 checkAppVersion(o[0]); 1250 checkAppVersion(o[0]);
1230 checkAppVersion(o[1]); 1251 checkAppVersion(o[1]);
1231 } 1252 }
1232 1253
1233 core.int buildCounterProduct = 0; 1254 core.int buildCounterProduct = 0;
1234 buildProduct() { 1255 buildProduct() {
1235 var o = new api.Product(); 1256 var o = new api.Product();
1236 buildCounterProduct++; 1257 buildCounterProduct++;
1237 if (buildCounterProduct < 3) { 1258 if (buildCounterProduct < 3) {
1238 o.appVersion = buildUnnamed2128(); 1259 o.appVersion = buildUnnamed2162();
1239 o.authorName = "foo"; 1260 o.authorName = "foo";
1240 o.detailsUrl = "foo"; 1261 o.detailsUrl = "foo";
1241 o.distributionChannel = "foo"; 1262 o.distributionChannel = "foo";
1242 o.iconUrl = "foo"; 1263 o.iconUrl = "foo";
1243 o.kind = "foo"; 1264 o.kind = "foo";
1244 o.productId = "foo"; 1265 o.productId = "foo";
1245 o.productPricing = "foo"; 1266 o.productPricing = "foo";
1246 o.requiresContainerApp = true; 1267 o.requiresContainerApp = true;
1247 o.smallIconUrl = "foo"; 1268 o.smallIconUrl = "foo";
1248 o.title = "foo"; 1269 o.title = "foo";
1249 o.workDetailsUrl = "foo"; 1270 o.workDetailsUrl = "foo";
1250 } 1271 }
1251 buildCounterProduct--; 1272 buildCounterProduct--;
1252 return o; 1273 return o;
1253 } 1274 }
1254 1275
1255 checkProduct(api.Product o) { 1276 checkProduct(api.Product o) {
1256 buildCounterProduct++; 1277 buildCounterProduct++;
1257 if (buildCounterProduct < 3) { 1278 if (buildCounterProduct < 3) {
1258 checkUnnamed2128(o.appVersion); 1279 checkUnnamed2162(o.appVersion);
1259 unittest.expect(o.authorName, unittest.equals('foo')); 1280 unittest.expect(o.authorName, unittest.equals('foo'));
1260 unittest.expect(o.detailsUrl, unittest.equals('foo')); 1281 unittest.expect(o.detailsUrl, unittest.equals('foo'));
1261 unittest.expect(o.distributionChannel, unittest.equals('foo')); 1282 unittest.expect(o.distributionChannel, unittest.equals('foo'));
1262 unittest.expect(o.iconUrl, unittest.equals('foo')); 1283 unittest.expect(o.iconUrl, unittest.equals('foo'));
1263 unittest.expect(o.kind, unittest.equals('foo')); 1284 unittest.expect(o.kind, unittest.equals('foo'));
1264 unittest.expect(o.productId, unittest.equals('foo')); 1285 unittest.expect(o.productId, unittest.equals('foo'));
1265 unittest.expect(o.productPricing, unittest.equals('foo')); 1286 unittest.expect(o.productPricing, unittest.equals('foo'));
1266 unittest.expect(o.requiresContainerApp, unittest.isTrue); 1287 unittest.expect(o.requiresContainerApp, unittest.isTrue);
1267 unittest.expect(o.smallIconUrl, unittest.equals('foo')); 1288 unittest.expect(o.smallIconUrl, unittest.equals('foo'));
1268 unittest.expect(o.title, unittest.equals('foo')); 1289 unittest.expect(o.title, unittest.equals('foo'));
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
1327 1348
1328 checkProductPermission(api.ProductPermission o) { 1349 checkProductPermission(api.ProductPermission o) {
1329 buildCounterProductPermission++; 1350 buildCounterProductPermission++;
1330 if (buildCounterProductPermission < 3) { 1351 if (buildCounterProductPermission < 3) {
1331 unittest.expect(o.permissionId, unittest.equals('foo')); 1352 unittest.expect(o.permissionId, unittest.equals('foo'));
1332 unittest.expect(o.state, unittest.equals('foo')); 1353 unittest.expect(o.state, unittest.equals('foo'));
1333 } 1354 }
1334 buildCounterProductPermission--; 1355 buildCounterProductPermission--;
1335 } 1356 }
1336 1357
1337 buildUnnamed2129() { 1358 buildUnnamed2163() {
1338 var o = new core.List<api.ProductPermission>(); 1359 var o = new core.List<api.ProductPermission>();
1339 o.add(buildProductPermission()); 1360 o.add(buildProductPermission());
1340 o.add(buildProductPermission()); 1361 o.add(buildProductPermission());
1341 return o; 1362 return o;
1342 } 1363 }
1343 1364
1344 checkUnnamed2129(core.List<api.ProductPermission> o) { 1365 checkUnnamed2163(core.List<api.ProductPermission> o) {
1345 unittest.expect(o, unittest.hasLength(2)); 1366 unittest.expect(o, unittest.hasLength(2));
1346 checkProductPermission(o[0]); 1367 checkProductPermission(o[0]);
1347 checkProductPermission(o[1]); 1368 checkProductPermission(o[1]);
1348 } 1369 }
1349 1370
1350 core.int buildCounterProductPermissions = 0; 1371 core.int buildCounterProductPermissions = 0;
1351 buildProductPermissions() { 1372 buildProductPermissions() {
1352 var o = new api.ProductPermissions(); 1373 var o = new api.ProductPermissions();
1353 buildCounterProductPermissions++; 1374 buildCounterProductPermissions++;
1354 if (buildCounterProductPermissions < 3) { 1375 if (buildCounterProductPermissions < 3) {
1355 o.kind = "foo"; 1376 o.kind = "foo";
1356 o.permission = buildUnnamed2129(); 1377 o.permission = buildUnnamed2163();
1357 o.productId = "foo"; 1378 o.productId = "foo";
1358 } 1379 }
1359 buildCounterProductPermissions--; 1380 buildCounterProductPermissions--;
1360 return o; 1381 return o;
1361 } 1382 }
1362 1383
1363 checkProductPermissions(api.ProductPermissions o) { 1384 checkProductPermissions(api.ProductPermissions o) {
1364 buildCounterProductPermissions++; 1385 buildCounterProductPermissions++;
1365 if (buildCounterProductPermissions < 3) { 1386 if (buildCounterProductPermissions < 3) {
1366 unittest.expect(o.kind, unittest.equals('foo')); 1387 unittest.expect(o.kind, unittest.equals('foo'));
1367 checkUnnamed2129(o.permission); 1388 checkUnnamed2163(o.permission);
1368 unittest.expect(o.productId, unittest.equals('foo')); 1389 unittest.expect(o.productId, unittest.equals('foo'));
1369 } 1390 }
1370 buildCounterProductPermissions--; 1391 buildCounterProductPermissions--;
1371 } 1392 }
1372 1393
1373 buildUnnamed2130() { 1394 buildUnnamed2164() {
1374 var o = new core.List<core.String>(); 1395 var o = new core.List<core.String>();
1375 o.add("foo"); 1396 o.add("foo");
1376 o.add("foo"); 1397 o.add("foo");
1377 return o; 1398 return o;
1378 } 1399 }
1379 1400
1380 checkUnnamed2130(core.List<core.String> o) { 1401 checkUnnamed2164(core.List<core.String> o) {
1381 unittest.expect(o, unittest.hasLength(2)); 1402 unittest.expect(o, unittest.hasLength(2));
1382 unittest.expect(o[0], unittest.equals('foo')); 1403 unittest.expect(o[0], unittest.equals('foo'));
1383 unittest.expect(o[1], unittest.equals('foo')); 1404 unittest.expect(o[1], unittest.equals('foo'));
1384 } 1405 }
1385 1406
1386 core.int buildCounterProductSet = 0; 1407 core.int buildCounterProductSet = 0;
1387 buildProductSet() { 1408 buildProductSet() {
1388 var o = new api.ProductSet(); 1409 var o = new api.ProductSet();
1389 buildCounterProductSet++; 1410 buildCounterProductSet++;
1390 if (buildCounterProductSet < 3) { 1411 if (buildCounterProductSet < 3) {
1391 o.kind = "foo"; 1412 o.kind = "foo";
1392 o.productId = buildUnnamed2130(); 1413 o.productId = buildUnnamed2164();
1393 o.productSetBehavior = "foo"; 1414 o.productSetBehavior = "foo";
1394 } 1415 }
1395 buildCounterProductSet--; 1416 buildCounterProductSet--;
1396 return o; 1417 return o;
1397 } 1418 }
1398 1419
1399 checkProductSet(api.ProductSet o) { 1420 checkProductSet(api.ProductSet o) {
1400 buildCounterProductSet++; 1421 buildCounterProductSet++;
1401 if (buildCounterProductSet < 3) { 1422 if (buildCounterProductSet < 3) {
1402 unittest.expect(o.kind, unittest.equals('foo')); 1423 unittest.expect(o.kind, unittest.equals('foo'));
1403 checkUnnamed2130(o.productId); 1424 checkUnnamed2164(o.productId);
1404 unittest.expect(o.productSetBehavior, unittest.equals('foo')); 1425 unittest.expect(o.productSetBehavior, unittest.equals('foo'));
1405 } 1426 }
1406 buildCounterProductSet--; 1427 buildCounterProductSet--;
1407 } 1428 }
1408 1429
1409 core.int buildCounterProductsApproveRequest = 0; 1430 core.int buildCounterProductsApproveRequest = 0;
1410 buildProductsApproveRequest() { 1431 buildProductsApproveRequest() {
1411 var o = new api.ProductsApproveRequest(); 1432 var o = new api.ProductsApproveRequest();
1412 buildCounterProductsApproveRequest++; 1433 buildCounterProductsApproveRequest++;
1413 if (buildCounterProductsApproveRequest < 3) { 1434 if (buildCounterProductsApproveRequest < 3) {
(...skipping 25 matching lines...) Expand all
1439 } 1460 }
1440 1461
1441 checkProductsGenerateApprovalUrlResponse(api.ProductsGenerateApprovalUrlResponse o) { 1462 checkProductsGenerateApprovalUrlResponse(api.ProductsGenerateApprovalUrlResponse o) {
1442 buildCounterProductsGenerateApprovalUrlResponse++; 1463 buildCounterProductsGenerateApprovalUrlResponse++;
1443 if (buildCounterProductsGenerateApprovalUrlResponse < 3) { 1464 if (buildCounterProductsGenerateApprovalUrlResponse < 3) {
1444 unittest.expect(o.url, unittest.equals('foo')); 1465 unittest.expect(o.url, unittest.equals('foo'));
1445 } 1466 }
1446 buildCounterProductsGenerateApprovalUrlResponse--; 1467 buildCounterProductsGenerateApprovalUrlResponse--;
1447 } 1468 }
1448 1469
1449 buildUnnamed2131() { 1470 buildUnnamed2165() {
1450 var o = new core.List<api.Product>(); 1471 var o = new core.List<api.Product>();
1451 o.add(buildProduct()); 1472 o.add(buildProduct());
1452 o.add(buildProduct()); 1473 o.add(buildProduct());
1453 return o; 1474 return o;
1454 } 1475 }
1455 1476
1456 checkUnnamed2131(core.List<api.Product> o) { 1477 checkUnnamed2165(core.List<api.Product> o) {
1457 unittest.expect(o, unittest.hasLength(2)); 1478 unittest.expect(o, unittest.hasLength(2));
1458 checkProduct(o[0]); 1479 checkProduct(o[0]);
1459 checkProduct(o[1]); 1480 checkProduct(o[1]);
1460 } 1481 }
1461 1482
1462 core.int buildCounterProductsListResponse = 0; 1483 core.int buildCounterProductsListResponse = 0;
1463 buildProductsListResponse() { 1484 buildProductsListResponse() {
1464 var o = new api.ProductsListResponse(); 1485 var o = new api.ProductsListResponse();
1465 buildCounterProductsListResponse++; 1486 buildCounterProductsListResponse++;
1466 if (buildCounterProductsListResponse < 3) { 1487 if (buildCounterProductsListResponse < 3) {
1467 o.kind = "foo"; 1488 o.kind = "foo";
1468 o.pageInfo = buildPageInfo(); 1489 o.pageInfo = buildPageInfo();
1469 o.product = buildUnnamed2131(); 1490 o.product = buildUnnamed2165();
1470 o.tokenPagination = buildTokenPagination(); 1491 o.tokenPagination = buildTokenPagination();
1471 } 1492 }
1472 buildCounterProductsListResponse--; 1493 buildCounterProductsListResponse--;
1473 return o; 1494 return o;
1474 } 1495 }
1475 1496
1476 checkProductsListResponse(api.ProductsListResponse o) { 1497 checkProductsListResponse(api.ProductsListResponse o) {
1477 buildCounterProductsListResponse++; 1498 buildCounterProductsListResponse++;
1478 if (buildCounterProductsListResponse < 3) { 1499 if (buildCounterProductsListResponse < 3) {
1479 unittest.expect(o.kind, unittest.equals('foo')); 1500 unittest.expect(o.kind, unittest.equals('foo'));
1480 checkPageInfo(o.pageInfo); 1501 checkPageInfo(o.pageInfo);
1481 checkUnnamed2131(o.product); 1502 checkUnnamed2165(o.product);
1482 checkTokenPagination(o.tokenPagination); 1503 checkTokenPagination(o.tokenPagination);
1483 } 1504 }
1484 buildCounterProductsListResponse--; 1505 buildCounterProductsListResponse--;
1485 } 1506 }
1486 1507
1487 core.int buildCounterServiceAccount = 0; 1508 core.int buildCounterServiceAccount = 0;
1488 buildServiceAccount() { 1509 buildServiceAccount() {
1489 var o = new api.ServiceAccount(); 1510 var o = new api.ServiceAccount();
1490 buildCounterServiceAccount++; 1511 buildCounterServiceAccount++;
1491 if (buildCounterServiceAccount < 3) { 1512 if (buildCounterServiceAccount < 3) {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
1527 if (buildCounterServiceAccountKey < 3) { 1548 if (buildCounterServiceAccountKey < 3) {
1528 unittest.expect(o.data, unittest.equals('foo')); 1549 unittest.expect(o.data, unittest.equals('foo'));
1529 unittest.expect(o.id, unittest.equals('foo')); 1550 unittest.expect(o.id, unittest.equals('foo'));
1530 unittest.expect(o.kind, unittest.equals('foo')); 1551 unittest.expect(o.kind, unittest.equals('foo'));
1531 unittest.expect(o.publicData, unittest.equals('foo')); 1552 unittest.expect(o.publicData, unittest.equals('foo'));
1532 unittest.expect(o.type, unittest.equals('foo')); 1553 unittest.expect(o.type, unittest.equals('foo'));
1533 } 1554 }
1534 buildCounterServiceAccountKey--; 1555 buildCounterServiceAccountKey--;
1535 } 1556 }
1536 1557
1537 buildUnnamed2132() { 1558 buildUnnamed2166() {
1538 var o = new core.List<api.ServiceAccountKey>(); 1559 var o = new core.List<api.ServiceAccountKey>();
1539 o.add(buildServiceAccountKey()); 1560 o.add(buildServiceAccountKey());
1540 o.add(buildServiceAccountKey()); 1561 o.add(buildServiceAccountKey());
1541 return o; 1562 return o;
1542 } 1563 }
1543 1564
1544 checkUnnamed2132(core.List<api.ServiceAccountKey> o) { 1565 checkUnnamed2166(core.List<api.ServiceAccountKey> o) {
1545 unittest.expect(o, unittest.hasLength(2)); 1566 unittest.expect(o, unittest.hasLength(2));
1546 checkServiceAccountKey(o[0]); 1567 checkServiceAccountKey(o[0]);
1547 checkServiceAccountKey(o[1]); 1568 checkServiceAccountKey(o[1]);
1548 } 1569 }
1549 1570
1550 core.int buildCounterServiceAccountKeysListResponse = 0; 1571 core.int buildCounterServiceAccountKeysListResponse = 0;
1551 buildServiceAccountKeysListResponse() { 1572 buildServiceAccountKeysListResponse() {
1552 var o = new api.ServiceAccountKeysListResponse(); 1573 var o = new api.ServiceAccountKeysListResponse();
1553 buildCounterServiceAccountKeysListResponse++; 1574 buildCounterServiceAccountKeysListResponse++;
1554 if (buildCounterServiceAccountKeysListResponse < 3) { 1575 if (buildCounterServiceAccountKeysListResponse < 3) {
1555 o.serviceAccountKey = buildUnnamed2132(); 1576 o.serviceAccountKey = buildUnnamed2166();
1556 } 1577 }
1557 buildCounterServiceAccountKeysListResponse--; 1578 buildCounterServiceAccountKeysListResponse--;
1558 return o; 1579 return o;
1559 } 1580 }
1560 1581
1561 checkServiceAccountKeysListResponse(api.ServiceAccountKeysListResponse o) { 1582 checkServiceAccountKeysListResponse(api.ServiceAccountKeysListResponse o) {
1562 buildCounterServiceAccountKeysListResponse++; 1583 buildCounterServiceAccountKeysListResponse++;
1563 if (buildCounterServiceAccountKeysListResponse < 3) { 1584 if (buildCounterServiceAccountKeysListResponse < 3) {
1564 checkUnnamed2132(o.serviceAccountKey); 1585 checkUnnamed2166(o.serviceAccountKey);
1565 } 1586 }
1566 buildCounterServiceAccountKeysListResponse--; 1587 buildCounterServiceAccountKeysListResponse--;
1567 } 1588 }
1568 1589
1569 core.int buildCounterSignupInfo = 0; 1590 core.int buildCounterSignupInfo = 0;
1570 buildSignupInfo() { 1591 buildSignupInfo() {
1571 var o = new api.SignupInfo(); 1592 var o = new api.SignupInfo();
1572 buildCounterSignupInfo++; 1593 buildCounterSignupInfo++;
1573 if (buildCounterSignupInfo < 3) { 1594 if (buildCounterSignupInfo < 3) {
1574 o.completionToken = "foo"; 1595 o.completionToken = "foo";
1575 o.kind = "foo"; 1596 o.kind = "foo";
1576 o.url = "foo"; 1597 o.url = "foo";
1577 } 1598 }
1578 buildCounterSignupInfo--; 1599 buildCounterSignupInfo--;
1579 return o; 1600 return o;
1580 } 1601 }
1581 1602
1582 checkSignupInfo(api.SignupInfo o) { 1603 checkSignupInfo(api.SignupInfo o) {
1583 buildCounterSignupInfo++; 1604 buildCounterSignupInfo++;
1584 if (buildCounterSignupInfo < 3) { 1605 if (buildCounterSignupInfo < 3) {
1585 unittest.expect(o.completionToken, unittest.equals('foo')); 1606 unittest.expect(o.completionToken, unittest.equals('foo'));
1586 unittest.expect(o.kind, unittest.equals('foo')); 1607 unittest.expect(o.kind, unittest.equals('foo'));
1587 unittest.expect(o.url, unittest.equals('foo')); 1608 unittest.expect(o.url, unittest.equals('foo'));
1588 } 1609 }
1589 buildCounterSignupInfo--; 1610 buildCounterSignupInfo--;
1590 } 1611 }
1591 1612
1592 buildUnnamed2133() { 1613 buildUnnamed2167() {
1593 var o = new core.List<api.LocalizedText>(); 1614 var o = new core.List<api.LocalizedText>();
1594 o.add(buildLocalizedText()); 1615 o.add(buildLocalizedText());
1595 o.add(buildLocalizedText()); 1616 o.add(buildLocalizedText());
1596 return o; 1617 return o;
1597 } 1618 }
1598 1619
1599 checkUnnamed2133(core.List<api.LocalizedText> o) { 1620 checkUnnamed2167(core.List<api.LocalizedText> o) {
1600 unittest.expect(o, unittest.hasLength(2)); 1621 unittest.expect(o, unittest.hasLength(2));
1601 checkLocalizedText(o[0]); 1622 checkLocalizedText(o[0]);
1602 checkLocalizedText(o[1]); 1623 checkLocalizedText(o[1]);
1603 } 1624 }
1604 1625
1605 buildUnnamed2134() { 1626 buildUnnamed2168() {
1606 var o = new core.List<core.String>(); 1627 var o = new core.List<core.String>();
1607 o.add("foo"); 1628 o.add("foo");
1608 o.add("foo"); 1629 o.add("foo");
1609 return o; 1630 return o;
1610 } 1631 }
1611 1632
1612 checkUnnamed2134(core.List<core.String> o) { 1633 checkUnnamed2168(core.List<core.String> o) {
1613 unittest.expect(o, unittest.hasLength(2)); 1634 unittest.expect(o, unittest.hasLength(2));
1614 unittest.expect(o[0], unittest.equals('foo')); 1635 unittest.expect(o[0], unittest.equals('foo'));
1615 unittest.expect(o[1], unittest.equals('foo')); 1636 unittest.expect(o[1], unittest.equals('foo'));
1616 } 1637 }
1617 1638
1618 core.int buildCounterStoreCluster = 0; 1639 core.int buildCounterStoreCluster = 0;
1619 buildStoreCluster() { 1640 buildStoreCluster() {
1620 var o = new api.StoreCluster(); 1641 var o = new api.StoreCluster();
1621 buildCounterStoreCluster++; 1642 buildCounterStoreCluster++;
1622 if (buildCounterStoreCluster < 3) { 1643 if (buildCounterStoreCluster < 3) {
1623 o.id = "foo"; 1644 o.id = "foo";
1624 o.kind = "foo"; 1645 o.kind = "foo";
1625 o.name = buildUnnamed2133(); 1646 o.name = buildUnnamed2167();
1626 o.orderInPage = "foo"; 1647 o.orderInPage = "foo";
1627 o.productId = buildUnnamed2134(); 1648 o.productId = buildUnnamed2168();
1628 } 1649 }
1629 buildCounterStoreCluster--; 1650 buildCounterStoreCluster--;
1630 return o; 1651 return o;
1631 } 1652 }
1632 1653
1633 checkStoreCluster(api.StoreCluster o) { 1654 checkStoreCluster(api.StoreCluster o) {
1634 buildCounterStoreCluster++; 1655 buildCounterStoreCluster++;
1635 if (buildCounterStoreCluster < 3) { 1656 if (buildCounterStoreCluster < 3) {
1636 unittest.expect(o.id, unittest.equals('foo')); 1657 unittest.expect(o.id, unittest.equals('foo'));
1637 unittest.expect(o.kind, unittest.equals('foo')); 1658 unittest.expect(o.kind, unittest.equals('foo'));
1638 checkUnnamed2133(o.name); 1659 checkUnnamed2167(o.name);
1639 unittest.expect(o.orderInPage, unittest.equals('foo')); 1660 unittest.expect(o.orderInPage, unittest.equals('foo'));
1640 checkUnnamed2134(o.productId); 1661 checkUnnamed2168(o.productId);
1641 } 1662 }
1642 buildCounterStoreCluster--; 1663 buildCounterStoreCluster--;
1643 } 1664 }
1644 1665
1645 core.int buildCounterStoreLayout = 0; 1666 core.int buildCounterStoreLayout = 0;
1646 buildStoreLayout() { 1667 buildStoreLayout() {
1647 var o = new api.StoreLayout(); 1668 var o = new api.StoreLayout();
1648 buildCounterStoreLayout++; 1669 buildCounterStoreLayout++;
1649 if (buildCounterStoreLayout < 3) { 1670 if (buildCounterStoreLayout < 3) {
1650 o.homepageId = "foo"; 1671 o.homepageId = "foo";
1651 o.kind = "foo"; 1672 o.kind = "foo";
1652 o.storeLayoutType = "foo"; 1673 o.storeLayoutType = "foo";
1653 } 1674 }
1654 buildCounterStoreLayout--; 1675 buildCounterStoreLayout--;
1655 return o; 1676 return o;
1656 } 1677 }
1657 1678
1658 checkStoreLayout(api.StoreLayout o) { 1679 checkStoreLayout(api.StoreLayout o) {
1659 buildCounterStoreLayout++; 1680 buildCounterStoreLayout++;
1660 if (buildCounterStoreLayout < 3) { 1681 if (buildCounterStoreLayout < 3) {
1661 unittest.expect(o.homepageId, unittest.equals('foo')); 1682 unittest.expect(o.homepageId, unittest.equals('foo'));
1662 unittest.expect(o.kind, unittest.equals('foo')); 1683 unittest.expect(o.kind, unittest.equals('foo'));
1663 unittest.expect(o.storeLayoutType, unittest.equals('foo')); 1684 unittest.expect(o.storeLayoutType, unittest.equals('foo'));
1664 } 1685 }
1665 buildCounterStoreLayout--; 1686 buildCounterStoreLayout--;
1666 } 1687 }
1667 1688
1668 buildUnnamed2135() { 1689 buildUnnamed2169() {
1669 var o = new core.List<api.StoreCluster>(); 1690 var o = new core.List<api.StoreCluster>();
1670 o.add(buildStoreCluster()); 1691 o.add(buildStoreCluster());
1671 o.add(buildStoreCluster()); 1692 o.add(buildStoreCluster());
1672 return o; 1693 return o;
1673 } 1694 }
1674 1695
1675 checkUnnamed2135(core.List<api.StoreCluster> o) { 1696 checkUnnamed2169(core.List<api.StoreCluster> o) {
1676 unittest.expect(o, unittest.hasLength(2)); 1697 unittest.expect(o, unittest.hasLength(2));
1677 checkStoreCluster(o[0]); 1698 checkStoreCluster(o[0]);
1678 checkStoreCluster(o[1]); 1699 checkStoreCluster(o[1]);
1679 } 1700 }
1680 1701
1681 core.int buildCounterStoreLayoutClustersListResponse = 0; 1702 core.int buildCounterStoreLayoutClustersListResponse = 0;
1682 buildStoreLayoutClustersListResponse() { 1703 buildStoreLayoutClustersListResponse() {
1683 var o = new api.StoreLayoutClustersListResponse(); 1704 var o = new api.StoreLayoutClustersListResponse();
1684 buildCounterStoreLayoutClustersListResponse++; 1705 buildCounterStoreLayoutClustersListResponse++;
1685 if (buildCounterStoreLayoutClustersListResponse < 3) { 1706 if (buildCounterStoreLayoutClustersListResponse < 3) {
1686 o.cluster = buildUnnamed2135(); 1707 o.cluster = buildUnnamed2169();
1687 o.kind = "foo"; 1708 o.kind = "foo";
1688 } 1709 }
1689 buildCounterStoreLayoutClustersListResponse--; 1710 buildCounterStoreLayoutClustersListResponse--;
1690 return o; 1711 return o;
1691 } 1712 }
1692 1713
1693 checkStoreLayoutClustersListResponse(api.StoreLayoutClustersListResponse o) { 1714 checkStoreLayoutClustersListResponse(api.StoreLayoutClustersListResponse o) {
1694 buildCounterStoreLayoutClustersListResponse++; 1715 buildCounterStoreLayoutClustersListResponse++;
1695 if (buildCounterStoreLayoutClustersListResponse < 3) { 1716 if (buildCounterStoreLayoutClustersListResponse < 3) {
1696 checkUnnamed2135(o.cluster); 1717 checkUnnamed2169(o.cluster);
1697 unittest.expect(o.kind, unittest.equals('foo')); 1718 unittest.expect(o.kind, unittest.equals('foo'));
1698 } 1719 }
1699 buildCounterStoreLayoutClustersListResponse--; 1720 buildCounterStoreLayoutClustersListResponse--;
1700 } 1721 }
1701 1722
1702 buildUnnamed2136() { 1723 buildUnnamed2170() {
1703 var o = new core.List<api.StorePage>(); 1724 var o = new core.List<api.StorePage>();
1704 o.add(buildStorePage()); 1725 o.add(buildStorePage());
1705 o.add(buildStorePage()); 1726 o.add(buildStorePage());
1706 return o; 1727 return o;
1707 } 1728 }
1708 1729
1709 checkUnnamed2136(core.List<api.StorePage> o) { 1730 checkUnnamed2170(core.List<api.StorePage> o) {
1710 unittest.expect(o, unittest.hasLength(2)); 1731 unittest.expect(o, unittest.hasLength(2));
1711 checkStorePage(o[0]); 1732 checkStorePage(o[0]);
1712 checkStorePage(o[1]); 1733 checkStorePage(o[1]);
1713 } 1734 }
1714 1735
1715 core.int buildCounterStoreLayoutPagesListResponse = 0; 1736 core.int buildCounterStoreLayoutPagesListResponse = 0;
1716 buildStoreLayoutPagesListResponse() { 1737 buildStoreLayoutPagesListResponse() {
1717 var o = new api.StoreLayoutPagesListResponse(); 1738 var o = new api.StoreLayoutPagesListResponse();
1718 buildCounterStoreLayoutPagesListResponse++; 1739 buildCounterStoreLayoutPagesListResponse++;
1719 if (buildCounterStoreLayoutPagesListResponse < 3) { 1740 if (buildCounterStoreLayoutPagesListResponse < 3) {
1720 o.kind = "foo"; 1741 o.kind = "foo";
1721 o.page = buildUnnamed2136(); 1742 o.page = buildUnnamed2170();
1722 } 1743 }
1723 buildCounterStoreLayoutPagesListResponse--; 1744 buildCounterStoreLayoutPagesListResponse--;
1724 return o; 1745 return o;
1725 } 1746 }
1726 1747
1727 checkStoreLayoutPagesListResponse(api.StoreLayoutPagesListResponse o) { 1748 checkStoreLayoutPagesListResponse(api.StoreLayoutPagesListResponse o) {
1728 buildCounterStoreLayoutPagesListResponse++; 1749 buildCounterStoreLayoutPagesListResponse++;
1729 if (buildCounterStoreLayoutPagesListResponse < 3) { 1750 if (buildCounterStoreLayoutPagesListResponse < 3) {
1730 unittest.expect(o.kind, unittest.equals('foo')); 1751 unittest.expect(o.kind, unittest.equals('foo'));
1731 checkUnnamed2136(o.page); 1752 checkUnnamed2170(o.page);
1732 } 1753 }
1733 buildCounterStoreLayoutPagesListResponse--; 1754 buildCounterStoreLayoutPagesListResponse--;
1734 } 1755 }
1735 1756
1736 buildUnnamed2137() { 1757 buildUnnamed2171() {
1737 var o = new core.List<core.String>(); 1758 var o = new core.List<core.String>();
1738 o.add("foo"); 1759 o.add("foo");
1739 o.add("foo"); 1760 o.add("foo");
1740 return o; 1761 return o;
1741 } 1762 }
1742 1763
1743 checkUnnamed2137(core.List<core.String> o) { 1764 checkUnnamed2171(core.List<core.String> o) {
1744 unittest.expect(o, unittest.hasLength(2)); 1765 unittest.expect(o, unittest.hasLength(2));
1745 unittest.expect(o[0], unittest.equals('foo')); 1766 unittest.expect(o[0], unittest.equals('foo'));
1746 unittest.expect(o[1], unittest.equals('foo')); 1767 unittest.expect(o[1], unittest.equals('foo'));
1747 } 1768 }
1748 1769
1749 buildUnnamed2138() { 1770 buildUnnamed2172() {
1750 var o = new core.List<api.LocalizedText>(); 1771 var o = new core.List<api.LocalizedText>();
1751 o.add(buildLocalizedText()); 1772 o.add(buildLocalizedText());
1752 o.add(buildLocalizedText()); 1773 o.add(buildLocalizedText());
1753 return o; 1774 return o;
1754 } 1775 }
1755 1776
1756 checkUnnamed2138(core.List<api.LocalizedText> o) { 1777 checkUnnamed2172(core.List<api.LocalizedText> o) {
1757 unittest.expect(o, unittest.hasLength(2)); 1778 unittest.expect(o, unittest.hasLength(2));
1758 checkLocalizedText(o[0]); 1779 checkLocalizedText(o[0]);
1759 checkLocalizedText(o[1]); 1780 checkLocalizedText(o[1]);
1760 } 1781 }
1761 1782
1762 core.int buildCounterStorePage = 0; 1783 core.int buildCounterStorePage = 0;
1763 buildStorePage() { 1784 buildStorePage() {
1764 var o = new api.StorePage(); 1785 var o = new api.StorePage();
1765 buildCounterStorePage++; 1786 buildCounterStorePage++;
1766 if (buildCounterStorePage < 3) { 1787 if (buildCounterStorePage < 3) {
1767 o.id = "foo"; 1788 o.id = "foo";
1768 o.kind = "foo"; 1789 o.kind = "foo";
1769 o.link = buildUnnamed2137(); 1790 o.link = buildUnnamed2171();
1770 o.name = buildUnnamed2138(); 1791 o.name = buildUnnamed2172();
1771 } 1792 }
1772 buildCounterStorePage--; 1793 buildCounterStorePage--;
1773 return o; 1794 return o;
1774 } 1795 }
1775 1796
1776 checkStorePage(api.StorePage o) { 1797 checkStorePage(api.StorePage o) {
1777 buildCounterStorePage++; 1798 buildCounterStorePage++;
1778 if (buildCounterStorePage < 3) { 1799 if (buildCounterStorePage < 3) {
1779 unittest.expect(o.id, unittest.equals('foo')); 1800 unittest.expect(o.id, unittest.equals('foo'));
1780 unittest.expect(o.kind, unittest.equals('foo')); 1801 unittest.expect(o.kind, unittest.equals('foo'));
1781 checkUnnamed2137(o.link); 1802 checkUnnamed2171(o.link);
1782 checkUnnamed2138(o.name); 1803 checkUnnamed2172(o.name);
1783 } 1804 }
1784 buildCounterStorePage--; 1805 buildCounterStorePage--;
1785 } 1806 }
1786 1807
1787 core.int buildCounterTokenPagination = 0; 1808 core.int buildCounterTokenPagination = 0;
1788 buildTokenPagination() { 1809 buildTokenPagination() {
1789 var o = new api.TokenPagination(); 1810 var o = new api.TokenPagination();
1790 buildCounterTokenPagination++; 1811 buildCounterTokenPagination++;
1791 if (buildCounterTokenPagination < 3) { 1812 if (buildCounterTokenPagination < 3) {
1792 o.nextPageToken = "foo"; 1813 o.nextPageToken = "foo";
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
1852 checkUserToken(api.UserToken o) { 1873 checkUserToken(api.UserToken o) {
1853 buildCounterUserToken++; 1874 buildCounterUserToken++;
1854 if (buildCounterUserToken < 3) { 1875 if (buildCounterUserToken < 3) {
1855 unittest.expect(o.kind, unittest.equals('foo')); 1876 unittest.expect(o.kind, unittest.equals('foo'));
1856 unittest.expect(o.token, unittest.equals('foo')); 1877 unittest.expect(o.token, unittest.equals('foo'));
1857 unittest.expect(o.userId, unittest.equals('foo')); 1878 unittest.expect(o.userId, unittest.equals('foo'));
1858 } 1879 }
1859 buildCounterUserToken--; 1880 buildCounterUserToken--;
1860 } 1881 }
1861 1882
1862 buildUnnamed2139() { 1883 buildUnnamed2173() {
1863 var o = new core.List<api.User>(); 1884 var o = new core.List<api.User>();
1864 o.add(buildUser()); 1885 o.add(buildUser());
1865 o.add(buildUser()); 1886 o.add(buildUser());
1866 return o; 1887 return o;
1867 } 1888 }
1868 1889
1869 checkUnnamed2139(core.List<api.User> o) { 1890 checkUnnamed2173(core.List<api.User> o) {
1870 unittest.expect(o, unittest.hasLength(2)); 1891 unittest.expect(o, unittest.hasLength(2));
1871 checkUser(o[0]); 1892 checkUser(o[0]);
1872 checkUser(o[1]); 1893 checkUser(o[1]);
1873 } 1894 }
1874 1895
1875 core.int buildCounterUsersListResponse = 0; 1896 core.int buildCounterUsersListResponse = 0;
1876 buildUsersListResponse() { 1897 buildUsersListResponse() {
1877 var o = new api.UsersListResponse(); 1898 var o = new api.UsersListResponse();
1878 buildCounterUsersListResponse++; 1899 buildCounterUsersListResponse++;
1879 if (buildCounterUsersListResponse < 3) { 1900 if (buildCounterUsersListResponse < 3) {
1880 o.kind = "foo"; 1901 o.kind = "foo";
1881 o.user = buildUnnamed2139(); 1902 o.user = buildUnnamed2173();
1882 } 1903 }
1883 buildCounterUsersListResponse--; 1904 buildCounterUsersListResponse--;
1884 return o; 1905 return o;
1885 } 1906 }
1886 1907
1887 checkUsersListResponse(api.UsersListResponse o) { 1908 checkUsersListResponse(api.UsersListResponse o) {
1888 buildCounterUsersListResponse++; 1909 buildCounterUsersListResponse++;
1889 if (buildCounterUsersListResponse < 3) { 1910 if (buildCounterUsersListResponse < 3) {
1890 unittest.expect(o.kind, unittest.equals('foo')); 1911 unittest.expect(o.kind, unittest.equals('foo'));
1891 checkUnnamed2139(o.user); 1912 checkUnnamed2173(o.user);
1892 } 1913 }
1893 buildCounterUsersListResponse--; 1914 buildCounterUsersListResponse--;
1894 } 1915 }
1895 1916
1896 1917
1897 main() { 1918 main() {
1898 unittest.group("obj-schema-Administrator", () { 1919 unittest.group("obj-schema-Administrator", () {
1899 unittest.test("to-json--from-json", () { 1920 unittest.test("to-json--from-json", () {
1900 var o = buildAdministrator(); 1921 var o = buildAdministrator();
1901 var od = new api.Administrator.fromJson(o.toJson()); 1922 var od = new api.Administrator.fromJson(o.toJson());
(...skipping 13 matching lines...) Expand all
1915 1936
1916 unittest.group("obj-schema-AdministratorWebTokenSpec", () { 1937 unittest.group("obj-schema-AdministratorWebTokenSpec", () {
1917 unittest.test("to-json--from-json", () { 1938 unittest.test("to-json--from-json", () {
1918 var o = buildAdministratorWebTokenSpec(); 1939 var o = buildAdministratorWebTokenSpec();
1919 var od = new api.AdministratorWebTokenSpec.fromJson(o.toJson()); 1940 var od = new api.AdministratorWebTokenSpec.fromJson(o.toJson());
1920 checkAdministratorWebTokenSpec(od); 1941 checkAdministratorWebTokenSpec(od);
1921 }); 1942 });
1922 }); 1943 });
1923 1944
1924 1945
1946 unittest.group("obj-schema-AndroidDevicePolicyConfig", () {
1947 unittest.test("to-json--from-json", () {
1948 var o = buildAndroidDevicePolicyConfig();
1949 var od = new api.AndroidDevicePolicyConfig.fromJson(o.toJson());
1950 checkAndroidDevicePolicyConfig(od);
1951 });
1952 });
1953
1954
1925 unittest.group("obj-schema-AppRestrictionsSchema", () { 1955 unittest.group("obj-schema-AppRestrictionsSchema", () {
1926 unittest.test("to-json--from-json", () { 1956 unittest.test("to-json--from-json", () {
1927 var o = buildAppRestrictionsSchema(); 1957 var o = buildAppRestrictionsSchema();
1928 var od = new api.AppRestrictionsSchema.fromJson(o.toJson()); 1958 var od = new api.AppRestrictionsSchema.fromJson(o.toJson());
1929 checkAppRestrictionsSchema(od); 1959 checkAppRestrictionsSchema(od);
1930 }); 1960 });
1931 }); 1961 });
1932 1962
1933 1963
1934 unittest.group("obj-schema-AppRestrictionsSchemaChangeEvent", () { 1964 unittest.group("obj-schema-AppRestrictionsSchemaChangeEvent", () {
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after
3046 "content-type" : "application/json; charset=utf-8", 3076 "content-type" : "application/json; charset=utf-8",
3047 }; 3077 };
3048 var resp = convert.JSON.encode(buildEnterprise()); 3078 var resp = convert.JSON.encode(buildEnterprise());
3049 return new async.Future.value(stringResponse(200, h, resp)); 3079 return new async.Future.value(stringResponse(200, h, resp));
3050 }), true); 3080 }), true);
3051 res.get(arg_enterpriseId).then(unittest.expectAsync1(((api.Enterprise resp onse) { 3081 res.get(arg_enterpriseId).then(unittest.expectAsync1(((api.Enterprise resp onse) {
3052 checkEnterprise(response); 3082 checkEnterprise(response);
3053 }))); 3083 })));
3054 }); 3084 });
3055 3085
3086 unittest.test("method--getAndroidDevicePolicyConfig", () {
3087
3088 var mock = new HttpServerMock();
3089 api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterp rises;
3090 var arg_enterpriseId = "foo";
3091 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3092 var path = (req.url).path;
3093 var pathOffset = 0;
3094 var index;
3095 var subPart;
3096 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3097 pathOffset += 1;
3098 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq uals("androidenterprise/v1/"));
3099 pathOffset += 21;
3100 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("enterprises/"));
3101 pathOffset += 12;
3102 index = path.indexOf("/androidDevicePolicyConfig", pathOffset);
3103 unittest.expect(index >= 0, unittest.isTrue);
3104 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3105 pathOffset = index;
3106 unittest.expect(subPart, unittest.equals("$arg_enterpriseId"));
3107 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq uals("/androidDevicePolicyConfig"));
3108 pathOffset += 26;
3109
3110 var query = (req.url).query;
3111 var queryOffset = 0;
3112 var queryMap = {};
3113 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3114 parseBool(n) {
3115 if (n == "true") return true;
3116 if (n == "false") return false;
3117 if (n == null) return null;
3118 throw new core.ArgumentError("Invalid boolean: $n");
3119 }
3120 if (query.length > 0) {
3121 for (var part in query.split("&")) {
3122 var keyvalue = part.split("=");
3123 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3124 }
3125 }
3126
3127
3128 var h = {
3129 "content-type" : "application/json; charset=utf-8",
3130 };
3131 var resp = convert.JSON.encode(buildAndroidDevicePolicyConfig());
3132 return new async.Future.value(stringResponse(200, h, resp));
3133 }), true);
3134 res.getAndroidDevicePolicyConfig(arg_enterpriseId).then(unittest.expectAsy nc1(((api.AndroidDevicePolicyConfig response) {
3135 checkAndroidDevicePolicyConfig(response);
3136 })));
3137 });
3138
3056 unittest.test("method--getServiceAccount", () { 3139 unittest.test("method--getServiceAccount", () {
3057 3140
3058 var mock = new HttpServerMock(); 3141 var mock = new HttpServerMock();
3059 api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterp rises; 3142 api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterp rises;
3060 var arg_enterpriseId = "foo"; 3143 var arg_enterpriseId = "foo";
3061 var arg_keyType = "foo"; 3144 var arg_keyType = "foo";
3062 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 3145 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3063 var path = (req.url).path; 3146 var path = (req.url).path;
3064 var pathOffset = 0; 3147 var pathOffset = 0;
3065 var index; 3148 var index;
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
3409 "content-type" : "application/json; charset=utf-8", 3492 "content-type" : "application/json; charset=utf-8",
3410 }; 3493 };
3411 var resp = convert.JSON.encode(buildEnterpriseAccount()); 3494 var resp = convert.JSON.encode(buildEnterpriseAccount());
3412 return new async.Future.value(stringResponse(200, h, resp)); 3495 return new async.Future.value(stringResponse(200, h, resp));
3413 }), true); 3496 }), true);
3414 res.setAccount(arg_request, arg_enterpriseId).then(unittest.expectAsync1(( (api.EnterpriseAccount response) { 3497 res.setAccount(arg_request, arg_enterpriseId).then(unittest.expectAsync1(( (api.EnterpriseAccount response) {
3415 checkEnterpriseAccount(response); 3498 checkEnterpriseAccount(response);
3416 }))); 3499 })));
3417 }); 3500 });
3418 3501
3502 unittest.test("method--setAndroidDevicePolicyConfig", () {
3503
3504 var mock = new HttpServerMock();
3505 api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterp rises;
3506 var arg_request = buildAndroidDevicePolicyConfig();
3507 var arg_enterpriseId = "foo";
3508 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3509 var obj = new api.AndroidDevicePolicyConfig.fromJson(json);
3510 checkAndroidDevicePolicyConfig(obj);
3511
3512 var path = (req.url).path;
3513 var pathOffset = 0;
3514 var index;
3515 var subPart;
3516 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3517 pathOffset += 1;
3518 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq uals("androidenterprise/v1/"));
3519 pathOffset += 21;
3520 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("enterprises/"));
3521 pathOffset += 12;
3522 index = path.indexOf("/androidDevicePolicyConfig", pathOffset);
3523 unittest.expect(index >= 0, unittest.isTrue);
3524 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3525 pathOffset = index;
3526 unittest.expect(subPart, unittest.equals("$arg_enterpriseId"));
3527 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq uals("/androidDevicePolicyConfig"));
3528 pathOffset += 26;
3529
3530 var query = (req.url).query;
3531 var queryOffset = 0;
3532 var queryMap = {};
3533 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3534 parseBool(n) {
3535 if (n == "true") return true;
3536 if (n == "false") return false;
3537 if (n == null) return null;
3538 throw new core.ArgumentError("Invalid boolean: $n");
3539 }
3540 if (query.length > 0) {
3541 for (var part in query.split("&")) {
3542 var keyvalue = part.split("=");
3543 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3544 }
3545 }
3546
3547
3548 var h = {
3549 "content-type" : "application/json; charset=utf-8",
3550 };
3551 var resp = convert.JSON.encode(buildAndroidDevicePolicyConfig());
3552 return new async.Future.value(stringResponse(200, h, resp));
3553 }), true);
3554 res.setAndroidDevicePolicyConfig(arg_request, arg_enterpriseId).then(unitt est.expectAsync1(((api.AndroidDevicePolicyConfig response) {
3555 checkAndroidDevicePolicyConfig(response);
3556 })));
3557 });
3558
3419 unittest.test("method--setStoreLayout", () { 3559 unittest.test("method--setStoreLayout", () {
3420 3560
3421 var mock = new HttpServerMock(); 3561 var mock = new HttpServerMock();
3422 api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterp rises; 3562 api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterp rises;
3423 var arg_request = buildStoreLayout(); 3563 var arg_request = buildStoreLayout();
3424 var arg_enterpriseId = "foo"; 3564 var arg_enterpriseId = "foo";
3425 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 3565 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3426 var obj = new api.StoreLayout.fromJson(json); 3566 var obj = new api.StoreLayout.fromJson(json);
3427 checkStoreLayout(obj); 3567 checkStoreLayout(obj);
3428 3568
(...skipping 3740 matching lines...) Expand 10 before | Expand all | Expand 10 after
7169 res.update(arg_request, arg_enterpriseId, arg_userId).then(unittest.expect Async1(((api.User response) { 7309 res.update(arg_request, arg_enterpriseId, arg_userId).then(unittest.expect Async1(((api.User response) {
7170 checkUser(response); 7310 checkUser(response);
7171 }))); 7311 })));
7172 }); 7312 });
7173 7313
7174 }); 7314 });
7175 7315
7176 7316
7177 } 7317 }
7178 7318
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698