| Index: generated/googleapis/test/drive/v2_test.dart
|
| diff --git a/generated/googleapis/test/drive/v2_test.dart b/generated/googleapis/test/drive/v2_test.dart
|
| index e1dc91964d6cf84f1f42e1339e37965a26924b6f..19f587a5779ebb93e6257220fb642250d01e1c3f 100644
|
| --- a/generated/googleapis/test/drive/v2_test.dart
|
| +++ b/generated/googleapis/test/drive/v2_test.dart
|
| @@ -51,14 +51,14 @@ http.StreamedResponse stringResponse(
|
| return new http.StreamedResponse(stream, status, headers: headers);
|
| }
|
|
|
| -buildUnnamed593() {
|
| +buildUnnamed610() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed593(core.List<core.String> o) {
|
| +checkUnnamed610(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'));
|
| @@ -69,7 +69,7 @@ buildAboutAdditionalRoleInfoRoleSets() {
|
| var o = new api.AboutAdditionalRoleInfoRoleSets();
|
| buildCounterAboutAdditionalRoleInfoRoleSets++;
|
| if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) {
|
| - o.additionalRoles = buildUnnamed593();
|
| + o.additionalRoles = buildUnnamed610();
|
| o.primaryRole = "foo";
|
| }
|
| buildCounterAboutAdditionalRoleInfoRoleSets--;
|
| @@ -79,20 +79,20 @@ buildAboutAdditionalRoleInfoRoleSets() {
|
| checkAboutAdditionalRoleInfoRoleSets(api.AboutAdditionalRoleInfoRoleSets o) {
|
| buildCounterAboutAdditionalRoleInfoRoleSets++;
|
| if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) {
|
| - checkUnnamed593(o.additionalRoles);
|
| + checkUnnamed610(o.additionalRoles);
|
| unittest.expect(o.primaryRole, unittest.equals('foo'));
|
| }
|
| buildCounterAboutAdditionalRoleInfoRoleSets--;
|
| }
|
|
|
| -buildUnnamed594() {
|
| +buildUnnamed611() {
|
| var o = new core.List<api.AboutAdditionalRoleInfoRoleSets>();
|
| o.add(buildAboutAdditionalRoleInfoRoleSets());
|
| o.add(buildAboutAdditionalRoleInfoRoleSets());
|
| return o;
|
| }
|
|
|
| -checkUnnamed594(core.List<api.AboutAdditionalRoleInfoRoleSets> o) {
|
| +checkUnnamed611(core.List<api.AboutAdditionalRoleInfoRoleSets> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAboutAdditionalRoleInfoRoleSets(o[0]);
|
| checkAboutAdditionalRoleInfoRoleSets(o[1]);
|
| @@ -103,7 +103,7 @@ buildAboutAdditionalRoleInfo() {
|
| var o = new api.AboutAdditionalRoleInfo();
|
| buildCounterAboutAdditionalRoleInfo++;
|
| if (buildCounterAboutAdditionalRoleInfo < 3) {
|
| - o.roleSets = buildUnnamed594();
|
| + o.roleSets = buildUnnamed611();
|
| o.type = "foo";
|
| }
|
| buildCounterAboutAdditionalRoleInfo--;
|
| @@ -113,33 +113,33 @@ buildAboutAdditionalRoleInfo() {
|
| checkAboutAdditionalRoleInfo(api.AboutAdditionalRoleInfo o) {
|
| buildCounterAboutAdditionalRoleInfo++;
|
| if (buildCounterAboutAdditionalRoleInfo < 3) {
|
| - checkUnnamed594(o.roleSets);
|
| + checkUnnamed611(o.roleSets);
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| }
|
| buildCounterAboutAdditionalRoleInfo--;
|
| }
|
|
|
| -buildUnnamed595() {
|
| +buildUnnamed612() {
|
| var o = new core.List<api.AboutAdditionalRoleInfo>();
|
| o.add(buildAboutAdditionalRoleInfo());
|
| o.add(buildAboutAdditionalRoleInfo());
|
| return o;
|
| }
|
|
|
| -checkUnnamed595(core.List<api.AboutAdditionalRoleInfo> o) {
|
| +checkUnnamed612(core.List<api.AboutAdditionalRoleInfo> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAboutAdditionalRoleInfo(o[0]);
|
| checkAboutAdditionalRoleInfo(o[1]);
|
| }
|
|
|
| -buildUnnamed596() {
|
| +buildUnnamed613() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed596(core.List<core.String> o) {
|
| +checkUnnamed613(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'));
|
| @@ -151,7 +151,7 @@ buildAboutExportFormats() {
|
| buildCounterAboutExportFormats++;
|
| if (buildCounterAboutExportFormats < 3) {
|
| o.source = "foo";
|
| - o.targets = buildUnnamed596();
|
| + o.targets = buildUnnamed613();
|
| }
|
| buildCounterAboutExportFormats--;
|
| return o;
|
| @@ -161,19 +161,19 @@ checkAboutExportFormats(api.AboutExportFormats o) {
|
| buildCounterAboutExportFormats++;
|
| if (buildCounterAboutExportFormats < 3) {
|
| unittest.expect(o.source, unittest.equals('foo'));
|
| - checkUnnamed596(o.targets);
|
| + checkUnnamed613(o.targets);
|
| }
|
| buildCounterAboutExportFormats--;
|
| }
|
|
|
| -buildUnnamed597() {
|
| +buildUnnamed614() {
|
| var o = new core.List<api.AboutExportFormats>();
|
| o.add(buildAboutExportFormats());
|
| o.add(buildAboutExportFormats());
|
| return o;
|
| }
|
|
|
| -checkUnnamed597(core.List<api.AboutExportFormats> o) {
|
| +checkUnnamed614(core.List<api.AboutExportFormats> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAboutExportFormats(o[0]);
|
| checkAboutExportFormats(o[1]);
|
| @@ -200,40 +200,40 @@ checkAboutFeatures(api.AboutFeatures o) {
|
| buildCounterAboutFeatures--;
|
| }
|
|
|
| -buildUnnamed598() {
|
| +buildUnnamed615() {
|
| var o = new core.List<api.AboutFeatures>();
|
| o.add(buildAboutFeatures());
|
| o.add(buildAboutFeatures());
|
| return o;
|
| }
|
|
|
| -checkUnnamed598(core.List<api.AboutFeatures> o) {
|
| +checkUnnamed615(core.List<api.AboutFeatures> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAboutFeatures(o[0]);
|
| checkAboutFeatures(o[1]);
|
| }
|
|
|
| -buildUnnamed599() {
|
| +buildUnnamed616() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed599(core.List<core.String> o) {
|
| +checkUnnamed616(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'));
|
| }
|
|
|
| -buildUnnamed600() {
|
| +buildUnnamed617() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed600(core.List<core.String> o) {
|
| +checkUnnamed617(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'));
|
| @@ -245,7 +245,7 @@ buildAboutImportFormats() {
|
| buildCounterAboutImportFormats++;
|
| if (buildCounterAboutImportFormats < 3) {
|
| o.source = "foo";
|
| - o.targets = buildUnnamed600();
|
| + o.targets = buildUnnamed617();
|
| }
|
| buildCounterAboutImportFormats--;
|
| return o;
|
| @@ -255,19 +255,19 @@ checkAboutImportFormats(api.AboutImportFormats o) {
|
| buildCounterAboutImportFormats++;
|
| if (buildCounterAboutImportFormats < 3) {
|
| unittest.expect(o.source, unittest.equals('foo'));
|
| - checkUnnamed600(o.targets);
|
| + checkUnnamed617(o.targets);
|
| }
|
| buildCounterAboutImportFormats--;
|
| }
|
|
|
| -buildUnnamed601() {
|
| +buildUnnamed618() {
|
| var o = new core.List<api.AboutImportFormats>();
|
| o.add(buildAboutImportFormats());
|
| o.add(buildAboutImportFormats());
|
| return o;
|
| }
|
|
|
| -checkUnnamed601(core.List<api.AboutImportFormats> o) {
|
| +checkUnnamed618(core.List<api.AboutImportFormats> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAboutImportFormats(o[0]);
|
| checkAboutImportFormats(o[1]);
|
| @@ -294,14 +294,14 @@ checkAboutMaxUploadSizes(api.AboutMaxUploadSizes o) {
|
| buildCounterAboutMaxUploadSizes--;
|
| }
|
|
|
| -buildUnnamed602() {
|
| +buildUnnamed619() {
|
| var o = new core.List<api.AboutMaxUploadSizes>();
|
| o.add(buildAboutMaxUploadSizes());
|
| o.add(buildAboutMaxUploadSizes());
|
| return o;
|
| }
|
|
|
| -checkUnnamed602(core.List<api.AboutMaxUploadSizes> o) {
|
| +checkUnnamed619(core.List<api.AboutMaxUploadSizes> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAboutMaxUploadSizes(o[0]);
|
| checkAboutMaxUploadSizes(o[1]);
|
| @@ -328,14 +328,14 @@ checkAboutQuotaBytesByService(api.AboutQuotaBytesByService o) {
|
| buildCounterAboutQuotaBytesByService--;
|
| }
|
|
|
| -buildUnnamed603() {
|
| +buildUnnamed620() {
|
| var o = new core.List<api.AboutQuotaBytesByService>();
|
| o.add(buildAboutQuotaBytesByService());
|
| o.add(buildAboutQuotaBytesByService());
|
| return o;
|
| }
|
|
|
| -checkUnnamed603(core.List<api.AboutQuotaBytesByService> o) {
|
| +checkUnnamed620(core.List<api.AboutQuotaBytesByService> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAboutQuotaBytesByService(o[0]);
|
| checkAboutQuotaBytesByService(o[1]);
|
| @@ -346,21 +346,21 @@ buildAbout() {
|
| var o = new api.About();
|
| buildCounterAbout++;
|
| if (buildCounterAbout < 3) {
|
| - o.additionalRoleInfo = buildUnnamed595();
|
| + o.additionalRoleInfo = buildUnnamed612();
|
| o.domainSharingPolicy = "foo";
|
| o.etag = "foo";
|
| - o.exportFormats = buildUnnamed597();
|
| - o.features = buildUnnamed598();
|
| - o.folderColorPalette = buildUnnamed599();
|
| - o.importFormats = buildUnnamed601();
|
| + o.exportFormats = buildUnnamed614();
|
| + o.features = buildUnnamed615();
|
| + o.folderColorPalette = buildUnnamed616();
|
| + o.importFormats = buildUnnamed618();
|
| o.isCurrentAppInstalled = true;
|
| o.kind = "foo";
|
| o.languageCode = "foo";
|
| o.largestChangeId = "foo";
|
| - o.maxUploadSizes = buildUnnamed602();
|
| + o.maxUploadSizes = buildUnnamed619();
|
| o.name = "foo";
|
| o.permissionId = "foo";
|
| - o.quotaBytesByService = buildUnnamed603();
|
| + o.quotaBytesByService = buildUnnamed620();
|
| o.quotaBytesTotal = "foo";
|
| o.quotaBytesUsed = "foo";
|
| o.quotaBytesUsedAggregate = "foo";
|
| @@ -378,21 +378,21 @@ buildAbout() {
|
| checkAbout(api.About o) {
|
| buildCounterAbout++;
|
| if (buildCounterAbout < 3) {
|
| - checkUnnamed595(o.additionalRoleInfo);
|
| + checkUnnamed612(o.additionalRoleInfo);
|
| unittest.expect(o.domainSharingPolicy, unittest.equals('foo'));
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed597(o.exportFormats);
|
| - checkUnnamed598(o.features);
|
| - checkUnnamed599(o.folderColorPalette);
|
| - checkUnnamed601(o.importFormats);
|
| + checkUnnamed614(o.exportFormats);
|
| + checkUnnamed615(o.features);
|
| + checkUnnamed616(o.folderColorPalette);
|
| + checkUnnamed618(o.importFormats);
|
| unittest.expect(o.isCurrentAppInstalled, unittest.isTrue);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.languageCode, unittest.equals('foo'));
|
| unittest.expect(o.largestChangeId, unittest.equals('foo'));
|
| - checkUnnamed602(o.maxUploadSizes);
|
| + checkUnnamed619(o.maxUploadSizes);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.permissionId, unittest.equals('foo'));
|
| - checkUnnamed603(o.quotaBytesByService);
|
| + checkUnnamed620(o.quotaBytesByService);
|
| unittest.expect(o.quotaBytesTotal, unittest.equals('foo'));
|
| unittest.expect(o.quotaBytesUsed, unittest.equals('foo'));
|
| unittest.expect(o.quotaBytesUsedAggregate, unittest.equals('foo'));
|
| @@ -429,66 +429,66 @@ checkAppIcons(api.AppIcons o) {
|
| buildCounterAppIcons--;
|
| }
|
|
|
| -buildUnnamed604() {
|
| +buildUnnamed621() {
|
| var o = new core.List<api.AppIcons>();
|
| o.add(buildAppIcons());
|
| o.add(buildAppIcons());
|
| return o;
|
| }
|
|
|
| -checkUnnamed604(core.List<api.AppIcons> o) {
|
| +checkUnnamed621(core.List<api.AppIcons> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAppIcons(o[0]);
|
| checkAppIcons(o[1]);
|
| }
|
|
|
| -buildUnnamed605() {
|
| +buildUnnamed622() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed605(core.List<core.String> o) {
|
| +checkUnnamed622(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'));
|
| }
|
|
|
| -buildUnnamed606() {
|
| +buildUnnamed623() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed606(core.List<core.String> o) {
|
| +checkUnnamed623(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'));
|
| }
|
|
|
| -buildUnnamed607() {
|
| +buildUnnamed624() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed607(core.List<core.String> o) {
|
| +checkUnnamed624(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'));
|
| }
|
|
|
| -buildUnnamed608() {
|
| +buildUnnamed625() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed608(core.List<core.String> o) {
|
| +checkUnnamed625(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'));
|
| @@ -503,7 +503,7 @@ buildApp() {
|
| o.createInFolderTemplate = "foo";
|
| o.createUrl = "foo";
|
| o.hasDriveWideScope = true;
|
| - o.icons = buildUnnamed604();
|
| + o.icons = buildUnnamed621();
|
| o.id = "foo";
|
| o.installed = true;
|
| o.kind = "foo";
|
| @@ -511,12 +511,12 @@ buildApp() {
|
| o.name = "foo";
|
| o.objectType = "foo";
|
| o.openUrlTemplate = "foo";
|
| - o.primaryFileExtensions = buildUnnamed605();
|
| - o.primaryMimeTypes = buildUnnamed606();
|
| + o.primaryFileExtensions = buildUnnamed622();
|
| + o.primaryMimeTypes = buildUnnamed623();
|
| o.productId = "foo";
|
| o.productUrl = "foo";
|
| - o.secondaryFileExtensions = buildUnnamed607();
|
| - o.secondaryMimeTypes = buildUnnamed608();
|
| + o.secondaryFileExtensions = buildUnnamed624();
|
| + o.secondaryMimeTypes = buildUnnamed625();
|
| o.shortDescription = "foo";
|
| o.supportsCreate = true;
|
| o.supportsImport = true;
|
| @@ -535,7 +535,7 @@ checkApp(api.App o) {
|
| unittest.expect(o.createInFolderTemplate, unittest.equals('foo'));
|
| unittest.expect(o.createUrl, unittest.equals('foo'));
|
| unittest.expect(o.hasDriveWideScope, unittest.isTrue);
|
| - checkUnnamed604(o.icons);
|
| + checkUnnamed621(o.icons);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.installed, unittest.isTrue);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| @@ -543,12 +543,12 @@ checkApp(api.App o) {
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.objectType, unittest.equals('foo'));
|
| unittest.expect(o.openUrlTemplate, unittest.equals('foo'));
|
| - checkUnnamed605(o.primaryFileExtensions);
|
| - checkUnnamed606(o.primaryMimeTypes);
|
| + checkUnnamed622(o.primaryFileExtensions);
|
| + checkUnnamed623(o.primaryMimeTypes);
|
| unittest.expect(o.productId, unittest.equals('foo'));
|
| unittest.expect(o.productUrl, unittest.equals('foo'));
|
| - checkUnnamed607(o.secondaryFileExtensions);
|
| - checkUnnamed608(o.secondaryMimeTypes);
|
| + checkUnnamed624(o.secondaryFileExtensions);
|
| + checkUnnamed625(o.secondaryMimeTypes);
|
| unittest.expect(o.shortDescription, unittest.equals('foo'));
|
| unittest.expect(o.supportsCreate, unittest.isTrue);
|
| unittest.expect(o.supportsImport, unittest.isTrue);
|
| @@ -559,27 +559,27 @@ checkApp(api.App o) {
|
| buildCounterApp--;
|
| }
|
|
|
| -buildUnnamed609() {
|
| +buildUnnamed626() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed609(core.List<core.String> o) {
|
| +checkUnnamed626(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'));
|
| }
|
|
|
| -buildUnnamed610() {
|
| +buildUnnamed627() {
|
| var o = new core.List<api.App>();
|
| o.add(buildApp());
|
| o.add(buildApp());
|
| return o;
|
| }
|
|
|
| -checkUnnamed610(core.List<api.App> o) {
|
| +checkUnnamed627(core.List<api.App> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkApp(o[0]);
|
| checkApp(o[1]);
|
| @@ -590,9 +590,9 @@ buildAppList() {
|
| var o = new api.AppList();
|
| buildCounterAppList++;
|
| if (buildCounterAppList < 3) {
|
| - o.defaultAppIds = buildUnnamed609();
|
| + o.defaultAppIds = buildUnnamed626();
|
| o.etag = "foo";
|
| - o.items = buildUnnamed610();
|
| + o.items = buildUnnamed627();
|
| o.kind = "foo";
|
| o.selfLink = "foo";
|
| }
|
| @@ -603,9 +603,9 @@ buildAppList() {
|
| checkAppList(api.AppList o) {
|
| buildCounterAppList++;
|
| if (buildCounterAppList < 3) {
|
| - checkUnnamed609(o.defaultAppIds);
|
| + checkUnnamed626(o.defaultAppIds);
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed610(o.items);
|
| + checkUnnamed627(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| @@ -624,6 +624,9 @@ buildChange() {
|
| o.kind = "foo";
|
| o.modificationDate = core.DateTime.parse("2002-02-27T14:01:02");
|
| o.selfLink = "foo";
|
| + o.teamDrive = buildTeamDrive();
|
| + o.teamDriveId = "foo";
|
| + o.type = "foo";
|
| }
|
| buildCounterChange--;
|
| return o;
|
| @@ -639,18 +642,21 @@ checkChange(api.Change o) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.modificationDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| + checkTeamDrive(o.teamDrive);
|
| + unittest.expect(o.teamDriveId, unittest.equals('foo'));
|
| + unittest.expect(o.type, unittest.equals('foo'));
|
| }
|
| buildCounterChange--;
|
| }
|
|
|
| -buildUnnamed611() {
|
| +buildUnnamed628() {
|
| var o = new core.List<api.Change>();
|
| o.add(buildChange());
|
| o.add(buildChange());
|
| return o;
|
| }
|
|
|
| -checkUnnamed611(core.List<api.Change> o) {
|
| +checkUnnamed628(core.List<api.Change> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkChange(o[0]);
|
| checkChange(o[1]);
|
| @@ -662,9 +668,10 @@ buildChangeList() {
|
| buildCounterChangeList++;
|
| if (buildCounterChangeList < 3) {
|
| o.etag = "foo";
|
| - o.items = buildUnnamed611();
|
| + o.items = buildUnnamed628();
|
| o.kind = "foo";
|
| o.largestChangeId = "foo";
|
| + o.newStartPageToken = "foo";
|
| o.nextLink = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -677,9 +684,10 @@ checkChangeList(api.ChangeList o) {
|
| buildCounterChangeList++;
|
| if (buildCounterChangeList < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed611(o.items);
|
| + checkUnnamed628(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.largestChangeId, unittest.equals('foo'));
|
| + unittest.expect(o.newStartPageToken, unittest.equals('foo'));
|
| unittest.expect(o.nextLink, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -687,14 +695,14 @@ checkChangeList(api.ChangeList o) {
|
| buildCounterChangeList--;
|
| }
|
|
|
| -buildUnnamed612() {
|
| +buildUnnamed629() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed612(core.Map<core.String, core.String> o) {
|
| +checkUnnamed629(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'));
|
| @@ -709,7 +717,7 @@ buildChannel() {
|
| o.expiration = "foo";
|
| o.id = "foo";
|
| o.kind = "foo";
|
| - o.params = buildUnnamed612();
|
| + o.params = buildUnnamed629();
|
| o.payload = true;
|
| o.resourceId = "foo";
|
| o.resourceUri = "foo";
|
| @@ -727,7 +735,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'));
|
| - checkUnnamed612(o.params);
|
| + checkUnnamed629(o.params);
|
| unittest.expect(o.payload, unittest.isTrue);
|
| unittest.expect(o.resourceId, unittest.equals('foo'));
|
| unittest.expect(o.resourceUri, unittest.equals('foo'));
|
| @@ -737,14 +745,14 @@ checkChannel(api.Channel o) {
|
| buildCounterChannel--;
|
| }
|
|
|
| -buildUnnamed613() {
|
| +buildUnnamed630() {
|
| var o = new core.List<api.ChildReference>();
|
| o.add(buildChildReference());
|
| o.add(buildChildReference());
|
| return o;
|
| }
|
|
|
| -checkUnnamed613(core.List<api.ChildReference> o) {
|
| +checkUnnamed630(core.List<api.ChildReference> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkChildReference(o[0]);
|
| checkChildReference(o[1]);
|
| @@ -756,7 +764,7 @@ buildChildList() {
|
| buildCounterChildList++;
|
| if (buildCounterChildList < 3) {
|
| o.etag = "foo";
|
| - o.items = buildUnnamed613();
|
| + o.items = buildUnnamed630();
|
| o.kind = "foo";
|
| o.nextLink = "foo";
|
| o.nextPageToken = "foo";
|
| @@ -770,7 +778,7 @@ checkChildList(api.ChildList o) {
|
| buildCounterChildList++;
|
| if (buildCounterChildList < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed613(o.items);
|
| + checkUnnamed630(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextLink, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| @@ -825,14 +833,14 @@ checkCommentContext(api.CommentContext o) {
|
| buildCounterCommentContext--;
|
| }
|
|
|
| -buildUnnamed614() {
|
| +buildUnnamed631() {
|
| var o = new core.List<api.CommentReply>();
|
| o.add(buildCommentReply());
|
| o.add(buildCommentReply());
|
| return o;
|
| }
|
|
|
| -checkUnnamed614(core.List<api.CommentReply> o) {
|
| +checkUnnamed631(core.List<api.CommentReply> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCommentReply(o[0]);
|
| checkCommentReply(o[1]);
|
| @@ -855,7 +863,7 @@ buildComment() {
|
| o.htmlContent = "foo";
|
| o.kind = "foo";
|
| o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02");
|
| - o.replies = buildUnnamed614();
|
| + o.replies = buildUnnamed631();
|
| o.selfLink = "foo";
|
| o.status = "foo";
|
| }
|
| @@ -878,21 +886,21 @@ checkComment(api.Comment o) {
|
| unittest.expect(o.htmlContent, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| - checkUnnamed614(o.replies);
|
| + checkUnnamed631(o.replies);
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| unittest.expect(o.status, unittest.equals('foo'));
|
| }
|
| buildCounterComment--;
|
| }
|
|
|
| -buildUnnamed615() {
|
| +buildUnnamed632() {
|
| var o = new core.List<api.Comment>();
|
| o.add(buildComment());
|
| o.add(buildComment());
|
| return o;
|
| }
|
|
|
| -checkUnnamed615(core.List<api.Comment> o) {
|
| +checkUnnamed632(core.List<api.Comment> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkComment(o[0]);
|
| checkComment(o[1]);
|
| @@ -903,7 +911,7 @@ buildCommentList() {
|
| var o = new api.CommentList();
|
| buildCounterCommentList++;
|
| if (buildCounterCommentList < 3) {
|
| - o.items = buildUnnamed615();
|
| + o.items = buildUnnamed632();
|
| o.kind = "foo";
|
| o.nextLink = "foo";
|
| o.nextPageToken = "foo";
|
| @@ -916,7 +924,7 @@ buildCommentList() {
|
| checkCommentList(api.CommentList o) {
|
| buildCounterCommentList++;
|
| if (buildCounterCommentList < 3) {
|
| - checkUnnamed615(o.items);
|
| + checkUnnamed632(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextLink, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| @@ -960,14 +968,14 @@ checkCommentReply(api.CommentReply o) {
|
| buildCounterCommentReply--;
|
| }
|
|
|
| -buildUnnamed616() {
|
| +buildUnnamed633() {
|
| var o = new core.List<api.CommentReply>();
|
| o.add(buildCommentReply());
|
| o.add(buildCommentReply());
|
| return o;
|
| }
|
|
|
| -checkUnnamed616(core.List<api.CommentReply> o) {
|
| +checkUnnamed633(core.List<api.CommentReply> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCommentReply(o[0]);
|
| checkCommentReply(o[1]);
|
| @@ -978,7 +986,7 @@ buildCommentReplyList() {
|
| var o = new api.CommentReplyList();
|
| buildCounterCommentReplyList++;
|
| if (buildCounterCommentReplyList < 3) {
|
| - o.items = buildUnnamed616();
|
| + o.items = buildUnnamed633();
|
| o.kind = "foo";
|
| o.nextLink = "foo";
|
| o.nextPageToken = "foo";
|
| @@ -991,7 +999,7 @@ buildCommentReplyList() {
|
| checkCommentReplyList(api.CommentReplyList o) {
|
| buildCounterCommentReplyList++;
|
| if (buildCounterCommentReplyList < 3) {
|
| - checkUnnamed616(o.items);
|
| + checkUnnamed633(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextLink, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| @@ -1000,14 +1008,63 @@ checkCommentReplyList(api.CommentReplyList o) {
|
| buildCounterCommentReplyList--;
|
| }
|
|
|
| -buildUnnamed617() {
|
| +core.int buildCounterFileCapabilities = 0;
|
| +buildFileCapabilities() {
|
| + var o = new api.FileCapabilities();
|
| + buildCounterFileCapabilities++;
|
| + if (buildCounterFileCapabilities < 3) {
|
| + o.canAddChildren = true;
|
| + o.canComment = true;
|
| + o.canCopy = true;
|
| + o.canDelete = true;
|
| + o.canDownload = true;
|
| + o.canEdit = true;
|
| + o.canListChildren = true;
|
| + o.canMoveItemIntoTeamDrive = true;
|
| + o.canMoveTeamDriveItem = true;
|
| + o.canReadRevisions = true;
|
| + o.canReadTeamDrive = true;
|
| + o.canRemoveChildren = true;
|
| + o.canRename = true;
|
| + o.canShare = true;
|
| + o.canTrash = true;
|
| + o.canUntrash = true;
|
| + }
|
| + buildCounterFileCapabilities--;
|
| + return o;
|
| +}
|
| +
|
| +checkFileCapabilities(api.FileCapabilities o) {
|
| + buildCounterFileCapabilities++;
|
| + if (buildCounterFileCapabilities < 3) {
|
| + unittest.expect(o.canAddChildren, unittest.isTrue);
|
| + unittest.expect(o.canComment, unittest.isTrue);
|
| + unittest.expect(o.canCopy, unittest.isTrue);
|
| + unittest.expect(o.canDelete, unittest.isTrue);
|
| + unittest.expect(o.canDownload, unittest.isTrue);
|
| + unittest.expect(o.canEdit, unittest.isTrue);
|
| + unittest.expect(o.canListChildren, unittest.isTrue);
|
| + unittest.expect(o.canMoveItemIntoTeamDrive, unittest.isTrue);
|
| + unittest.expect(o.canMoveTeamDriveItem, unittest.isTrue);
|
| + unittest.expect(o.canReadRevisions, unittest.isTrue);
|
| + unittest.expect(o.canReadTeamDrive, unittest.isTrue);
|
| + unittest.expect(o.canRemoveChildren, unittest.isTrue);
|
| + unittest.expect(o.canRename, unittest.isTrue);
|
| + unittest.expect(o.canShare, unittest.isTrue);
|
| + unittest.expect(o.canTrash, unittest.isTrue);
|
| + unittest.expect(o.canUntrash, unittest.isTrue);
|
| + }
|
| + buildCounterFileCapabilities--;
|
| +}
|
| +
|
| +buildUnnamed634() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed617(core.Map<core.String, core.String> o) {
|
| +checkUnnamed634(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'));
|
| @@ -1143,92 +1200,92 @@ checkFileLabels(api.FileLabels o) {
|
| buildCounterFileLabels--;
|
| }
|
|
|
| -buildUnnamed618() {
|
| +buildUnnamed635() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed618(core.Map<core.String, core.String> o) {
|
| +checkUnnamed635(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'));
|
| }
|
|
|
| -buildUnnamed619() {
|
| +buildUnnamed636() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed619(core.List<core.String> o) {
|
| +checkUnnamed636(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'));
|
| }
|
|
|
| -buildUnnamed620() {
|
| +buildUnnamed637() {
|
| var o = new core.List<api.User>();
|
| o.add(buildUser());
|
| o.add(buildUser());
|
| return o;
|
| }
|
|
|
| -checkUnnamed620(core.List<api.User> o) {
|
| +checkUnnamed637(core.List<api.User> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkUser(o[0]);
|
| checkUser(o[1]);
|
| }
|
|
|
| -buildUnnamed621() {
|
| +buildUnnamed638() {
|
| var o = new core.List<api.ParentReference>();
|
| o.add(buildParentReference());
|
| o.add(buildParentReference());
|
| return o;
|
| }
|
|
|
| -checkUnnamed621(core.List<api.ParentReference> o) {
|
| +checkUnnamed638(core.List<api.ParentReference> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkParentReference(o[0]);
|
| checkParentReference(o[1]);
|
| }
|
|
|
| -buildUnnamed622() {
|
| +buildUnnamed639() {
|
| var o = new core.List<api.Permission>();
|
| o.add(buildPermission());
|
| o.add(buildPermission());
|
| return o;
|
| }
|
|
|
| -checkUnnamed622(core.List<api.Permission> o) {
|
| +checkUnnamed639(core.List<api.Permission> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPermission(o[0]);
|
| checkPermission(o[1]);
|
| }
|
|
|
| -buildUnnamed623() {
|
| +buildUnnamed640() {
|
| var o = new core.List<api.Property>();
|
| o.add(buildProperty());
|
| o.add(buildProperty());
|
| return o;
|
| }
|
|
|
| -checkUnnamed623(core.List<api.Property> o) {
|
| +checkUnnamed640(core.List<api.Property> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkProperty(o[0]);
|
| checkProperty(o[1]);
|
| }
|
|
|
| -buildUnnamed624() {
|
| +buildUnnamed641() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed624(core.List<core.String> o) {
|
| +checkUnnamed641(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'));
|
| @@ -1287,6 +1344,7 @@ buildFile() {
|
| o.appDataContents = true;
|
| o.canComment = true;
|
| o.canReadRevisions = true;
|
| + o.capabilities = buildFileCapabilities();
|
| o.copyable = true;
|
| o.createdDate = core.DateTime.parse("2002-02-27T14:01:02");
|
| o.defaultOpenWithLink = "foo";
|
| @@ -1296,11 +1354,12 @@ buildFile() {
|
| o.embedLink = "foo";
|
| o.etag = "foo";
|
| o.explicitlyTrashed = true;
|
| - o.exportLinks = buildUnnamed617();
|
| + o.exportLinks = buildUnnamed634();
|
| o.fileExtension = "foo";
|
| o.fileSize = "foo";
|
| o.folderColorRgb = "foo";
|
| o.fullFileExtension = "foo";
|
| + o.hasAugmentedPermissions = true;
|
| o.hasThumbnail = true;
|
| o.headRevisionId = "foo";
|
| o.iconLink = "foo";
|
| @@ -1318,25 +1377,28 @@ buildFile() {
|
| o.mimeType = "foo";
|
| o.modifiedByMeDate = core.DateTime.parse("2002-02-27T14:01:02");
|
| o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02");
|
| - o.openWithLinks = buildUnnamed618();
|
| + o.openWithLinks = buildUnnamed635();
|
| o.originalFilename = "foo";
|
| o.ownedByMe = true;
|
| - o.ownerNames = buildUnnamed619();
|
| - o.owners = buildUnnamed620();
|
| - o.parents = buildUnnamed621();
|
| - o.permissions = buildUnnamed622();
|
| - o.properties = buildUnnamed623();
|
| + o.ownerNames = buildUnnamed636();
|
| + o.owners = buildUnnamed637();
|
| + o.parents = buildUnnamed638();
|
| + o.permissions = buildUnnamed639();
|
| + o.properties = buildUnnamed640();
|
| o.quotaBytesUsed = "foo";
|
| o.selfLink = "foo";
|
| o.shareable = true;
|
| o.shared = true;
|
| o.sharedWithMeDate = core.DateTime.parse("2002-02-27T14:01:02");
|
| o.sharingUser = buildUser();
|
| - o.spaces = buildUnnamed624();
|
| + o.spaces = buildUnnamed641();
|
| + o.teamDriveId = "foo";
|
| o.thumbnail = buildFileThumbnail();
|
| o.thumbnailLink = "foo";
|
| o.thumbnailVersion = "foo";
|
| o.title = "foo";
|
| + o.trashedDate = core.DateTime.parse("2002-02-27T14:01:02");
|
| + o.trashingUser = buildUser();
|
| o.userPermission = buildPermission();
|
| o.version = "foo";
|
| o.videoMediaMetadata = buildFileVideoMediaMetadata();
|
| @@ -1355,6 +1417,7 @@ checkFile(api.File o) {
|
| unittest.expect(o.appDataContents, unittest.isTrue);
|
| unittest.expect(o.canComment, unittest.isTrue);
|
| unittest.expect(o.canReadRevisions, unittest.isTrue);
|
| + checkFileCapabilities(o.capabilities);
|
| unittest.expect(o.copyable, unittest.isTrue);
|
| unittest.expect(o.createdDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| unittest.expect(o.defaultOpenWithLink, unittest.equals('foo'));
|
| @@ -1364,11 +1427,12 @@ checkFile(api.File o) {
|
| unittest.expect(o.embedLink, unittest.equals('foo'));
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.explicitlyTrashed, unittest.isTrue);
|
| - checkUnnamed617(o.exportLinks);
|
| + checkUnnamed634(o.exportLinks);
|
| unittest.expect(o.fileExtension, unittest.equals('foo'));
|
| unittest.expect(o.fileSize, unittest.equals('foo'));
|
| unittest.expect(o.folderColorRgb, unittest.equals('foo'));
|
| unittest.expect(o.fullFileExtension, unittest.equals('foo'));
|
| + unittest.expect(o.hasAugmentedPermissions, unittest.isTrue);
|
| unittest.expect(o.hasThumbnail, unittest.isTrue);
|
| unittest.expect(o.headRevisionId, unittest.equals('foo'));
|
| unittest.expect(o.iconLink, unittest.equals('foo'));
|
| @@ -1386,25 +1450,28 @@ checkFile(api.File o) {
|
| unittest.expect(o.mimeType, unittest.equals('foo'));
|
| unittest.expect(o.modifiedByMeDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| - checkUnnamed618(o.openWithLinks);
|
| + checkUnnamed635(o.openWithLinks);
|
| unittest.expect(o.originalFilename, unittest.equals('foo'));
|
| unittest.expect(o.ownedByMe, unittest.isTrue);
|
| - checkUnnamed619(o.ownerNames);
|
| - checkUnnamed620(o.owners);
|
| - checkUnnamed621(o.parents);
|
| - checkUnnamed622(o.permissions);
|
| - checkUnnamed623(o.properties);
|
| + checkUnnamed636(o.ownerNames);
|
| + checkUnnamed637(o.owners);
|
| + checkUnnamed638(o.parents);
|
| + checkUnnamed639(o.permissions);
|
| + checkUnnamed640(o.properties);
|
| unittest.expect(o.quotaBytesUsed, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| unittest.expect(o.shareable, unittest.isTrue);
|
| unittest.expect(o.shared, unittest.isTrue);
|
| unittest.expect(o.sharedWithMeDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| checkUser(o.sharingUser);
|
| - checkUnnamed624(o.spaces);
|
| + checkUnnamed641(o.spaces);
|
| + unittest.expect(o.teamDriveId, unittest.equals('foo'));
|
| checkFileThumbnail(o.thumbnail);
|
| unittest.expect(o.thumbnailLink, unittest.equals('foo'));
|
| unittest.expect(o.thumbnailVersion, unittest.equals('foo'));
|
| unittest.expect(o.title, unittest.equals('foo'));
|
| + unittest.expect(o.trashedDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| + checkUser(o.trashingUser);
|
| checkPermission(o.userPermission);
|
| unittest.expect(o.version, unittest.equals('foo'));
|
| checkFileVideoMediaMetadata(o.videoMediaMetadata);
|
| @@ -1415,14 +1482,14 @@ checkFile(api.File o) {
|
| buildCounterFile--;
|
| }
|
|
|
| -buildUnnamed625() {
|
| +buildUnnamed642() {
|
| var o = new core.List<api.File>();
|
| o.add(buildFile());
|
| o.add(buildFile());
|
| return o;
|
| }
|
|
|
| -checkUnnamed625(core.List<api.File> o) {
|
| +checkUnnamed642(core.List<api.File> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkFile(o[0]);
|
| checkFile(o[1]);
|
| @@ -1434,7 +1501,8 @@ buildFileList() {
|
| buildCounterFileList++;
|
| if (buildCounterFileList < 3) {
|
| o.etag = "foo";
|
| - o.items = buildUnnamed625();
|
| + o.incompleteSearch = true;
|
| + o.items = buildUnnamed642();
|
| o.kind = "foo";
|
| o.nextLink = "foo";
|
| o.nextPageToken = "foo";
|
| @@ -1448,7 +1516,8 @@ checkFileList(api.FileList o) {
|
| buildCounterFileList++;
|
| if (buildCounterFileList < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed625(o.items);
|
| + unittest.expect(o.incompleteSearch, unittest.isTrue);
|
| + checkUnnamed642(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextLink, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| @@ -1457,14 +1526,14 @@ checkFileList(api.FileList o) {
|
| buildCounterFileList--;
|
| }
|
|
|
| -buildUnnamed626() {
|
| +buildUnnamed643() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed626(core.List<core.String> o) {
|
| +checkUnnamed643(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'));
|
| @@ -1475,7 +1544,7 @@ buildGeneratedIds() {
|
| var o = new api.GeneratedIds();
|
| buildCounterGeneratedIds++;
|
| if (buildCounterGeneratedIds < 3) {
|
| - o.ids = buildUnnamed626();
|
| + o.ids = buildUnnamed643();
|
| o.kind = "foo";
|
| o.space = "foo";
|
| }
|
| @@ -1486,21 +1555,21 @@ buildGeneratedIds() {
|
| checkGeneratedIds(api.GeneratedIds o) {
|
| buildCounterGeneratedIds++;
|
| if (buildCounterGeneratedIds < 3) {
|
| - checkUnnamed626(o.ids);
|
| + checkUnnamed643(o.ids);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.space, unittest.equals('foo'));
|
| }
|
| buildCounterGeneratedIds--;
|
| }
|
|
|
| -buildUnnamed627() {
|
| +buildUnnamed644() {
|
| var o = new core.List<api.ParentReference>();
|
| o.add(buildParentReference());
|
| o.add(buildParentReference());
|
| return o;
|
| }
|
|
|
| -checkUnnamed627(core.List<api.ParentReference> o) {
|
| +checkUnnamed644(core.List<api.ParentReference> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkParentReference(o[0]);
|
| checkParentReference(o[1]);
|
| @@ -1512,7 +1581,7 @@ buildParentList() {
|
| buildCounterParentList++;
|
| if (buildCounterParentList < 3) {
|
| o.etag = "foo";
|
| - o.items = buildUnnamed627();
|
| + o.items = buildUnnamed644();
|
| o.kind = "foo";
|
| o.selfLink = "foo";
|
| }
|
| @@ -1524,7 +1593,7 @@ checkParentList(api.ParentList o) {
|
| buildCounterParentList++;
|
| if (buildCounterParentList < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed627(o.items);
|
| + checkUnnamed644(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| @@ -1558,25 +1627,78 @@ checkParentReference(api.ParentReference o) {
|
| buildCounterParentReference--;
|
| }
|
|
|
| -buildUnnamed628() {
|
| +buildUnnamed645() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed645(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'));
|
| +}
|
| +
|
| +buildUnnamed646() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed628(core.List<core.String> o) {
|
| +checkUnnamed646(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'));
|
| }
|
|
|
| +core.int buildCounterPermissionTeamDrivePermissionDetails = 0;
|
| +buildPermissionTeamDrivePermissionDetails() {
|
| + var o = new api.PermissionTeamDrivePermissionDetails();
|
| + buildCounterPermissionTeamDrivePermissionDetails++;
|
| + if (buildCounterPermissionTeamDrivePermissionDetails < 3) {
|
| + o.additionalRoles = buildUnnamed646();
|
| + o.inherited = true;
|
| + o.inheritedFrom = "foo";
|
| + o.role = "foo";
|
| + o.teamDrivePermissionType = "foo";
|
| + }
|
| + buildCounterPermissionTeamDrivePermissionDetails--;
|
| + return o;
|
| +}
|
| +
|
| +checkPermissionTeamDrivePermissionDetails(api.PermissionTeamDrivePermissionDetails o) {
|
| + buildCounterPermissionTeamDrivePermissionDetails++;
|
| + if (buildCounterPermissionTeamDrivePermissionDetails < 3) {
|
| + checkUnnamed646(o.additionalRoles);
|
| + unittest.expect(o.inherited, unittest.isTrue);
|
| + unittest.expect(o.inheritedFrom, unittest.equals('foo'));
|
| + unittest.expect(o.role, unittest.equals('foo'));
|
| + unittest.expect(o.teamDrivePermissionType, unittest.equals('foo'));
|
| + }
|
| + buildCounterPermissionTeamDrivePermissionDetails--;
|
| +}
|
| +
|
| +buildUnnamed647() {
|
| + var o = new core.List<api.PermissionTeamDrivePermissionDetails>();
|
| + o.add(buildPermissionTeamDrivePermissionDetails());
|
| + o.add(buildPermissionTeamDrivePermissionDetails());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed647(core.List<api.PermissionTeamDrivePermissionDetails> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkPermissionTeamDrivePermissionDetails(o[0]);
|
| + checkPermissionTeamDrivePermissionDetails(o[1]);
|
| +}
|
| +
|
| core.int buildCounterPermission = 0;
|
| buildPermission() {
|
| var o = new api.Permission();
|
| buildCounterPermission++;
|
| if (buildCounterPermission < 3) {
|
| - o.additionalRoles = buildUnnamed628();
|
| + o.additionalRoles = buildUnnamed645();
|
| o.authKey = "foo";
|
| o.domain = "foo";
|
| o.emailAddress = "foo";
|
| @@ -1588,6 +1710,7 @@ buildPermission() {
|
| o.photoLink = "foo";
|
| o.role = "foo";
|
| o.selfLink = "foo";
|
| + o.teamDrivePermissionDetails = buildUnnamed647();
|
| o.type = "foo";
|
| o.value = "foo";
|
| o.withLink = true;
|
| @@ -1599,7 +1722,7 @@ buildPermission() {
|
| checkPermission(api.Permission o) {
|
| buildCounterPermission++;
|
| if (buildCounterPermission < 3) {
|
| - checkUnnamed628(o.additionalRoles);
|
| + checkUnnamed645(o.additionalRoles);
|
| unittest.expect(o.authKey, unittest.equals('foo'));
|
| unittest.expect(o.domain, unittest.equals('foo'));
|
| unittest.expect(o.emailAddress, unittest.equals('foo'));
|
| @@ -1611,6 +1734,7 @@ checkPermission(api.Permission o) {
|
| unittest.expect(o.photoLink, unittest.equals('foo'));
|
| unittest.expect(o.role, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| + checkUnnamed647(o.teamDrivePermissionDetails);
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| unittest.expect(o.value, unittest.equals('foo'));
|
| unittest.expect(o.withLink, unittest.isTrue);
|
| @@ -1639,14 +1763,14 @@ checkPermissionId(api.PermissionId o) {
|
| buildCounterPermissionId--;
|
| }
|
|
|
| -buildUnnamed629() {
|
| +buildUnnamed648() {
|
| var o = new core.List<api.Permission>();
|
| o.add(buildPermission());
|
| o.add(buildPermission());
|
| return o;
|
| }
|
|
|
| -checkUnnamed629(core.List<api.Permission> o) {
|
| +checkUnnamed648(core.List<api.Permission> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPermission(o[0]);
|
| checkPermission(o[1]);
|
| @@ -1658,8 +1782,9 @@ buildPermissionList() {
|
| buildCounterPermissionList++;
|
| if (buildCounterPermissionList < 3) {
|
| o.etag = "foo";
|
| - o.items = buildUnnamed629();
|
| + o.items = buildUnnamed648();
|
| o.kind = "foo";
|
| + o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| }
|
| buildCounterPermissionList--;
|
| @@ -1670,8 +1795,9 @@ checkPermissionList(api.PermissionList o) {
|
| buildCounterPermissionList++;
|
| if (buildCounterPermissionList < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed629(o.items);
|
| + checkUnnamed648(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| buildCounterPermissionList--;
|
| @@ -1706,14 +1832,14 @@ checkProperty(api.Property o) {
|
| buildCounterProperty--;
|
| }
|
|
|
| -buildUnnamed630() {
|
| +buildUnnamed649() {
|
| var o = new core.List<api.Property>();
|
| o.add(buildProperty());
|
| o.add(buildProperty());
|
| return o;
|
| }
|
|
|
| -checkUnnamed630(core.List<api.Property> o) {
|
| +checkUnnamed649(core.List<api.Property> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkProperty(o[0]);
|
| checkProperty(o[1]);
|
| @@ -1725,7 +1851,7 @@ buildPropertyList() {
|
| buildCounterPropertyList++;
|
| if (buildCounterPropertyList < 3) {
|
| o.etag = "foo";
|
| - o.items = buildUnnamed630();
|
| + o.items = buildUnnamed649();
|
| o.kind = "foo";
|
| o.selfLink = "foo";
|
| }
|
| @@ -1737,21 +1863,21 @@ checkPropertyList(api.PropertyList o) {
|
| buildCounterPropertyList++;
|
| if (buildCounterPropertyList < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed630(o.items);
|
| + checkUnnamed649(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| buildCounterPropertyList--;
|
| }
|
|
|
| -buildUnnamed631() {
|
| +buildUnnamed650() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed631(core.Map<core.String, core.String> o) {
|
| +checkUnnamed650(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'));
|
| @@ -1764,7 +1890,7 @@ buildRevision() {
|
| if (buildCounterRevision < 3) {
|
| o.downloadUrl = "foo";
|
| o.etag = "foo";
|
| - o.exportLinks = buildUnnamed631();
|
| + o.exportLinks = buildUnnamed650();
|
| o.fileSize = "foo";
|
| o.id = "foo";
|
| o.kind = "foo";
|
| @@ -1790,7 +1916,7 @@ checkRevision(api.Revision o) {
|
| if (buildCounterRevision < 3) {
|
| unittest.expect(o.downloadUrl, unittest.equals('foo'));
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed631(o.exportLinks);
|
| + checkUnnamed650(o.exportLinks);
|
| unittest.expect(o.fileSize, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| @@ -1810,14 +1936,14 @@ checkRevision(api.Revision o) {
|
| buildCounterRevision--;
|
| }
|
|
|
| -buildUnnamed632() {
|
| +buildUnnamed651() {
|
| var o = new core.List<api.Revision>();
|
| o.add(buildRevision());
|
| o.add(buildRevision());
|
| return o;
|
| }
|
|
|
| -checkUnnamed632(core.List<api.Revision> o) {
|
| +checkUnnamed651(core.List<api.Revision> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkRevision(o[0]);
|
| checkRevision(o[1]);
|
| @@ -1829,7 +1955,7 @@ buildRevisionList() {
|
| buildCounterRevisionList++;
|
| if (buildCounterRevisionList < 3) {
|
| o.etag = "foo";
|
| - o.items = buildUnnamed632();
|
| + o.items = buildUnnamed651();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -1842,7 +1968,7 @@ checkRevisionList(api.RevisionList o) {
|
| buildCounterRevisionList++;
|
| if (buildCounterRevisionList < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed632(o.items);
|
| + checkUnnamed651(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -1871,6 +1997,110 @@ checkStartPageToken(api.StartPageToken o) {
|
| buildCounterStartPageToken--;
|
| }
|
|
|
| +core.int buildCounterTeamDriveCapabilities = 0;
|
| +buildTeamDriveCapabilities() {
|
| + var o = new api.TeamDriveCapabilities();
|
| + buildCounterTeamDriveCapabilities++;
|
| + if (buildCounterTeamDriveCapabilities < 3) {
|
| + o.canAddChildren = true;
|
| + o.canComment = true;
|
| + o.canCopy = true;
|
| + o.canDeleteTeamDrive = true;
|
| + o.canDownload = true;
|
| + o.canEdit = true;
|
| + o.canListChildren = true;
|
| + o.canManageMembers = true;
|
| + o.canReadRevisions = true;
|
| + o.canRemoveChildren = true;
|
| + o.canRename = true;
|
| + o.canRenameTeamDrive = true;
|
| + o.canShare = true;
|
| + }
|
| + buildCounterTeamDriveCapabilities--;
|
| + return o;
|
| +}
|
| +
|
| +checkTeamDriveCapabilities(api.TeamDriveCapabilities o) {
|
| + buildCounterTeamDriveCapabilities++;
|
| + if (buildCounterTeamDriveCapabilities < 3) {
|
| + unittest.expect(o.canAddChildren, unittest.isTrue);
|
| + unittest.expect(o.canComment, unittest.isTrue);
|
| + unittest.expect(o.canCopy, unittest.isTrue);
|
| + unittest.expect(o.canDeleteTeamDrive, unittest.isTrue);
|
| + unittest.expect(o.canDownload, unittest.isTrue);
|
| + unittest.expect(o.canEdit, unittest.isTrue);
|
| + unittest.expect(o.canListChildren, unittest.isTrue);
|
| + unittest.expect(o.canManageMembers, unittest.isTrue);
|
| + unittest.expect(o.canReadRevisions, unittest.isTrue);
|
| + unittest.expect(o.canRemoveChildren, unittest.isTrue);
|
| + unittest.expect(o.canRename, unittest.isTrue);
|
| + unittest.expect(o.canRenameTeamDrive, unittest.isTrue);
|
| + unittest.expect(o.canShare, unittest.isTrue);
|
| + }
|
| + buildCounterTeamDriveCapabilities--;
|
| +}
|
| +
|
| +core.int buildCounterTeamDrive = 0;
|
| +buildTeamDrive() {
|
| + var o = new api.TeamDrive();
|
| + buildCounterTeamDrive++;
|
| + if (buildCounterTeamDrive < 3) {
|
| + o.capabilities = buildTeamDriveCapabilities();
|
| + o.id = "foo";
|
| + o.kind = "foo";
|
| + o.name = "foo";
|
| + }
|
| + buildCounterTeamDrive--;
|
| + return o;
|
| +}
|
| +
|
| +checkTeamDrive(api.TeamDrive o) {
|
| + buildCounterTeamDrive++;
|
| + if (buildCounterTeamDrive < 3) {
|
| + checkTeamDriveCapabilities(o.capabilities);
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.name, unittest.equals('foo'));
|
| + }
|
| + buildCounterTeamDrive--;
|
| +}
|
| +
|
| +buildUnnamed652() {
|
| + var o = new core.List<api.TeamDrive>();
|
| + o.add(buildTeamDrive());
|
| + o.add(buildTeamDrive());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed652(core.List<api.TeamDrive> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkTeamDrive(o[0]);
|
| + checkTeamDrive(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterTeamDriveList = 0;
|
| +buildTeamDriveList() {
|
| + var o = new api.TeamDriveList();
|
| + buildCounterTeamDriveList++;
|
| + if (buildCounterTeamDriveList < 3) {
|
| + o.items = buildUnnamed652();
|
| + o.kind = "foo";
|
| + o.nextPageToken = "foo";
|
| + }
|
| + buildCounterTeamDriveList--;
|
| + return o;
|
| +}
|
| +
|
| +checkTeamDriveList(api.TeamDriveList o) {
|
| + buildCounterTeamDriveList++;
|
| + if (buildCounterTeamDriveList < 3) {
|
| + checkUnnamed652(o.items);
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + }
|
| + buildCounterTeamDriveList--;
|
| +}
|
| +
|
| core.int buildCounterUserPicture = 0;
|
| buildUserPicture() {
|
| var o = new api.UserPicture();
|
| @@ -2110,6 +2340,15 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-FileCapabilities", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildFileCapabilities();
|
| + var od = new api.FileCapabilities.fromJson(o.toJson());
|
| + checkFileCapabilities(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-FileImageMediaMetadataLocation", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildFileImageMediaMetadataLocation();
|
| @@ -2209,6 +2448,15 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-PermissionTeamDrivePermissionDetails", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildPermissionTeamDrivePermissionDetails();
|
| + var od = new api.PermissionTeamDrivePermissionDetails.fromJson(o.toJson());
|
| + checkPermissionTeamDrivePermissionDetails(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-Permission", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildPermission();
|
| @@ -2281,6 +2529,33 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-TeamDriveCapabilities", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildTeamDriveCapabilities();
|
| + var od = new api.TeamDriveCapabilities.fromJson(o.toJson());
|
| + checkTeamDriveCapabilities(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-TeamDrive", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildTeamDrive();
|
| + var od = new api.TeamDrive.fromJson(o.toJson());
|
| + checkTeamDrive(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-TeamDriveList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildTeamDriveList();
|
| + var od = new api.TeamDriveList.fromJson(o.toJson());
|
| + checkTeamDriveList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-UserPicture", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildUserPicture();
|
| @@ -2464,6 +2739,8 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.ChangesResourceApi res = new api.DriveApi(mock).changes;
|
| var arg_changeId = "foo";
|
| + var arg_supportsTeamDrives = true;
|
| + var arg_teamDriveId = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -2495,6 +2772,8 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["supportsTeamDrives"].first, unittest.equals("$arg_supportsTeamDrives"));
|
| + unittest.expect(queryMap["teamDriveId"].first, unittest.equals(arg_teamDriveId));
|
|
|
|
|
| var h = {
|
| @@ -2503,7 +2782,7 @@ main() {
|
| var resp = convert.JSON.encode(buildChange());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_changeId).then(unittest.expectAsync(((api.Change response) {
|
| + res.get(arg_changeId, supportsTeamDrives: arg_supportsTeamDrives, teamDriveId: arg_teamDriveId).then(unittest.expectAsync(((api.Change response) {
|
| checkChange(response);
|
| })));
|
| });
|
| @@ -2512,6 +2791,8 @@ main() {
|
|
|
| var mock = new HttpServerMock();
|
| api.ChangesResourceApi res = new api.DriveApi(mock).changes;
|
| + var arg_supportsTeamDrives = true;
|
| + var arg_teamDriveId = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -2540,6 +2821,8 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["supportsTeamDrives"].first, unittest.equals("$arg_supportsTeamDrives"));
|
| + unittest.expect(queryMap["teamDriveId"].first, unittest.equals(arg_teamDriveId));
|
|
|
|
|
| var h = {
|
| @@ -2548,7 +2831,7 @@ main() {
|
| var resp = convert.JSON.encode(buildStartPageToken());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.getStartPageToken().then(unittest.expectAsync(((api.StartPageToken response) {
|
| + res.getStartPageToken(supportsTeamDrives: arg_supportsTeamDrives, teamDriveId: arg_teamDriveId).then(unittest.expectAsync(((api.StartPageToken response) {
|
| checkStartPageToken(response);
|
| })));
|
| });
|
| @@ -2557,12 +2840,16 @@ main() {
|
|
|
| var mock = new HttpServerMock();
|
| api.ChangesResourceApi res = new api.DriveApi(mock).changes;
|
| + var arg_includeCorpusRemovals = true;
|
| var arg_includeDeleted = true;
|
| var arg_includeSubscribed = true;
|
| + var arg_includeTeamDriveItems = true;
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| var arg_spaces = "foo";
|
| var arg_startChangeId = "foo";
|
| + var arg_supportsTeamDrives = true;
|
| + var arg_teamDriveId = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -2591,12 +2878,16 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["includeCorpusRemovals"].first, unittest.equals("$arg_includeCorpusRemovals"));
|
| unittest.expect(queryMap["includeDeleted"].first, unittest.equals("$arg_includeDeleted"));
|
| unittest.expect(queryMap["includeSubscribed"].first, unittest.equals("$arg_includeSubscribed"));
|
| + unittest.expect(queryMap["includeTeamDriveItems"].first, unittest.equals("$arg_includeTeamDriveItems"));
|
| unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| unittest.expect(queryMap["spaces"].first, unittest.equals(arg_spaces));
|
| unittest.expect(queryMap["startChangeId"].first, unittest.equals(arg_startChangeId));
|
| + unittest.expect(queryMap["supportsTeamDrives"].first, unittest.equals("$arg_supportsTeamDrives"));
|
| + unittest.expect(queryMap["teamDriveId"].first, unittest.equals(arg_teamDriveId));
|
|
|
|
|
| var h = {
|
| @@ -2605,7 +2896,7 @@ main() {
|
| var resp = convert.JSON.encode(buildChangeList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(includeDeleted: arg_includeDeleted, includeSubscribed: arg_includeSubscribed, maxResults: arg_maxResults, pageToken: arg_pageToken, spaces: arg_spaces, startChangeId: arg_startChangeId).then(unittest.expectAsync(((api.ChangeList response) {
|
| + res.list(includeCorpusRemovals: arg_includeCorpusRemovals, includeDeleted: arg_includeDeleted, includeSubscribed: arg_includeSubscribed, includeTeamDriveItems: arg_includeTeamDriveItems, maxResults: arg_maxResults, pageToken: arg_pageToken, spaces: arg_spaces, startChangeId: arg_startChangeId, supportsTeamDrives: arg_supportsTeamDrives, teamDriveId: arg_teamDriveId).then(unittest.expectAsync(((api.ChangeList response) {
|
| checkChangeList(response);
|
| })));
|
| });
|
| @@ -2615,12 +2906,16 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.ChangesResourceApi res = new api.DriveApi(mock).changes;
|
| var arg_request = buildChannel();
|
| + var arg_includeCorpusRemovals = true;
|
| var arg_includeDeleted = true;
|
| var arg_includeSubscribed = true;
|
| + var arg_includeTeamDriveItems = true;
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| var arg_spaces = "foo";
|
| var arg_startChangeId = "foo";
|
| + var arg_supportsTeamDrives = true;
|
| + var arg_teamDriveId = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var obj = new api.Channel.fromJson(json);
|
| checkChannel(obj);
|
| @@ -2652,12 +2947,16 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["includeCorpusRemovals"].first, unittest.equals("$arg_includeCorpusRemovals"));
|
| unittest.expect(queryMap["includeDeleted"].first, unittest.equals("$arg_includeDeleted"));
|
| unittest.expect(queryMap["includeSubscribed"].first, unittest.equals("$arg_includeSubscribed"));
|
| + unittest.expect(queryMap["includeTeamDriveItems"].first, unittest.equals("$arg_includeTeamDriveItems"));
|
| unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| unittest.expect(queryMap["spaces"].first, unittest.equals(arg_spaces));
|
| unittest.expect(queryMap["startChangeId"].first, unittest.equals(arg_startChangeId));
|
| + unittest.expect(queryMap["supportsTeamDrives"].first, unittest.equals("$arg_supportsTeamDrives"));
|
| + unittest.expect(queryMap["teamDriveId"].first, unittest.equals(arg_teamDriveId));
|
|
|
|
|
| var h = {
|
| @@ -2666,7 +2965,7 @@ main() {
|
| var resp = convert.JSON.encode(buildChannel());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.watch(arg_request, includeDeleted: arg_includeDeleted, includeSubscribed: arg_includeSubscribed, maxResults: arg_maxResults, pageToken: arg_pageToken, spaces: arg_spaces, startChangeId: arg_startChangeId).then(unittest.expectAsync(((api.Channel response) {
|
| + res.watch(arg_request, includeCorpusRemovals: arg_includeCorpusRemovals, includeDeleted: arg_includeDeleted, includeSubscribed: arg_includeSubscribed, includeTeamDriveItems: arg_includeTeamDriveItems, maxResults: arg_maxResults, pageToken: arg_pageToken, spaces: arg_spaces, startChangeId: arg_startChangeId, supportsTeamDrives: arg_supportsTeamDrives, teamDriveId: arg_teamDriveId).then(unittest.expectAsync(((api.Channel response) {
|
| checkChannel(response);
|
| })));
|
| });
|
| @@ -2844,6 +3143,7 @@ main() {
|
| api.ChildrenResourceApi res = new api.DriveApi(mock).children;
|
| var arg_request = buildChildReference();
|
| var arg_folderId = "foo";
|
| + var arg_supportsTeamDrives = true;
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var obj = new api.ChildReference.fromJson(json);
|
| checkChildReference(obj);
|
| @@ -2882,6 +3182,7 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["supportsTeamDrives"].first, unittest.equals("$arg_supportsTeamDrives"));
|
|
|
|
|
| var h = {
|
| @@ -2890,7 +3191,7 @@ main() {
|
| var resp = convert.JSON.encode(buildChildReference());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.insert(arg_request, arg_folderId).then(unittest.expectAsync(((api.ChildReference response) {
|
| + res.insert(arg_request, arg_folderId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync(((api.ChildReference response) {
|
| checkChildReference(response);
|
| })));
|
| });
|
| @@ -3328,6 +3629,7 @@ main() {
|
| var arg_ocr = true;
|
| var arg_ocrLanguage = "foo";
|
| var arg_pinned = true;
|
| + var arg_supportsTeamDrives = true;
|
| var arg_timedTextLanguage = "foo";
|
| var arg_timedTextTrackName = "foo";
|
| var arg_visibility = "foo";
|
| @@ -3373,6 +3675,7 @@ main() {
|
| unittest.expect(queryMap["ocr"].first, unittest.equals("$arg_ocr"));
|
| unittest.expect(queryMap["ocrLanguage"].first, unittest.equals(arg_ocrLanguage));
|
| unittest.expect(queryMap["pinned"].first, unittest.equals("$arg_pinned"));
|
| + unittest.expect(queryMap["supportsTeamDrives"].first, unittest.equals("$arg_supportsTeamDrives"));
|
| unittest.expect(queryMap["timedTextLanguage"].first, unittest.equals(arg_timedTextLanguage));
|
| unittest.expect(queryMap["timedTextTrackName"].first, unittest.equals(arg_timedTextTrackName));
|
| unittest.expect(queryMap["visibility"].first, unittest.equals(arg_visibility));
|
| @@ -3384,7 +3687,7 @@ main() {
|
| var resp = convert.JSON.encode(buildFile());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.copy(arg_request, arg_fileId, convert: arg_convert, ocr: arg_ocr, ocrLanguage: arg_ocrLanguage, pinned: arg_pinned, timedTextLanguage: arg_timedTextLanguage, timedTextTrackName: arg_timedTextTrackName, visibility: arg_visibility).then(unittest.expectAsync(((api.File response) {
|
| + res.copy(arg_request, arg_fileId, convert: arg_convert, ocr: arg_ocr, ocrLanguage: arg_ocrLanguage, pinned: arg_pinned, supportsTeamDrives: arg_supportsTeamDrives, timedTextLanguage: arg_timedTextLanguage, timedTextTrackName: arg_timedTextTrackName, visibility: arg_visibility).then(unittest.expectAsync(((api.File response) {
|
| checkFile(response);
|
| })));
|
| });
|
| @@ -3394,6 +3697,7 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.FilesResourceApi res = new api.DriveApi(mock).files;
|
| var arg_fileId = "foo";
|
| + var arg_supportsTeamDrives = true;
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -3425,6 +3729,7 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["supportsTeamDrives"].first, unittest.equals("$arg_supportsTeamDrives"));
|
|
|
|
|
| var h = {
|
| @@ -3433,7 +3738,7 @@ main() {
|
| var resp = "";
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_fileId).then(unittest.expectAsync((_) {}));
|
| + res.delete(arg_fileId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync((_) {}));
|
| });
|
|
|
| unittest.test("method--emptyTrash", () {
|
| @@ -3593,6 +3898,7 @@ main() {
|
| var arg_acknowledgeAbuse = true;
|
| var arg_projection = "foo";
|
| var arg_revisionId = "foo";
|
| + var arg_supportsTeamDrives = true;
|
| var arg_updateViewedDate = true;
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| @@ -3628,6 +3934,7 @@ main() {
|
| unittest.expect(queryMap["acknowledgeAbuse"].first, unittest.equals("$arg_acknowledgeAbuse"));
|
| unittest.expect(queryMap["projection"].first, unittest.equals(arg_projection));
|
| unittest.expect(queryMap["revisionId"].first, unittest.equals(arg_revisionId));
|
| + unittest.expect(queryMap["supportsTeamDrives"].first, unittest.equals("$arg_supportsTeamDrives"));
|
| unittest.expect(queryMap["updateViewedDate"].first, unittest.equals("$arg_updateViewedDate"));
|
|
|
|
|
| @@ -3637,7 +3944,7 @@ main() {
|
| var resp = convert.JSON.encode(buildFile());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_fileId, acknowledgeAbuse: arg_acknowledgeAbuse, projection: arg_projection, revisionId: arg_revisionId, updateViewedDate: arg_updateViewedDate).then(unittest.expectAsync(((api.File response) {
|
| + res.get(arg_fileId, acknowledgeAbuse: arg_acknowledgeAbuse, projection: arg_projection, revisionId: arg_revisionId, supportsTeamDrives: arg_supportsTeamDrives, updateViewedDate: arg_updateViewedDate).then(unittest.expectAsync(((api.File response) {
|
| checkFile(response);
|
| })));
|
| });
|
| @@ -3653,6 +3960,7 @@ main() {
|
| var arg_ocr = true;
|
| var arg_ocrLanguage = "foo";
|
| var arg_pinned = true;
|
| + var arg_supportsTeamDrives = true;
|
| var arg_timedTextLanguage = "foo";
|
| var arg_timedTextTrackName = "foo";
|
| var arg_useContentAsIndexableText = true;
|
| @@ -3692,6 +4000,7 @@ main() {
|
| unittest.expect(queryMap["ocr"].first, unittest.equals("$arg_ocr"));
|
| unittest.expect(queryMap["ocrLanguage"].first, unittest.equals(arg_ocrLanguage));
|
| unittest.expect(queryMap["pinned"].first, unittest.equals("$arg_pinned"));
|
| + unittest.expect(queryMap["supportsTeamDrives"].first, unittest.equals("$arg_supportsTeamDrives"));
|
| unittest.expect(queryMap["timedTextLanguage"].first, unittest.equals(arg_timedTextLanguage));
|
| unittest.expect(queryMap["timedTextTrackName"].first, unittest.equals(arg_timedTextTrackName));
|
| unittest.expect(queryMap["useContentAsIndexableText"].first, unittest.equals("$arg_useContentAsIndexableText"));
|
| @@ -3704,7 +4013,7 @@ main() {
|
| var resp = convert.JSON.encode(buildFile());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.insert(arg_request, convert: arg_convert, ocr: arg_ocr, ocrLanguage: arg_ocrLanguage, pinned: arg_pinned, timedTextLanguage: arg_timedTextLanguage, timedTextTrackName: arg_timedTextTrackName, useContentAsIndexableText: arg_useContentAsIndexableText, visibility: arg_visibility).then(unittest.expectAsync(((api.File response) {
|
| + res.insert(arg_request, convert: arg_convert, ocr: arg_ocr, ocrLanguage: arg_ocrLanguage, pinned: arg_pinned, supportsTeamDrives: arg_supportsTeamDrives, timedTextLanguage: arg_timedTextLanguage, timedTextTrackName: arg_timedTextTrackName, useContentAsIndexableText: arg_useContentAsIndexableText, visibility: arg_visibility).then(unittest.expectAsync(((api.File response) {
|
| checkFile(response);
|
| })));
|
| });
|
| @@ -3713,13 +4022,17 @@ main() {
|
|
|
| var mock = new HttpServerMock();
|
| api.FilesResourceApi res = new api.DriveApi(mock).files;
|
| + var arg_corpora = "foo";
|
| var arg_corpus = "foo";
|
| + var arg_includeTeamDriveItems = true;
|
| var arg_maxResults = 42;
|
| var arg_orderBy = "foo";
|
| var arg_pageToken = "foo";
|
| var arg_projection = "foo";
|
| var arg_q = "foo";
|
| var arg_spaces = "foo";
|
| + var arg_supportsTeamDrives = true;
|
| + var arg_teamDriveId = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -3748,13 +4061,17 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["corpora"].first, unittest.equals(arg_corpora));
|
| unittest.expect(queryMap["corpus"].first, unittest.equals(arg_corpus));
|
| + unittest.expect(queryMap["includeTeamDriveItems"].first, unittest.equals("$arg_includeTeamDriveItems"));
|
| unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| unittest.expect(queryMap["projection"].first, unittest.equals(arg_projection));
|
| unittest.expect(queryMap["q"].first, unittest.equals(arg_q));
|
| unittest.expect(queryMap["spaces"].first, unittest.equals(arg_spaces));
|
| + unittest.expect(queryMap["supportsTeamDrives"].first, unittest.equals("$arg_supportsTeamDrives"));
|
| + unittest.expect(queryMap["teamDriveId"].first, unittest.equals(arg_teamDriveId));
|
|
|
|
|
| var h = {
|
| @@ -3763,7 +4080,7 @@ main() {
|
| var resp = convert.JSON.encode(buildFileList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(corpus: arg_corpus, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, projection: arg_projection, q: arg_q, spaces: arg_spaces).then(unittest.expectAsync(((api.FileList response) {
|
| + res.list(corpora: arg_corpora, corpus: arg_corpus, includeTeamDriveItems: arg_includeTeamDriveItems, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, projection: arg_projection, q: arg_q, spaces: arg_spaces, supportsTeamDrives: arg_supportsTeamDrives, teamDriveId: arg_teamDriveId).then(unittest.expectAsync(((api.FileList response) {
|
| checkFileList(response);
|
| })));
|
| });
|
| @@ -3783,6 +4100,7 @@ main() {
|
| var arg_pinned = true;
|
| var arg_removeParents = "foo";
|
| var arg_setModifiedDate = true;
|
| + var arg_supportsTeamDrives = true;
|
| var arg_timedTextLanguage = "foo";
|
| var arg_timedTextTrackName = "foo";
|
| var arg_updateViewedDate = true;
|
| @@ -3830,6 +4148,7 @@ main() {
|
| unittest.expect(queryMap["pinned"].first, unittest.equals("$arg_pinned"));
|
| unittest.expect(queryMap["removeParents"].first, unittest.equals(arg_removeParents));
|
| unittest.expect(queryMap["setModifiedDate"].first, unittest.equals("$arg_setModifiedDate"));
|
| + unittest.expect(queryMap["supportsTeamDrives"].first, unittest.equals("$arg_supportsTeamDrives"));
|
| unittest.expect(queryMap["timedTextLanguage"].first, unittest.equals(arg_timedTextLanguage));
|
| unittest.expect(queryMap["timedTextTrackName"].first, unittest.equals(arg_timedTextTrackName));
|
| unittest.expect(queryMap["updateViewedDate"].first, unittest.equals("$arg_updateViewedDate"));
|
| @@ -3842,7 +4161,7 @@ main() {
|
| var resp = convert.JSON.encode(buildFile());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_fileId, addParents: arg_addParents, convert: arg_convert, modifiedDateBehavior: arg_modifiedDateBehavior, newRevision: arg_newRevision, ocr: arg_ocr, ocrLanguage: arg_ocrLanguage, pinned: arg_pinned, removeParents: arg_removeParents, setModifiedDate: arg_setModifiedDate, timedTextLanguage: arg_timedTextLanguage, timedTextTrackName: arg_timedTextTrackName, updateViewedDate: arg_updateViewedDate, useContentAsIndexableText: arg_useContentAsIndexableText).then(unittest.expectAsync(((api.File response) {
|
| + res.patch(arg_request, arg_fileId, addParents: arg_addParents, convert: arg_convert, modifiedDateBehavior: arg_modifiedDateBehavior, newRevision: arg_newRevision, ocr: arg_ocr, ocrLanguage: arg_ocrLanguage, pinned: arg_pinned, removeParents: arg_removeParents, setModifiedDate: arg_setModifiedDate, supportsTeamDrives: arg_supportsTeamDrives, timedTextLanguage: arg_timedTextLanguage, timedTextTrackName: arg_timedTextTrackName, updateViewedDate: arg_updateViewedDate, useContentAsIndexableText: arg_useContentAsIndexableText).then(unittest.expectAsync(((api.File response) {
|
| checkFile(response);
|
| })));
|
| });
|
| @@ -3852,6 +4171,7 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.FilesResourceApi res = new api.DriveApi(mock).files;
|
| var arg_fileId = "foo";
|
| + var arg_supportsTeamDrives = true;
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -3887,6 +4207,7 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["supportsTeamDrives"].first, unittest.equals("$arg_supportsTeamDrives"));
|
|
|
|
|
| var h = {
|
| @@ -3895,7 +4216,7 @@ main() {
|
| var resp = convert.JSON.encode(buildFile());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.touch(arg_fileId).then(unittest.expectAsync(((api.File response) {
|
| + res.touch(arg_fileId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync(((api.File response) {
|
| checkFile(response);
|
| })));
|
| });
|
| @@ -3905,6 +4226,7 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.FilesResourceApi res = new api.DriveApi(mock).files;
|
| var arg_fileId = "foo";
|
| + var arg_supportsTeamDrives = true;
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -3940,6 +4262,7 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["supportsTeamDrives"].first, unittest.equals("$arg_supportsTeamDrives"));
|
|
|
|
|
| var h = {
|
| @@ -3948,7 +4271,7 @@ main() {
|
| var resp = convert.JSON.encode(buildFile());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.trash(arg_fileId).then(unittest.expectAsync(((api.File response) {
|
| + res.trash(arg_fileId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync(((api.File response) {
|
| checkFile(response);
|
| })));
|
| });
|
| @@ -3958,6 +4281,7 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.FilesResourceApi res = new api.DriveApi(mock).files;
|
| var arg_fileId = "foo";
|
| + var arg_supportsTeamDrives = true;
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -3993,6 +4317,7 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["supportsTeamDrives"].first, unittest.equals("$arg_supportsTeamDrives"));
|
|
|
|
|
| var h = {
|
| @@ -4001,7 +4326,7 @@ main() {
|
| var resp = convert.JSON.encode(buildFile());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.untrash(arg_fileId).then(unittest.expectAsync(((api.File response) {
|
| + res.untrash(arg_fileId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync(((api.File response) {
|
| checkFile(response);
|
| })));
|
| });
|
| @@ -4023,6 +4348,7 @@ main() {
|
| var arg_pinned = true;
|
| var arg_removeParents = "foo";
|
| var arg_setModifiedDate = true;
|
| + var arg_supportsTeamDrives = true;
|
| var arg_timedTextLanguage = "foo";
|
| var arg_timedTextTrackName = "foo";
|
| var arg_updateViewedDate = true;
|
| @@ -4070,6 +4396,7 @@ main() {
|
| unittest.expect(queryMap["pinned"].first, unittest.equals("$arg_pinned"));
|
| unittest.expect(queryMap["removeParents"].first, unittest.equals(arg_removeParents));
|
| unittest.expect(queryMap["setModifiedDate"].first, unittest.equals("$arg_setModifiedDate"));
|
| + unittest.expect(queryMap["supportsTeamDrives"].first, unittest.equals("$arg_supportsTeamDrives"));
|
| unittest.expect(queryMap["timedTextLanguage"].first, unittest.equals(arg_timedTextLanguage));
|
| unittest.expect(queryMap["timedTextTrackName"].first, unittest.equals(arg_timedTextTrackName));
|
| unittest.expect(queryMap["updateViewedDate"].first, unittest.equals("$arg_updateViewedDate"));
|
| @@ -4082,7 +4409,7 @@ main() {
|
| var resp = convert.JSON.encode(buildFile());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.update(arg_request, arg_fileId, addParents: arg_addParents, convert: arg_convert, modifiedDateBehavior: arg_modifiedDateBehavior, newRevision: arg_newRevision, ocr: arg_ocr, ocrLanguage: arg_ocrLanguage, pinned: arg_pinned, removeParents: arg_removeParents, setModifiedDate: arg_setModifiedDate, timedTextLanguage: arg_timedTextLanguage, timedTextTrackName: arg_timedTextTrackName, updateViewedDate: arg_updateViewedDate, useContentAsIndexableText: arg_useContentAsIndexableText).then(unittest.expectAsync(((api.File response) {
|
| + res.update(arg_request, arg_fileId, addParents: arg_addParents, convert: arg_convert, modifiedDateBehavior: arg_modifiedDateBehavior, newRevision: arg_newRevision, ocr: arg_ocr, ocrLanguage: arg_ocrLanguage, pinned: arg_pinned, removeParents: arg_removeParents, setModifiedDate: arg_setModifiedDate, supportsTeamDrives: arg_supportsTeamDrives, timedTextLanguage: arg_timedTextLanguage, timedTextTrackName: arg_timedTextTrackName, updateViewedDate: arg_updateViewedDate, useContentAsIndexableText: arg_useContentAsIndexableText).then(unittest.expectAsync(((api.File response) {
|
| checkFile(response);
|
| })));
|
| });
|
| @@ -4098,6 +4425,7 @@ main() {
|
| var arg_acknowledgeAbuse = true;
|
| var arg_projection = "foo";
|
| var arg_revisionId = "foo";
|
| + var arg_supportsTeamDrives = true;
|
| var arg_updateViewedDate = true;
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var obj = new api.Channel.fromJson(json);
|
| @@ -4140,6 +4468,7 @@ main() {
|
| unittest.expect(queryMap["acknowledgeAbuse"].first, unittest.equals("$arg_acknowledgeAbuse"));
|
| unittest.expect(queryMap["projection"].first, unittest.equals(arg_projection));
|
| unittest.expect(queryMap["revisionId"].first, unittest.equals(arg_revisionId));
|
| + unittest.expect(queryMap["supportsTeamDrives"].first, unittest.equals("$arg_supportsTeamDrives"));
|
| unittest.expect(queryMap["updateViewedDate"].first, unittest.equals("$arg_updateViewedDate"));
|
|
|
|
|
| @@ -4149,7 +4478,7 @@ main() {
|
| var resp = convert.JSON.encode(buildChannel());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.watch(arg_request, arg_fileId, acknowledgeAbuse: arg_acknowledgeAbuse, projection: arg_projection, revisionId: arg_revisionId, updateViewedDate: arg_updateViewedDate).then(unittest.expectAsync(((api.Channel response) {
|
| + res.watch(arg_request, arg_fileId, acknowledgeAbuse: arg_acknowledgeAbuse, projection: arg_projection, revisionId: arg_revisionId, supportsTeamDrives: arg_supportsTeamDrives, updateViewedDate: arg_updateViewedDate).then(unittest.expectAsync(((api.Channel response) {
|
| checkChannel(response);
|
| })));
|
| });
|
| @@ -4276,6 +4605,7 @@ main() {
|
| api.ParentsResourceApi res = new api.DriveApi(mock).parents;
|
| var arg_request = buildParentReference();
|
| var arg_fileId = "foo";
|
| + var arg_supportsTeamDrives = true;
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var obj = new api.ParentReference.fromJson(json);
|
| checkParentReference(obj);
|
| @@ -4314,6 +4644,7 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["supportsTeamDrives"].first, unittest.equals("$arg_supportsTeamDrives"));
|
|
|
|
|
| var h = {
|
| @@ -4322,7 +4653,7 @@ main() {
|
| var resp = convert.JSON.encode(buildParentReference());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.insert(arg_request, arg_fileId).then(unittest.expectAsync(((api.ParentReference response) {
|
| + res.insert(arg_request, arg_fileId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync(((api.ParentReference response) {
|
| checkParentReference(response);
|
| })));
|
| });
|
| @@ -4390,6 +4721,7 @@ main() {
|
| api.PermissionsResourceApi res = new api.DriveApi(mock).permissions;
|
| var arg_fileId = "foo";
|
| var arg_permissionId = "foo";
|
| + var arg_supportsTeamDrives = true;
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -4428,6 +4760,7 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["supportsTeamDrives"].first, unittest.equals("$arg_supportsTeamDrives"));
|
|
|
|
|
| var h = {
|
| @@ -4436,7 +4769,7 @@ main() {
|
| var resp = "";
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_fileId, arg_permissionId).then(unittest.expectAsync((_) {}));
|
| + res.delete(arg_fileId, arg_permissionId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync((_) {}));
|
| });
|
|
|
| unittest.test("method--get", () {
|
| @@ -4445,6 +4778,7 @@ main() {
|
| api.PermissionsResourceApi res = new api.DriveApi(mock).permissions;
|
| var arg_fileId = "foo";
|
| var arg_permissionId = "foo";
|
| + var arg_supportsTeamDrives = true;
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -4483,6 +4817,7 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["supportsTeamDrives"].first, unittest.equals("$arg_supportsTeamDrives"));
|
|
|
|
|
| var h = {
|
| @@ -4491,7 +4826,7 @@ main() {
|
| var resp = convert.JSON.encode(buildPermission());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_fileId, arg_permissionId).then(unittest.expectAsync(((api.Permission response) {
|
| + res.get(arg_fileId, arg_permissionId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync(((api.Permission response) {
|
| checkPermission(response);
|
| })));
|
| });
|
| @@ -4553,6 +4888,7 @@ main() {
|
| var arg_fileId = "foo";
|
| var arg_emailMessage = "foo";
|
| var arg_sendNotificationEmails = true;
|
| + var arg_supportsTeamDrives = true;
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var obj = new api.Permission.fromJson(json);
|
| checkPermission(obj);
|
| @@ -4593,6 +4929,7 @@ main() {
|
| }
|
| unittest.expect(queryMap["emailMessage"].first, unittest.equals(arg_emailMessage));
|
| unittest.expect(queryMap["sendNotificationEmails"].first, unittest.equals("$arg_sendNotificationEmails"));
|
| + unittest.expect(queryMap["supportsTeamDrives"].first, unittest.equals("$arg_supportsTeamDrives"));
|
|
|
|
|
| var h = {
|
| @@ -4601,7 +4938,7 @@ main() {
|
| var resp = convert.JSON.encode(buildPermission());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.insert(arg_request, arg_fileId, emailMessage: arg_emailMessage, sendNotificationEmails: arg_sendNotificationEmails).then(unittest.expectAsync(((api.Permission response) {
|
| + res.insert(arg_request, arg_fileId, emailMessage: arg_emailMessage, sendNotificationEmails: arg_sendNotificationEmails, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync(((api.Permission response) {
|
| checkPermission(response);
|
| })));
|
| });
|
| @@ -4611,6 +4948,9 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.PermissionsResourceApi res = new api.DriveApi(mock).permissions;
|
| var arg_fileId = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_pageToken = "foo";
|
| + var arg_supportsTeamDrives = true;
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -4646,6 +4986,9 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(queryMap["supportsTeamDrives"].first, unittest.equals("$arg_supportsTeamDrives"));
|
|
|
|
|
| var h = {
|
| @@ -4654,7 +4997,7 @@ main() {
|
| var resp = convert.JSON.encode(buildPermissionList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_fileId).then(unittest.expectAsync(((api.PermissionList response) {
|
| + res.list(arg_fileId, maxResults: arg_maxResults, pageToken: arg_pageToken, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync(((api.PermissionList response) {
|
| checkPermissionList(response);
|
| })));
|
| });
|
| @@ -4667,6 +5010,7 @@ main() {
|
| var arg_fileId = "foo";
|
| var arg_permissionId = "foo";
|
| var arg_removeExpiration = true;
|
| + var arg_supportsTeamDrives = true;
|
| var arg_transferOwnership = true;
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var obj = new api.Permission.fromJson(json);
|
| @@ -4710,6 +5054,7 @@ main() {
|
| }
|
| }
|
| unittest.expect(queryMap["removeExpiration"].first, unittest.equals("$arg_removeExpiration"));
|
| + unittest.expect(queryMap["supportsTeamDrives"].first, unittest.equals("$arg_supportsTeamDrives"));
|
| unittest.expect(queryMap["transferOwnership"].first, unittest.equals("$arg_transferOwnership"));
|
|
|
|
|
| @@ -4719,7 +5064,7 @@ main() {
|
| var resp = convert.JSON.encode(buildPermission());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_fileId, arg_permissionId, removeExpiration: arg_removeExpiration, transferOwnership: arg_transferOwnership).then(unittest.expectAsync(((api.Permission response) {
|
| + res.patch(arg_request, arg_fileId, arg_permissionId, removeExpiration: arg_removeExpiration, supportsTeamDrives: arg_supportsTeamDrives, transferOwnership: arg_transferOwnership).then(unittest.expectAsync(((api.Permission response) {
|
| checkPermission(response);
|
| })));
|
| });
|
| @@ -4732,6 +5077,7 @@ main() {
|
| var arg_fileId = "foo";
|
| var arg_permissionId = "foo";
|
| var arg_removeExpiration = true;
|
| + var arg_supportsTeamDrives = true;
|
| var arg_transferOwnership = true;
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var obj = new api.Permission.fromJson(json);
|
| @@ -4775,6 +5121,7 @@ main() {
|
| }
|
| }
|
| unittest.expect(queryMap["removeExpiration"].first, unittest.equals("$arg_removeExpiration"));
|
| + unittest.expect(queryMap["supportsTeamDrives"].first, unittest.equals("$arg_supportsTeamDrives"));
|
| unittest.expect(queryMap["transferOwnership"].first, unittest.equals("$arg_transferOwnership"));
|
|
|
|
|
| @@ -4784,7 +5131,7 @@ main() {
|
| var resp = convert.JSON.encode(buildPermission());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.update(arg_request, arg_fileId, arg_permissionId, removeExpiration: arg_removeExpiration, transferOwnership: arg_transferOwnership).then(unittest.expectAsync(((api.Permission response) {
|
| + res.update(arg_request, arg_fileId, arg_permissionId, removeExpiration: arg_removeExpiration, supportsTeamDrives: arg_supportsTeamDrives, transferOwnership: arg_transferOwnership).then(unittest.expectAsync(((api.Permission response) {
|
| checkPermission(response);
|
| })));
|
| });
|
| @@ -5961,5 +6308,258 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("resource-TeamdrivesResourceApi", () {
|
| + unittest.test("method--delete", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.TeamdrivesResourceApi res = new api.DriveApi(mock).teamdrives;
|
| + var arg_teamDriveId = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("drive/v2/"));
|
| + pathOffset += 9;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("teamdrives/"));
|
| + pathOffset += 11;
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| + pathOffset = path.length;
|
| + unittest.expect(subPart, unittest.equals("$arg_teamDriveId"));
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = "";
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.delete(arg_teamDriveId).then(unittest.expectAsync((_) {}));
|
| + });
|
| +
|
| + unittest.test("method--get", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.TeamdrivesResourceApi res = new api.DriveApi(mock).teamdrives;
|
| + var arg_teamDriveId = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("drive/v2/"));
|
| + pathOffset += 9;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("teamdrives/"));
|
| + pathOffset += 11;
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| + pathOffset = path.length;
|
| + unittest.expect(subPart, unittest.equals("$arg_teamDriveId"));
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildTeamDrive());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.get(arg_teamDriveId).then(unittest.expectAsync(((api.TeamDrive response) {
|
| + checkTeamDrive(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--insert", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.TeamdrivesResourceApi res = new api.DriveApi(mock).teamdrives;
|
| + var arg_request = buildTeamDrive();
|
| + var arg_requestId = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.TeamDrive.fromJson(json);
|
| + checkTeamDrive(obj);
|
| +
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("drive/v2/"));
|
| + pathOffset += 9;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("teamdrives"));
|
| + pathOffset += 10;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| + unittest.expect(queryMap["requestId"].first, unittest.equals(arg_requestId));
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildTeamDrive());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.insert(arg_request, arg_requestId).then(unittest.expectAsync(((api.TeamDrive response) {
|
| + checkTeamDrive(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--list", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.TeamdrivesResourceApi res = new api.DriveApi(mock).teamdrives;
|
| + var arg_maxResults = 42;
|
| + var arg_pageToken = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("drive/v2/"));
|
| + pathOffset += 9;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("teamdrives"));
|
| + pathOffset += 10;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildTeamDriveList());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.list(maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TeamDriveList response) {
|
| + checkTeamDriveList(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--update", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.TeamdrivesResourceApi res = new api.DriveApi(mock).teamdrives;
|
| + var arg_request = buildTeamDrive();
|
| + var arg_teamDriveId = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.TeamDrive.fromJson(json);
|
| + checkTeamDrive(obj);
|
| +
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("drive/v2/"));
|
| + pathOffset += 9;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("teamdrives/"));
|
| + pathOffset += 11;
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| + pathOffset = path.length;
|
| + unittest.expect(subPart, unittest.equals("$arg_teamDriveId"));
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildTeamDrive());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.update(arg_request, arg_teamDriveId).then(unittest.expectAsync(((api.TeamDrive response) {
|
| + checkTeamDrive(response);
|
| + })));
|
| + });
|
| +
|
| + });
|
| +
|
| +
|
| }
|
|
|
|
|