| Index: generated/googleapis/test/admin/directory_v1_test.dart
|
| diff --git a/generated/googleapis/test/admin/directory_v1_test.dart b/generated/googleapis/test/admin/directory_v1_test.dart
|
| index 4b319a189521ffc3c02ac86fd690b5cf7ef1a6e2..7371ef45088958b041ec32f40fc14bb03eadbd78 100644
|
| --- a/generated/googleapis/test/admin/directory_v1_test.dart
|
| +++ b/generated/googleapis/test/admin/directory_v1_test.dart
|
| @@ -43,14 +43,14 @@ checkAlias(api.Alias o) {
|
| buildCounterAlias--;
|
| }
|
|
|
| -buildUnnamed919() {
|
| +buildUnnamed463() {
|
| var o = new core.List<api.Alias>();
|
| o.add(buildAlias());
|
| o.add(buildAlias());
|
| return o;
|
| }
|
|
|
| -checkUnnamed919(core.List<api.Alias> o) {
|
| +checkUnnamed463(core.List<api.Alias> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAlias(o[0]);
|
| checkAlias(o[1]);
|
| @@ -61,7 +61,7 @@ buildAliases() {
|
| var o = new api.Aliases();
|
| buildCounterAliases++;
|
| if (buildCounterAliases < 3) {
|
| - o.aliases = buildUnnamed919();
|
| + o.aliases = buildUnnamed463();
|
| o.etag = "foo";
|
| o.kind = "foo";
|
| }
|
| @@ -72,7 +72,7 @@ buildAliases() {
|
| checkAliases(api.Aliases o) {
|
| buildCounterAliases++;
|
| if (buildCounterAliases < 3) {
|
| - checkUnnamed919(o.aliases);
|
| + checkUnnamed463(o.aliases);
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| @@ -110,14 +110,14 @@ checkAsp(api.Asp o) {
|
| buildCounterAsp--;
|
| }
|
|
|
| -buildUnnamed920() {
|
| +buildUnnamed464() {
|
| var o = new core.List<api.Asp>();
|
| o.add(buildAsp());
|
| o.add(buildAsp());
|
| return o;
|
| }
|
|
|
| -checkUnnamed920(core.List<api.Asp> o) {
|
| +checkUnnamed464(core.List<api.Asp> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAsp(o[0]);
|
| checkAsp(o[1]);
|
| @@ -129,7 +129,7 @@ buildAsps() {
|
| buildCounterAsps++;
|
| if (buildCounterAsps < 3) {
|
| o.etag = "foo";
|
| - o.items = buildUnnamed920();
|
| + o.items = buildUnnamed464();
|
| o.kind = "foo";
|
| }
|
| buildCounterAsps--;
|
| @@ -140,20 +140,20 @@ checkAsps(api.Asps o) {
|
| buildCounterAsps++;
|
| if (buildCounterAsps < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed920(o.items);
|
| + checkUnnamed464(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterAsps--;
|
| }
|
|
|
| -buildUnnamed921() {
|
| +buildUnnamed465() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed921(core.Map<core.String, core.String> o) {
|
| +checkUnnamed465(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| @@ -168,7 +168,7 @@ buildChannel() {
|
| o.expiration = "foo";
|
| o.id = "foo";
|
| o.kind = "foo";
|
| - o.params = buildUnnamed921();
|
| + o.params = buildUnnamed465();
|
| o.payload = true;
|
| o.resourceId = "foo";
|
| o.resourceUri = "foo";
|
| @@ -186,7 +186,7 @@ checkChannel(api.Channel o) {
|
| unittest.expect(o.expiration, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed921(o.params);
|
| + checkUnnamed465(o.params);
|
| unittest.expect(o.payload, unittest.isTrue);
|
| unittest.expect(o.resourceId, unittest.equals('foo'));
|
| unittest.expect(o.resourceUri, unittest.equals('foo'));
|
| @@ -196,6 +196,40 @@ checkChannel(api.Channel o) {
|
| buildCounterChannel--;
|
| }
|
|
|
| +core.int buildCounterChromeOsDeviceActiveTimeRanges = 0;
|
| +buildChromeOsDeviceActiveTimeRanges() {
|
| + var o = new api.ChromeOsDeviceActiveTimeRanges();
|
| + buildCounterChromeOsDeviceActiveTimeRanges++;
|
| + if (buildCounterChromeOsDeviceActiveTimeRanges < 3) {
|
| + o.activeTime = 42;
|
| + o.date = core.DateTime.parse("2002-02-27T14:01:02Z");
|
| + }
|
| + buildCounterChromeOsDeviceActiveTimeRanges--;
|
| + return o;
|
| +}
|
| +
|
| +checkChromeOsDeviceActiveTimeRanges(api.ChromeOsDeviceActiveTimeRanges o) {
|
| + buildCounterChromeOsDeviceActiveTimeRanges++;
|
| + if (buildCounterChromeOsDeviceActiveTimeRanges < 3) {
|
| + unittest.expect(o.activeTime, unittest.equals(42));
|
| + unittest.expect(o.date, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00")));
|
| + }
|
| + buildCounterChromeOsDeviceActiveTimeRanges--;
|
| +}
|
| +
|
| +buildUnnamed466() {
|
| + var o = new core.List<api.ChromeOsDeviceActiveTimeRanges>();
|
| + o.add(buildChromeOsDeviceActiveTimeRanges());
|
| + o.add(buildChromeOsDeviceActiveTimeRanges());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed466(core.List<api.ChromeOsDeviceActiveTimeRanges> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkChromeOsDeviceActiveTimeRanges(o[0]);
|
| + checkChromeOsDeviceActiveTimeRanges(o[1]);
|
| +}
|
| +
|
| core.int buildCounterChromeOsDeviceRecentUsers = 0;
|
| buildChromeOsDeviceRecentUsers() {
|
| var o = new api.ChromeOsDeviceRecentUsers();
|
| @@ -217,14 +251,14 @@ checkChromeOsDeviceRecentUsers(api.ChromeOsDeviceRecentUsers o) {
|
| buildCounterChromeOsDeviceRecentUsers--;
|
| }
|
|
|
| -buildUnnamed922() {
|
| +buildUnnamed467() {
|
| var o = new core.List<api.ChromeOsDeviceRecentUsers>();
|
| o.add(buildChromeOsDeviceRecentUsers());
|
| o.add(buildChromeOsDeviceRecentUsers());
|
| return o;
|
| }
|
|
|
| -checkUnnamed922(core.List<api.ChromeOsDeviceRecentUsers> o) {
|
| +checkUnnamed467(core.List<api.ChromeOsDeviceRecentUsers> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkChromeOsDeviceRecentUsers(o[0]);
|
| checkChromeOsDeviceRecentUsers(o[1]);
|
| @@ -235,6 +269,7 @@ buildChromeOsDevice() {
|
| var o = new api.ChromeOsDevice();
|
| buildCounterChromeOsDevice++;
|
| if (buildCounterChromeOsDevice < 3) {
|
| + o.activeTimeRanges = buildUnnamed466();
|
| o.annotatedLocation = "foo";
|
| o.annotatedUser = "foo";
|
| o.bootMode = "foo";
|
| @@ -253,7 +288,7 @@ buildChromeOsDevice() {
|
| o.orgUnitPath = "foo";
|
| o.osVersion = "foo";
|
| o.platformVersion = "foo";
|
| - o.recentUsers = buildUnnamed922();
|
| + o.recentUsers = buildUnnamed467();
|
| o.serialNumber = "foo";
|
| o.status = "foo";
|
| o.supportEndDate = core.DateTime.parse("2002-02-27T14:01:02");
|
| @@ -266,6 +301,7 @@ buildChromeOsDevice() {
|
| checkChromeOsDevice(api.ChromeOsDevice o) {
|
| buildCounterChromeOsDevice++;
|
| if (buildCounterChromeOsDevice < 3) {
|
| + checkUnnamed466(o.activeTimeRanges);
|
| unittest.expect(o.annotatedLocation, unittest.equals('foo'));
|
| unittest.expect(o.annotatedUser, unittest.equals('foo'));
|
| unittest.expect(o.bootMode, unittest.equals('foo'));
|
| @@ -284,7 +320,7 @@ checkChromeOsDevice(api.ChromeOsDevice o) {
|
| unittest.expect(o.orgUnitPath, unittest.equals('foo'));
|
| unittest.expect(o.osVersion, unittest.equals('foo'));
|
| unittest.expect(o.platformVersion, unittest.equals('foo'));
|
| - checkUnnamed922(o.recentUsers);
|
| + checkUnnamed467(o.recentUsers);
|
| unittest.expect(o.serialNumber, unittest.equals('foo'));
|
| unittest.expect(o.status, unittest.equals('foo'));
|
| unittest.expect(o.supportEndDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| @@ -293,14 +329,14 @@ checkChromeOsDevice(api.ChromeOsDevice o) {
|
| buildCounterChromeOsDevice--;
|
| }
|
|
|
| -buildUnnamed923() {
|
| +buildUnnamed468() {
|
| var o = new core.List<api.ChromeOsDevice>();
|
| o.add(buildChromeOsDevice());
|
| o.add(buildChromeOsDevice());
|
| return o;
|
| }
|
|
|
| -checkUnnamed923(core.List<api.ChromeOsDevice> o) {
|
| +checkUnnamed468(core.List<api.ChromeOsDevice> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkChromeOsDevice(o[0]);
|
| checkChromeOsDevice(o[1]);
|
| @@ -311,7 +347,7 @@ buildChromeOsDevices() {
|
| var o = new api.ChromeOsDevices();
|
| buildCounterChromeOsDevices++;
|
| if (buildCounterChromeOsDevices < 3) {
|
| - o.chromeosdevices = buildUnnamed923();
|
| + o.chromeosdevices = buildUnnamed468();
|
| o.etag = "foo";
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| @@ -323,7 +359,7 @@ buildChromeOsDevices() {
|
| checkChromeOsDevices(api.ChromeOsDevices o) {
|
| buildCounterChromeOsDevices++;
|
| if (buildCounterChromeOsDevices < 3) {
|
| - checkUnnamed923(o.chromeosdevices);
|
| + checkUnnamed468(o.chromeosdevices);
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| @@ -331,27 +367,27 @@ checkChromeOsDevices(api.ChromeOsDevices o) {
|
| buildCounterChromeOsDevices--;
|
| }
|
|
|
| -buildUnnamed924() {
|
| +buildUnnamed469() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed924(core.List<core.String> o) {
|
| +checkUnnamed469(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed925() {
|
| +buildUnnamed470() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed925(core.List<core.String> o) {
|
| +checkUnnamed470(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -363,7 +399,7 @@ buildGroup() {
|
| buildCounterGroup++;
|
| if (buildCounterGroup < 3) {
|
| o.adminCreated = true;
|
| - o.aliases = buildUnnamed924();
|
| + o.aliases = buildUnnamed469();
|
| o.description = "foo";
|
| o.directMembersCount = "foo";
|
| o.email = "foo";
|
| @@ -371,7 +407,7 @@ buildGroup() {
|
| o.id = "foo";
|
| o.kind = "foo";
|
| o.name = "foo";
|
| - o.nonEditableAliases = buildUnnamed925();
|
| + o.nonEditableAliases = buildUnnamed470();
|
| }
|
| buildCounterGroup--;
|
| return o;
|
| @@ -381,7 +417,7 @@ checkGroup(api.Group o) {
|
| buildCounterGroup++;
|
| if (buildCounterGroup < 3) {
|
| unittest.expect(o.adminCreated, unittest.isTrue);
|
| - checkUnnamed924(o.aliases);
|
| + checkUnnamed469(o.aliases);
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.directMembersCount, unittest.equals('foo'));
|
| unittest.expect(o.email, unittest.equals('foo'));
|
| @@ -389,19 +425,19 @@ checkGroup(api.Group o) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed925(o.nonEditableAliases);
|
| + checkUnnamed470(o.nonEditableAliases);
|
| }
|
| buildCounterGroup--;
|
| }
|
|
|
| -buildUnnamed926() {
|
| +buildUnnamed471() {
|
| var o = new core.List<api.Group>();
|
| o.add(buildGroup());
|
| o.add(buildGroup());
|
| return o;
|
| }
|
|
|
| -checkUnnamed926(core.List<api.Group> o) {
|
| +checkUnnamed471(core.List<api.Group> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGroup(o[0]);
|
| checkGroup(o[1]);
|
| @@ -413,7 +449,7 @@ buildGroups() {
|
| buildCounterGroups++;
|
| if (buildCounterGroups < 3) {
|
| o.etag = "foo";
|
| - o.groups = buildUnnamed926();
|
| + o.groups = buildUnnamed471();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -425,7 +461,7 @@ checkGroups(api.Groups o) {
|
| buildCounterGroups++;
|
| if (buildCounterGroups < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed926(o.groups);
|
| + checkUnnamed471(o.groups);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -461,14 +497,14 @@ checkMember(api.Member o) {
|
| buildCounterMember--;
|
| }
|
|
|
| -buildUnnamed927() {
|
| +buildUnnamed472() {
|
| var o = new core.List<api.Member>();
|
| o.add(buildMember());
|
| o.add(buildMember());
|
| return o;
|
| }
|
|
|
| -checkUnnamed927(core.List<api.Member> o) {
|
| +checkUnnamed472(core.List<api.Member> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMember(o[0]);
|
| checkMember(o[1]);
|
| @@ -481,7 +517,7 @@ buildMembers() {
|
| if (buildCounterMembers < 3) {
|
| o.etag = "foo";
|
| o.kind = "foo";
|
| - o.members = buildUnnamed927();
|
| + o.members = buildUnnamed472();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterMembers--;
|
| @@ -493,20 +529,20 @@ checkMembers(api.Members o) {
|
| if (buildCounterMembers < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed927(o.members);
|
| + checkUnnamed472(o.members);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterMembers--;
|
| }
|
|
|
| -buildUnnamed928() {
|
| +buildUnnamed473() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed928(core.List<core.String> o) {
|
| +checkUnnamed473(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -519,7 +555,7 @@ buildMobileDeviceApplications() {
|
| if (buildCounterMobileDeviceApplications < 3) {
|
| o.displayName = "foo";
|
| o.packageName = "foo";
|
| - o.permission = buildUnnamed928();
|
| + o.permission = buildUnnamed473();
|
| o.versionCode = 42;
|
| o.versionName = "foo";
|
| }
|
| @@ -532,47 +568,47 @@ checkMobileDeviceApplications(api.MobileDeviceApplications o) {
|
| if (buildCounterMobileDeviceApplications < 3) {
|
| unittest.expect(o.displayName, unittest.equals('foo'));
|
| unittest.expect(o.packageName, unittest.equals('foo'));
|
| - checkUnnamed928(o.permission);
|
| + checkUnnamed473(o.permission);
|
| unittest.expect(o.versionCode, unittest.equals(42));
|
| unittest.expect(o.versionName, unittest.equals('foo'));
|
| }
|
| buildCounterMobileDeviceApplications--;
|
| }
|
|
|
| -buildUnnamed929() {
|
| +buildUnnamed474() {
|
| var o = new core.List<api.MobileDeviceApplications>();
|
| o.add(buildMobileDeviceApplications());
|
| o.add(buildMobileDeviceApplications());
|
| return o;
|
| }
|
|
|
| -checkUnnamed929(core.List<api.MobileDeviceApplications> o) {
|
| +checkUnnamed474(core.List<api.MobileDeviceApplications> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMobileDeviceApplications(o[0]);
|
| checkMobileDeviceApplications(o[1]);
|
| }
|
|
|
| -buildUnnamed930() {
|
| +buildUnnamed475() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed930(core.List<core.String> o) {
|
| +checkUnnamed475(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed931() {
|
| +buildUnnamed476() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed931(core.List<core.String> o) {
|
| +checkUnnamed476(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -583,13 +619,13 @@ buildMobileDevice() {
|
| var o = new api.MobileDevice();
|
| buildCounterMobileDevice++;
|
| if (buildCounterMobileDevice < 3) {
|
| - o.applications = buildUnnamed929();
|
| + o.applications = buildUnnamed474();
|
| o.basebandVersion = "foo";
|
| o.buildNumber = "foo";
|
| o.defaultLanguage = "foo";
|
| o.deviceCompromisedStatus = "foo";
|
| o.deviceId = "foo";
|
| - o.email = buildUnnamed930();
|
| + o.email = buildUnnamed475();
|
| o.etag = "foo";
|
| o.firstSync = core.DateTime.parse("2002-02-27T14:01:02");
|
| o.hardwareId = "foo";
|
| @@ -600,7 +636,7 @@ buildMobileDevice() {
|
| o.managedAccountIsOnOwnerProfile = true;
|
| o.meid = "foo";
|
| o.model = "foo";
|
| - o.name = buildUnnamed931();
|
| + o.name = buildUnnamed476();
|
| o.networkOperator = "foo";
|
| o.os = "foo";
|
| o.resourceId = "foo";
|
| @@ -617,13 +653,13 @@ buildMobileDevice() {
|
| checkMobileDevice(api.MobileDevice o) {
|
| buildCounterMobileDevice++;
|
| if (buildCounterMobileDevice < 3) {
|
| - checkUnnamed929(o.applications);
|
| + checkUnnamed474(o.applications);
|
| unittest.expect(o.basebandVersion, unittest.equals('foo'));
|
| unittest.expect(o.buildNumber, unittest.equals('foo'));
|
| unittest.expect(o.defaultLanguage, unittest.equals('foo'));
|
| unittest.expect(o.deviceCompromisedStatus, unittest.equals('foo'));
|
| unittest.expect(o.deviceId, unittest.equals('foo'));
|
| - checkUnnamed930(o.email);
|
| + checkUnnamed475(o.email);
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.firstSync, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| unittest.expect(o.hardwareId, unittest.equals('foo'));
|
| @@ -634,7 +670,7 @@ checkMobileDevice(api.MobileDevice o) {
|
| unittest.expect(o.managedAccountIsOnOwnerProfile, unittest.isTrue);
|
| unittest.expect(o.meid, unittest.equals('foo'));
|
| unittest.expect(o.model, unittest.equals('foo'));
|
| - checkUnnamed931(o.name);
|
| + checkUnnamed476(o.name);
|
| unittest.expect(o.networkOperator, unittest.equals('foo'));
|
| unittest.expect(o.os, unittest.equals('foo'));
|
| unittest.expect(o.resourceId, unittest.equals('foo'));
|
| @@ -666,14 +702,14 @@ checkMobileDeviceAction(api.MobileDeviceAction o) {
|
| buildCounterMobileDeviceAction--;
|
| }
|
|
|
| -buildUnnamed932() {
|
| +buildUnnamed477() {
|
| var o = new core.List<api.MobileDevice>();
|
| o.add(buildMobileDevice());
|
| o.add(buildMobileDevice());
|
| return o;
|
| }
|
|
|
| -checkUnnamed932(core.List<api.MobileDevice> o) {
|
| +checkUnnamed477(core.List<api.MobileDevice> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMobileDevice(o[0]);
|
| checkMobileDevice(o[1]);
|
| @@ -686,7 +722,7 @@ buildMobileDevices() {
|
| if (buildCounterMobileDevices < 3) {
|
| o.etag = "foo";
|
| o.kind = "foo";
|
| - o.mobiledevices = buildUnnamed932();
|
| + o.mobiledevices = buildUnnamed477();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterMobileDevices--;
|
| @@ -698,7 +734,7 @@ checkMobileDevices(api.MobileDevices o) {
|
| if (buildCounterMobileDevices < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed932(o.mobiledevices);
|
| + checkUnnamed477(o.mobiledevices);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterMobileDevices--;
|
| @@ -737,14 +773,14 @@ checkNotification(api.Notification o) {
|
| buildCounterNotification--;
|
| }
|
|
|
| -buildUnnamed933() {
|
| +buildUnnamed478() {
|
| var o = new core.List<api.Notification>();
|
| o.add(buildNotification());
|
| o.add(buildNotification());
|
| return o;
|
| }
|
|
|
| -checkUnnamed933(core.List<api.Notification> o) {
|
| +checkUnnamed478(core.List<api.Notification> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkNotification(o[0]);
|
| checkNotification(o[1]);
|
| @@ -756,7 +792,7 @@ buildNotifications() {
|
| buildCounterNotifications++;
|
| if (buildCounterNotifications < 3) {
|
| o.etag = "foo";
|
| - o.items = buildUnnamed933();
|
| + o.items = buildUnnamed478();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.unreadNotificationsCount = 42;
|
| @@ -769,7 +805,7 @@ checkNotifications(api.Notifications o) {
|
| buildCounterNotifications++;
|
| if (buildCounterNotifications < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed933(o.items);
|
| + checkUnnamed478(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.unreadNotificationsCount, unittest.equals(42));
|
| @@ -808,14 +844,14 @@ checkOrgUnit(api.OrgUnit o) {
|
| buildCounterOrgUnit--;
|
| }
|
|
|
| -buildUnnamed934() {
|
| +buildUnnamed479() {
|
| var o = new core.List<api.OrgUnit>();
|
| o.add(buildOrgUnit());
|
| o.add(buildOrgUnit());
|
| return o;
|
| }
|
|
|
| -checkUnnamed934(core.List<api.OrgUnit> o) {
|
| +checkUnnamed479(core.List<api.OrgUnit> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOrgUnit(o[0]);
|
| checkOrgUnit(o[1]);
|
| @@ -828,7 +864,7 @@ buildOrgUnits() {
|
| if (buildCounterOrgUnits < 3) {
|
| o.etag = "foo";
|
| o.kind = "foo";
|
| - o.organizationUnits = buildUnnamed934();
|
| + o.organizationUnits = buildUnnamed479();
|
| }
|
| buildCounterOrgUnits--;
|
| return o;
|
| @@ -839,19 +875,19 @@ checkOrgUnits(api.OrgUnits o) {
|
| if (buildCounterOrgUnits < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed934(o.organizationUnits);
|
| + checkUnnamed479(o.organizationUnits);
|
| }
|
| buildCounterOrgUnits--;
|
| }
|
|
|
| -buildUnnamed935() {
|
| +buildUnnamed480() {
|
| var o = new core.List<api.SchemaFieldSpec>();
|
| o.add(buildSchemaFieldSpec());
|
| o.add(buildSchemaFieldSpec());
|
| return o;
|
| }
|
|
|
| -checkUnnamed935(core.List<api.SchemaFieldSpec> o) {
|
| +checkUnnamed480(core.List<api.SchemaFieldSpec> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSchemaFieldSpec(o[0]);
|
| checkSchemaFieldSpec(o[1]);
|
| @@ -863,7 +899,7 @@ buildSchema() {
|
| buildCounterSchema++;
|
| if (buildCounterSchema < 3) {
|
| o.etag = "foo";
|
| - o.fields = buildUnnamed935();
|
| + o.fields = buildUnnamed480();
|
| o.kind = "foo";
|
| o.schemaId = "foo";
|
| o.schemaName = "foo";
|
| @@ -876,7 +912,7 @@ checkSchema(api.Schema o) {
|
| buildCounterSchema++;
|
| if (buildCounterSchema < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed935(o.fields);
|
| + checkUnnamed480(o.fields);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.schemaId, unittest.equals('foo'));
|
| unittest.expect(o.schemaName, unittest.equals('foo'));
|
| @@ -940,14 +976,14 @@ checkSchemaFieldSpec(api.SchemaFieldSpec o) {
|
| buildCounterSchemaFieldSpec--;
|
| }
|
|
|
| -buildUnnamed936() {
|
| +buildUnnamed481() {
|
| var o = new core.List<api.Schema>();
|
| o.add(buildSchema());
|
| o.add(buildSchema());
|
| return o;
|
| }
|
|
|
| -checkUnnamed936(core.List<api.Schema> o) {
|
| +checkUnnamed481(core.List<api.Schema> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSchema(o[0]);
|
| checkSchema(o[1]);
|
| @@ -960,7 +996,7 @@ buildSchemas() {
|
| if (buildCounterSchemas < 3) {
|
| o.etag = "foo";
|
| o.kind = "foo";
|
| - o.schemas = buildUnnamed936();
|
| + o.schemas = buildUnnamed481();
|
| }
|
| buildCounterSchemas--;
|
| return o;
|
| @@ -971,19 +1007,19 @@ checkSchemas(api.Schemas o) {
|
| if (buildCounterSchemas < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed936(o.schemas);
|
| + checkUnnamed481(o.schemas);
|
| }
|
| buildCounterSchemas--;
|
| }
|
|
|
| -buildUnnamed937() {
|
| +buildUnnamed482() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed937(core.List<core.String> o) {
|
| +checkUnnamed482(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -1000,7 +1036,7 @@ buildToken() {
|
| o.etag = "foo";
|
| o.kind = "foo";
|
| o.nativeApp = true;
|
| - o.scopes = buildUnnamed937();
|
| + o.scopes = buildUnnamed482();
|
| o.userKey = "foo";
|
| }
|
| buildCounterToken--;
|
| @@ -1016,20 +1052,20 @@ checkToken(api.Token o) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nativeApp, unittest.isTrue);
|
| - checkUnnamed937(o.scopes);
|
| + checkUnnamed482(o.scopes);
|
| unittest.expect(o.userKey, unittest.equals('foo'));
|
| }
|
| buildCounterToken--;
|
| }
|
|
|
| -buildUnnamed938() {
|
| +buildUnnamed483() {
|
| var o = new core.List<api.Token>();
|
| o.add(buildToken());
|
| o.add(buildToken());
|
| return o;
|
| }
|
|
|
| -checkUnnamed938(core.List<api.Token> o) {
|
| +checkUnnamed483(core.List<api.Token> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkToken(o[0]);
|
| checkToken(o[1]);
|
| @@ -1041,7 +1077,7 @@ buildTokens() {
|
| buildCounterTokens++;
|
| if (buildCounterTokens < 3) {
|
| o.etag = "foo";
|
| - o.items = buildUnnamed938();
|
| + o.items = buildUnnamed483();
|
| o.kind = "foo";
|
| }
|
| buildCounterTokens--;
|
| @@ -1052,46 +1088,46 @@ checkTokens(api.Tokens o) {
|
| buildCounterTokens++;
|
| if (buildCounterTokens < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed938(o.items);
|
| + checkUnnamed483(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterTokens--;
|
| }
|
|
|
| -buildUnnamed939() {
|
| +buildUnnamed484() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed939(core.List<core.String> o) {
|
| +checkUnnamed484(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed940() {
|
| +buildUnnamed485() {
|
| var o = new core.Map<core.String, api.UserCustomProperties>();
|
| o["x"] = buildUserCustomProperties();
|
| o["y"] = buildUserCustomProperties();
|
| return o;
|
| }
|
|
|
| -checkUnnamed940(core.Map<core.String, api.UserCustomProperties> o) {
|
| +checkUnnamed485(core.Map<core.String, api.UserCustomProperties> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkUserCustomProperties(o["x"]);
|
| checkUserCustomProperties(o["y"]);
|
| }
|
|
|
| -buildUnnamed941() {
|
| +buildUnnamed486() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed941(core.List<core.String> o) {
|
| +checkUnnamed486(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -1104,10 +1140,10 @@ buildUser() {
|
| if (buildCounterUser < 3) {
|
| o.addresses = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| o.agreedToTerms = true;
|
| - o.aliases = buildUnnamed939();
|
| + o.aliases = buildUnnamed484();
|
| o.changePasswordAtNextLogin = true;
|
| o.creationTime = core.DateTime.parse("2002-02-27T14:01:02");
|
| - o.customSchemas = buildUnnamed940();
|
| + o.customSchemas = buildUnnamed485();
|
| o.customerId = "foo";
|
| o.deletionTime = core.DateTime.parse("2002-02-27T14:01:02");
|
| o.emails = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| @@ -1124,7 +1160,7 @@ buildUser() {
|
| o.kind = "foo";
|
| o.lastLoginTime = core.DateTime.parse("2002-02-27T14:01:02");
|
| o.name = buildUserName();
|
| - o.nonEditableAliases = buildUnnamed941();
|
| + o.nonEditableAliases = buildUnnamed486();
|
| o.orgUnitPath = "foo";
|
| o.organizations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| o.password = "foo";
|
| @@ -1144,10 +1180,10 @@ checkUser(api.User o) {
|
| if (buildCounterUser < 3) {
|
| var casted1 = (o.addresses) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo'));
|
| unittest.expect(o.agreedToTerms, unittest.isTrue);
|
| - checkUnnamed939(o.aliases);
|
| + checkUnnamed484(o.aliases);
|
| unittest.expect(o.changePasswordAtNextLogin, unittest.isTrue);
|
| unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| - checkUnnamed940(o.customSchemas);
|
| + checkUnnamed485(o.customSchemas);
|
| unittest.expect(o.customerId, unittest.equals('foo'));
|
| unittest.expect(o.deletionTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| var casted2 = (o.emails) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo'));
|
| @@ -1164,7 +1200,7 @@ checkUser(api.User o) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.lastLoginTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| checkUserName(o.name);
|
| - checkUnnamed941(o.nonEditableAliases);
|
| + checkUnnamed486(o.nonEditableAliases);
|
| unittest.expect(o.orgUnitPath, unittest.equals('foo'));
|
| var casted5 = (o.organizations) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo'));
|
| unittest.expect(o.password, unittest.equals('foo'));
|
| @@ -1492,14 +1528,14 @@ checkUserUndelete(api.UserUndelete o) {
|
| buildCounterUserUndelete--;
|
| }
|
|
|
| -buildUnnamed942() {
|
| +buildUnnamed487() {
|
| var o = new core.List<api.User>();
|
| o.add(buildUser());
|
| o.add(buildUser());
|
| return o;
|
| }
|
|
|
| -checkUnnamed942(core.List<api.User> o) {
|
| +checkUnnamed487(core.List<api.User> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkUser(o[0]);
|
| checkUser(o[1]);
|
| @@ -1514,7 +1550,7 @@ buildUsers() {
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.triggerEvent = "foo";
|
| - o.users = buildUnnamed942();
|
| + o.users = buildUnnamed487();
|
| }
|
| buildCounterUsers--;
|
| return o;
|
| @@ -1527,7 +1563,7 @@ checkUsers(api.Users o) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.triggerEvent, unittest.equals('foo'));
|
| - checkUnnamed942(o.users);
|
| + checkUnnamed487(o.users);
|
| }
|
| buildCounterUsers--;
|
| }
|
| @@ -1557,14 +1593,14 @@ checkVerificationCode(api.VerificationCode o) {
|
| buildCounterVerificationCode--;
|
| }
|
|
|
| -buildUnnamed943() {
|
| +buildUnnamed488() {
|
| var o = new core.List<api.VerificationCode>();
|
| o.add(buildVerificationCode());
|
| o.add(buildVerificationCode());
|
| return o;
|
| }
|
|
|
| -checkUnnamed943(core.List<api.VerificationCode> o) {
|
| +checkUnnamed488(core.List<api.VerificationCode> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVerificationCode(o[0]);
|
| checkVerificationCode(o[1]);
|
| @@ -1576,7 +1612,7 @@ buildVerificationCodes() {
|
| buildCounterVerificationCodes++;
|
| if (buildCounterVerificationCodes < 3) {
|
| o.etag = "foo";
|
| - o.items = buildUnnamed943();
|
| + o.items = buildUnnamed488();
|
| o.kind = "foo";
|
| }
|
| buildCounterVerificationCodes--;
|
| @@ -1587,59 +1623,59 @@ checkVerificationCodes(api.VerificationCodes o) {
|
| buildCounterVerificationCodes++;
|
| if (buildCounterVerificationCodes < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed943(o.items);
|
| + checkUnnamed488(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterVerificationCodes--;
|
| }
|
|
|
| -buildUnnamed944() {
|
| +buildUnnamed489() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed944(core.List<core.String> o) {
|
| +checkUnnamed489(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed945() {
|
| +buildUnnamed490() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed945(core.List<core.String> o) {
|
| +checkUnnamed490(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed946() {
|
| +buildUnnamed491() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed946(core.List<core.String> o) {
|
| +checkUnnamed491(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed947() {
|
| +buildUnnamed492() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed947(core.List<core.String> o) {
|
| +checkUnnamed492(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -1692,6 +1728,15 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-ChromeOsDeviceActiveTimeRanges", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildChromeOsDeviceActiveTimeRanges();
|
| + var od = new api.ChromeOsDeviceActiveTimeRanges.fromJson(o.toJson());
|
| + checkChromeOsDeviceActiveTimeRanges(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-ChromeOsDeviceRecentUsers", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildChromeOsDeviceRecentUsers();
|
| @@ -3879,7 +3924,7 @@ main() {
|
| var mock = new common_test.HttpServerMock();
|
| api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits;
|
| var arg_customerId = "foo";
|
| - var arg_orgUnitPath = buildUnnamed944();
|
| + var arg_orgUnitPath = buildUnnamed489();
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -3933,7 +3978,7 @@ main() {
|
| var mock = new common_test.HttpServerMock();
|
| api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits;
|
| var arg_customerId = "foo";
|
| - var arg_orgUnitPath = buildUnnamed945();
|
| + var arg_orgUnitPath = buildUnnamed490();
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -4104,7 +4149,7 @@ main() {
|
| api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits;
|
| var arg_request = buildOrgUnit();
|
| var arg_customerId = "foo";
|
| - var arg_orgUnitPath = buildUnnamed946();
|
| + var arg_orgUnitPath = buildUnnamed491();
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var obj = new api.OrgUnit.fromJson(json);
|
| checkOrgUnit(obj);
|
| @@ -4164,7 +4209,7 @@ main() {
|
| api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits;
|
| var arg_request = buildOrgUnit();
|
| var arg_customerId = "foo";
|
| - var arg_orgUnitPath = buildUnnamed947();
|
| + var arg_orgUnitPath = buildUnnamed492();
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var obj = new api.OrgUnit.fromJson(json);
|
| checkOrgUnit(obj);
|
|
|