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

Side by Side Diff: generated/googleapis/test/admin/directory_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.admin.directory_v1.test; 1 library googleapis.admin.directory_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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 if (buildCounterAlias < 3) { 71 if (buildCounterAlias < 3) {
72 unittest.expect(o.alias, unittest.equals('foo')); 72 unittest.expect(o.alias, unittest.equals('foo'));
73 unittest.expect(o.etag, unittest.equals('foo')); 73 unittest.expect(o.etag, unittest.equals('foo'));
74 unittest.expect(o.id, unittest.equals('foo')); 74 unittest.expect(o.id, unittest.equals('foo'));
75 unittest.expect(o.kind, unittest.equals('foo')); 75 unittest.expect(o.kind, unittest.equals('foo'));
76 unittest.expect(o.primaryEmail, unittest.equals('foo')); 76 unittest.expect(o.primaryEmail, unittest.equals('foo'));
77 } 77 }
78 buildCounterAlias--; 78 buildCounterAlias--;
79 } 79 }
80 80
81 buildUnnamed814() { 81 buildUnnamed789() {
82 var o = new core.List<core.Object>(); 82 var o = new core.List<core.Object>();
83 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 83 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
84 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 84 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
85 return o; 85 return o;
86 } 86 }
87 87
88 checkUnnamed814(core.List<core.Object> o) { 88 checkUnnamed789(core.List<core.Object> o) {
89 unittest.expect(o, unittest.hasLength(2)); 89 unittest.expect(o, unittest.hasLength(2));
90 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength( 3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u nittest.equals('foo')); 90 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength( 3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u nittest.equals('foo'));
91 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength( 3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u nittest.equals('foo')); 91 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength( 3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u nittest.equals('foo'));
92 } 92 }
93 93
94 core.int buildCounterAliases = 0; 94 core.int buildCounterAliases = 0;
95 buildAliases() { 95 buildAliases() {
96 var o = new api.Aliases(); 96 var o = new api.Aliases();
97 buildCounterAliases++; 97 buildCounterAliases++;
98 if (buildCounterAliases < 3) { 98 if (buildCounterAliases < 3) {
99 o.aliases = buildUnnamed814(); 99 o.aliases = buildUnnamed789();
100 o.etag = "foo"; 100 o.etag = "foo";
101 o.kind = "foo"; 101 o.kind = "foo";
102 } 102 }
103 buildCounterAliases--; 103 buildCounterAliases--;
104 return o; 104 return o;
105 } 105 }
106 106
107 checkAliases(api.Aliases o) { 107 checkAliases(api.Aliases o) {
108 buildCounterAliases++; 108 buildCounterAliases++;
109 if (buildCounterAliases < 3) { 109 if (buildCounterAliases < 3) {
110 checkUnnamed814(o.aliases); 110 checkUnnamed789(o.aliases);
111 unittest.expect(o.etag, unittest.equals('foo')); 111 unittest.expect(o.etag, unittest.equals('foo'));
112 unittest.expect(o.kind, unittest.equals('foo')); 112 unittest.expect(o.kind, unittest.equals('foo'));
113 } 113 }
114 buildCounterAliases--; 114 buildCounterAliases--;
115 } 115 }
116 116
117 core.int buildCounterAsp = 0; 117 core.int buildCounterAsp = 0;
118 buildAsp() { 118 buildAsp() {
119 var o = new api.Asp(); 119 var o = new api.Asp();
120 buildCounterAsp++; 120 buildCounterAsp++;
(...skipping 17 matching lines...) Expand all
138 unittest.expect(o.creationTime, unittest.equals('foo')); 138 unittest.expect(o.creationTime, unittest.equals('foo'));
139 unittest.expect(o.etag, unittest.equals('foo')); 139 unittest.expect(o.etag, unittest.equals('foo'));
140 unittest.expect(o.kind, unittest.equals('foo')); 140 unittest.expect(o.kind, unittest.equals('foo'));
141 unittest.expect(o.lastTimeUsed, unittest.equals('foo')); 141 unittest.expect(o.lastTimeUsed, unittest.equals('foo'));
142 unittest.expect(o.name, unittest.equals('foo')); 142 unittest.expect(o.name, unittest.equals('foo'));
143 unittest.expect(o.userKey, unittest.equals('foo')); 143 unittest.expect(o.userKey, unittest.equals('foo'));
144 } 144 }
145 buildCounterAsp--; 145 buildCounterAsp--;
146 } 146 }
147 147
148 buildUnnamed815() { 148 buildUnnamed790() {
149 var o = new core.List<api.Asp>(); 149 var o = new core.List<api.Asp>();
150 o.add(buildAsp()); 150 o.add(buildAsp());
151 o.add(buildAsp()); 151 o.add(buildAsp());
152 return o; 152 return o;
153 } 153 }
154 154
155 checkUnnamed815(core.List<api.Asp> o) { 155 checkUnnamed790(core.List<api.Asp> o) {
156 unittest.expect(o, unittest.hasLength(2)); 156 unittest.expect(o, unittest.hasLength(2));
157 checkAsp(o[0]); 157 checkAsp(o[0]);
158 checkAsp(o[1]); 158 checkAsp(o[1]);
159 } 159 }
160 160
161 core.int buildCounterAsps = 0; 161 core.int buildCounterAsps = 0;
162 buildAsps() { 162 buildAsps() {
163 var o = new api.Asps(); 163 var o = new api.Asps();
164 buildCounterAsps++; 164 buildCounterAsps++;
165 if (buildCounterAsps < 3) { 165 if (buildCounterAsps < 3) {
166 o.etag = "foo"; 166 o.etag = "foo";
167 o.items = buildUnnamed815(); 167 o.items = buildUnnamed790();
168 o.kind = "foo"; 168 o.kind = "foo";
169 } 169 }
170 buildCounterAsps--; 170 buildCounterAsps--;
171 return o; 171 return o;
172 } 172 }
173 173
174 checkAsps(api.Asps o) { 174 checkAsps(api.Asps o) {
175 buildCounterAsps++; 175 buildCounterAsps++;
176 if (buildCounterAsps < 3) { 176 if (buildCounterAsps < 3) {
177 unittest.expect(o.etag, unittest.equals('foo')); 177 unittest.expect(o.etag, unittest.equals('foo'));
178 checkUnnamed815(o.items); 178 checkUnnamed790(o.items);
179 unittest.expect(o.kind, unittest.equals('foo')); 179 unittest.expect(o.kind, unittest.equals('foo'));
180 } 180 }
181 buildCounterAsps--; 181 buildCounterAsps--;
182 } 182 }
183 183
184 core.int buildCounterCalendarResource = 0; 184 core.int buildCounterCalendarResource = 0;
185 buildCalendarResource() { 185 buildCalendarResource() {
186 var o = new api.CalendarResource(); 186 var o = new api.CalendarResource();
187 buildCounterCalendarResource++; 187 buildCounterCalendarResource++;
188 if (buildCounterCalendarResource < 3) { 188 if (buildCounterCalendarResource < 3) {
(...skipping 16 matching lines...) Expand all
205 unittest.expect(o.kind, unittest.equals('foo')); 205 unittest.expect(o.kind, unittest.equals('foo'));
206 unittest.expect(o.resourceDescription, unittest.equals('foo')); 206 unittest.expect(o.resourceDescription, unittest.equals('foo'));
207 unittest.expect(o.resourceEmail, unittest.equals('foo')); 207 unittest.expect(o.resourceEmail, unittest.equals('foo'));
208 unittest.expect(o.resourceId, unittest.equals('foo')); 208 unittest.expect(o.resourceId, unittest.equals('foo'));
209 unittest.expect(o.resourceName, unittest.equals('foo')); 209 unittest.expect(o.resourceName, unittest.equals('foo'));
210 unittest.expect(o.resourceType, unittest.equals('foo')); 210 unittest.expect(o.resourceType, unittest.equals('foo'));
211 } 211 }
212 buildCounterCalendarResource--; 212 buildCounterCalendarResource--;
213 } 213 }
214 214
215 buildUnnamed816() { 215 buildUnnamed791() {
216 var o = new core.List<api.CalendarResource>(); 216 var o = new core.List<api.CalendarResource>();
217 o.add(buildCalendarResource()); 217 o.add(buildCalendarResource());
218 o.add(buildCalendarResource()); 218 o.add(buildCalendarResource());
219 return o; 219 return o;
220 } 220 }
221 221
222 checkUnnamed816(core.List<api.CalendarResource> o) { 222 checkUnnamed791(core.List<api.CalendarResource> o) {
223 unittest.expect(o, unittest.hasLength(2)); 223 unittest.expect(o, unittest.hasLength(2));
224 checkCalendarResource(o[0]); 224 checkCalendarResource(o[0]);
225 checkCalendarResource(o[1]); 225 checkCalendarResource(o[1]);
226 } 226 }
227 227
228 core.int buildCounterCalendarResources = 0; 228 core.int buildCounterCalendarResources = 0;
229 buildCalendarResources() { 229 buildCalendarResources() {
230 var o = new api.CalendarResources(); 230 var o = new api.CalendarResources();
231 buildCounterCalendarResources++; 231 buildCounterCalendarResources++;
232 if (buildCounterCalendarResources < 3) { 232 if (buildCounterCalendarResources < 3) {
233 o.etag = "foo"; 233 o.etag = "foo";
234 o.items = buildUnnamed816(); 234 o.items = buildUnnamed791();
235 o.kind = "foo"; 235 o.kind = "foo";
236 o.nextPageToken = "foo"; 236 o.nextPageToken = "foo";
237 } 237 }
238 buildCounterCalendarResources--; 238 buildCounterCalendarResources--;
239 return o; 239 return o;
240 } 240 }
241 241
242 checkCalendarResources(api.CalendarResources o) { 242 checkCalendarResources(api.CalendarResources o) {
243 buildCounterCalendarResources++; 243 buildCounterCalendarResources++;
244 if (buildCounterCalendarResources < 3) { 244 if (buildCounterCalendarResources < 3) {
245 unittest.expect(o.etag, unittest.equals('foo')); 245 unittest.expect(o.etag, unittest.equals('foo'));
246 checkUnnamed816(o.items); 246 checkUnnamed791(o.items);
247 unittest.expect(o.kind, unittest.equals('foo')); 247 unittest.expect(o.kind, unittest.equals('foo'));
248 unittest.expect(o.nextPageToken, unittest.equals('foo')); 248 unittest.expect(o.nextPageToken, unittest.equals('foo'));
249 } 249 }
250 buildCounterCalendarResources--; 250 buildCounterCalendarResources--;
251 } 251 }
252 252
253 buildUnnamed817() { 253 buildUnnamed792() {
254 var o = new core.Map<core.String, core.String>(); 254 var o = new core.Map<core.String, core.String>();
255 o["x"] = "foo"; 255 o["x"] = "foo";
256 o["y"] = "foo"; 256 o["y"] = "foo";
257 return o; 257 return o;
258 } 258 }
259 259
260 checkUnnamed817(core.Map<core.String, core.String> o) { 260 checkUnnamed792(core.Map<core.String, core.String> o) {
261 unittest.expect(o, unittest.hasLength(2)); 261 unittest.expect(o, unittest.hasLength(2));
262 unittest.expect(o["x"], unittest.equals('foo')); 262 unittest.expect(o["x"], unittest.equals('foo'));
263 unittest.expect(o["y"], unittest.equals('foo')); 263 unittest.expect(o["y"], unittest.equals('foo'));
264 } 264 }
265 265
266 core.int buildCounterChannel = 0; 266 core.int buildCounterChannel = 0;
267 buildChannel() { 267 buildChannel() {
268 var o = new api.Channel(); 268 var o = new api.Channel();
269 buildCounterChannel++; 269 buildCounterChannel++;
270 if (buildCounterChannel < 3) { 270 if (buildCounterChannel < 3) {
271 o.address = "foo"; 271 o.address = "foo";
272 o.expiration = "foo"; 272 o.expiration = "foo";
273 o.id = "foo"; 273 o.id = "foo";
274 o.kind = "foo"; 274 o.kind = "foo";
275 o.params = buildUnnamed817(); 275 o.params = buildUnnamed792();
276 o.payload = true; 276 o.payload = true;
277 o.resourceId = "foo"; 277 o.resourceId = "foo";
278 o.resourceUri = "foo"; 278 o.resourceUri = "foo";
279 o.token = "foo"; 279 o.token = "foo";
280 o.type = "foo"; 280 o.type = "foo";
281 } 281 }
282 buildCounterChannel--; 282 buildCounterChannel--;
283 return o; 283 return o;
284 } 284 }
285 285
286 checkChannel(api.Channel o) { 286 checkChannel(api.Channel o) {
287 buildCounterChannel++; 287 buildCounterChannel++;
288 if (buildCounterChannel < 3) { 288 if (buildCounterChannel < 3) {
289 unittest.expect(o.address, unittest.equals('foo')); 289 unittest.expect(o.address, unittest.equals('foo'));
290 unittest.expect(o.expiration, unittest.equals('foo')); 290 unittest.expect(o.expiration, unittest.equals('foo'));
291 unittest.expect(o.id, unittest.equals('foo')); 291 unittest.expect(o.id, unittest.equals('foo'));
292 unittest.expect(o.kind, unittest.equals('foo')); 292 unittest.expect(o.kind, unittest.equals('foo'));
293 checkUnnamed817(o.params); 293 checkUnnamed792(o.params);
294 unittest.expect(o.payload, unittest.isTrue); 294 unittest.expect(o.payload, unittest.isTrue);
295 unittest.expect(o.resourceId, unittest.equals('foo')); 295 unittest.expect(o.resourceId, unittest.equals('foo'));
296 unittest.expect(o.resourceUri, unittest.equals('foo')); 296 unittest.expect(o.resourceUri, unittest.equals('foo'));
297 unittest.expect(o.token, unittest.equals('foo')); 297 unittest.expect(o.token, unittest.equals('foo'));
298 unittest.expect(o.type, unittest.equals('foo')); 298 unittest.expect(o.type, unittest.equals('foo'));
299 } 299 }
300 buildCounterChannel--; 300 buildCounterChannel--;
301 } 301 }
302 302
303 core.int buildCounterChromeOsDeviceActiveTimeRanges = 0; 303 core.int buildCounterChromeOsDeviceActiveTimeRanges = 0;
(...skipping 10 matching lines...) Expand all
314 314
315 checkChromeOsDeviceActiveTimeRanges(api.ChromeOsDeviceActiveTimeRanges o) { 315 checkChromeOsDeviceActiveTimeRanges(api.ChromeOsDeviceActiveTimeRanges o) {
316 buildCounterChromeOsDeviceActiveTimeRanges++; 316 buildCounterChromeOsDeviceActiveTimeRanges++;
317 if (buildCounterChromeOsDeviceActiveTimeRanges < 3) { 317 if (buildCounterChromeOsDeviceActiveTimeRanges < 3) {
318 unittest.expect(o.activeTime, unittest.equals(42)); 318 unittest.expect(o.activeTime, unittest.equals(42));
319 unittest.expect(o.date, unittest.equals(core.DateTime.parse("2002-02-27T00:0 0:00"))); 319 unittest.expect(o.date, unittest.equals(core.DateTime.parse("2002-02-27T00:0 0:00")));
320 } 320 }
321 buildCounterChromeOsDeviceActiveTimeRanges--; 321 buildCounterChromeOsDeviceActiveTimeRanges--;
322 } 322 }
323 323
324 buildUnnamed818() { 324 buildUnnamed793() {
325 var o = new core.List<api.ChromeOsDeviceActiveTimeRanges>(); 325 var o = new core.List<api.ChromeOsDeviceActiveTimeRanges>();
326 o.add(buildChromeOsDeviceActiveTimeRanges()); 326 o.add(buildChromeOsDeviceActiveTimeRanges());
327 o.add(buildChromeOsDeviceActiveTimeRanges()); 327 o.add(buildChromeOsDeviceActiveTimeRanges());
328 return o; 328 return o;
329 } 329 }
330 330
331 checkUnnamed818(core.List<api.ChromeOsDeviceActiveTimeRanges> o) { 331 checkUnnamed793(core.List<api.ChromeOsDeviceActiveTimeRanges> o) {
332 unittest.expect(o, unittest.hasLength(2)); 332 unittest.expect(o, unittest.hasLength(2));
333 checkChromeOsDeviceActiveTimeRanges(o[0]); 333 checkChromeOsDeviceActiveTimeRanges(o[0]);
334 checkChromeOsDeviceActiveTimeRanges(o[1]); 334 checkChromeOsDeviceActiveTimeRanges(o[1]);
335 } 335 }
336 336
337 core.int buildCounterChromeOsDeviceRecentUsers = 0; 337 core.int buildCounterChromeOsDeviceRecentUsers = 0;
338 buildChromeOsDeviceRecentUsers() { 338 buildChromeOsDeviceRecentUsers() {
339 var o = new api.ChromeOsDeviceRecentUsers(); 339 var o = new api.ChromeOsDeviceRecentUsers();
340 buildCounterChromeOsDeviceRecentUsers++; 340 buildCounterChromeOsDeviceRecentUsers++;
341 if (buildCounterChromeOsDeviceRecentUsers < 3) { 341 if (buildCounterChromeOsDeviceRecentUsers < 3) {
342 o.email = "foo"; 342 o.email = "foo";
343 o.type = "foo"; 343 o.type = "foo";
344 } 344 }
345 buildCounterChromeOsDeviceRecentUsers--; 345 buildCounterChromeOsDeviceRecentUsers--;
346 return o; 346 return o;
347 } 347 }
348 348
349 checkChromeOsDeviceRecentUsers(api.ChromeOsDeviceRecentUsers o) { 349 checkChromeOsDeviceRecentUsers(api.ChromeOsDeviceRecentUsers o) {
350 buildCounterChromeOsDeviceRecentUsers++; 350 buildCounterChromeOsDeviceRecentUsers++;
351 if (buildCounterChromeOsDeviceRecentUsers < 3) { 351 if (buildCounterChromeOsDeviceRecentUsers < 3) {
352 unittest.expect(o.email, unittest.equals('foo')); 352 unittest.expect(o.email, unittest.equals('foo'));
353 unittest.expect(o.type, unittest.equals('foo')); 353 unittest.expect(o.type, unittest.equals('foo'));
354 } 354 }
355 buildCounterChromeOsDeviceRecentUsers--; 355 buildCounterChromeOsDeviceRecentUsers--;
356 } 356 }
357 357
358 buildUnnamed819() { 358 buildUnnamed794() {
359 var o = new core.List<api.ChromeOsDeviceRecentUsers>(); 359 var o = new core.List<api.ChromeOsDeviceRecentUsers>();
360 o.add(buildChromeOsDeviceRecentUsers()); 360 o.add(buildChromeOsDeviceRecentUsers());
361 o.add(buildChromeOsDeviceRecentUsers()); 361 o.add(buildChromeOsDeviceRecentUsers());
362 return o; 362 return o;
363 } 363 }
364 364
365 checkUnnamed819(core.List<api.ChromeOsDeviceRecentUsers> o) { 365 checkUnnamed794(core.List<api.ChromeOsDeviceRecentUsers> o) {
366 unittest.expect(o, unittest.hasLength(2)); 366 unittest.expect(o, unittest.hasLength(2));
367 checkChromeOsDeviceRecentUsers(o[0]); 367 checkChromeOsDeviceRecentUsers(o[0]);
368 checkChromeOsDeviceRecentUsers(o[1]); 368 checkChromeOsDeviceRecentUsers(o[1]);
369 } 369 }
370 370
371 core.int buildCounterChromeOsDevice = 0; 371 core.int buildCounterChromeOsDevice = 0;
372 buildChromeOsDevice() { 372 buildChromeOsDevice() {
373 var o = new api.ChromeOsDevice(); 373 var o = new api.ChromeOsDevice();
374 buildCounterChromeOsDevice++; 374 buildCounterChromeOsDevice++;
375 if (buildCounterChromeOsDevice < 3) { 375 if (buildCounterChromeOsDevice < 3) {
376 o.activeTimeRanges = buildUnnamed818(); 376 o.activeTimeRanges = buildUnnamed793();
377 o.annotatedAssetId = "foo"; 377 o.annotatedAssetId = "foo";
378 o.annotatedLocation = "foo"; 378 o.annotatedLocation = "foo";
379 o.annotatedUser = "foo"; 379 o.annotatedUser = "foo";
380 o.bootMode = "foo"; 380 o.bootMode = "foo";
381 o.deviceId = "foo"; 381 o.deviceId = "foo";
382 o.etag = "foo"; 382 o.etag = "foo";
383 o.ethernetMacAddress = "foo"; 383 o.ethernetMacAddress = "foo";
384 o.firmwareVersion = "foo"; 384 o.firmwareVersion = "foo";
385 o.kind = "foo"; 385 o.kind = "foo";
386 o.lastEnrollmentTime = core.DateTime.parse("2002-02-27T14:01:02"); 386 o.lastEnrollmentTime = core.DateTime.parse("2002-02-27T14:01:02");
387 o.lastSync = core.DateTime.parse("2002-02-27T14:01:02"); 387 o.lastSync = core.DateTime.parse("2002-02-27T14:01:02");
388 o.macAddress = "foo"; 388 o.macAddress = "foo";
389 o.meid = "foo"; 389 o.meid = "foo";
390 o.model = "foo"; 390 o.model = "foo";
391 o.notes = "foo"; 391 o.notes = "foo";
392 o.orderNumber = "foo"; 392 o.orderNumber = "foo";
393 o.orgUnitPath = "foo"; 393 o.orgUnitPath = "foo";
394 o.osVersion = "foo"; 394 o.osVersion = "foo";
395 o.platformVersion = "foo"; 395 o.platformVersion = "foo";
396 o.recentUsers = buildUnnamed819(); 396 o.recentUsers = buildUnnamed794();
397 o.serialNumber = "foo"; 397 o.serialNumber = "foo";
398 o.status = "foo"; 398 o.status = "foo";
399 o.supportEndDate = core.DateTime.parse("2002-02-27T14:01:02"); 399 o.supportEndDate = core.DateTime.parse("2002-02-27T14:01:02");
400 o.willAutoRenew = true; 400 o.willAutoRenew = true;
401 } 401 }
402 buildCounterChromeOsDevice--; 402 buildCounterChromeOsDevice--;
403 return o; 403 return o;
404 } 404 }
405 405
406 checkChromeOsDevice(api.ChromeOsDevice o) { 406 checkChromeOsDevice(api.ChromeOsDevice o) {
407 buildCounterChromeOsDevice++; 407 buildCounterChromeOsDevice++;
408 if (buildCounterChromeOsDevice < 3) { 408 if (buildCounterChromeOsDevice < 3) {
409 checkUnnamed818(o.activeTimeRanges); 409 checkUnnamed793(o.activeTimeRanges);
410 unittest.expect(o.annotatedAssetId, unittest.equals('foo')); 410 unittest.expect(o.annotatedAssetId, unittest.equals('foo'));
411 unittest.expect(o.annotatedLocation, unittest.equals('foo')); 411 unittest.expect(o.annotatedLocation, unittest.equals('foo'));
412 unittest.expect(o.annotatedUser, unittest.equals('foo')); 412 unittest.expect(o.annotatedUser, unittest.equals('foo'));
413 unittest.expect(o.bootMode, unittest.equals('foo')); 413 unittest.expect(o.bootMode, unittest.equals('foo'));
414 unittest.expect(o.deviceId, unittest.equals('foo')); 414 unittest.expect(o.deviceId, unittest.equals('foo'));
415 unittest.expect(o.etag, unittest.equals('foo')); 415 unittest.expect(o.etag, unittest.equals('foo'));
416 unittest.expect(o.ethernetMacAddress, unittest.equals('foo')); 416 unittest.expect(o.ethernetMacAddress, unittest.equals('foo'));
417 unittest.expect(o.firmwareVersion, unittest.equals('foo')); 417 unittest.expect(o.firmwareVersion, unittest.equals('foo'));
418 unittest.expect(o.kind, unittest.equals('foo')); 418 unittest.expect(o.kind, unittest.equals('foo'));
419 unittest.expect(o.lastEnrollmentTime, unittest.equals(core.DateTime.parse("2 002-02-27T14:01:02"))); 419 unittest.expect(o.lastEnrollmentTime, unittest.equals(core.DateTime.parse("2 002-02-27T14:01:02")));
420 unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T 14:01:02"))); 420 unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T 14:01:02")));
421 unittest.expect(o.macAddress, unittest.equals('foo')); 421 unittest.expect(o.macAddress, unittest.equals('foo'));
422 unittest.expect(o.meid, unittest.equals('foo')); 422 unittest.expect(o.meid, unittest.equals('foo'));
423 unittest.expect(o.model, unittest.equals('foo')); 423 unittest.expect(o.model, unittest.equals('foo'));
424 unittest.expect(o.notes, unittest.equals('foo')); 424 unittest.expect(o.notes, unittest.equals('foo'));
425 unittest.expect(o.orderNumber, unittest.equals('foo')); 425 unittest.expect(o.orderNumber, unittest.equals('foo'));
426 unittest.expect(o.orgUnitPath, unittest.equals('foo')); 426 unittest.expect(o.orgUnitPath, unittest.equals('foo'));
427 unittest.expect(o.osVersion, unittest.equals('foo')); 427 unittest.expect(o.osVersion, unittest.equals('foo'));
428 unittest.expect(o.platformVersion, unittest.equals('foo')); 428 unittest.expect(o.platformVersion, unittest.equals('foo'));
429 checkUnnamed819(o.recentUsers); 429 checkUnnamed794(o.recentUsers);
430 unittest.expect(o.serialNumber, unittest.equals('foo')); 430 unittest.expect(o.serialNumber, unittest.equals('foo'));
431 unittest.expect(o.status, unittest.equals('foo')); 431 unittest.expect(o.status, unittest.equals('foo'));
432 unittest.expect(o.supportEndDate, unittest.equals(core.DateTime.parse("2002- 02-27T14:01:02"))); 432 unittest.expect(o.supportEndDate, unittest.equals(core.DateTime.parse("2002- 02-27T14:01:02")));
433 unittest.expect(o.willAutoRenew, unittest.isTrue); 433 unittest.expect(o.willAutoRenew, unittest.isTrue);
434 } 434 }
435 buildCounterChromeOsDevice--; 435 buildCounterChromeOsDevice--;
436 } 436 }
437 437
438 core.int buildCounterChromeOsDeviceAction = 0; 438 core.int buildCounterChromeOsDeviceAction = 0;
439 buildChromeOsDeviceAction() { 439 buildChromeOsDeviceAction() {
440 var o = new api.ChromeOsDeviceAction(); 440 var o = new api.ChromeOsDeviceAction();
441 buildCounterChromeOsDeviceAction++; 441 buildCounterChromeOsDeviceAction++;
442 if (buildCounterChromeOsDeviceAction < 3) { 442 if (buildCounterChromeOsDeviceAction < 3) {
443 o.action = "foo"; 443 o.action = "foo";
444 o.deprovisionReason = "foo"; 444 o.deprovisionReason = "foo";
445 } 445 }
446 buildCounterChromeOsDeviceAction--; 446 buildCounterChromeOsDeviceAction--;
447 return o; 447 return o;
448 } 448 }
449 449
450 checkChromeOsDeviceAction(api.ChromeOsDeviceAction o) { 450 checkChromeOsDeviceAction(api.ChromeOsDeviceAction o) {
451 buildCounterChromeOsDeviceAction++; 451 buildCounterChromeOsDeviceAction++;
452 if (buildCounterChromeOsDeviceAction < 3) { 452 if (buildCounterChromeOsDeviceAction < 3) {
453 unittest.expect(o.action, unittest.equals('foo')); 453 unittest.expect(o.action, unittest.equals('foo'));
454 unittest.expect(o.deprovisionReason, unittest.equals('foo')); 454 unittest.expect(o.deprovisionReason, unittest.equals('foo'));
455 } 455 }
456 buildCounterChromeOsDeviceAction--; 456 buildCounterChromeOsDeviceAction--;
457 } 457 }
458 458
459 buildUnnamed820() { 459 buildUnnamed795() {
460 var o = new core.List<api.ChromeOsDevice>(); 460 var o = new core.List<api.ChromeOsDevice>();
461 o.add(buildChromeOsDevice()); 461 o.add(buildChromeOsDevice());
462 o.add(buildChromeOsDevice()); 462 o.add(buildChromeOsDevice());
463 return o; 463 return o;
464 } 464 }
465 465
466 checkUnnamed820(core.List<api.ChromeOsDevice> o) { 466 checkUnnamed795(core.List<api.ChromeOsDevice> o) {
467 unittest.expect(o, unittest.hasLength(2)); 467 unittest.expect(o, unittest.hasLength(2));
468 checkChromeOsDevice(o[0]); 468 checkChromeOsDevice(o[0]);
469 checkChromeOsDevice(o[1]); 469 checkChromeOsDevice(o[1]);
470 } 470 }
471 471
472 core.int buildCounterChromeOsDevices = 0; 472 core.int buildCounterChromeOsDevices = 0;
473 buildChromeOsDevices() { 473 buildChromeOsDevices() {
474 var o = new api.ChromeOsDevices(); 474 var o = new api.ChromeOsDevices();
475 buildCounterChromeOsDevices++; 475 buildCounterChromeOsDevices++;
476 if (buildCounterChromeOsDevices < 3) { 476 if (buildCounterChromeOsDevices < 3) {
477 o.chromeosdevices = buildUnnamed820(); 477 o.chromeosdevices = buildUnnamed795();
478 o.etag = "foo"; 478 o.etag = "foo";
479 o.kind = "foo"; 479 o.kind = "foo";
480 o.nextPageToken = "foo"; 480 o.nextPageToken = "foo";
481 } 481 }
482 buildCounterChromeOsDevices--; 482 buildCounterChromeOsDevices--;
483 return o; 483 return o;
484 } 484 }
485 485
486 checkChromeOsDevices(api.ChromeOsDevices o) { 486 checkChromeOsDevices(api.ChromeOsDevices o) {
487 buildCounterChromeOsDevices++; 487 buildCounterChromeOsDevices++;
488 if (buildCounterChromeOsDevices < 3) { 488 if (buildCounterChromeOsDevices < 3) {
489 checkUnnamed820(o.chromeosdevices); 489 checkUnnamed795(o.chromeosdevices);
490 unittest.expect(o.etag, unittest.equals('foo')); 490 unittest.expect(o.etag, unittest.equals('foo'));
491 unittest.expect(o.kind, unittest.equals('foo')); 491 unittest.expect(o.kind, unittest.equals('foo'));
492 unittest.expect(o.nextPageToken, unittest.equals('foo')); 492 unittest.expect(o.nextPageToken, unittest.equals('foo'));
493 } 493 }
494 buildCounterChromeOsDevices--; 494 buildCounterChromeOsDevices--;
495 } 495 }
496 496
497 buildUnnamed796() {
498 var o = new core.List<core.String>();
499 o.add("foo");
500 o.add("foo");
501 return o;
502 }
503
504 checkUnnamed796(core.List<core.String> o) {
505 unittest.expect(o, unittest.hasLength(2));
506 unittest.expect(o[0], unittest.equals('foo'));
507 unittest.expect(o[1], unittest.equals('foo'));
508 }
509
510 core.int buildCounterChromeOsMoveDevicesToOu = 0;
511 buildChromeOsMoveDevicesToOu() {
512 var o = new api.ChromeOsMoveDevicesToOu();
513 buildCounterChromeOsMoveDevicesToOu++;
514 if (buildCounterChromeOsMoveDevicesToOu < 3) {
515 o.deviceIds = buildUnnamed796();
516 }
517 buildCounterChromeOsMoveDevicesToOu--;
518 return o;
519 }
520
521 checkChromeOsMoveDevicesToOu(api.ChromeOsMoveDevicesToOu o) {
522 buildCounterChromeOsMoveDevicesToOu++;
523 if (buildCounterChromeOsMoveDevicesToOu < 3) {
524 checkUnnamed796(o.deviceIds);
525 }
526 buildCounterChromeOsMoveDevicesToOu--;
527 }
528
497 core.int buildCounterCustomer = 0; 529 core.int buildCounterCustomer = 0;
498 buildCustomer() { 530 buildCustomer() {
499 var o = new api.Customer(); 531 var o = new api.Customer();
500 buildCounterCustomer++; 532 buildCounterCustomer++;
501 if (buildCounterCustomer < 3) { 533 if (buildCounterCustomer < 3) {
502 o.alternateEmail = "foo"; 534 o.alternateEmail = "foo";
503 o.customerCreationTime = core.DateTime.parse("2002-02-27T14:01:02"); 535 o.customerCreationTime = core.DateTime.parse("2002-02-27T14:01:02");
504 o.customerDomain = "foo"; 536 o.customerDomain = "foo";
505 o.etag = "foo"; 537 o.etag = "foo";
506 o.id = "foo"; 538 o.id = "foo";
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 unittest.expect(o.creationTime, unittest.equals('foo')); 618 unittest.expect(o.creationTime, unittest.equals('foo'));
587 unittest.expect(o.domainAliasName, unittest.equals('foo')); 619 unittest.expect(o.domainAliasName, unittest.equals('foo'));
588 unittest.expect(o.etag, unittest.equals('foo')); 620 unittest.expect(o.etag, unittest.equals('foo'));
589 unittest.expect(o.kind, unittest.equals('foo')); 621 unittest.expect(o.kind, unittest.equals('foo'));
590 unittest.expect(o.parentDomainName, unittest.equals('foo')); 622 unittest.expect(o.parentDomainName, unittest.equals('foo'));
591 unittest.expect(o.verified, unittest.isTrue); 623 unittest.expect(o.verified, unittest.isTrue);
592 } 624 }
593 buildCounterDomainAlias--; 625 buildCounterDomainAlias--;
594 } 626 }
595 627
596 buildUnnamed821() { 628 buildUnnamed797() {
597 var o = new core.List<api.DomainAlias>(); 629 var o = new core.List<api.DomainAlias>();
598 o.add(buildDomainAlias()); 630 o.add(buildDomainAlias());
599 o.add(buildDomainAlias()); 631 o.add(buildDomainAlias());
600 return o; 632 return o;
601 } 633 }
602 634
603 checkUnnamed821(core.List<api.DomainAlias> o) { 635 checkUnnamed797(core.List<api.DomainAlias> o) {
604 unittest.expect(o, unittest.hasLength(2)); 636 unittest.expect(o, unittest.hasLength(2));
605 checkDomainAlias(o[0]); 637 checkDomainAlias(o[0]);
606 checkDomainAlias(o[1]); 638 checkDomainAlias(o[1]);
607 } 639 }
608 640
609 core.int buildCounterDomainAliases = 0; 641 core.int buildCounterDomainAliases = 0;
610 buildDomainAliases() { 642 buildDomainAliases() {
611 var o = new api.DomainAliases(); 643 var o = new api.DomainAliases();
612 buildCounterDomainAliases++; 644 buildCounterDomainAliases++;
613 if (buildCounterDomainAliases < 3) { 645 if (buildCounterDomainAliases < 3) {
614 o.domainAliases = buildUnnamed821(); 646 o.domainAliases = buildUnnamed797();
615 o.etag = "foo"; 647 o.etag = "foo";
616 o.kind = "foo"; 648 o.kind = "foo";
617 } 649 }
618 buildCounterDomainAliases--; 650 buildCounterDomainAliases--;
619 return o; 651 return o;
620 } 652 }
621 653
622 checkDomainAliases(api.DomainAliases o) { 654 checkDomainAliases(api.DomainAliases o) {
623 buildCounterDomainAliases++; 655 buildCounterDomainAliases++;
624 if (buildCounterDomainAliases < 3) { 656 if (buildCounterDomainAliases < 3) {
625 checkUnnamed821(o.domainAliases); 657 checkUnnamed797(o.domainAliases);
626 unittest.expect(o.etag, unittest.equals('foo')); 658 unittest.expect(o.etag, unittest.equals('foo'));
627 unittest.expect(o.kind, unittest.equals('foo')); 659 unittest.expect(o.kind, unittest.equals('foo'));
628 } 660 }
629 buildCounterDomainAliases--; 661 buildCounterDomainAliases--;
630 } 662 }
631 663
632 buildUnnamed822() { 664 buildUnnamed798() {
633 var o = new core.List<api.DomainAlias>(); 665 var o = new core.List<api.DomainAlias>();
634 o.add(buildDomainAlias()); 666 o.add(buildDomainAlias());
635 o.add(buildDomainAlias()); 667 o.add(buildDomainAlias());
636 return o; 668 return o;
637 } 669 }
638 670
639 checkUnnamed822(core.List<api.DomainAlias> o) { 671 checkUnnamed798(core.List<api.DomainAlias> o) {
640 unittest.expect(o, unittest.hasLength(2)); 672 unittest.expect(o, unittest.hasLength(2));
641 checkDomainAlias(o[0]); 673 checkDomainAlias(o[0]);
642 checkDomainAlias(o[1]); 674 checkDomainAlias(o[1]);
643 } 675 }
644 676
645 core.int buildCounterDomains = 0; 677 core.int buildCounterDomains = 0;
646 buildDomains() { 678 buildDomains() {
647 var o = new api.Domains(); 679 var o = new api.Domains();
648 buildCounterDomains++; 680 buildCounterDomains++;
649 if (buildCounterDomains < 3) { 681 if (buildCounterDomains < 3) {
650 o.creationTime = "foo"; 682 o.creationTime = "foo";
651 o.domainAliases = buildUnnamed822(); 683 o.domainAliases = buildUnnamed798();
652 o.domainName = "foo"; 684 o.domainName = "foo";
653 o.etag = "foo"; 685 o.etag = "foo";
654 o.isPrimary = true; 686 o.isPrimary = true;
655 o.kind = "foo"; 687 o.kind = "foo";
656 o.verified = true; 688 o.verified = true;
657 } 689 }
658 buildCounterDomains--; 690 buildCounterDomains--;
659 return o; 691 return o;
660 } 692 }
661 693
662 checkDomains(api.Domains o) { 694 checkDomains(api.Domains o) {
663 buildCounterDomains++; 695 buildCounterDomains++;
664 if (buildCounterDomains < 3) { 696 if (buildCounterDomains < 3) {
665 unittest.expect(o.creationTime, unittest.equals('foo')); 697 unittest.expect(o.creationTime, unittest.equals('foo'));
666 checkUnnamed822(o.domainAliases); 698 checkUnnamed798(o.domainAliases);
667 unittest.expect(o.domainName, unittest.equals('foo')); 699 unittest.expect(o.domainName, unittest.equals('foo'));
668 unittest.expect(o.etag, unittest.equals('foo')); 700 unittest.expect(o.etag, unittest.equals('foo'));
669 unittest.expect(o.isPrimary, unittest.isTrue); 701 unittest.expect(o.isPrimary, unittest.isTrue);
670 unittest.expect(o.kind, unittest.equals('foo')); 702 unittest.expect(o.kind, unittest.equals('foo'));
671 unittest.expect(o.verified, unittest.isTrue); 703 unittest.expect(o.verified, unittest.isTrue);
672 } 704 }
673 buildCounterDomains--; 705 buildCounterDomains--;
674 } 706 }
675 707
676 buildUnnamed823() { 708 buildUnnamed799() {
677 var o = new core.List<api.Domains>(); 709 var o = new core.List<api.Domains>();
678 o.add(buildDomains()); 710 o.add(buildDomains());
679 o.add(buildDomains()); 711 o.add(buildDomains());
680 return o; 712 return o;
681 } 713 }
682 714
683 checkUnnamed823(core.List<api.Domains> o) { 715 checkUnnamed799(core.List<api.Domains> o) {
684 unittest.expect(o, unittest.hasLength(2)); 716 unittest.expect(o, unittest.hasLength(2));
685 checkDomains(o[0]); 717 checkDomains(o[0]);
686 checkDomains(o[1]); 718 checkDomains(o[1]);
687 } 719 }
688 720
689 core.int buildCounterDomains2 = 0; 721 core.int buildCounterDomains2 = 0;
690 buildDomains2() { 722 buildDomains2() {
691 var o = new api.Domains2(); 723 var o = new api.Domains2();
692 buildCounterDomains2++; 724 buildCounterDomains2++;
693 if (buildCounterDomains2 < 3) { 725 if (buildCounterDomains2 < 3) {
694 o.domains = buildUnnamed823(); 726 o.domains = buildUnnamed799();
695 o.etag = "foo"; 727 o.etag = "foo";
696 o.kind = "foo"; 728 o.kind = "foo";
697 } 729 }
698 buildCounterDomains2--; 730 buildCounterDomains2--;
699 return o; 731 return o;
700 } 732 }
701 733
702 checkDomains2(api.Domains2 o) { 734 checkDomains2(api.Domains2 o) {
703 buildCounterDomains2++; 735 buildCounterDomains2++;
704 if (buildCounterDomains2 < 3) { 736 if (buildCounterDomains2 < 3) {
705 checkUnnamed823(o.domains); 737 checkUnnamed799(o.domains);
706 unittest.expect(o.etag, unittest.equals('foo')); 738 unittest.expect(o.etag, unittest.equals('foo'));
707 unittest.expect(o.kind, unittest.equals('foo')); 739 unittest.expect(o.kind, unittest.equals('foo'));
708 } 740 }
709 buildCounterDomains2--; 741 buildCounterDomains2--;
710 } 742 }
711 743
712 buildUnnamed824() { 744 buildUnnamed800() {
713 var o = new core.List<core.String>(); 745 var o = new core.List<core.String>();
714 o.add("foo"); 746 o.add("foo");
715 o.add("foo"); 747 o.add("foo");
716 return o; 748 return o;
717 } 749 }
718 750
719 checkUnnamed824(core.List<core.String> o) { 751 checkUnnamed800(core.List<core.String> o) {
720 unittest.expect(o, unittest.hasLength(2)); 752 unittest.expect(o, unittest.hasLength(2));
721 unittest.expect(o[0], unittest.equals('foo')); 753 unittest.expect(o[0], unittest.equals('foo'));
722 unittest.expect(o[1], unittest.equals('foo')); 754 unittest.expect(o[1], unittest.equals('foo'));
723 } 755 }
724 756
725 buildUnnamed825() { 757 buildUnnamed801() {
726 var o = new core.List<core.String>(); 758 var o = new core.List<core.String>();
727 o.add("foo"); 759 o.add("foo");
728 o.add("foo"); 760 o.add("foo");
729 return o; 761 return o;
730 } 762 }
731 763
732 checkUnnamed825(core.List<core.String> o) { 764 checkUnnamed801(core.List<core.String> o) {
733 unittest.expect(o, unittest.hasLength(2)); 765 unittest.expect(o, unittest.hasLength(2));
734 unittest.expect(o[0], unittest.equals('foo')); 766 unittest.expect(o[0], unittest.equals('foo'));
735 unittest.expect(o[1], unittest.equals('foo')); 767 unittest.expect(o[1], unittest.equals('foo'));
736 } 768 }
737 769
738 core.int buildCounterGroup = 0; 770 core.int buildCounterGroup = 0;
739 buildGroup() { 771 buildGroup() {
740 var o = new api.Group(); 772 var o = new api.Group();
741 buildCounterGroup++; 773 buildCounterGroup++;
742 if (buildCounterGroup < 3) { 774 if (buildCounterGroup < 3) {
743 o.adminCreated = true; 775 o.adminCreated = true;
744 o.aliases = buildUnnamed824(); 776 o.aliases = buildUnnamed800();
745 o.description = "foo"; 777 o.description = "foo";
746 o.directMembersCount = "foo"; 778 o.directMembersCount = "foo";
747 o.email = "foo"; 779 o.email = "foo";
748 o.etag = "foo"; 780 o.etag = "foo";
749 o.id = "foo"; 781 o.id = "foo";
750 o.kind = "foo"; 782 o.kind = "foo";
751 o.name = "foo"; 783 o.name = "foo";
752 o.nonEditableAliases = buildUnnamed825(); 784 o.nonEditableAliases = buildUnnamed801();
753 } 785 }
754 buildCounterGroup--; 786 buildCounterGroup--;
755 return o; 787 return o;
756 } 788 }
757 789
758 checkGroup(api.Group o) { 790 checkGroup(api.Group o) {
759 buildCounterGroup++; 791 buildCounterGroup++;
760 if (buildCounterGroup < 3) { 792 if (buildCounterGroup < 3) {
761 unittest.expect(o.adminCreated, unittest.isTrue); 793 unittest.expect(o.adminCreated, unittest.isTrue);
762 checkUnnamed824(o.aliases); 794 checkUnnamed800(o.aliases);
763 unittest.expect(o.description, unittest.equals('foo')); 795 unittest.expect(o.description, unittest.equals('foo'));
764 unittest.expect(o.directMembersCount, unittest.equals('foo')); 796 unittest.expect(o.directMembersCount, unittest.equals('foo'));
765 unittest.expect(o.email, unittest.equals('foo')); 797 unittest.expect(o.email, unittest.equals('foo'));
766 unittest.expect(o.etag, unittest.equals('foo')); 798 unittest.expect(o.etag, unittest.equals('foo'));
767 unittest.expect(o.id, unittest.equals('foo')); 799 unittest.expect(o.id, unittest.equals('foo'));
768 unittest.expect(o.kind, unittest.equals('foo')); 800 unittest.expect(o.kind, unittest.equals('foo'));
769 unittest.expect(o.name, unittest.equals('foo')); 801 unittest.expect(o.name, unittest.equals('foo'));
770 checkUnnamed825(o.nonEditableAliases); 802 checkUnnamed801(o.nonEditableAliases);
771 } 803 }
772 buildCounterGroup--; 804 buildCounterGroup--;
773 } 805 }
774 806
775 buildUnnamed826() { 807 buildUnnamed802() {
776 var o = new core.List<api.Group>(); 808 var o = new core.List<api.Group>();
777 o.add(buildGroup()); 809 o.add(buildGroup());
778 o.add(buildGroup()); 810 o.add(buildGroup());
779 return o; 811 return o;
780 } 812 }
781 813
782 checkUnnamed826(core.List<api.Group> o) { 814 checkUnnamed802(core.List<api.Group> o) {
783 unittest.expect(o, unittest.hasLength(2)); 815 unittest.expect(o, unittest.hasLength(2));
784 checkGroup(o[0]); 816 checkGroup(o[0]);
785 checkGroup(o[1]); 817 checkGroup(o[1]);
786 } 818 }
787 819
788 core.int buildCounterGroups = 0; 820 core.int buildCounterGroups = 0;
789 buildGroups() { 821 buildGroups() {
790 var o = new api.Groups(); 822 var o = new api.Groups();
791 buildCounterGroups++; 823 buildCounterGroups++;
792 if (buildCounterGroups < 3) { 824 if (buildCounterGroups < 3) {
793 o.etag = "foo"; 825 o.etag = "foo";
794 o.groups = buildUnnamed826(); 826 o.groups = buildUnnamed802();
795 o.kind = "foo"; 827 o.kind = "foo";
796 o.nextPageToken = "foo"; 828 o.nextPageToken = "foo";
797 } 829 }
798 buildCounterGroups--; 830 buildCounterGroups--;
799 return o; 831 return o;
800 } 832 }
801 833
802 checkGroups(api.Groups o) { 834 checkGroups(api.Groups o) {
803 buildCounterGroups++; 835 buildCounterGroups++;
804 if (buildCounterGroups < 3) { 836 if (buildCounterGroups < 3) {
805 unittest.expect(o.etag, unittest.equals('foo')); 837 unittest.expect(o.etag, unittest.equals('foo'));
806 checkUnnamed826(o.groups); 838 checkUnnamed802(o.groups);
807 unittest.expect(o.kind, unittest.equals('foo')); 839 unittest.expect(o.kind, unittest.equals('foo'));
808 unittest.expect(o.nextPageToken, unittest.equals('foo')); 840 unittest.expect(o.nextPageToken, unittest.equals('foo'));
809 } 841 }
810 buildCounterGroups--; 842 buildCounterGroups--;
811 } 843 }
812 844
813 core.int buildCounterMember = 0; 845 core.int buildCounterMember = 0;
814 buildMember() { 846 buildMember() {
815 var o = new api.Member(); 847 var o = new api.Member();
816 buildCounterMember++; 848 buildCounterMember++;
(...skipping 17 matching lines...) Expand all
834 unittest.expect(o.etag, unittest.equals('foo')); 866 unittest.expect(o.etag, unittest.equals('foo'));
835 unittest.expect(o.id, unittest.equals('foo')); 867 unittest.expect(o.id, unittest.equals('foo'));
836 unittest.expect(o.kind, unittest.equals('foo')); 868 unittest.expect(o.kind, unittest.equals('foo'));
837 unittest.expect(o.role, unittest.equals('foo')); 869 unittest.expect(o.role, unittest.equals('foo'));
838 unittest.expect(o.status, unittest.equals('foo')); 870 unittest.expect(o.status, unittest.equals('foo'));
839 unittest.expect(o.type, unittest.equals('foo')); 871 unittest.expect(o.type, unittest.equals('foo'));
840 } 872 }
841 buildCounterMember--; 873 buildCounterMember--;
842 } 874 }
843 875
844 buildUnnamed827() { 876 buildUnnamed803() {
845 var o = new core.List<api.Member>(); 877 var o = new core.List<api.Member>();
846 o.add(buildMember()); 878 o.add(buildMember());
847 o.add(buildMember()); 879 o.add(buildMember());
848 return o; 880 return o;
849 } 881 }
850 882
851 checkUnnamed827(core.List<api.Member> o) { 883 checkUnnamed803(core.List<api.Member> o) {
852 unittest.expect(o, unittest.hasLength(2)); 884 unittest.expect(o, unittest.hasLength(2));
853 checkMember(o[0]); 885 checkMember(o[0]);
854 checkMember(o[1]); 886 checkMember(o[1]);
855 } 887 }
856 888
857 core.int buildCounterMembers = 0; 889 core.int buildCounterMembers = 0;
858 buildMembers() { 890 buildMembers() {
859 var o = new api.Members(); 891 var o = new api.Members();
860 buildCounterMembers++; 892 buildCounterMembers++;
861 if (buildCounterMembers < 3) { 893 if (buildCounterMembers < 3) {
862 o.etag = "foo"; 894 o.etag = "foo";
863 o.kind = "foo"; 895 o.kind = "foo";
864 o.members = buildUnnamed827(); 896 o.members = buildUnnamed803();
865 o.nextPageToken = "foo"; 897 o.nextPageToken = "foo";
866 } 898 }
867 buildCounterMembers--; 899 buildCounterMembers--;
868 return o; 900 return o;
869 } 901 }
870 902
871 checkMembers(api.Members o) { 903 checkMembers(api.Members o) {
872 buildCounterMembers++; 904 buildCounterMembers++;
873 if (buildCounterMembers < 3) { 905 if (buildCounterMembers < 3) {
874 unittest.expect(o.etag, unittest.equals('foo')); 906 unittest.expect(o.etag, unittest.equals('foo'));
875 unittest.expect(o.kind, unittest.equals('foo')); 907 unittest.expect(o.kind, unittest.equals('foo'));
876 checkUnnamed827(o.members); 908 checkUnnamed803(o.members);
877 unittest.expect(o.nextPageToken, unittest.equals('foo')); 909 unittest.expect(o.nextPageToken, unittest.equals('foo'));
878 } 910 }
879 buildCounterMembers--; 911 buildCounterMembers--;
880 } 912 }
881 913
882 buildUnnamed828() { 914 buildUnnamed804() {
883 var o = new core.List<core.String>(); 915 var o = new core.List<core.String>();
884 o.add("foo"); 916 o.add("foo");
885 o.add("foo"); 917 o.add("foo");
886 return o; 918 return o;
887 } 919 }
888 920
889 checkUnnamed828(core.List<core.String> o) { 921 checkUnnamed804(core.List<core.String> o) {
890 unittest.expect(o, unittest.hasLength(2)); 922 unittest.expect(o, unittest.hasLength(2));
891 unittest.expect(o[0], unittest.equals('foo')); 923 unittest.expect(o[0], unittest.equals('foo'));
892 unittest.expect(o[1], unittest.equals('foo')); 924 unittest.expect(o[1], unittest.equals('foo'));
893 } 925 }
894 926
895 core.int buildCounterMobileDeviceApplications = 0; 927 core.int buildCounterMobileDeviceApplications = 0;
896 buildMobileDeviceApplications() { 928 buildMobileDeviceApplications() {
897 var o = new api.MobileDeviceApplications(); 929 var o = new api.MobileDeviceApplications();
898 buildCounterMobileDeviceApplications++; 930 buildCounterMobileDeviceApplications++;
899 if (buildCounterMobileDeviceApplications < 3) { 931 if (buildCounterMobileDeviceApplications < 3) {
900 o.displayName = "foo"; 932 o.displayName = "foo";
901 o.packageName = "foo"; 933 o.packageName = "foo";
902 o.permission = buildUnnamed828(); 934 o.permission = buildUnnamed804();
903 o.versionCode = 42; 935 o.versionCode = 42;
904 o.versionName = "foo"; 936 o.versionName = "foo";
905 } 937 }
906 buildCounterMobileDeviceApplications--; 938 buildCounterMobileDeviceApplications--;
907 return o; 939 return o;
908 } 940 }
909 941
910 checkMobileDeviceApplications(api.MobileDeviceApplications o) { 942 checkMobileDeviceApplications(api.MobileDeviceApplications o) {
911 buildCounterMobileDeviceApplications++; 943 buildCounterMobileDeviceApplications++;
912 if (buildCounterMobileDeviceApplications < 3) { 944 if (buildCounterMobileDeviceApplications < 3) {
913 unittest.expect(o.displayName, unittest.equals('foo')); 945 unittest.expect(o.displayName, unittest.equals('foo'));
914 unittest.expect(o.packageName, unittest.equals('foo')); 946 unittest.expect(o.packageName, unittest.equals('foo'));
915 checkUnnamed828(o.permission); 947 checkUnnamed804(o.permission);
916 unittest.expect(o.versionCode, unittest.equals(42)); 948 unittest.expect(o.versionCode, unittest.equals(42));
917 unittest.expect(o.versionName, unittest.equals('foo')); 949 unittest.expect(o.versionName, unittest.equals('foo'));
918 } 950 }
919 buildCounterMobileDeviceApplications--; 951 buildCounterMobileDeviceApplications--;
920 } 952 }
921 953
922 buildUnnamed829() { 954 buildUnnamed805() {
923 var o = new core.List<api.MobileDeviceApplications>(); 955 var o = new core.List<api.MobileDeviceApplications>();
924 o.add(buildMobileDeviceApplications()); 956 o.add(buildMobileDeviceApplications());
925 o.add(buildMobileDeviceApplications()); 957 o.add(buildMobileDeviceApplications());
926 return o; 958 return o;
927 } 959 }
928 960
929 checkUnnamed829(core.List<api.MobileDeviceApplications> o) { 961 checkUnnamed805(core.List<api.MobileDeviceApplications> o) {
930 unittest.expect(o, unittest.hasLength(2)); 962 unittest.expect(o, unittest.hasLength(2));
931 checkMobileDeviceApplications(o[0]); 963 checkMobileDeviceApplications(o[0]);
932 checkMobileDeviceApplications(o[1]); 964 checkMobileDeviceApplications(o[1]);
933 } 965 }
934 966
935 buildUnnamed830() { 967 buildUnnamed806() {
936 var o = new core.List<core.String>(); 968 var o = new core.List<core.String>();
937 o.add("foo"); 969 o.add("foo");
938 o.add("foo"); 970 o.add("foo");
939 return o; 971 return o;
940 } 972 }
941 973
942 checkUnnamed830(core.List<core.String> o) { 974 checkUnnamed806(core.List<core.String> o) {
943 unittest.expect(o, unittest.hasLength(2)); 975 unittest.expect(o, unittest.hasLength(2));
944 unittest.expect(o[0], unittest.equals('foo')); 976 unittest.expect(o[0], unittest.equals('foo'));
945 unittest.expect(o[1], unittest.equals('foo')); 977 unittest.expect(o[1], unittest.equals('foo'));
946 } 978 }
947 979
948 buildUnnamed831() { 980 buildUnnamed807() {
949 var o = new core.List<core.String>(); 981 var o = new core.List<core.String>();
950 o.add("foo"); 982 o.add("foo");
951 o.add("foo"); 983 o.add("foo");
952 return o; 984 return o;
953 } 985 }
954 986
955 checkUnnamed831(core.List<core.String> o) { 987 checkUnnamed807(core.List<core.String> o) {
956 unittest.expect(o, unittest.hasLength(2)); 988 unittest.expect(o, unittest.hasLength(2));
957 unittest.expect(o[0], unittest.equals('foo')); 989 unittest.expect(o[0], unittest.equals('foo'));
958 unittest.expect(o[1], unittest.equals('foo')); 990 unittest.expect(o[1], unittest.equals('foo'));
959 } 991 }
960 992
961 buildUnnamed832() { 993 buildUnnamed808() {
962 var o = new core.List<core.String>(); 994 var o = new core.List<core.String>();
963 o.add("foo"); 995 o.add("foo");
964 o.add("foo"); 996 o.add("foo");
965 return o; 997 return o;
966 } 998 }
967 999
968 checkUnnamed832(core.List<core.String> o) { 1000 checkUnnamed808(core.List<core.String> o) {
969 unittest.expect(o, unittest.hasLength(2)); 1001 unittest.expect(o, unittest.hasLength(2));
970 unittest.expect(o[0], unittest.equals('foo')); 1002 unittest.expect(o[0], unittest.equals('foo'));
971 unittest.expect(o[1], unittest.equals('foo')); 1003 unittest.expect(o[1], unittest.equals('foo'));
972 } 1004 }
973 1005
974 core.int buildCounterMobileDevice = 0; 1006 core.int buildCounterMobileDevice = 0;
975 buildMobileDevice() { 1007 buildMobileDevice() {
976 var o = new api.MobileDevice(); 1008 var o = new api.MobileDevice();
977 buildCounterMobileDevice++; 1009 buildCounterMobileDevice++;
978 if (buildCounterMobileDevice < 3) { 1010 if (buildCounterMobileDevice < 3) {
979 o.adbStatus = true; 1011 o.adbStatus = true;
980 o.applications = buildUnnamed829(); 1012 o.applications = buildUnnamed805();
981 o.basebandVersion = "foo"; 1013 o.basebandVersion = "foo";
982 o.bootloaderVersion = "foo"; 1014 o.bootloaderVersion = "foo";
983 o.brand = "foo"; 1015 o.brand = "foo";
984 o.buildNumber = "foo"; 1016 o.buildNumber = "foo";
985 o.defaultLanguage = "foo"; 1017 o.defaultLanguage = "foo";
986 o.developerOptionsStatus = true; 1018 o.developerOptionsStatus = true;
987 o.deviceCompromisedStatus = "foo"; 1019 o.deviceCompromisedStatus = "foo";
988 o.deviceId = "foo"; 1020 o.deviceId = "foo";
989 o.devicePasswordStatus = "foo"; 1021 o.devicePasswordStatus = "foo";
990 o.email = buildUnnamed830(); 1022 o.email = buildUnnamed806();
991 o.encryptionStatus = "foo"; 1023 o.encryptionStatus = "foo";
992 o.etag = "foo"; 1024 o.etag = "foo";
993 o.firstSync = core.DateTime.parse("2002-02-27T14:01:02"); 1025 o.firstSync = core.DateTime.parse("2002-02-27T14:01:02");
994 o.hardware = "foo"; 1026 o.hardware = "foo";
995 o.hardwareId = "foo"; 1027 o.hardwareId = "foo";
996 o.imei = "foo"; 1028 o.imei = "foo";
997 o.kernelVersion = "foo"; 1029 o.kernelVersion = "foo";
998 o.kind = "foo"; 1030 o.kind = "foo";
999 o.lastSync = core.DateTime.parse("2002-02-27T14:01:02"); 1031 o.lastSync = core.DateTime.parse("2002-02-27T14:01:02");
1000 o.managedAccountIsOnOwnerProfile = true; 1032 o.managedAccountIsOnOwnerProfile = true;
1001 o.manufacturer = "foo"; 1033 o.manufacturer = "foo";
1002 o.meid = "foo"; 1034 o.meid = "foo";
1003 o.model = "foo"; 1035 o.model = "foo";
1004 o.name = buildUnnamed831(); 1036 o.name = buildUnnamed807();
1005 o.networkOperator = "foo"; 1037 o.networkOperator = "foo";
1006 o.os = "foo"; 1038 o.os = "foo";
1007 o.otherAccountsInfo = buildUnnamed832(); 1039 o.otherAccountsInfo = buildUnnamed808();
1008 o.privilege = "foo"; 1040 o.privilege = "foo";
1009 o.releaseVersion = "foo"; 1041 o.releaseVersion = "foo";
1010 o.resourceId = "foo"; 1042 o.resourceId = "foo";
1011 o.securityPatchLevel = "foo"; 1043 o.securityPatchLevel = "foo";
1012 o.serialNumber = "foo"; 1044 o.serialNumber = "foo";
1013 o.status = "foo"; 1045 o.status = "foo";
1014 o.supportsWorkProfile = true; 1046 o.supportsWorkProfile = true;
1015 o.type = "foo"; 1047 o.type = "foo";
1016 o.unknownSourcesStatus = true; 1048 o.unknownSourcesStatus = true;
1017 o.userAgent = "foo"; 1049 o.userAgent = "foo";
1018 o.wifiMacAddress = "foo"; 1050 o.wifiMacAddress = "foo";
1019 } 1051 }
1020 buildCounterMobileDevice--; 1052 buildCounterMobileDevice--;
1021 return o; 1053 return o;
1022 } 1054 }
1023 1055
1024 checkMobileDevice(api.MobileDevice o) { 1056 checkMobileDevice(api.MobileDevice o) {
1025 buildCounterMobileDevice++; 1057 buildCounterMobileDevice++;
1026 if (buildCounterMobileDevice < 3) { 1058 if (buildCounterMobileDevice < 3) {
1027 unittest.expect(o.adbStatus, unittest.isTrue); 1059 unittest.expect(o.adbStatus, unittest.isTrue);
1028 checkUnnamed829(o.applications); 1060 checkUnnamed805(o.applications);
1029 unittest.expect(o.basebandVersion, unittest.equals('foo')); 1061 unittest.expect(o.basebandVersion, unittest.equals('foo'));
1030 unittest.expect(o.bootloaderVersion, unittest.equals('foo')); 1062 unittest.expect(o.bootloaderVersion, unittest.equals('foo'));
1031 unittest.expect(o.brand, unittest.equals('foo')); 1063 unittest.expect(o.brand, unittest.equals('foo'));
1032 unittest.expect(o.buildNumber, unittest.equals('foo')); 1064 unittest.expect(o.buildNumber, unittest.equals('foo'));
1033 unittest.expect(o.defaultLanguage, unittest.equals('foo')); 1065 unittest.expect(o.defaultLanguage, unittest.equals('foo'));
1034 unittest.expect(o.developerOptionsStatus, unittest.isTrue); 1066 unittest.expect(o.developerOptionsStatus, unittest.isTrue);
1035 unittest.expect(o.deviceCompromisedStatus, unittest.equals('foo')); 1067 unittest.expect(o.deviceCompromisedStatus, unittest.equals('foo'));
1036 unittest.expect(o.deviceId, unittest.equals('foo')); 1068 unittest.expect(o.deviceId, unittest.equals('foo'));
1037 unittest.expect(o.devicePasswordStatus, unittest.equals('foo')); 1069 unittest.expect(o.devicePasswordStatus, unittest.equals('foo'));
1038 checkUnnamed830(o.email); 1070 checkUnnamed806(o.email);
1039 unittest.expect(o.encryptionStatus, unittest.equals('foo')); 1071 unittest.expect(o.encryptionStatus, unittest.equals('foo'));
1040 unittest.expect(o.etag, unittest.equals('foo')); 1072 unittest.expect(o.etag, unittest.equals('foo'));
1041 unittest.expect(o.firstSync, unittest.equals(core.DateTime.parse("2002-02-27 T14:01:02"))); 1073 unittest.expect(o.firstSync, unittest.equals(core.DateTime.parse("2002-02-27 T14:01:02")));
1042 unittest.expect(o.hardware, unittest.equals('foo')); 1074 unittest.expect(o.hardware, unittest.equals('foo'));
1043 unittest.expect(o.hardwareId, unittest.equals('foo')); 1075 unittest.expect(o.hardwareId, unittest.equals('foo'));
1044 unittest.expect(o.imei, unittest.equals('foo')); 1076 unittest.expect(o.imei, unittest.equals('foo'));
1045 unittest.expect(o.kernelVersion, unittest.equals('foo')); 1077 unittest.expect(o.kernelVersion, unittest.equals('foo'));
1046 unittest.expect(o.kind, unittest.equals('foo')); 1078 unittest.expect(o.kind, unittest.equals('foo'));
1047 unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T 14:01:02"))); 1079 unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T 14:01:02")));
1048 unittest.expect(o.managedAccountIsOnOwnerProfile, unittest.isTrue); 1080 unittest.expect(o.managedAccountIsOnOwnerProfile, unittest.isTrue);
1049 unittest.expect(o.manufacturer, unittest.equals('foo')); 1081 unittest.expect(o.manufacturer, unittest.equals('foo'));
1050 unittest.expect(o.meid, unittest.equals('foo')); 1082 unittest.expect(o.meid, unittest.equals('foo'));
1051 unittest.expect(o.model, unittest.equals('foo')); 1083 unittest.expect(o.model, unittest.equals('foo'));
1052 checkUnnamed831(o.name); 1084 checkUnnamed807(o.name);
1053 unittest.expect(o.networkOperator, unittest.equals('foo')); 1085 unittest.expect(o.networkOperator, unittest.equals('foo'));
1054 unittest.expect(o.os, unittest.equals('foo')); 1086 unittest.expect(o.os, unittest.equals('foo'));
1055 checkUnnamed832(o.otherAccountsInfo); 1087 checkUnnamed808(o.otherAccountsInfo);
1056 unittest.expect(o.privilege, unittest.equals('foo')); 1088 unittest.expect(o.privilege, unittest.equals('foo'));
1057 unittest.expect(o.releaseVersion, unittest.equals('foo')); 1089 unittest.expect(o.releaseVersion, unittest.equals('foo'));
1058 unittest.expect(o.resourceId, unittest.equals('foo')); 1090 unittest.expect(o.resourceId, unittest.equals('foo'));
1059 unittest.expect(o.securityPatchLevel, unittest.equals('foo')); 1091 unittest.expect(o.securityPatchLevel, unittest.equals('foo'));
1060 unittest.expect(o.serialNumber, unittest.equals('foo')); 1092 unittest.expect(o.serialNumber, unittest.equals('foo'));
1061 unittest.expect(o.status, unittest.equals('foo')); 1093 unittest.expect(o.status, unittest.equals('foo'));
1062 unittest.expect(o.supportsWorkProfile, unittest.isTrue); 1094 unittest.expect(o.supportsWorkProfile, unittest.isTrue);
1063 unittest.expect(o.type, unittest.equals('foo')); 1095 unittest.expect(o.type, unittest.equals('foo'));
1064 unittest.expect(o.unknownSourcesStatus, unittest.isTrue); 1096 unittest.expect(o.unknownSourcesStatus, unittest.isTrue);
1065 unittest.expect(o.userAgent, unittest.equals('foo')); 1097 unittest.expect(o.userAgent, unittest.equals('foo'));
(...skipping 14 matching lines...) Expand all
1080 } 1112 }
1081 1113
1082 checkMobileDeviceAction(api.MobileDeviceAction o) { 1114 checkMobileDeviceAction(api.MobileDeviceAction o) {
1083 buildCounterMobileDeviceAction++; 1115 buildCounterMobileDeviceAction++;
1084 if (buildCounterMobileDeviceAction < 3) { 1116 if (buildCounterMobileDeviceAction < 3) {
1085 unittest.expect(o.action, unittest.equals('foo')); 1117 unittest.expect(o.action, unittest.equals('foo'));
1086 } 1118 }
1087 buildCounterMobileDeviceAction--; 1119 buildCounterMobileDeviceAction--;
1088 } 1120 }
1089 1121
1090 buildUnnamed833() { 1122 buildUnnamed809() {
1091 var o = new core.List<api.MobileDevice>(); 1123 var o = new core.List<api.MobileDevice>();
1092 o.add(buildMobileDevice()); 1124 o.add(buildMobileDevice());
1093 o.add(buildMobileDevice()); 1125 o.add(buildMobileDevice());
1094 return o; 1126 return o;
1095 } 1127 }
1096 1128
1097 checkUnnamed833(core.List<api.MobileDevice> o) { 1129 checkUnnamed809(core.List<api.MobileDevice> o) {
1098 unittest.expect(o, unittest.hasLength(2)); 1130 unittest.expect(o, unittest.hasLength(2));
1099 checkMobileDevice(o[0]); 1131 checkMobileDevice(o[0]);
1100 checkMobileDevice(o[1]); 1132 checkMobileDevice(o[1]);
1101 } 1133 }
1102 1134
1103 core.int buildCounterMobileDevices = 0; 1135 core.int buildCounterMobileDevices = 0;
1104 buildMobileDevices() { 1136 buildMobileDevices() {
1105 var o = new api.MobileDevices(); 1137 var o = new api.MobileDevices();
1106 buildCounterMobileDevices++; 1138 buildCounterMobileDevices++;
1107 if (buildCounterMobileDevices < 3) { 1139 if (buildCounterMobileDevices < 3) {
1108 o.etag = "foo"; 1140 o.etag = "foo";
1109 o.kind = "foo"; 1141 o.kind = "foo";
1110 o.mobiledevices = buildUnnamed833(); 1142 o.mobiledevices = buildUnnamed809();
1111 o.nextPageToken = "foo"; 1143 o.nextPageToken = "foo";
1112 } 1144 }
1113 buildCounterMobileDevices--; 1145 buildCounterMobileDevices--;
1114 return o; 1146 return o;
1115 } 1147 }
1116 1148
1117 checkMobileDevices(api.MobileDevices o) { 1149 checkMobileDevices(api.MobileDevices o) {
1118 buildCounterMobileDevices++; 1150 buildCounterMobileDevices++;
1119 if (buildCounterMobileDevices < 3) { 1151 if (buildCounterMobileDevices < 3) {
1120 unittest.expect(o.etag, unittest.equals('foo')); 1152 unittest.expect(o.etag, unittest.equals('foo'));
1121 unittest.expect(o.kind, unittest.equals('foo')); 1153 unittest.expect(o.kind, unittest.equals('foo'));
1122 checkUnnamed833(o.mobiledevices); 1154 checkUnnamed809(o.mobiledevices);
1123 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1155 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1124 } 1156 }
1125 buildCounterMobileDevices--; 1157 buildCounterMobileDevices--;
1126 } 1158 }
1127 1159
1128 core.int buildCounterNotification = 0; 1160 core.int buildCounterNotification = 0;
1129 buildNotification() { 1161 buildNotification() {
1130 var o = new api.Notification(); 1162 var o = new api.Notification();
1131 buildCounterNotification++; 1163 buildCounterNotification++;
1132 if (buildCounterNotification < 3) { 1164 if (buildCounterNotification < 3) {
(...skipping 18 matching lines...) Expand all
1151 unittest.expect(o.fromAddress, unittest.equals('foo')); 1183 unittest.expect(o.fromAddress, unittest.equals('foo'));
1152 unittest.expect(o.isUnread, unittest.isTrue); 1184 unittest.expect(o.isUnread, unittest.isTrue);
1153 unittest.expect(o.kind, unittest.equals('foo')); 1185 unittest.expect(o.kind, unittest.equals('foo'));
1154 unittest.expect(o.notificationId, unittest.equals('foo')); 1186 unittest.expect(o.notificationId, unittest.equals('foo'));
1155 unittest.expect(o.sendTime, unittest.equals(core.DateTime.parse("2002-02-27T 14:01:02"))); 1187 unittest.expect(o.sendTime, unittest.equals(core.DateTime.parse("2002-02-27T 14:01:02")));
1156 unittest.expect(o.subject, unittest.equals('foo')); 1188 unittest.expect(o.subject, unittest.equals('foo'));
1157 } 1189 }
1158 buildCounterNotification--; 1190 buildCounterNotification--;
1159 } 1191 }
1160 1192
1161 buildUnnamed834() { 1193 buildUnnamed810() {
1162 var o = new core.List<api.Notification>(); 1194 var o = new core.List<api.Notification>();
1163 o.add(buildNotification()); 1195 o.add(buildNotification());
1164 o.add(buildNotification()); 1196 o.add(buildNotification());
1165 return o; 1197 return o;
1166 } 1198 }
1167 1199
1168 checkUnnamed834(core.List<api.Notification> o) { 1200 checkUnnamed810(core.List<api.Notification> o) {
1169 unittest.expect(o, unittest.hasLength(2)); 1201 unittest.expect(o, unittest.hasLength(2));
1170 checkNotification(o[0]); 1202 checkNotification(o[0]);
1171 checkNotification(o[1]); 1203 checkNotification(o[1]);
1172 } 1204 }
1173 1205
1174 core.int buildCounterNotifications = 0; 1206 core.int buildCounterNotifications = 0;
1175 buildNotifications() { 1207 buildNotifications() {
1176 var o = new api.Notifications(); 1208 var o = new api.Notifications();
1177 buildCounterNotifications++; 1209 buildCounterNotifications++;
1178 if (buildCounterNotifications < 3) { 1210 if (buildCounterNotifications < 3) {
1179 o.etag = "foo"; 1211 o.etag = "foo";
1180 o.items = buildUnnamed834(); 1212 o.items = buildUnnamed810();
1181 o.kind = "foo"; 1213 o.kind = "foo";
1182 o.nextPageToken = "foo"; 1214 o.nextPageToken = "foo";
1183 o.unreadNotificationsCount = 42; 1215 o.unreadNotificationsCount = 42;
1184 } 1216 }
1185 buildCounterNotifications--; 1217 buildCounterNotifications--;
1186 return o; 1218 return o;
1187 } 1219 }
1188 1220
1189 checkNotifications(api.Notifications o) { 1221 checkNotifications(api.Notifications o) {
1190 buildCounterNotifications++; 1222 buildCounterNotifications++;
1191 if (buildCounterNotifications < 3) { 1223 if (buildCounterNotifications < 3) {
1192 unittest.expect(o.etag, unittest.equals('foo')); 1224 unittest.expect(o.etag, unittest.equals('foo'));
1193 checkUnnamed834(o.items); 1225 checkUnnamed810(o.items);
1194 unittest.expect(o.kind, unittest.equals('foo')); 1226 unittest.expect(o.kind, unittest.equals('foo'));
1195 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1227 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1196 unittest.expect(o.unreadNotificationsCount, unittest.equals(42)); 1228 unittest.expect(o.unreadNotificationsCount, unittest.equals(42));
1197 } 1229 }
1198 buildCounterNotifications--; 1230 buildCounterNotifications--;
1199 } 1231 }
1200 1232
1201 core.int buildCounterOrgUnit = 0; 1233 core.int buildCounterOrgUnit = 0;
1202 buildOrgUnit() { 1234 buildOrgUnit() {
1203 var o = new api.OrgUnit(); 1235 var o = new api.OrgUnit();
(...skipping 22 matching lines...) Expand all
1226 unittest.expect(o.kind, unittest.equals('foo')); 1258 unittest.expect(o.kind, unittest.equals('foo'));
1227 unittest.expect(o.name, unittest.equals('foo')); 1259 unittest.expect(o.name, unittest.equals('foo'));
1228 unittest.expect(o.orgUnitId, unittest.equals('foo')); 1260 unittest.expect(o.orgUnitId, unittest.equals('foo'));
1229 unittest.expect(o.orgUnitPath, unittest.equals('foo')); 1261 unittest.expect(o.orgUnitPath, unittest.equals('foo'));
1230 unittest.expect(o.parentOrgUnitId, unittest.equals('foo')); 1262 unittest.expect(o.parentOrgUnitId, unittest.equals('foo'));
1231 unittest.expect(o.parentOrgUnitPath, unittest.equals('foo')); 1263 unittest.expect(o.parentOrgUnitPath, unittest.equals('foo'));
1232 } 1264 }
1233 buildCounterOrgUnit--; 1265 buildCounterOrgUnit--;
1234 } 1266 }
1235 1267
1236 buildUnnamed835() { 1268 buildUnnamed811() {
1237 var o = new core.List<api.OrgUnit>(); 1269 var o = new core.List<api.OrgUnit>();
1238 o.add(buildOrgUnit()); 1270 o.add(buildOrgUnit());
1239 o.add(buildOrgUnit()); 1271 o.add(buildOrgUnit());
1240 return o; 1272 return o;
1241 } 1273 }
1242 1274
1243 checkUnnamed835(core.List<api.OrgUnit> o) { 1275 checkUnnamed811(core.List<api.OrgUnit> o) {
1244 unittest.expect(o, unittest.hasLength(2)); 1276 unittest.expect(o, unittest.hasLength(2));
1245 checkOrgUnit(o[0]); 1277 checkOrgUnit(o[0]);
1246 checkOrgUnit(o[1]); 1278 checkOrgUnit(o[1]);
1247 } 1279 }
1248 1280
1249 core.int buildCounterOrgUnits = 0; 1281 core.int buildCounterOrgUnits = 0;
1250 buildOrgUnits() { 1282 buildOrgUnits() {
1251 var o = new api.OrgUnits(); 1283 var o = new api.OrgUnits();
1252 buildCounterOrgUnits++; 1284 buildCounterOrgUnits++;
1253 if (buildCounterOrgUnits < 3) { 1285 if (buildCounterOrgUnits < 3) {
1254 o.etag = "foo"; 1286 o.etag = "foo";
1255 o.kind = "foo"; 1287 o.kind = "foo";
1256 o.organizationUnits = buildUnnamed835(); 1288 o.organizationUnits = buildUnnamed811();
1257 } 1289 }
1258 buildCounterOrgUnits--; 1290 buildCounterOrgUnits--;
1259 return o; 1291 return o;
1260 } 1292 }
1261 1293
1262 checkOrgUnits(api.OrgUnits o) { 1294 checkOrgUnits(api.OrgUnits o) {
1263 buildCounterOrgUnits++; 1295 buildCounterOrgUnits++;
1264 if (buildCounterOrgUnits < 3) { 1296 if (buildCounterOrgUnits < 3) {
1265 unittest.expect(o.etag, unittest.equals('foo')); 1297 unittest.expect(o.etag, unittest.equals('foo'));
1266 unittest.expect(o.kind, unittest.equals('foo')); 1298 unittest.expect(o.kind, unittest.equals('foo'));
1267 checkUnnamed835(o.organizationUnits); 1299 checkUnnamed811(o.organizationUnits);
1268 } 1300 }
1269 buildCounterOrgUnits--; 1301 buildCounterOrgUnits--;
1270 } 1302 }
1271 1303
1272 buildUnnamed836() { 1304 buildUnnamed812() {
1273 var o = new core.List<api.Privilege>(); 1305 var o = new core.List<api.Privilege>();
1274 o.add(buildPrivilege()); 1306 o.add(buildPrivilege());
1275 o.add(buildPrivilege()); 1307 o.add(buildPrivilege());
1276 return o; 1308 return o;
1277 } 1309 }
1278 1310
1279 checkUnnamed836(core.List<api.Privilege> o) { 1311 checkUnnamed812(core.List<api.Privilege> o) {
1280 unittest.expect(o, unittest.hasLength(2)); 1312 unittest.expect(o, unittest.hasLength(2));
1281 checkPrivilege(o[0]); 1313 checkPrivilege(o[0]);
1282 checkPrivilege(o[1]); 1314 checkPrivilege(o[1]);
1283 } 1315 }
1284 1316
1285 core.int buildCounterPrivilege = 0; 1317 core.int buildCounterPrivilege = 0;
1286 buildPrivilege() { 1318 buildPrivilege() {
1287 var o = new api.Privilege(); 1319 var o = new api.Privilege();
1288 buildCounterPrivilege++; 1320 buildCounterPrivilege++;
1289 if (buildCounterPrivilege < 3) { 1321 if (buildCounterPrivilege < 3) {
1290 o.childPrivileges = buildUnnamed836(); 1322 o.childPrivileges = buildUnnamed812();
1291 o.etag = "foo"; 1323 o.etag = "foo";
1292 o.isOuScopable = true; 1324 o.isOuScopable = true;
1293 o.kind = "foo"; 1325 o.kind = "foo";
1294 o.privilegeName = "foo"; 1326 o.privilegeName = "foo";
1295 o.serviceId = "foo"; 1327 o.serviceId = "foo";
1296 o.serviceName = "foo"; 1328 o.serviceName = "foo";
1297 } 1329 }
1298 buildCounterPrivilege--; 1330 buildCounterPrivilege--;
1299 return o; 1331 return o;
1300 } 1332 }
1301 1333
1302 checkPrivilege(api.Privilege o) { 1334 checkPrivilege(api.Privilege o) {
1303 buildCounterPrivilege++; 1335 buildCounterPrivilege++;
1304 if (buildCounterPrivilege < 3) { 1336 if (buildCounterPrivilege < 3) {
1305 checkUnnamed836(o.childPrivileges); 1337 checkUnnamed812(o.childPrivileges);
1306 unittest.expect(o.etag, unittest.equals('foo')); 1338 unittest.expect(o.etag, unittest.equals('foo'));
1307 unittest.expect(o.isOuScopable, unittest.isTrue); 1339 unittest.expect(o.isOuScopable, unittest.isTrue);
1308 unittest.expect(o.kind, unittest.equals('foo')); 1340 unittest.expect(o.kind, unittest.equals('foo'));
1309 unittest.expect(o.privilegeName, unittest.equals('foo')); 1341 unittest.expect(o.privilegeName, unittest.equals('foo'));
1310 unittest.expect(o.serviceId, unittest.equals('foo')); 1342 unittest.expect(o.serviceId, unittest.equals('foo'));
1311 unittest.expect(o.serviceName, unittest.equals('foo')); 1343 unittest.expect(o.serviceName, unittest.equals('foo'));
1312 } 1344 }
1313 buildCounterPrivilege--; 1345 buildCounterPrivilege--;
1314 } 1346 }
1315 1347
1316 buildUnnamed837() { 1348 buildUnnamed813() {
1317 var o = new core.List<api.Privilege>(); 1349 var o = new core.List<api.Privilege>();
1318 o.add(buildPrivilege()); 1350 o.add(buildPrivilege());
1319 o.add(buildPrivilege()); 1351 o.add(buildPrivilege());
1320 return o; 1352 return o;
1321 } 1353 }
1322 1354
1323 checkUnnamed837(core.List<api.Privilege> o) { 1355 checkUnnamed813(core.List<api.Privilege> o) {
1324 unittest.expect(o, unittest.hasLength(2)); 1356 unittest.expect(o, unittest.hasLength(2));
1325 checkPrivilege(o[0]); 1357 checkPrivilege(o[0]);
1326 checkPrivilege(o[1]); 1358 checkPrivilege(o[1]);
1327 } 1359 }
1328 1360
1329 core.int buildCounterPrivileges = 0; 1361 core.int buildCounterPrivileges = 0;
1330 buildPrivileges() { 1362 buildPrivileges() {
1331 var o = new api.Privileges(); 1363 var o = new api.Privileges();
1332 buildCounterPrivileges++; 1364 buildCounterPrivileges++;
1333 if (buildCounterPrivileges < 3) { 1365 if (buildCounterPrivileges < 3) {
1334 o.etag = "foo"; 1366 o.etag = "foo";
1335 o.items = buildUnnamed837(); 1367 o.items = buildUnnamed813();
1336 o.kind = "foo"; 1368 o.kind = "foo";
1337 } 1369 }
1338 buildCounterPrivileges--; 1370 buildCounterPrivileges--;
1339 return o; 1371 return o;
1340 } 1372 }
1341 1373
1342 checkPrivileges(api.Privileges o) { 1374 checkPrivileges(api.Privileges o) {
1343 buildCounterPrivileges++; 1375 buildCounterPrivileges++;
1344 if (buildCounterPrivileges < 3) { 1376 if (buildCounterPrivileges < 3) {
1345 unittest.expect(o.etag, unittest.equals('foo')); 1377 unittest.expect(o.etag, unittest.equals('foo'));
1346 checkUnnamed837(o.items); 1378 checkUnnamed813(o.items);
1347 unittest.expect(o.kind, unittest.equals('foo')); 1379 unittest.expect(o.kind, unittest.equals('foo'));
1348 } 1380 }
1349 buildCounterPrivileges--; 1381 buildCounterPrivileges--;
1350 } 1382 }
1351 1383
1352 core.int buildCounterRoleRolePrivileges = 0; 1384 core.int buildCounterRoleRolePrivileges = 0;
1353 buildRoleRolePrivileges() { 1385 buildRoleRolePrivileges() {
1354 var o = new api.RoleRolePrivileges(); 1386 var o = new api.RoleRolePrivileges();
1355 buildCounterRoleRolePrivileges++; 1387 buildCounterRoleRolePrivileges++;
1356 if (buildCounterRoleRolePrivileges < 3) { 1388 if (buildCounterRoleRolePrivileges < 3) {
1357 o.privilegeName = "foo"; 1389 o.privilegeName = "foo";
1358 o.serviceId = "foo"; 1390 o.serviceId = "foo";
1359 } 1391 }
1360 buildCounterRoleRolePrivileges--; 1392 buildCounterRoleRolePrivileges--;
1361 return o; 1393 return o;
1362 } 1394 }
1363 1395
1364 checkRoleRolePrivileges(api.RoleRolePrivileges o) { 1396 checkRoleRolePrivileges(api.RoleRolePrivileges o) {
1365 buildCounterRoleRolePrivileges++; 1397 buildCounterRoleRolePrivileges++;
1366 if (buildCounterRoleRolePrivileges < 3) { 1398 if (buildCounterRoleRolePrivileges < 3) {
1367 unittest.expect(o.privilegeName, unittest.equals('foo')); 1399 unittest.expect(o.privilegeName, unittest.equals('foo'));
1368 unittest.expect(o.serviceId, unittest.equals('foo')); 1400 unittest.expect(o.serviceId, unittest.equals('foo'));
1369 } 1401 }
1370 buildCounterRoleRolePrivileges--; 1402 buildCounterRoleRolePrivileges--;
1371 } 1403 }
1372 1404
1373 buildUnnamed838() { 1405 buildUnnamed814() {
1374 var o = new core.List<api.RoleRolePrivileges>(); 1406 var o = new core.List<api.RoleRolePrivileges>();
1375 o.add(buildRoleRolePrivileges()); 1407 o.add(buildRoleRolePrivileges());
1376 o.add(buildRoleRolePrivileges()); 1408 o.add(buildRoleRolePrivileges());
1377 return o; 1409 return o;
1378 } 1410 }
1379 1411
1380 checkUnnamed838(core.List<api.RoleRolePrivileges> o) { 1412 checkUnnamed814(core.List<api.RoleRolePrivileges> o) {
1381 unittest.expect(o, unittest.hasLength(2)); 1413 unittest.expect(o, unittest.hasLength(2));
1382 checkRoleRolePrivileges(o[0]); 1414 checkRoleRolePrivileges(o[0]);
1383 checkRoleRolePrivileges(o[1]); 1415 checkRoleRolePrivileges(o[1]);
1384 } 1416 }
1385 1417
1386 core.int buildCounterRole = 0; 1418 core.int buildCounterRole = 0;
1387 buildRole() { 1419 buildRole() {
1388 var o = new api.Role(); 1420 var o = new api.Role();
1389 buildCounterRole++; 1421 buildCounterRole++;
1390 if (buildCounterRole < 3) { 1422 if (buildCounterRole < 3) {
1391 o.etag = "foo"; 1423 o.etag = "foo";
1392 o.isSuperAdminRole = true; 1424 o.isSuperAdminRole = true;
1393 o.isSystemRole = true; 1425 o.isSystemRole = true;
1394 o.kind = "foo"; 1426 o.kind = "foo";
1395 o.roleDescription = "foo"; 1427 o.roleDescription = "foo";
1396 o.roleId = "foo"; 1428 o.roleId = "foo";
1397 o.roleName = "foo"; 1429 o.roleName = "foo";
1398 o.rolePrivileges = buildUnnamed838(); 1430 o.rolePrivileges = buildUnnamed814();
1399 } 1431 }
1400 buildCounterRole--; 1432 buildCounterRole--;
1401 return o; 1433 return o;
1402 } 1434 }
1403 1435
1404 checkRole(api.Role o) { 1436 checkRole(api.Role o) {
1405 buildCounterRole++; 1437 buildCounterRole++;
1406 if (buildCounterRole < 3) { 1438 if (buildCounterRole < 3) {
1407 unittest.expect(o.etag, unittest.equals('foo')); 1439 unittest.expect(o.etag, unittest.equals('foo'));
1408 unittest.expect(o.isSuperAdminRole, unittest.isTrue); 1440 unittest.expect(o.isSuperAdminRole, unittest.isTrue);
1409 unittest.expect(o.isSystemRole, unittest.isTrue); 1441 unittest.expect(o.isSystemRole, unittest.isTrue);
1410 unittest.expect(o.kind, unittest.equals('foo')); 1442 unittest.expect(o.kind, unittest.equals('foo'));
1411 unittest.expect(o.roleDescription, unittest.equals('foo')); 1443 unittest.expect(o.roleDescription, unittest.equals('foo'));
1412 unittest.expect(o.roleId, unittest.equals('foo')); 1444 unittest.expect(o.roleId, unittest.equals('foo'));
1413 unittest.expect(o.roleName, unittest.equals('foo')); 1445 unittest.expect(o.roleName, unittest.equals('foo'));
1414 checkUnnamed838(o.rolePrivileges); 1446 checkUnnamed814(o.rolePrivileges);
1415 } 1447 }
1416 buildCounterRole--; 1448 buildCounterRole--;
1417 } 1449 }
1418 1450
1419 core.int buildCounterRoleAssignment = 0; 1451 core.int buildCounterRoleAssignment = 0;
1420 buildRoleAssignment() { 1452 buildRoleAssignment() {
1421 var o = new api.RoleAssignment(); 1453 var o = new api.RoleAssignment();
1422 buildCounterRoleAssignment++; 1454 buildCounterRoleAssignment++;
1423 if (buildCounterRoleAssignment < 3) { 1455 if (buildCounterRoleAssignment < 3) {
1424 o.assignedTo = "foo"; 1456 o.assignedTo = "foo";
(...skipping 15 matching lines...) Expand all
1440 unittest.expect(o.etag, unittest.equals('foo')); 1472 unittest.expect(o.etag, unittest.equals('foo'));
1441 unittest.expect(o.kind, unittest.equals('foo')); 1473 unittest.expect(o.kind, unittest.equals('foo'));
1442 unittest.expect(o.orgUnitId, unittest.equals('foo')); 1474 unittest.expect(o.orgUnitId, unittest.equals('foo'));
1443 unittest.expect(o.roleAssignmentId, unittest.equals('foo')); 1475 unittest.expect(o.roleAssignmentId, unittest.equals('foo'));
1444 unittest.expect(o.roleId, unittest.equals('foo')); 1476 unittest.expect(o.roleId, unittest.equals('foo'));
1445 unittest.expect(o.scopeType, unittest.equals('foo')); 1477 unittest.expect(o.scopeType, unittest.equals('foo'));
1446 } 1478 }
1447 buildCounterRoleAssignment--; 1479 buildCounterRoleAssignment--;
1448 } 1480 }
1449 1481
1450 buildUnnamed839() { 1482 buildUnnamed815() {
1451 var o = new core.List<api.RoleAssignment>(); 1483 var o = new core.List<api.RoleAssignment>();
1452 o.add(buildRoleAssignment()); 1484 o.add(buildRoleAssignment());
1453 o.add(buildRoleAssignment()); 1485 o.add(buildRoleAssignment());
1454 return o; 1486 return o;
1455 } 1487 }
1456 1488
1457 checkUnnamed839(core.List<api.RoleAssignment> o) { 1489 checkUnnamed815(core.List<api.RoleAssignment> o) {
1458 unittest.expect(o, unittest.hasLength(2)); 1490 unittest.expect(o, unittest.hasLength(2));
1459 checkRoleAssignment(o[0]); 1491 checkRoleAssignment(o[0]);
1460 checkRoleAssignment(o[1]); 1492 checkRoleAssignment(o[1]);
1461 } 1493 }
1462 1494
1463 core.int buildCounterRoleAssignments = 0; 1495 core.int buildCounterRoleAssignments = 0;
1464 buildRoleAssignments() { 1496 buildRoleAssignments() {
1465 var o = new api.RoleAssignments(); 1497 var o = new api.RoleAssignments();
1466 buildCounterRoleAssignments++; 1498 buildCounterRoleAssignments++;
1467 if (buildCounterRoleAssignments < 3) { 1499 if (buildCounterRoleAssignments < 3) {
1468 o.etag = "foo"; 1500 o.etag = "foo";
1469 o.items = buildUnnamed839(); 1501 o.items = buildUnnamed815();
1470 o.kind = "foo"; 1502 o.kind = "foo";
1471 o.nextPageToken = "foo"; 1503 o.nextPageToken = "foo";
1472 } 1504 }
1473 buildCounterRoleAssignments--; 1505 buildCounterRoleAssignments--;
1474 return o; 1506 return o;
1475 } 1507 }
1476 1508
1477 checkRoleAssignments(api.RoleAssignments o) { 1509 checkRoleAssignments(api.RoleAssignments o) {
1478 buildCounterRoleAssignments++; 1510 buildCounterRoleAssignments++;
1479 if (buildCounterRoleAssignments < 3) { 1511 if (buildCounterRoleAssignments < 3) {
1480 unittest.expect(o.etag, unittest.equals('foo')); 1512 unittest.expect(o.etag, unittest.equals('foo'));
1481 checkUnnamed839(o.items); 1513 checkUnnamed815(o.items);
1482 unittest.expect(o.kind, unittest.equals('foo')); 1514 unittest.expect(o.kind, unittest.equals('foo'));
1483 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1515 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1484 } 1516 }
1485 buildCounterRoleAssignments--; 1517 buildCounterRoleAssignments--;
1486 } 1518 }
1487 1519
1488 buildUnnamed840() { 1520 buildUnnamed816() {
1489 var o = new core.List<api.Role>(); 1521 var o = new core.List<api.Role>();
1490 o.add(buildRole()); 1522 o.add(buildRole());
1491 o.add(buildRole()); 1523 o.add(buildRole());
1492 return o; 1524 return o;
1493 } 1525 }
1494 1526
1495 checkUnnamed840(core.List<api.Role> o) { 1527 checkUnnamed816(core.List<api.Role> o) {
1496 unittest.expect(o, unittest.hasLength(2)); 1528 unittest.expect(o, unittest.hasLength(2));
1497 checkRole(o[0]); 1529 checkRole(o[0]);
1498 checkRole(o[1]); 1530 checkRole(o[1]);
1499 } 1531 }
1500 1532
1501 core.int buildCounterRoles = 0; 1533 core.int buildCounterRoles = 0;
1502 buildRoles() { 1534 buildRoles() {
1503 var o = new api.Roles(); 1535 var o = new api.Roles();
1504 buildCounterRoles++; 1536 buildCounterRoles++;
1505 if (buildCounterRoles < 3) { 1537 if (buildCounterRoles < 3) {
1506 o.etag = "foo"; 1538 o.etag = "foo";
1507 o.items = buildUnnamed840(); 1539 o.items = buildUnnamed816();
1508 o.kind = "foo"; 1540 o.kind = "foo";
1509 o.nextPageToken = "foo"; 1541 o.nextPageToken = "foo";
1510 } 1542 }
1511 buildCounterRoles--; 1543 buildCounterRoles--;
1512 return o; 1544 return o;
1513 } 1545 }
1514 1546
1515 checkRoles(api.Roles o) { 1547 checkRoles(api.Roles o) {
1516 buildCounterRoles++; 1548 buildCounterRoles++;
1517 if (buildCounterRoles < 3) { 1549 if (buildCounterRoles < 3) {
1518 unittest.expect(o.etag, unittest.equals('foo')); 1550 unittest.expect(o.etag, unittest.equals('foo'));
1519 checkUnnamed840(o.items); 1551 checkUnnamed816(o.items);
1520 unittest.expect(o.kind, unittest.equals('foo')); 1552 unittest.expect(o.kind, unittest.equals('foo'));
1521 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1553 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1522 } 1554 }
1523 buildCounterRoles--; 1555 buildCounterRoles--;
1524 } 1556 }
1525 1557
1526 buildUnnamed841() { 1558 buildUnnamed817() {
1527 var o = new core.List<api.SchemaFieldSpec>(); 1559 var o = new core.List<api.SchemaFieldSpec>();
1528 o.add(buildSchemaFieldSpec()); 1560 o.add(buildSchemaFieldSpec());
1529 o.add(buildSchemaFieldSpec()); 1561 o.add(buildSchemaFieldSpec());
1530 return o; 1562 return o;
1531 } 1563 }
1532 1564
1533 checkUnnamed841(core.List<api.SchemaFieldSpec> o) { 1565 checkUnnamed817(core.List<api.SchemaFieldSpec> o) {
1534 unittest.expect(o, unittest.hasLength(2)); 1566 unittest.expect(o, unittest.hasLength(2));
1535 checkSchemaFieldSpec(o[0]); 1567 checkSchemaFieldSpec(o[0]);
1536 checkSchemaFieldSpec(o[1]); 1568 checkSchemaFieldSpec(o[1]);
1537 } 1569 }
1538 1570
1539 core.int buildCounterSchema = 0; 1571 core.int buildCounterSchema = 0;
1540 buildSchema() { 1572 buildSchema() {
1541 var o = new api.Schema(); 1573 var o = new api.Schema();
1542 buildCounterSchema++; 1574 buildCounterSchema++;
1543 if (buildCounterSchema < 3) { 1575 if (buildCounterSchema < 3) {
1544 o.etag = "foo"; 1576 o.etag = "foo";
1545 o.fields = buildUnnamed841(); 1577 o.fields = buildUnnamed817();
1546 o.kind = "foo"; 1578 o.kind = "foo";
1547 o.schemaId = "foo"; 1579 o.schemaId = "foo";
1548 o.schemaName = "foo"; 1580 o.schemaName = "foo";
1549 } 1581 }
1550 buildCounterSchema--; 1582 buildCounterSchema--;
1551 return o; 1583 return o;
1552 } 1584 }
1553 1585
1554 checkSchema(api.Schema o) { 1586 checkSchema(api.Schema o) {
1555 buildCounterSchema++; 1587 buildCounterSchema++;
1556 if (buildCounterSchema < 3) { 1588 if (buildCounterSchema < 3) {
1557 unittest.expect(o.etag, unittest.equals('foo')); 1589 unittest.expect(o.etag, unittest.equals('foo'));
1558 checkUnnamed841(o.fields); 1590 checkUnnamed817(o.fields);
1559 unittest.expect(o.kind, unittest.equals('foo')); 1591 unittest.expect(o.kind, unittest.equals('foo'));
1560 unittest.expect(o.schemaId, unittest.equals('foo')); 1592 unittest.expect(o.schemaId, unittest.equals('foo'));
1561 unittest.expect(o.schemaName, unittest.equals('foo')); 1593 unittest.expect(o.schemaName, unittest.equals('foo'));
1562 } 1594 }
1563 buildCounterSchema--; 1595 buildCounterSchema--;
1564 } 1596 }
1565 1597
1566 core.int buildCounterSchemaFieldSpecNumericIndexingSpec = 0; 1598 core.int buildCounterSchemaFieldSpecNumericIndexingSpec = 0;
1567 buildSchemaFieldSpecNumericIndexingSpec() { 1599 buildSchemaFieldSpecNumericIndexingSpec() {
1568 var o = new api.SchemaFieldSpecNumericIndexingSpec(); 1600 var o = new api.SchemaFieldSpecNumericIndexingSpec();
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
1612 unittest.expect(o.fieldType, unittest.equals('foo')); 1644 unittest.expect(o.fieldType, unittest.equals('foo'));
1613 unittest.expect(o.indexed, unittest.isTrue); 1645 unittest.expect(o.indexed, unittest.isTrue);
1614 unittest.expect(o.kind, unittest.equals('foo')); 1646 unittest.expect(o.kind, unittest.equals('foo'));
1615 unittest.expect(o.multiValued, unittest.isTrue); 1647 unittest.expect(o.multiValued, unittest.isTrue);
1616 checkSchemaFieldSpecNumericIndexingSpec(o.numericIndexingSpec); 1648 checkSchemaFieldSpecNumericIndexingSpec(o.numericIndexingSpec);
1617 unittest.expect(o.readAccessType, unittest.equals('foo')); 1649 unittest.expect(o.readAccessType, unittest.equals('foo'));
1618 } 1650 }
1619 buildCounterSchemaFieldSpec--; 1651 buildCounterSchemaFieldSpec--;
1620 } 1652 }
1621 1653
1622 buildUnnamed842() { 1654 buildUnnamed818() {
1623 var o = new core.List<api.Schema>(); 1655 var o = new core.List<api.Schema>();
1624 o.add(buildSchema()); 1656 o.add(buildSchema());
1625 o.add(buildSchema()); 1657 o.add(buildSchema());
1626 return o; 1658 return o;
1627 } 1659 }
1628 1660
1629 checkUnnamed842(core.List<api.Schema> o) { 1661 checkUnnamed818(core.List<api.Schema> o) {
1630 unittest.expect(o, unittest.hasLength(2)); 1662 unittest.expect(o, unittest.hasLength(2));
1631 checkSchema(o[0]); 1663 checkSchema(o[0]);
1632 checkSchema(o[1]); 1664 checkSchema(o[1]);
1633 } 1665 }
1634 1666
1635 core.int buildCounterSchemas = 0; 1667 core.int buildCounterSchemas = 0;
1636 buildSchemas() { 1668 buildSchemas() {
1637 var o = new api.Schemas(); 1669 var o = new api.Schemas();
1638 buildCounterSchemas++; 1670 buildCounterSchemas++;
1639 if (buildCounterSchemas < 3) { 1671 if (buildCounterSchemas < 3) {
1640 o.etag = "foo"; 1672 o.etag = "foo";
1641 o.kind = "foo"; 1673 o.kind = "foo";
1642 o.schemas = buildUnnamed842(); 1674 o.schemas = buildUnnamed818();
1643 } 1675 }
1644 buildCounterSchemas--; 1676 buildCounterSchemas--;
1645 return o; 1677 return o;
1646 } 1678 }
1647 1679
1648 checkSchemas(api.Schemas o) { 1680 checkSchemas(api.Schemas o) {
1649 buildCounterSchemas++; 1681 buildCounterSchemas++;
1650 if (buildCounterSchemas < 3) { 1682 if (buildCounterSchemas < 3) {
1651 unittest.expect(o.etag, unittest.equals('foo')); 1683 unittest.expect(o.etag, unittest.equals('foo'));
1652 unittest.expect(o.kind, unittest.equals('foo')); 1684 unittest.expect(o.kind, unittest.equals('foo'));
1653 checkUnnamed842(o.schemas); 1685 checkUnnamed818(o.schemas);
1654 } 1686 }
1655 buildCounterSchemas--; 1687 buildCounterSchemas--;
1656 } 1688 }
1657 1689
1658 buildUnnamed843() { 1690 buildUnnamed819() {
1659 var o = new core.List<core.String>(); 1691 var o = new core.List<core.String>();
1660 o.add("foo"); 1692 o.add("foo");
1661 o.add("foo"); 1693 o.add("foo");
1662 return o; 1694 return o;
1663 } 1695 }
1664 1696
1665 checkUnnamed843(core.List<core.String> o) { 1697 checkUnnamed819(core.List<core.String> o) {
1666 unittest.expect(o, unittest.hasLength(2)); 1698 unittest.expect(o, unittest.hasLength(2));
1667 unittest.expect(o[0], unittest.equals('foo')); 1699 unittest.expect(o[0], unittest.equals('foo'));
1668 unittest.expect(o[1], unittest.equals('foo')); 1700 unittest.expect(o[1], unittest.equals('foo'));
1669 } 1701 }
1670 1702
1671 core.int buildCounterToken = 0; 1703 core.int buildCounterToken = 0;
1672 buildToken() { 1704 buildToken() {
1673 var o = new api.Token(); 1705 var o = new api.Token();
1674 buildCounterToken++; 1706 buildCounterToken++;
1675 if (buildCounterToken < 3) { 1707 if (buildCounterToken < 3) {
1676 o.anonymous = true; 1708 o.anonymous = true;
1677 o.clientId = "foo"; 1709 o.clientId = "foo";
1678 o.displayText = "foo"; 1710 o.displayText = "foo";
1679 o.etag = "foo"; 1711 o.etag = "foo";
1680 o.kind = "foo"; 1712 o.kind = "foo";
1681 o.nativeApp = true; 1713 o.nativeApp = true;
1682 o.scopes = buildUnnamed843(); 1714 o.scopes = buildUnnamed819();
1683 o.userKey = "foo"; 1715 o.userKey = "foo";
1684 } 1716 }
1685 buildCounterToken--; 1717 buildCounterToken--;
1686 return o; 1718 return o;
1687 } 1719 }
1688 1720
1689 checkToken(api.Token o) { 1721 checkToken(api.Token o) {
1690 buildCounterToken++; 1722 buildCounterToken++;
1691 if (buildCounterToken < 3) { 1723 if (buildCounterToken < 3) {
1692 unittest.expect(o.anonymous, unittest.isTrue); 1724 unittest.expect(o.anonymous, unittest.isTrue);
1693 unittest.expect(o.clientId, unittest.equals('foo')); 1725 unittest.expect(o.clientId, unittest.equals('foo'));
1694 unittest.expect(o.displayText, unittest.equals('foo')); 1726 unittest.expect(o.displayText, unittest.equals('foo'));
1695 unittest.expect(o.etag, unittest.equals('foo')); 1727 unittest.expect(o.etag, unittest.equals('foo'));
1696 unittest.expect(o.kind, unittest.equals('foo')); 1728 unittest.expect(o.kind, unittest.equals('foo'));
1697 unittest.expect(o.nativeApp, unittest.isTrue); 1729 unittest.expect(o.nativeApp, unittest.isTrue);
1698 checkUnnamed843(o.scopes); 1730 checkUnnamed819(o.scopes);
1699 unittest.expect(o.userKey, unittest.equals('foo')); 1731 unittest.expect(o.userKey, unittest.equals('foo'));
1700 } 1732 }
1701 buildCounterToken--; 1733 buildCounterToken--;
1702 } 1734 }
1703 1735
1704 buildUnnamed844() { 1736 buildUnnamed820() {
1705 var o = new core.List<api.Token>(); 1737 var o = new core.List<api.Token>();
1706 o.add(buildToken()); 1738 o.add(buildToken());
1707 o.add(buildToken()); 1739 o.add(buildToken());
1708 return o; 1740 return o;
1709 } 1741 }
1710 1742
1711 checkUnnamed844(core.List<api.Token> o) { 1743 checkUnnamed820(core.List<api.Token> o) {
1712 unittest.expect(o, unittest.hasLength(2)); 1744 unittest.expect(o, unittest.hasLength(2));
1713 checkToken(o[0]); 1745 checkToken(o[0]);
1714 checkToken(o[1]); 1746 checkToken(o[1]);
1715 } 1747 }
1716 1748
1717 core.int buildCounterTokens = 0; 1749 core.int buildCounterTokens = 0;
1718 buildTokens() { 1750 buildTokens() {
1719 var o = new api.Tokens(); 1751 var o = new api.Tokens();
1720 buildCounterTokens++; 1752 buildCounterTokens++;
1721 if (buildCounterTokens < 3) { 1753 if (buildCounterTokens < 3) {
1722 o.etag = "foo"; 1754 o.etag = "foo";
1723 o.items = buildUnnamed844(); 1755 o.items = buildUnnamed820();
1724 o.kind = "foo"; 1756 o.kind = "foo";
1725 } 1757 }
1726 buildCounterTokens--; 1758 buildCounterTokens--;
1727 return o; 1759 return o;
1728 } 1760 }
1729 1761
1730 checkTokens(api.Tokens o) { 1762 checkTokens(api.Tokens o) {
1731 buildCounterTokens++; 1763 buildCounterTokens++;
1732 if (buildCounterTokens < 3) { 1764 if (buildCounterTokens < 3) {
1733 unittest.expect(o.etag, unittest.equals('foo')); 1765 unittest.expect(o.etag, unittest.equals('foo'));
1734 checkUnnamed844(o.items); 1766 checkUnnamed820(o.items);
1735 unittest.expect(o.kind, unittest.equals('foo')); 1767 unittest.expect(o.kind, unittest.equals('foo'));
1736 } 1768 }
1737 buildCounterTokens--; 1769 buildCounterTokens--;
1738 } 1770 }
1739 1771
1740 buildUnnamed845() { 1772 buildUnnamed821() {
1741 var o = new core.List<core.String>(); 1773 var o = new core.List<core.String>();
1742 o.add("foo"); 1774 o.add("foo");
1743 o.add("foo"); 1775 o.add("foo");
1744 return o; 1776 return o;
1745 } 1777 }
1746 1778
1747 checkUnnamed845(core.List<core.String> o) { 1779 checkUnnamed821(core.List<core.String> o) {
1748 unittest.expect(o, unittest.hasLength(2)); 1780 unittest.expect(o, unittest.hasLength(2));
1749 unittest.expect(o[0], unittest.equals('foo')); 1781 unittest.expect(o[0], unittest.equals('foo'));
1750 unittest.expect(o[1], unittest.equals('foo')); 1782 unittest.expect(o[1], unittest.equals('foo'));
1751 } 1783 }
1752 1784
1753 buildUnnamed846() { 1785 buildUnnamed822() {
1754 var o = new core.Map<core.String, api.UserCustomProperties>(); 1786 var o = new core.Map<core.String, api.UserCustomProperties>();
1755 o["x"] = buildUserCustomProperties(); 1787 o["x"] = buildUserCustomProperties();
1756 o["y"] = buildUserCustomProperties(); 1788 o["y"] = buildUserCustomProperties();
1757 return o; 1789 return o;
1758 } 1790 }
1759 1791
1760 checkUnnamed846(core.Map<core.String, api.UserCustomProperties> o) { 1792 checkUnnamed822(core.Map<core.String, api.UserCustomProperties> o) {
1761 unittest.expect(o, unittest.hasLength(2)); 1793 unittest.expect(o, unittest.hasLength(2));
1762 checkUserCustomProperties(o["x"]); 1794 checkUserCustomProperties(o["x"]);
1763 checkUserCustomProperties(o["y"]); 1795 checkUserCustomProperties(o["y"]);
1764 } 1796 }
1765 1797
1766 buildUnnamed847() { 1798 buildUnnamed823() {
1767 var o = new core.List<core.String>(); 1799 var o = new core.List<core.String>();
1768 o.add("foo"); 1800 o.add("foo");
1769 o.add("foo"); 1801 o.add("foo");
1770 return o; 1802 return o;
1771 } 1803 }
1772 1804
1773 checkUnnamed847(core.List<core.String> o) { 1805 checkUnnamed823(core.List<core.String> o) {
1774 unittest.expect(o, unittest.hasLength(2)); 1806 unittest.expect(o, unittest.hasLength(2));
1775 unittest.expect(o[0], unittest.equals('foo')); 1807 unittest.expect(o[0], unittest.equals('foo'));
1776 unittest.expect(o[1], unittest.equals('foo')); 1808 unittest.expect(o[1], unittest.equals('foo'));
1777 } 1809 }
1778 1810
1779 core.int buildCounterUser = 0; 1811 core.int buildCounterUser = 0;
1780 buildUser() { 1812 buildUser() {
1781 var o = new api.User(); 1813 var o = new api.User();
1782 buildCounterUser++; 1814 buildCounterUser++;
1783 if (buildCounterUser < 3) { 1815 if (buildCounterUser < 3) {
1784 o.addresses = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1816 o.addresses = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1785 o.agreedToTerms = true; 1817 o.agreedToTerms = true;
1786 o.aliases = buildUnnamed845(); 1818 o.aliases = buildUnnamed821();
1787 o.changePasswordAtNextLogin = true; 1819 o.changePasswordAtNextLogin = true;
1788 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); 1820 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02");
1789 o.customSchemas = buildUnnamed846(); 1821 o.customSchemas = buildUnnamed822();
1790 o.customerId = "foo"; 1822 o.customerId = "foo";
1791 o.deletionTime = core.DateTime.parse("2002-02-27T14:01:02"); 1823 o.deletionTime = core.DateTime.parse("2002-02-27T14:01:02");
1792 o.emails = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1824 o.emails = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1793 o.etag = "foo"; 1825 o.etag = "foo";
1794 o.externalIds = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1826 o.externalIds = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1795 o.hashFunction = "foo"; 1827 o.hashFunction = "foo";
1796 o.id = "foo"; 1828 o.id = "foo";
1797 o.ims = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1829 o.ims = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1798 o.includeInGlobalAddressList = true; 1830 o.includeInGlobalAddressList = true;
1799 o.ipWhitelisted = true; 1831 o.ipWhitelisted = true;
1800 o.isAdmin = true; 1832 o.isAdmin = true;
1801 o.isDelegatedAdmin = true; 1833 o.isDelegatedAdmin = true;
1802 o.isEnforcedIn2Sv = true; 1834 o.isEnforcedIn2Sv = true;
1803 o.isEnrolledIn2Sv = true; 1835 o.isEnrolledIn2Sv = true;
1804 o.isMailboxSetup = true; 1836 o.isMailboxSetup = true;
1837 o.keywords = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1805 o.kind = "foo"; 1838 o.kind = "foo";
1806 o.languages = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1839 o.languages = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1807 o.lastLoginTime = core.DateTime.parse("2002-02-27T14:01:02"); 1840 o.lastLoginTime = core.DateTime.parse("2002-02-27T14:01:02");
1808 o.locations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1841 o.locations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1809 o.name = buildUserName(); 1842 o.name = buildUserName();
1810 o.nonEditableAliases = buildUnnamed847(); 1843 o.nonEditableAliases = buildUnnamed823();
1811 o.notes = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1844 o.notes = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1812 o.orgUnitPath = "foo"; 1845 o.orgUnitPath = "foo";
1813 o.organizations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1846 o.organizations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1814 o.password = "foo"; 1847 o.password = "foo";
1815 o.phones = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1848 o.phones = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1816 o.posixAccounts = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1849 o.posixAccounts = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1817 o.primaryEmail = "foo"; 1850 o.primaryEmail = "foo";
1818 o.relations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1851 o.relations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1819 o.sshPublicKeys = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1852 o.sshPublicKeys = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1820 o.suspended = true; 1853 o.suspended = true;
1821 o.suspensionReason = "foo"; 1854 o.suspensionReason = "foo";
1822 o.thumbnailPhotoEtag = "foo"; 1855 o.thumbnailPhotoEtag = "foo";
1823 o.thumbnailPhotoUrl = "foo"; 1856 o.thumbnailPhotoUrl = "foo";
1824 o.websites = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1857 o.websites = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1825 } 1858 }
1826 buildCounterUser--; 1859 buildCounterUser--;
1827 return o; 1860 return o;
1828 } 1861 }
1829 1862
1830 checkUser(api.User o) { 1863 checkUser(api.User o) {
1831 buildCounterUser++; 1864 buildCounterUser++;
1832 if (buildCounterUser < 3) { 1865 if (buildCounterUser < 3) {
1833 var casted3 = (o.addresses) as core.Map; unittest.expect(casted3, unittest.h asLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unit test.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["st ring"], unittest.equals('foo')); 1866 var casted3 = (o.addresses) as core.Map; unittest.expect(casted3, unittest.h asLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unit test.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["st ring"], unittest.equals('foo'));
1834 unittest.expect(o.agreedToTerms, unittest.isTrue); 1867 unittest.expect(o.agreedToTerms, unittest.isTrue);
1835 checkUnnamed845(o.aliases); 1868 checkUnnamed821(o.aliases);
1836 unittest.expect(o.changePasswordAtNextLogin, unittest.isTrue); 1869 unittest.expect(o.changePasswordAtNextLogin, unittest.isTrue);
1837 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 1870 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
1838 checkUnnamed846(o.customSchemas); 1871 checkUnnamed822(o.customSchemas);
1839 unittest.expect(o.customerId, unittest.equals('foo')); 1872 unittest.expect(o.customerId, unittest.equals('foo'));
1840 unittest.expect(o.deletionTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 1873 unittest.expect(o.deletionTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
1841 var casted4 = (o.emails) as core.Map; unittest.expect(casted4, unittest.hasL ength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittes t.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["strin g"], unittest.equals('foo')); 1874 var casted4 = (o.emails) as core.Map; unittest.expect(casted4, unittest.hasL ength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittes t.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["strin g"], unittest.equals('foo'));
1842 unittest.expect(o.etag, unittest.equals('foo')); 1875 unittest.expect(o.etag, unittest.equals('foo'));
1843 var casted5 = (o.externalIds) as core.Map; unittest.expect(casted5, unittest .hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); un ittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5[" string"], unittest.equals('foo')); 1876 var casted5 = (o.externalIds) as core.Map; unittest.expect(casted5, unittest .hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); un ittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5[" string"], unittest.equals('foo'));
1844 unittest.expect(o.hashFunction, unittest.equals('foo')); 1877 unittest.expect(o.hashFunction, unittest.equals('foo'));
1845 unittest.expect(o.id, unittest.equals('foo')); 1878 unittest.expect(o.id, unittest.equals('foo'));
1846 var casted6 = (o.ims) as core.Map; unittest.expect(casted6, unittest.hasLeng th(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"] , unittest.equals('foo')); 1879 var casted6 = (o.ims) as core.Map; unittest.expect(casted6, unittest.hasLeng th(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"] , unittest.equals('foo'));
1847 unittest.expect(o.includeInGlobalAddressList, unittest.isTrue); 1880 unittest.expect(o.includeInGlobalAddressList, unittest.isTrue);
1848 unittest.expect(o.ipWhitelisted, unittest.isTrue); 1881 unittest.expect(o.ipWhitelisted, unittest.isTrue);
1849 unittest.expect(o.isAdmin, unittest.isTrue); 1882 unittest.expect(o.isAdmin, unittest.isTrue);
1850 unittest.expect(o.isDelegatedAdmin, unittest.isTrue); 1883 unittest.expect(o.isDelegatedAdmin, unittest.isTrue);
1851 unittest.expect(o.isEnforcedIn2Sv, unittest.isTrue); 1884 unittest.expect(o.isEnforcedIn2Sv, unittest.isTrue);
1852 unittest.expect(o.isEnrolledIn2Sv, unittest.isTrue); 1885 unittest.expect(o.isEnrolledIn2Sv, unittest.isTrue);
1853 unittest.expect(o.isMailboxSetup, unittest.isTrue); 1886 unittest.expect(o.isMailboxSetup, unittest.isTrue);
1887 var casted7 = (o.keywords) as core.Map; unittest.expect(casted7, unittest.ha sLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unitt est.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["str ing"], unittest.equals('foo'));
1854 unittest.expect(o.kind, unittest.equals('foo')); 1888 unittest.expect(o.kind, unittest.equals('foo'));
1855 var casted7 = (o.languages) as core.Map; unittest.expect(casted7, unittest.h asLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unit test.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["st ring"], unittest.equals('foo')); 1889 var casted8 = (o.languages) as core.Map; unittest.expect(casted8, unittest.h asLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unit test.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["st ring"], unittest.equals('foo'));
1856 unittest.expect(o.lastLoginTime, unittest.equals(core.DateTime.parse("2002-0 2-27T14:01:02"))); 1890 unittest.expect(o.lastLoginTime, unittest.equals(core.DateTime.parse("2002-0 2-27T14:01:02")));
1857 var casted8 = (o.locations) as core.Map; unittest.expect(casted8, unittest.h asLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unit test.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["st ring"], unittest.equals('foo')); 1891 var casted9 = (o.locations) as core.Map; unittest.expect(casted9, unittest.h asLength(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unit test.expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["st ring"], unittest.equals('foo'));
1858 checkUserName(o.name); 1892 checkUserName(o.name);
1859 checkUnnamed847(o.nonEditableAliases); 1893 checkUnnamed823(o.nonEditableAliases);
1860 var casted9 = (o.notes) as core.Map; unittest.expect(casted9, unittest.hasLe ngth(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest .expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string "], unittest.equals('foo')); 1894 var casted10 = (o.notes) as core.Map; unittest.expect(casted10, unittest.has Length(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unitt est.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["s tring"], unittest.equals('foo'));
1861 unittest.expect(o.orgUnitPath, unittest.equals('foo')); 1895 unittest.expect(o.orgUnitPath, unittest.equals('foo'));
1862 var casted10 = (o.organizations) as core.Map; unittest.expect(casted10, unit test.hasLength(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3]) ); unittest.expect(casted10["bool"], unittest.equals(true)); unittest.expect(cas ted10["string"], unittest.equals('foo')); 1896 var casted11 = (o.organizations) as core.Map; unittest.expect(casted11, unit test.hasLength(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3]) ); unittest.expect(casted11["bool"], unittest.equals(true)); unittest.expect(cas ted11["string"], unittest.equals('foo'));
1863 unittest.expect(o.password, unittest.equals('foo')); 1897 unittest.expect(o.password, unittest.equals('foo'));
1864 var casted11 = (o.phones) as core.Map; unittest.expect(casted11, unittest.ha sLength(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unit test.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11[" string"], unittest.equals('foo')); 1898 var casted12 = (o.phones) as core.Map; unittest.expect(casted12, unittest.ha sLength(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unit test.expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12[" string"], unittest.equals('foo'));
1865 var casted12 = (o.posixAccounts) as core.Map; unittest.expect(casted12, unit test.hasLength(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3]) ); unittest.expect(casted12["bool"], unittest.equals(true)); unittest.expect(cas ted12["string"], unittest.equals('foo')); 1899 var casted13 = (o.posixAccounts) as core.Map; unittest.expect(casted13, unit test.hasLength(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3]) ); unittest.expect(casted13["bool"], unittest.equals(true)); unittest.expect(cas ted13["string"], unittest.equals('foo'));
1866 unittest.expect(o.primaryEmail, unittest.equals('foo')); 1900 unittest.expect(o.primaryEmail, unittest.equals('foo'));
1867 var casted13 = (o.relations) as core.Map; unittest.expect(casted13, unittest .hasLength(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); u nittest.expect(casted13["bool"], unittest.equals(true)); unittest.expect(casted1 3["string"], unittest.equals('foo')); 1901 var casted14 = (o.relations) as core.Map; unittest.expect(casted14, unittest .hasLength(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); u nittest.expect(casted14["bool"], unittest.equals(true)); unittest.expect(casted1 4["string"], unittest.equals('foo'));
1868 var casted14 = (o.sshPublicKeys) as core.Map; unittest.expect(casted14, unit test.hasLength(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3]) ); unittest.expect(casted14["bool"], unittest.equals(true)); unittest.expect(cas ted14["string"], unittest.equals('foo')); 1902 var casted15 = (o.sshPublicKeys) as core.Map; unittest.expect(casted15, unit test.hasLength(3)); unittest.expect(casted15["list"], unittest.equals([1, 2, 3]) ); unittest.expect(casted15["bool"], unittest.equals(true)); unittest.expect(cas ted15["string"], unittest.equals('foo'));
1869 unittest.expect(o.suspended, unittest.isTrue); 1903 unittest.expect(o.suspended, unittest.isTrue);
1870 unittest.expect(o.suspensionReason, unittest.equals('foo')); 1904 unittest.expect(o.suspensionReason, unittest.equals('foo'));
1871 unittest.expect(o.thumbnailPhotoEtag, unittest.equals('foo')); 1905 unittest.expect(o.thumbnailPhotoEtag, unittest.equals('foo'));
1872 unittest.expect(o.thumbnailPhotoUrl, unittest.equals('foo')); 1906 unittest.expect(o.thumbnailPhotoUrl, unittest.equals('foo'));
1873 var casted15 = (o.websites) as core.Map; unittest.expect(casted15, unittest. hasLength(3)); unittest.expect(casted15["list"], unittest.equals([1, 2, 3])); un ittest.expect(casted15["bool"], unittest.equals(true)); unittest.expect(casted15 ["string"], unittest.equals('foo')); 1907 var casted16 = (o.websites) as core.Map; unittest.expect(casted16, unittest. hasLength(3)); unittest.expect(casted16["list"], unittest.equals([1, 2, 3])); un ittest.expect(casted16["bool"], unittest.equals(true)); unittest.expect(casted16 ["string"], unittest.equals('foo'));
1874 } 1908 }
1875 buildCounterUser--; 1909 buildCounterUser--;
1876 } 1910 }
1877 1911
1878 core.int buildCounterUserAbout = 0; 1912 core.int buildCounterUserAbout = 0;
1879 buildUserAbout() { 1913 buildUserAbout() {
1880 var o = new api.UserAbout(); 1914 var o = new api.UserAbout();
1881 buildCounterUserAbout++; 1915 buildCounterUserAbout++;
1882 if (buildCounterUserAbout < 3) { 1916 if (buildCounterUserAbout < 3) {
1883 o.contentType = "foo"; 1917 o.contentType = "foo";
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
1941 1975
1942 buildUserCustomProperties() { 1976 buildUserCustomProperties() {
1943 var o = new api.UserCustomProperties(); 1977 var o = new api.UserCustomProperties();
1944 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1978 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1945 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1979 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1946 return o; 1980 return o;
1947 } 1981 }
1948 1982
1949 checkUserCustomProperties(api.UserCustomProperties o) { 1983 checkUserCustomProperties(api.UserCustomProperties o) {
1950 unittest.expect(o, unittest.hasLength(2)); 1984 unittest.expect(o, unittest.hasLength(2));
1951 var casted16 = (o["a"]) as core.Map; unittest.expect(casted16, unittest.hasLen gth(3)); unittest.expect(casted16["list"], unittest.equals([1, 2, 3])); unittest .expect(casted16["bool"], unittest.equals(true)); unittest.expect(casted16["stri ng"], unittest.equals('foo')); 1985 var casted17 = (o["a"]) as core.Map; unittest.expect(casted17, unittest.hasLen gth(3)); unittest.expect(casted17["list"], unittest.equals([1, 2, 3])); unittest .expect(casted17["bool"], unittest.equals(true)); unittest.expect(casted17["stri ng"], unittest.equals('foo'));
1952 var casted17 = (o["b"]) as core.Map; unittest.expect(casted17, unittest.hasLen gth(3)); unittest.expect(casted17["list"], unittest.equals([1, 2, 3])); unittest .expect(casted17["bool"], unittest.equals(true)); unittest.expect(casted17["stri ng"], unittest.equals('foo')); 1986 var casted18 = (o["b"]) as core.Map; unittest.expect(casted18, unittest.hasLen gth(3)); unittest.expect(casted18["list"], unittest.equals([1, 2, 3])); unittest .expect(casted18["bool"], unittest.equals(true)); unittest.expect(casted18["stri ng"], unittest.equals('foo'));
1953 } 1987 }
1954 1988
1955 core.int buildCounterUserEmail = 0; 1989 core.int buildCounterUserEmail = 0;
1956 buildUserEmail() { 1990 buildUserEmail() {
1957 var o = new api.UserEmail(); 1991 var o = new api.UserEmail();
1958 buildCounterUserEmail++; 1992 buildCounterUserEmail++;
1959 if (buildCounterUserEmail < 3) { 1993 if (buildCounterUserEmail < 3) {
1960 o.address = "foo"; 1994 o.address = "foo";
1961 o.customType = "foo"; 1995 o.customType = "foo";
1962 o.primary = true; 1996 o.primary = true;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
2022 unittest.expect(o.customProtocol, unittest.equals('foo')); 2056 unittest.expect(o.customProtocol, unittest.equals('foo'));
2023 unittest.expect(o.customType, unittest.equals('foo')); 2057 unittest.expect(o.customType, unittest.equals('foo'));
2024 unittest.expect(o.im, unittest.equals('foo')); 2058 unittest.expect(o.im, unittest.equals('foo'));
2025 unittest.expect(o.primary, unittest.isTrue); 2059 unittest.expect(o.primary, unittest.isTrue);
2026 unittest.expect(o.protocol, unittest.equals('foo')); 2060 unittest.expect(o.protocol, unittest.equals('foo'));
2027 unittest.expect(o.type, unittest.equals('foo')); 2061 unittest.expect(o.type, unittest.equals('foo'));
2028 } 2062 }
2029 buildCounterUserIm--; 2063 buildCounterUserIm--;
2030 } 2064 }
2031 2065
2066 core.int buildCounterUserKeyword = 0;
2067 buildUserKeyword() {
2068 var o = new api.UserKeyword();
2069 buildCounterUserKeyword++;
2070 if (buildCounterUserKeyword < 3) {
2071 o.customType = "foo";
2072 o.type = "foo";
2073 o.value = "foo";
2074 }
2075 buildCounterUserKeyword--;
2076 return o;
2077 }
2078
2079 checkUserKeyword(api.UserKeyword o) {
2080 buildCounterUserKeyword++;
2081 if (buildCounterUserKeyword < 3) {
2082 unittest.expect(o.customType, unittest.equals('foo'));
2083 unittest.expect(o.type, unittest.equals('foo'));
2084 unittest.expect(o.value, unittest.equals('foo'));
2085 }
2086 buildCounterUserKeyword--;
2087 }
2088
2032 core.int buildCounterUserLanguage = 0; 2089 core.int buildCounterUserLanguage = 0;
2033 buildUserLanguage() { 2090 buildUserLanguage() {
2034 var o = new api.UserLanguage(); 2091 var o = new api.UserLanguage();
2035 buildCounterUserLanguage++; 2092 buildCounterUserLanguage++;
2036 if (buildCounterUserLanguage < 3) { 2093 if (buildCounterUserLanguage < 3) {
2037 o.customLanguage = "foo"; 2094 o.customLanguage = "foo";
2038 o.languageCode = "foo"; 2095 o.languageCode = "foo";
2039 } 2096 }
2040 buildCounterUserLanguage--; 2097 buildCounterUserLanguage--;
2041 return o; 2098 return o;
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
2338 buildCounterUserWebsite++; 2395 buildCounterUserWebsite++;
2339 if (buildCounterUserWebsite < 3) { 2396 if (buildCounterUserWebsite < 3) {
2340 unittest.expect(o.customType, unittest.equals('foo')); 2397 unittest.expect(o.customType, unittest.equals('foo'));
2341 unittest.expect(o.primary, unittest.isTrue); 2398 unittest.expect(o.primary, unittest.isTrue);
2342 unittest.expect(o.type, unittest.equals('foo')); 2399 unittest.expect(o.type, unittest.equals('foo'));
2343 unittest.expect(o.value, unittest.equals('foo')); 2400 unittest.expect(o.value, unittest.equals('foo'));
2344 } 2401 }
2345 buildCounterUserWebsite--; 2402 buildCounterUserWebsite--;
2346 } 2403 }
2347 2404
2348 buildUnnamed848() { 2405 buildUnnamed824() {
2349 var o = new core.List<api.User>(); 2406 var o = new core.List<api.User>();
2350 o.add(buildUser()); 2407 o.add(buildUser());
2351 o.add(buildUser()); 2408 o.add(buildUser());
2352 return o; 2409 return o;
2353 } 2410 }
2354 2411
2355 checkUnnamed848(core.List<api.User> o) { 2412 checkUnnamed824(core.List<api.User> o) {
2356 unittest.expect(o, unittest.hasLength(2)); 2413 unittest.expect(o, unittest.hasLength(2));
2357 checkUser(o[0]); 2414 checkUser(o[0]);
2358 checkUser(o[1]); 2415 checkUser(o[1]);
2359 } 2416 }
2360 2417
2361 core.int buildCounterUsers = 0; 2418 core.int buildCounterUsers = 0;
2362 buildUsers() { 2419 buildUsers() {
2363 var o = new api.Users(); 2420 var o = new api.Users();
2364 buildCounterUsers++; 2421 buildCounterUsers++;
2365 if (buildCounterUsers < 3) { 2422 if (buildCounterUsers < 3) {
2366 o.etag = "foo"; 2423 o.etag = "foo";
2367 o.kind = "foo"; 2424 o.kind = "foo";
2368 o.nextPageToken = "foo"; 2425 o.nextPageToken = "foo";
2369 o.triggerEvent = "foo"; 2426 o.triggerEvent = "foo";
2370 o.users = buildUnnamed848(); 2427 o.users = buildUnnamed824();
2371 } 2428 }
2372 buildCounterUsers--; 2429 buildCounterUsers--;
2373 return o; 2430 return o;
2374 } 2431 }
2375 2432
2376 checkUsers(api.Users o) { 2433 checkUsers(api.Users o) {
2377 buildCounterUsers++; 2434 buildCounterUsers++;
2378 if (buildCounterUsers < 3) { 2435 if (buildCounterUsers < 3) {
2379 unittest.expect(o.etag, unittest.equals('foo')); 2436 unittest.expect(o.etag, unittest.equals('foo'));
2380 unittest.expect(o.kind, unittest.equals('foo')); 2437 unittest.expect(o.kind, unittest.equals('foo'));
2381 unittest.expect(o.nextPageToken, unittest.equals('foo')); 2438 unittest.expect(o.nextPageToken, unittest.equals('foo'));
2382 unittest.expect(o.triggerEvent, unittest.equals('foo')); 2439 unittest.expect(o.triggerEvent, unittest.equals('foo'));
2383 checkUnnamed848(o.users); 2440 checkUnnamed824(o.users);
2384 } 2441 }
2385 buildCounterUsers--; 2442 buildCounterUsers--;
2386 } 2443 }
2387 2444
2388 core.int buildCounterVerificationCode = 0; 2445 core.int buildCounterVerificationCode = 0;
2389 buildVerificationCode() { 2446 buildVerificationCode() {
2390 var o = new api.VerificationCode(); 2447 var o = new api.VerificationCode();
2391 buildCounterVerificationCode++; 2448 buildCounterVerificationCode++;
2392 if (buildCounterVerificationCode < 3) { 2449 if (buildCounterVerificationCode < 3) {
2393 o.etag = "foo"; 2450 o.etag = "foo";
2394 o.kind = "foo"; 2451 o.kind = "foo";
2395 o.userId = "foo"; 2452 o.userId = "foo";
2396 o.verificationCode = "foo"; 2453 o.verificationCode = "foo";
2397 } 2454 }
2398 buildCounterVerificationCode--; 2455 buildCounterVerificationCode--;
2399 return o; 2456 return o;
2400 } 2457 }
2401 2458
2402 checkVerificationCode(api.VerificationCode o) { 2459 checkVerificationCode(api.VerificationCode o) {
2403 buildCounterVerificationCode++; 2460 buildCounterVerificationCode++;
2404 if (buildCounterVerificationCode < 3) { 2461 if (buildCounterVerificationCode < 3) {
2405 unittest.expect(o.etag, unittest.equals('foo')); 2462 unittest.expect(o.etag, unittest.equals('foo'));
2406 unittest.expect(o.kind, unittest.equals('foo')); 2463 unittest.expect(o.kind, unittest.equals('foo'));
2407 unittest.expect(o.userId, unittest.equals('foo')); 2464 unittest.expect(o.userId, unittest.equals('foo'));
2408 unittest.expect(o.verificationCode, unittest.equals('foo')); 2465 unittest.expect(o.verificationCode, unittest.equals('foo'));
2409 } 2466 }
2410 buildCounterVerificationCode--; 2467 buildCounterVerificationCode--;
2411 } 2468 }
2412 2469
2413 buildUnnamed849() { 2470 buildUnnamed825() {
2414 var o = new core.List<api.VerificationCode>(); 2471 var o = new core.List<api.VerificationCode>();
2415 o.add(buildVerificationCode()); 2472 o.add(buildVerificationCode());
2416 o.add(buildVerificationCode()); 2473 o.add(buildVerificationCode());
2417 return o; 2474 return o;
2418 } 2475 }
2419 2476
2420 checkUnnamed849(core.List<api.VerificationCode> o) { 2477 checkUnnamed825(core.List<api.VerificationCode> o) {
2421 unittest.expect(o, unittest.hasLength(2)); 2478 unittest.expect(o, unittest.hasLength(2));
2422 checkVerificationCode(o[0]); 2479 checkVerificationCode(o[0]);
2423 checkVerificationCode(o[1]); 2480 checkVerificationCode(o[1]);
2424 } 2481 }
2425 2482
2426 core.int buildCounterVerificationCodes = 0; 2483 core.int buildCounterVerificationCodes = 0;
2427 buildVerificationCodes() { 2484 buildVerificationCodes() {
2428 var o = new api.VerificationCodes(); 2485 var o = new api.VerificationCodes();
2429 buildCounterVerificationCodes++; 2486 buildCounterVerificationCodes++;
2430 if (buildCounterVerificationCodes < 3) { 2487 if (buildCounterVerificationCodes < 3) {
2431 o.etag = "foo"; 2488 o.etag = "foo";
2432 o.items = buildUnnamed849(); 2489 o.items = buildUnnamed825();
2433 o.kind = "foo"; 2490 o.kind = "foo";
2434 } 2491 }
2435 buildCounterVerificationCodes--; 2492 buildCounterVerificationCodes--;
2436 return o; 2493 return o;
2437 } 2494 }
2438 2495
2439 checkVerificationCodes(api.VerificationCodes o) { 2496 checkVerificationCodes(api.VerificationCodes o) {
2440 buildCounterVerificationCodes++; 2497 buildCounterVerificationCodes++;
2441 if (buildCounterVerificationCodes < 3) { 2498 if (buildCounterVerificationCodes < 3) {
2442 unittest.expect(o.etag, unittest.equals('foo')); 2499 unittest.expect(o.etag, unittest.equals('foo'));
2443 checkUnnamed849(o.items); 2500 checkUnnamed825(o.items);
2444 unittest.expect(o.kind, unittest.equals('foo')); 2501 unittest.expect(o.kind, unittest.equals('foo'));
2445 } 2502 }
2446 buildCounterVerificationCodes--; 2503 buildCounterVerificationCodes--;
2447 } 2504 }
2448 2505
2449 buildUnnamed850() { 2506 buildUnnamed826() {
2450 var o = new core.List<core.String>(); 2507 var o = new core.List<core.String>();
2451 o.add("foo"); 2508 o.add("foo");
2452 o.add("foo"); 2509 o.add("foo");
2453 return o; 2510 return o;
2454 } 2511 }
2455 2512
2456 checkUnnamed850(core.List<core.String> o) { 2513 checkUnnamed826(core.List<core.String> o) {
2457 unittest.expect(o, unittest.hasLength(2)); 2514 unittest.expect(o, unittest.hasLength(2));
2458 unittest.expect(o[0], unittest.equals('foo')); 2515 unittest.expect(o[0], unittest.equals('foo'));
2459 unittest.expect(o[1], unittest.equals('foo')); 2516 unittest.expect(o[1], unittest.equals('foo'));
2460 } 2517 }
2461 2518
2462 buildUnnamed851() { 2519 buildUnnamed827() {
2463 var o = new core.List<core.String>(); 2520 var o = new core.List<core.String>();
2464 o.add("foo"); 2521 o.add("foo");
2465 o.add("foo"); 2522 o.add("foo");
2466 return o; 2523 return o;
2467 } 2524 }
2468 2525
2469 checkUnnamed851(core.List<core.String> o) { 2526 checkUnnamed827(core.List<core.String> o) {
2470 unittest.expect(o, unittest.hasLength(2)); 2527 unittest.expect(o, unittest.hasLength(2));
2471 unittest.expect(o[0], unittest.equals('foo')); 2528 unittest.expect(o[0], unittest.equals('foo'));
2472 unittest.expect(o[1], unittest.equals('foo')); 2529 unittest.expect(o[1], unittest.equals('foo'));
2473 } 2530 }
2474 2531
2475 buildUnnamed852() { 2532 buildUnnamed828() {
2476 var o = new core.List<core.String>(); 2533 var o = new core.List<core.String>();
2477 o.add("foo"); 2534 o.add("foo");
2478 o.add("foo"); 2535 o.add("foo");
2479 return o; 2536 return o;
2480 } 2537 }
2481 2538
2482 checkUnnamed852(core.List<core.String> o) { 2539 checkUnnamed828(core.List<core.String> o) {
2483 unittest.expect(o, unittest.hasLength(2)); 2540 unittest.expect(o, unittest.hasLength(2));
2484 unittest.expect(o[0], unittest.equals('foo')); 2541 unittest.expect(o[0], unittest.equals('foo'));
2485 unittest.expect(o[1], unittest.equals('foo')); 2542 unittest.expect(o[1], unittest.equals('foo'));
2486 } 2543 }
2487 2544
2488 buildUnnamed853() { 2545 buildUnnamed829() {
2489 var o = new core.List<core.String>(); 2546 var o = new core.List<core.String>();
2490 o.add("foo"); 2547 o.add("foo");
2491 o.add("foo"); 2548 o.add("foo");
2492 return o; 2549 return o;
2493 } 2550 }
2494 2551
2495 checkUnnamed853(core.List<core.String> o) { 2552 checkUnnamed829(core.List<core.String> o) {
2496 unittest.expect(o, unittest.hasLength(2)); 2553 unittest.expect(o, unittest.hasLength(2));
2497 unittest.expect(o[0], unittest.equals('foo')); 2554 unittest.expect(o[0], unittest.equals('foo'));
2498 unittest.expect(o[1], unittest.equals('foo')); 2555 unittest.expect(o[1], unittest.equals('foo'));
2499 } 2556 }
2500 2557
2501 2558
2502 main() { 2559 main() {
2503 unittest.group("obj-schema-Alias", () { 2560 unittest.group("obj-schema-Alias", () {
2504 unittest.test("to-json--from-json", () { 2561 unittest.test("to-json--from-json", () {
2505 var o = buildAlias(); 2562 var o = buildAlias();
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
2601 2658
2602 unittest.group("obj-schema-ChromeOsDevices", () { 2659 unittest.group("obj-schema-ChromeOsDevices", () {
2603 unittest.test("to-json--from-json", () { 2660 unittest.test("to-json--from-json", () {
2604 var o = buildChromeOsDevices(); 2661 var o = buildChromeOsDevices();
2605 var od = new api.ChromeOsDevices.fromJson(o.toJson()); 2662 var od = new api.ChromeOsDevices.fromJson(o.toJson());
2606 checkChromeOsDevices(od); 2663 checkChromeOsDevices(od);
2607 }); 2664 });
2608 }); 2665 });
2609 2666
2610 2667
2668 unittest.group("obj-schema-ChromeOsMoveDevicesToOu", () {
2669 unittest.test("to-json--from-json", () {
2670 var o = buildChromeOsMoveDevicesToOu();
2671 var od = new api.ChromeOsMoveDevicesToOu.fromJson(o.toJson());
2672 checkChromeOsMoveDevicesToOu(od);
2673 });
2674 });
2675
2676
2611 unittest.group("obj-schema-Customer", () { 2677 unittest.group("obj-schema-Customer", () {
2612 unittest.test("to-json--from-json", () { 2678 unittest.test("to-json--from-json", () {
2613 var o = buildCustomer(); 2679 var o = buildCustomer();
2614 var od = new api.Customer.fromJson(o.toJson()); 2680 var od = new api.Customer.fromJson(o.toJson());
2615 checkCustomer(od); 2681 checkCustomer(od);
2616 }); 2682 });
2617 }); 2683 });
2618 2684
2619 2685
2620 unittest.group("obj-schema-CustomerPostalAddress", () { 2686 unittest.group("obj-schema-CustomerPostalAddress", () {
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
2943 3009
2944 unittest.group("obj-schema-UserIm", () { 3010 unittest.group("obj-schema-UserIm", () {
2945 unittest.test("to-json--from-json", () { 3011 unittest.test("to-json--from-json", () {
2946 var o = buildUserIm(); 3012 var o = buildUserIm();
2947 var od = new api.UserIm.fromJson(o.toJson()); 3013 var od = new api.UserIm.fromJson(o.toJson());
2948 checkUserIm(od); 3014 checkUserIm(od);
2949 }); 3015 });
2950 }); 3016 });
2951 3017
2952 3018
3019 unittest.group("obj-schema-UserKeyword", () {
3020 unittest.test("to-json--from-json", () {
3021 var o = buildUserKeyword();
3022 var od = new api.UserKeyword.fromJson(o.toJson());
3023 checkUserKeyword(od);
3024 });
3025 });
3026
3027
2953 unittest.group("obj-schema-UserLanguage", () { 3028 unittest.group("obj-schema-UserLanguage", () {
2954 unittest.test("to-json--from-json", () { 3029 unittest.test("to-json--from-json", () {
2955 var o = buildUserLanguage(); 3030 var o = buildUserLanguage();
2956 var od = new api.UserLanguage.fromJson(o.toJson()); 3031 var od = new api.UserLanguage.fromJson(o.toJson());
2957 checkUserLanguage(od); 3032 checkUserLanguage(od);
2958 }); 3033 });
2959 }); 3034 });
2960 3035
2961 3036
2962 unittest.group("obj-schema-UserLocation", () { 3037 unittest.group("obj-schema-UserLocation", () {
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
3486 "content-type" : "application/json; charset=utf-8", 3561 "content-type" : "application/json; charset=utf-8",
3487 }; 3562 };
3488 var resp = convert.JSON.encode(buildChromeOsDevices()); 3563 var resp = convert.JSON.encode(buildChromeOsDevices());
3489 return new async.Future.value(stringResponse(200, h, resp)); 3564 return new async.Future.value(stringResponse(200, h, resp));
3490 }), true); 3565 }), true);
3491 res.list(arg_customerId, maxResults: arg_maxResults, orderBy: arg_orderBy, orgUnitPath: arg_orgUnitPath, pageToken: arg_pageToken, projection: arg_project ion, query: arg_query, sortOrder: arg_sortOrder).then(unittest.expectAsync1(((ap i.ChromeOsDevices response) { 3566 res.list(arg_customerId, maxResults: arg_maxResults, orderBy: arg_orderBy, orgUnitPath: arg_orgUnitPath, pageToken: arg_pageToken, projection: arg_project ion, query: arg_query, sortOrder: arg_sortOrder).then(unittest.expectAsync1(((ap i.ChromeOsDevices response) {
3492 checkChromeOsDevices(response); 3567 checkChromeOsDevices(response);
3493 }))); 3568 })));
3494 }); 3569 });
3495 3570
3571 unittest.test("method--moveDevicesToOu", () {
3572
3573 var mock = new HttpServerMock();
3574 api.ChromeosdevicesResourceApi res = new api.AdminApi(mock).chromeosdevice s;
3575 var arg_request = buildChromeOsMoveDevicesToOu();
3576 var arg_customerId = "foo";
3577 var arg_orgUnitPath = "foo";
3578 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3579 var obj = new api.ChromeOsMoveDevicesToOu.fromJson(json);
3580 checkChromeOsMoveDevicesToOu(obj);
3581
3582 var path = (req.url).path;
3583 var pathOffset = 0;
3584 var index;
3585 var subPart;
3586 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3587 pathOffset += 1;
3588 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq uals("admin/directory/v1/"));
3589 pathOffset += 19;
3590 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("customer/"));
3591 pathOffset += 9;
3592 index = path.indexOf("/devices/chromeos/moveDevicesToOu", pathOffset);
3593 unittest.expect(index >= 0, unittest.isTrue);
3594 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3595 pathOffset = index;
3596 unittest.expect(subPart, unittest.equals("$arg_customerId"));
3597 unittest.expect(path.substring(pathOffset, pathOffset + 33), unittest.eq uals("/devices/chromeos/moveDevicesToOu"));
3598 pathOffset += 33;
3599
3600 var query = (req.url).query;
3601 var queryOffset = 0;
3602 var queryMap = {};
3603 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3604 parseBool(n) {
3605 if (n == "true") return true;
3606 if (n == "false") return false;
3607 if (n == null) return null;
3608 throw new core.ArgumentError("Invalid boolean: $n");
3609 }
3610 if (query.length > 0) {
3611 for (var part in query.split("&")) {
3612 var keyvalue = part.split("=");
3613 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3614 }
3615 }
3616 unittest.expect(queryMap["orgUnitPath"].first, unittest.equals(arg_orgUn itPath));
3617
3618
3619 var h = {
3620 "content-type" : "application/json; charset=utf-8",
3621 };
3622 var resp = "";
3623 return new async.Future.value(stringResponse(200, h, resp));
3624 }), true);
3625 res.moveDevicesToOu(arg_request, arg_customerId, arg_orgUnitPath).then(uni ttest.expectAsync1((_) {}));
3626 });
3627
3496 unittest.test("method--patch", () { 3628 unittest.test("method--patch", () {
3497 3629
3498 var mock = new HttpServerMock(); 3630 var mock = new HttpServerMock();
3499 api.ChromeosdevicesResourceApi res = new api.AdminApi(mock).chromeosdevice s; 3631 api.ChromeosdevicesResourceApi res = new api.AdminApi(mock).chromeosdevice s;
3500 var arg_request = buildChromeOsDevice(); 3632 var arg_request = buildChromeOsDevice();
3501 var arg_customerId = "foo"; 3633 var arg_customerId = "foo";
3502 var arg_deviceId = "foo"; 3634 var arg_deviceId = "foo";
3503 var arg_projection = "foo"; 3635 var arg_projection = "foo";
3504 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 3636 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3505 var obj = new api.ChromeOsDevice.fromJson(json); 3637 var obj = new api.ChromeOsDevice.fromJson(json);
(...skipping 2104 matching lines...) Expand 10 before | Expand all | Expand 10 after
5610 5742
5611 }); 5743 });
5612 5744
5613 5745
5614 unittest.group("resource-OrgunitsResourceApi", () { 5746 unittest.group("resource-OrgunitsResourceApi", () {
5615 unittest.test("method--delete", () { 5747 unittest.test("method--delete", () {
5616 5748
5617 var mock = new HttpServerMock(); 5749 var mock = new HttpServerMock();
5618 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; 5750 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits;
5619 var arg_customerId = "foo"; 5751 var arg_customerId = "foo";
5620 var arg_orgUnitPath = buildUnnamed850(); 5752 var arg_orgUnitPath = buildUnnamed826();
5621 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 5753 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
5622 var path = (req.url).path; 5754 var path = (req.url).path;
5623 var pathOffset = 0; 5755 var pathOffset = 0;
5624 var index; 5756 var index;
5625 var subPart; 5757 var subPart;
5626 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 5758 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
5627 pathOffset += 1; 5759 pathOffset += 1;
5628 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq uals("admin/directory/v1/")); 5760 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq uals("admin/directory/v1/"));
5629 pathOffset += 19; 5761 pathOffset += 19;
5630 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("customer/")); 5762 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("customer/"));
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
5664 return new async.Future.value(stringResponse(200, h, resp)); 5796 return new async.Future.value(stringResponse(200, h, resp));
5665 }), true); 5797 }), true);
5666 res.delete(arg_customerId, arg_orgUnitPath).then(unittest.expectAsync1((_) {})); 5798 res.delete(arg_customerId, arg_orgUnitPath).then(unittest.expectAsync1((_) {}));
5667 }); 5799 });
5668 5800
5669 unittest.test("method--get", () { 5801 unittest.test("method--get", () {
5670 5802
5671 var mock = new HttpServerMock(); 5803 var mock = new HttpServerMock();
5672 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; 5804 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits;
5673 var arg_customerId = "foo"; 5805 var arg_customerId = "foo";
5674 var arg_orgUnitPath = buildUnnamed851(); 5806 var arg_orgUnitPath = buildUnnamed827();
5675 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 5807 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
5676 var path = (req.url).path; 5808 var path = (req.url).path;
5677 var pathOffset = 0; 5809 var pathOffset = 0;
5678 var index; 5810 var index;
5679 var subPart; 5811 var subPart;
5680 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 5812 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
5681 pathOffset += 1; 5813 pathOffset += 1;
5682 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq uals("admin/directory/v1/")); 5814 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq uals("admin/directory/v1/"));
5683 pathOffset += 19; 5815 pathOffset += 19;
5684 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("customer/")); 5816 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("customer/"));
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
5835 checkOrgUnits(response); 5967 checkOrgUnits(response);
5836 }))); 5968 })));
5837 }); 5969 });
5838 5970
5839 unittest.test("method--patch", () { 5971 unittest.test("method--patch", () {
5840 5972
5841 var mock = new HttpServerMock(); 5973 var mock = new HttpServerMock();
5842 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; 5974 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits;
5843 var arg_request = buildOrgUnit(); 5975 var arg_request = buildOrgUnit();
5844 var arg_customerId = "foo"; 5976 var arg_customerId = "foo";
5845 var arg_orgUnitPath = buildUnnamed852(); 5977 var arg_orgUnitPath = buildUnnamed828();
5846 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 5978 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
5847 var obj = new api.OrgUnit.fromJson(json); 5979 var obj = new api.OrgUnit.fromJson(json);
5848 checkOrgUnit(obj); 5980 checkOrgUnit(obj);
5849 5981
5850 var path = (req.url).path; 5982 var path = (req.url).path;
5851 var pathOffset = 0; 5983 var pathOffset = 0;
5852 var index; 5984 var index;
5853 var subPart; 5985 var subPart;
5854 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 5986 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
5855 pathOffset += 1; 5987 pathOffset += 1;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
5895 checkOrgUnit(response); 6027 checkOrgUnit(response);
5896 }))); 6028 })));
5897 }); 6029 });
5898 6030
5899 unittest.test("method--update", () { 6031 unittest.test("method--update", () {
5900 6032
5901 var mock = new HttpServerMock(); 6033 var mock = new HttpServerMock();
5902 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; 6034 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits;
5903 var arg_request = buildOrgUnit(); 6035 var arg_request = buildOrgUnit();
5904 var arg_customerId = "foo"; 6036 var arg_customerId = "foo";
5905 var arg_orgUnitPath = buildUnnamed853(); 6037 var arg_orgUnitPath = buildUnnamed829();
5906 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 6038 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
5907 var obj = new api.OrgUnit.fromJson(json); 6039 var obj = new api.OrgUnit.fromJson(json);
5908 checkOrgUnit(obj); 6040 checkOrgUnit(obj);
5909 6041
5910 var path = (req.url).path; 6042 var path = (req.url).path;
5911 var pathOffset = 0; 6043 var pathOffset = 0;
5912 var index; 6044 var index;
5913 var subPart; 6045 var subPart;
5914 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 6046 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
5915 pathOffset += 1; 6047 pathOffset += 1;
(...skipping 2674 matching lines...) Expand 10 before | Expand all | Expand 10 after
8590 res.list(arg_userKey).then(unittest.expectAsync1(((api.VerificationCodes r esponse) { 8722 res.list(arg_userKey).then(unittest.expectAsync1(((api.VerificationCodes r esponse) {
8591 checkVerificationCodes(response); 8723 checkVerificationCodes(response);
8592 }))); 8724 })));
8593 }); 8725 });
8594 8726
8595 }); 8727 });
8596 8728
8597 8729
8598 } 8730 }
8599 8731
OLDNEW
« no previous file with comments | « generated/googleapis/test/admin/datatransfer_v1_test.dart ('k') | generated/googleapis/test/admin/reports_v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698