diff --git a/src/sdk/PnP.Core.Test/SharePoint/FilesTests.cs b/src/sdk/PnP.Core.Test/SharePoint/FilesTests.cs index 2fb8cce94f..57dd97ff4d 100644 --- a/src/sdk/PnP.Core.Test/SharePoint/FilesTests.cs +++ b/src/sdk/PnP.Core.Test/SharePoint/FilesTests.cs @@ -196,9 +196,9 @@ public async Task GetNonExistingFileByServerRelativeUrlAsyncTest() { IFile testDocument = await context.Web.GetFileByServerRelativeUrlAsync($"{TestCommon.Instance.TestUris[TestCommon.TestSite].LocalPath}/Shared%20Documents/IdontExist.pdf"); - Assert.IsNotNull(testDocument); + Assert.IsNotNull(testDocument); } - catch(SharePointRestServiceException ex) + catch (SharePointRestServiceException ex) { var error = ex.Error as SharePointRestError; // Indicates the file did not exist @@ -260,7 +260,7 @@ public async Task PublishFileAsyncTest() initialMajorVersion = testDocument.MajorVersion; initialMinorVersion = testDocument.MinorVersion; await testDocument.PublishAsync("TEST PUBLISH"); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); //Assert.AreEqual(currentVersion + 1, testDocument.MajorVersion); Assert.AreEqual("TEST PUBLISH", testDocument.CheckInComment); @@ -302,7 +302,7 @@ public async Task PublishFileTest() initialMajorVersion = testDocument.MajorVersion; initialMinorVersion = testDocument.MinorVersion; testDocument.Publish("TEST PUBLISH"); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); //Assert.AreEqual(currentVersion + 1, testDocument.MajorVersion); Assert.AreEqual("TEST PUBLISH", testDocument.CheckInComment); @@ -332,7 +332,7 @@ public async Task PublishFileCurrentBatchAsyncTest() initialMinorVersion = testDocument.MinorVersion; await testDocument.PublishBatchAsync("TEST PUBLISH"); await context.ExecuteAsync(); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); //Assert.AreEqual(currentVersion + 1, testDocument.MajorVersion); Assert.AreEqual("TEST PUBLISH", testDocument.CheckInComment); @@ -362,7 +362,7 @@ public async Task PublishFileCurrentBatchTest() initialMinorVersion = testDocument.MinorVersion; testDocument.PublishBatch("TEST PUBLISH"); await context.ExecuteAsync(); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); //Assert.AreEqual(currentVersion + 1, testDocument.MajorVersion); Assert.AreEqual("TEST PUBLISH", testDocument.CheckInComment); @@ -392,7 +392,7 @@ public async Task PublishFileBatchAsyncTest() var batch = context.NewBatch(); await testDocument.PublishBatchAsync(batch, "TEST PUBLISH"); await context.ExecuteAsync(batch); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); //Assert.AreEqual(currentVersion + 1, testDocument.MajorVersion); Assert.AreEqual("TEST PUBLISH", testDocument.CheckInComment); @@ -423,7 +423,7 @@ public async Task PublishFileBatchTest() var batch = context.NewBatch(); testDocument.PublishBatch(batch, "TEST PUBLISH"); await context.ExecuteAsync(batch); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); //Assert.AreEqual(currentVersion + 1, testDocument.MajorVersion); Assert.AreEqual("TEST PUBLISH", testDocument.CheckInComment); @@ -483,7 +483,7 @@ public async Task UnpublishFileTest() initialMinorVersion = testDocument.MinorVersion; await testDocument.PublishAsync("TEST PUBLISH"); testDocument.Unpublish("TEST UNPUBLISHED"); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); Assert.AreEqual("TEST UNPUBLISHED", testDocument.CheckInComment); Assert.AreEqual(initialMajorVersion, testDocument.MajorVersion); @@ -512,7 +512,7 @@ public async Task UnpublishFileCurrentBatchAsyncTest() await testDocument.PublishAsync("TEST PUBLISH"); await testDocument.UnpublishBatchAsync("TEST UNPUBLISHED"); await context.ExecuteAsync(); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); Assert.AreEqual("TEST UNPUBLISHED", testDocument.CheckInComment); Assert.AreEqual(initialMajorVersion, testDocument.MajorVersion); @@ -541,7 +541,7 @@ public async Task UnpublishFileCurrentBatchTest() await testDocument.PublishAsync("TEST PUBLISH"); testDocument.UnpublishBatch("TEST UNPUBLISHED"); await context.ExecuteAsync(); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); Assert.AreEqual("TEST UNPUBLISHED", testDocument.CheckInComment); Assert.AreEqual(initialMajorVersion, testDocument.MajorVersion); @@ -571,7 +571,7 @@ public async Task UnpublishFileBatchAsyncTest() var batch = context.NewBatch(); await testDocument.UnpublishBatchAsync(batch, "TEST UNPUBLISHED"); await context.ExecuteAsync(batch); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); Assert.AreEqual("TEST UNPUBLISHED", testDocument.CheckInComment); Assert.AreEqual(initialMajorVersion, testDocument.MajorVersion); @@ -601,7 +601,7 @@ public async Task UnpublishFileBatchTest() var batch = context.NewBatch(); testDocument.UnpublishBatch(batch, "TEST UNPUBLISHED"); await context.ExecuteAsync(batch); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); Assert.AreEqual("TEST UNPUBLISHED", testDocument.CheckInComment); Assert.AreEqual(initialMajorVersion, testDocument.MajorVersion); @@ -625,7 +625,7 @@ public async Task CheckoutFileAsyncTest() { IFile testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); await testDocument.CheckoutAsync(); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl, f => f.CheckOutType, f => f.CheckedOutByUser); Assert.AreNotEqual(CheckOutType.None, testDocument.CheckOutType); Assert.IsNotNull(testDocument.CheckedOutByUser); @@ -649,7 +649,7 @@ public async Task CheckoutFileTest() { IFile testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); testDocument.Checkout(); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl, f => f.CheckOutType, f => f.CheckedOutByUser); Assert.AreNotEqual(CheckOutType.None, testDocument.CheckOutType); Assert.IsNotNull(testDocument.CheckedOutByUser); @@ -674,7 +674,7 @@ public async Task CheckoutFileCurrentBatchAsyncTest() IFile testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); await testDocument.CheckoutBatchAsync(); await context.ExecuteAsync(); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl, f => f.CheckOutType, f => f.CheckedOutByUser); Assert.AreNotEqual(CheckOutType.None, testDocument.CheckOutType); Assert.IsNotNull(testDocument.CheckedOutByUser); @@ -699,7 +699,7 @@ public async Task CheckoutFileCurrentBatchTest() IFile testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); testDocument.CheckoutBatch(); await context.ExecuteAsync(); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl, f => f.CheckOutType, f => f.CheckedOutByUser); Assert.AreNotEqual(CheckOutType.None, testDocument.CheckOutType); Assert.IsNotNull(testDocument.CheckedOutByUser); @@ -725,7 +725,7 @@ public async Task CheckoutFileBatchAsyncTest() var batch = context.NewBatch(); await testDocument.CheckoutBatchAsync(batch); await context.ExecuteAsync(batch); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl, f => f.CheckOutType, f => f.CheckedOutByUser); Assert.AreNotEqual(CheckOutType.None, testDocument.CheckOutType); Assert.IsNotNull(testDocument.CheckedOutByUser); @@ -751,7 +751,7 @@ public async Task CheckoutFileBatchTest() var batch = context.NewBatch(); testDocument.CheckoutBatch(batch); await context.ExecuteAsync(batch); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl, f => f.CheckOutType, f => f.CheckedOutByUser); Assert.AreNotEqual(CheckOutType.None, testDocument.CheckOutType); Assert.IsNotNull(testDocument.CheckedOutByUser); @@ -783,7 +783,7 @@ public async Task UndoCheckoutFileAsyncTest() initialMinorVersion = testDocument.MinorVersion; await testDocument.CheckoutAsync(); await testDocument.UndoCheckoutAsync(); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); Assert.AreEqual(CheckOutType.None, testDocument.CheckOutType); Assert.AreEqual(initialMajorVersion, testDocument.MajorVersion); @@ -810,7 +810,7 @@ public async Task UndoCheckoutFileTest() initialMinorVersion = testDocument.MinorVersion; testDocument.Checkout(); testDocument.UndoCheckout(); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); Assert.AreEqual(CheckOutType.None, testDocument.CheckOutType); Assert.AreEqual(initialMajorVersion, testDocument.MajorVersion); @@ -838,7 +838,7 @@ public async Task UndoCheckoutFileCurrentBatchAsyncTest() await testDocument.CheckoutAsync(); await testDocument.UndoCheckoutBatchAsync(); await context.ExecuteAsync(); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); Assert.AreEqual(CheckOutType.None, testDocument.CheckOutType); Assert.AreEqual(initialMajorVersion, testDocument.MajorVersion); @@ -866,7 +866,7 @@ public async Task UndoCheckoutFileCurrentBatchTest() testDocument.Checkout(); testDocument.UndoCheckoutBatch(); await context.ExecuteAsync(); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); Assert.AreEqual(CheckOutType.None, testDocument.CheckOutType); Assert.AreEqual(initialMajorVersion, testDocument.MajorVersion); @@ -895,7 +895,7 @@ public async Task UndoCheckoutFileBatchAsyncTest() var batch = context.NewBatch(); await testDocument.UndoCheckoutBatchAsync(batch); await context.ExecuteAsync(batch); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); Assert.AreEqual(CheckOutType.None, testDocument.CheckOutType); Assert.AreEqual(initialMajorVersion, testDocument.MajorVersion); @@ -924,7 +924,7 @@ public async Task UndoCheckoutFileBatchTest() var batch = context.NewBatch(); testDocument.UndoCheckoutBatch(batch); await context.ExecuteAsync(batch); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); Assert.AreEqual(CheckOutType.None, testDocument.CheckOutType); Assert.AreEqual(initialMajorVersion, testDocument.MajorVersion); @@ -954,10 +954,10 @@ public async Task ApproveFileTest() await testDocument.CheckinAsync("TEST CHECK IN", CheckinType.MajorCheckIn); await testDocument.ApproveAsync("TEST APPROVE"); - testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl, f=>f.CheckOutType, f => f.CheckInComment, f => f.MajorVersion, f => f.MinorVersion, p => p.ListItemAllFields); + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl, f => f.CheckOutType, f => f.CheckInComment, f => f.MajorVersion, f => f.MinorVersion, p => p.ListItemAllFields); Assert.AreEqual(CheckOutType.None, testDocument.CheckOutType); Assert.AreEqual("TEST CHECK IN", testDocument.CheckInComment); - + Assert.AreEqual("0", testDocument.ListItemAllFields["_ModerationStatus"].ToString()); Assert.AreEqual("TEST APPROVE", testDocument.ListItemAllFields["_ModerationComments"].ToString()); Assert.IsTrue(testDocument.MajorVersion == initialMajorVersion + 1); @@ -1021,7 +1021,7 @@ public async Task CheckinFileMajorVersionTest() initialMinorVersion = testDocument.MinorVersion; await testDocument.CheckoutAsync(); await testDocument.CheckinAsync("TEST CHECK IN", CheckinType.MajorCheckIn); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); Assert.AreEqual(CheckOutType.None, testDocument.CheckOutType); Assert.AreEqual("TEST CHECK IN", testDocument.CheckInComment); @@ -1049,7 +1049,7 @@ public async Task CheckinFileMinorVersionTest() initialMinorVersion = testDocument.MinorVersion; await testDocument.CheckoutAsync(); await testDocument.CheckinAsync("TEST CHECK IN", CheckinType.MinorCheckIn); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); Assert.AreEqual(CheckOutType.None, testDocument.CheckOutType); Assert.AreEqual("TEST CHECK IN", testDocument.CheckInComment); @@ -1078,7 +1078,7 @@ public async Task CheckinFileOverwriteVersionTest() initialMinorVersion = testDocument.MinorVersion; await testDocument.CheckoutAsync(); await testDocument.CheckinAsync("TEST CHECK IN", CheckinType.OverwriteCheckIn); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); Assert.AreEqual(CheckOutType.None, testDocument.CheckOutType); Assert.AreEqual("TEST CHECK IN", testDocument.CheckInComment); @@ -1107,7 +1107,7 @@ public async Task CheckinFileWithBatchTest() await testDocument.CheckoutAsync(); await testDocument.CheckinBatchAsync("TEST CHECK IN", CheckinType.MajorCheckIn); await context.ExecuteAsync(); - + testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); Assert.AreEqual(CheckOutType.None, testDocument.CheckOutType); Assert.AreEqual("TEST CHECK IN", testDocument.CheckInComment); @@ -1134,7 +1134,7 @@ public async Task RecycleFileAsyncTest() Guid recycleBinId = await testDocument.RecycleAsync(); Assert.AreNotEqual(Guid.Empty, recycleBinId); - + try { testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); @@ -1161,7 +1161,7 @@ public async Task RecycleFileTest() Guid recycleBinId = testDocument.Recycle(); Assert.AreNotEqual(Guid.Empty, recycleBinId); - + try { testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); @@ -1216,7 +1216,7 @@ public async Task RecycleFileCurrentBatchTest() testDocument.RecycleBatch(); await context.ExecuteAsync(); - + try { testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); @@ -1243,7 +1243,7 @@ public async Task RecycleFileBatchAsyncTest() var batch = context.NewBatch(); await testDocument.RecycleBatchAsync(batch); await context.ExecuteAsync(batch); - + try { testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); @@ -1270,7 +1270,7 @@ public async Task RecycleFileBatchTest() var batch = context.NewBatch(); testDocument.RecycleBatch(batch); await context.ExecuteAsync(batch); - + try { testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl); @@ -2410,6 +2410,182 @@ public async Task SetFilePropertiesAsyncWithoutLoadingServerRelativeUrlTest() #endregion + #region Get IFile Properties + [TestMethod] + public async Task GetIFilePropertiesAsyncTest() + { + //TestCommon.Instance.Mocking = false; + (_, _, string documentUrl) = await TestAssets.CreateTestDocumentAsync(0); + + using (var context = await TestCommon.Instance.GetContextAsync(TestCommon.TestSite, 1)) + { + IFile documentWithProperties = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl, + f => f.HasAlternateContentStreams, + f => f.Length, + f => f.ServerRedirectedUrl, + f => f.VroomDriveID, + f => f.VroomItemID); + + Assert.IsNotNull(documentWithProperties); + Assert.AreEqual(new Guid("1da95e02-da8b-4695-af65-d8259a33942a"), documentWithProperties.UniqueId); + + Assert.IsFalse(documentWithProperties.HasAlternateContentStreams); + Assert.AreEqual(18054, documentWithProperties.Length); + Assert.AreEqual("https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_layouts/15/Doc.aspx?sourcedoc=%7B1DA95E02-DA8B-4695-AF65-D8259A33942A%7D&file=PNP_SDK_TEST_GetIFilePropertiesAsyncTest.docx&action=default&mobileredirect=true", documentWithProperties.ServerRedirectedUrl); + Assert.AreEqual("b!ZtxgsoWyf0eKGhSZeYLphlfDo3rrzblDnc3cFkWzDP9Y_NwRML4tS7O6tnUsdm9H", documentWithProperties.VroomDriveID); + Assert.AreEqual("01TEEVMCACL2UR3C62SVDK6ZOYEWNDHFBK", documentWithProperties.VroomItemID); + } + + await TestAssets.CleanupTestDocumentAsync(2); + } + + [TestMethod] + public async Task GetIFilePropertiesTest() + { + //TestCommon.Instance.Mocking = false; + (_, _, string documentUrl) = await TestAssets.CreateTestDocumentAsync(0); + + using (var context = await TestCommon.Instance.GetContextAsync(TestCommon.TestSite, 1)) + { + IFile documentWithProperties = context.Web.GetFileByServerRelativeUrl(documentUrl, + f => f.HasAlternateContentStreams, + f => f.Length, + f => f.ServerRedirectedUrl, + f => f.VroomDriveID, + f => f.VroomItemID); + + Assert.IsNotNull(documentWithProperties); + Assert.AreEqual(new Guid("4128af05-f375-4a02-9099-1c7dbd888a2b"), documentWithProperties.UniqueId); + + Assert.IsFalse(documentWithProperties.HasAlternateContentStreams); + Assert.AreEqual(18047, documentWithProperties.Length); + Assert.AreEqual("https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_layouts/15/Doc.aspx?sourcedoc=%7B4128AF05-F375-4A02-9099-1C7DBD888A2B%7D&file=PNP_SDK_TEST_GetIFilePropertiesTest.docx&action=default&mobileredirect=true", documentWithProperties.ServerRedirectedUrl); + Assert.AreEqual("b!ZtxgsoWyf0eKGhSZeYLphlfDo3rrzblDnc3cFkWzDP9Y_NwRML4tS7O6tnUsdm9H", documentWithProperties.VroomDriveID); + Assert.AreEqual("01TEEVMCAFV4UEC5PTAJFJBGI4PW6YRCRL", documentWithProperties.VroomItemID); + } + + await TestAssets.CleanupTestDocumentAsync(2); + } + + [TestMethod] + public async Task GetIFilePropertiesCurrentBatchAsyncTest() + { + //TestCommon.Instance.Mocking = false; + (_, _, string documentUrl) = await TestAssets.CreateTestDocumentAsync(0); + + using (var context = await TestCommon.Instance.GetContextAsync(TestCommon.TestSite, 1)) + { + IFile documentWithProperties = await context.Web.GetFileByServerRelativeUrlBatchAsync(documentUrl, + f => f.HasAlternateContentStreams, + f => f.Length, + f => f.ServerRedirectedUrl, + f => f.VroomDriveID, + f => f.VroomItemID); + await context.ExecuteAsync(); + + Assert.IsNotNull(documentWithProperties); + Assert.AreEqual(new Guid("eb8cf6a2-e76e-4d7f-8b04-88302476f7ad"), documentWithProperties.UniqueId); + + Assert.IsFalse(documentWithProperties.HasAlternateContentStreams); + Assert.AreEqual(18050, documentWithProperties.Length); + Assert.AreEqual("https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_layouts/15/Doc.aspx?sourcedoc=%7BEB8CF6A2-E76E-4D7F-8B04-88302476F7AD%7D&file=PNP_SDK_TEST_GetIFilePropertiesCurrentBatchAsyncTest.docx&action=default&mobileredirect=true", documentWithProperties.ServerRedirectedUrl); + Assert.AreEqual("b!ZtxgsoWyf0eKGhSZeYLphlfDo3rrzblDnc3cFkWzDP9Y_NwRML4tS7O6tnUsdm9H", documentWithProperties.VroomDriveID); + Assert.AreEqual("01TEEVMCFC62GOW3XHP5GYWBEIGASHN55N", documentWithProperties.VroomItemID); + } + + await TestAssets.CleanupTestDocumentAsync(2); + } + + [TestMethod] + public async Task GetIFilePropertiesCurrentBatchTest() + { + //TestCommon.Instance.Mocking = false; + (_, _, string documentUrl) = await TestAssets.CreateTestDocumentAsync(0); + + using (var context = await TestCommon.Instance.GetContextAsync(TestCommon.TestSite, 1)) + { + IFile documentWithProperties = context.Web.GetFileByServerRelativeUrlBatch(documentUrl, + f => f.HasAlternateContentStreams, + f => f.Length, + f => f.ServerRedirectedUrl, + f => f.VroomDriveID, + f => f.VroomItemID); + await context.ExecuteAsync(); + + Assert.IsNotNull(documentWithProperties); + Assert.AreEqual(new Guid("fbd54892-2efc-4a13-8968-a48ad6d3f4f0"), documentWithProperties.UniqueId); + + Assert.IsFalse(documentWithProperties.HasAlternateContentStreams); + Assert.AreEqual(18046, documentWithProperties.Length); + Assert.AreEqual("https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_layouts/15/Doc.aspx?sourcedoc=%7BFBD54892-2EFC-4A13-8968-A48AD6D3F4F0%7D&file=PNP_SDK_TEST_GetIFilePropertiesCurrentBatchTest.docx&action=default&mobileredirect=true", documentWithProperties.ServerRedirectedUrl); + Assert.AreEqual("b!ZtxgsoWyf0eKGhSZeYLphlfDo3rrzblDnc3cFkWzDP9Y_NwRML4tS7O6tnUsdm9H", documentWithProperties.VroomDriveID); + Assert.AreEqual("01TEEVMCESJDK7X7BOCNFIS2FERLLNH5HQ", documentWithProperties.VroomItemID); + } + + await TestAssets.CleanupTestDocumentAsync(2); + } + + [TestMethod] + public async Task GetIFilePropertiesBatchAsyncTest() + { + //TestCommon.Instance.Mocking = false; + (_, _, string documentUrl) = await TestAssets.CreateTestDocumentAsync(0); + + using (var context = await TestCommon.Instance.GetContextAsync(TestCommon.TestSite, 1)) + { + var batch = context.NewBatch(); + IFile documentWithProperties = await context.Web.GetFileByServerRelativeUrlBatchAsync(batch, documentUrl, + f => f.HasAlternateContentStreams, + f => f.Length, + f => f.ServerRedirectedUrl, + f => f.VroomDriveID, + f => f.VroomItemID); + await context.ExecuteAsync(batch); + + Assert.IsNotNull(documentWithProperties); + Assert.AreEqual(new Guid("a29586fa-5b54-4596-9ad2-04a3723f7d01"), documentWithProperties.UniqueId); + + Assert.IsFalse(documentWithProperties.HasAlternateContentStreams); + Assert.AreEqual(18046, documentWithProperties.Length); + Assert.AreEqual("https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_layouts/15/Doc.aspx?sourcedoc=%7BA29586FA-5B54-4596-9AD2-04A3723F7D01%7D&file=PNP_SDK_TEST_GetIFilePropertiesBatchAsyncTest.docx&action=default&mobileredirect=true", documentWithProperties.ServerRedirectedUrl); + Assert.AreEqual("b!ZtxgsoWyf0eKGhSZeYLphlfDo3rrzblDnc3cFkWzDP9Y_NwRML4tS7O6tnUsdm9H", documentWithProperties.VroomDriveID); + Assert.AreEqual("01TEEVMCH2Q2K2EVC3SZCZVUQEUNZD67IB", documentWithProperties.VroomItemID); + } + + await TestAssets.CleanupTestDocumentAsync(2); + } + + [TestMethod] + public async Task GetIFilePropertiesBatchTest() + { + //TestCommon.Instance.Mocking = false; + (_, _, string documentUrl) = await TestAssets.CreateTestDocumentAsync(0); + + using (var context = await TestCommon.Instance.GetContextAsync(TestCommon.TestSite, 1)) + { + var batch = context.NewBatch(); + IFile documentWithProperties = context.Web.GetFileByServerRelativeUrlBatch(batch, documentUrl, + f => f.HasAlternateContentStreams, + f => f.Length, + f => f.ServerRedirectedUrl, + f => f.VroomDriveID, + f => f.VroomItemID); + await context.ExecuteAsync(batch); + + Assert.IsNotNull(documentWithProperties); + Assert.AreEqual(new Guid("431407d7-d943-427e-ab55-aba4fe13791f"), documentWithProperties.UniqueId); + + Assert.IsFalse(documentWithProperties.HasAlternateContentStreams); + Assert.AreEqual(18052, documentWithProperties.Length); + Assert.AreEqual("https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_layouts/15/Doc.aspx?sourcedoc=%7B431407D7-D943-427E-AB55-ABA4FE13791F%7D&file=PNP_SDK_TEST_GetIFilePropertiesBatchTest.docx&action=default&mobileredirect=true", documentWithProperties.ServerRedirectedUrl); + Assert.AreEqual("b!ZtxgsoWyf0eKGhSZeYLphlfDo3rrzblDnc3cFkWzDP9Y_NwRML4tS7O6tnUsdm9H", documentWithProperties.VroomDriveID); + Assert.AreEqual("01TEEVMCGXA4KEGQ6ZPZBKWVNLUT7BG6I7", documentWithProperties.VroomItemID); + } + + await TestAssets.CleanupTestDocumentAsync(2); + } + #endregion + #region Get File IRM [TestMethod] public async Task GetFileIRMSettingsAsyncTest() @@ -2583,7 +2759,7 @@ public async Task GetFileVersionsAsyncTest() await testDocument.CheckoutAsync(); await testDocument.CheckinAsync("TEST COMMENT", CheckinType.MajorCheckIn); - + IFile documentWithVersions = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl, f => f.Versions); Assert.IsNotNull(documentWithVersions.Versions); @@ -2614,7 +2790,7 @@ public async Task GetFileVersionsTest() await testDocument.CheckinAsync(); await testDocument.CheckoutAsync(); await testDocument.CheckinAsync(); - + IFile documentWithVersions = context.Web.GetFileByServerRelativeUrl(documentUrl, f => f.Versions); Assert.IsNotNull(documentWithVersions.Versions); @@ -2643,7 +2819,7 @@ public async Task GetFileVersionsCurrentBatchAsyncTest() await testDocument.CheckoutBatchAsync(); await testDocument.CheckinBatchAsync(); await context.ExecuteAsync(); - + IFile documentWithVersions = await context.Web.GetFileByServerRelativeUrlBatchAsync(documentUrl, f => f.Versions); await context.ExecuteAsync(); @@ -2673,7 +2849,7 @@ public async Task GetFileVersionsCurrentBatchTest() testDocument.CheckoutBatch(); testDocument.CheckinBatch(); await context.ExecuteAsync(); - + IFile documentWithVersions = context.Web.GetFileByServerRelativeUrlBatch(documentUrl, f => f.Versions); await context.ExecuteAsync(); @@ -2706,7 +2882,7 @@ public async Task GetFileVersionsBatchAsyncTest() await testDocument.CheckinBatchAsync(newBatch); await context.ExecuteAsync(newBatch); - + var batch = context.NewBatch(); IFile documentWithVersions = await context.Web.GetFileByServerRelativeUrlBatchAsync(batch, documentUrl, f => f.Versions); await context.ExecuteAsync(batch); @@ -2739,7 +2915,7 @@ public async Task GetFileVersionsBatchTest() testDocument.CheckoutBatch(newBatch); testDocument.CheckinBatch(newBatch); await context.ExecuteAsync(newBatch); - + var batch = context.NewBatch(); IFile documentWithVersions = context.Web.GetFileByServerRelativeUrlBatch(batch, documentUrl, f => f.Versions); await context.ExecuteAsync(batch); @@ -2767,14 +2943,14 @@ public async Task GetFileByServerRelativeUrlListItemUpdatesTest() using (var context = await TestCommon.Instance.GetContextAsync(TestCommon.TestSite, 1)) { - IFile testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl, p=>p.Name, p=>p.ServerRelativeUrl, p => p.ListItemAllFields); + IFile testDocument = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl, p => p.Name, p => p.ServerRelativeUrl, p => p.ListItemAllFields); Assert.IsNotNull(testDocument); Assert.AreEqual(documentName, testDocument.Name); Assert.AreEqual(documentUrl, testDocument.ServerRelativeUrl); // Ensure list item properties, since the ListItem model's parent is a File this is a special case - await testDocument.ListItemAllFields.EnsurePropertiesAsync(p => p.Title, p=>p.Id); + await testDocument.ListItemAllFields.EnsurePropertiesAsync(p => p.Title, p => p.Id); Assert.IsTrue(testDocument.ListItemAllFields.IsPropertyAvailable(p => p.Id)); // Update title @@ -2783,7 +2959,7 @@ public async Task GetFileByServerRelativeUrlListItemUpdatesTest() await testDocument.LoadAsync(p => p.ListId); - + Assert.IsTrue(testDocument.ListId != Guid.Empty); } @@ -2807,7 +2983,7 @@ public async Task GetFileVersionEventsAsyncTest() await testDocument.CheckinAsync(); await testDocument.CheckoutAsync(); await testDocument.CheckinAsync(); - + IFile documentWithVersionEvents = await context.Web.GetFileByServerRelativeUrlAsync(documentUrl, f => f.VersionEvents); Assert.IsNotNull(documentWithVersionEvents.VersionEvents); diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-0-00000.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-0-00000.response new file mode 100644 index 0000000000..5bd003c0bf --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-0-00000.response @@ -0,0 +1 @@ +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","type":"SP.Web"},"RegionalSettings":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","type":"SP.RegionalSettings"},"InstalledLanguages":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/InstalledLanguages"}},"TimeZone":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","type":"SP.TimeZone"},"Description":"(UTC-08:00) Pacific Time (US and Canada)","Id":13,"Information":{"__metadata":{"type":"SP.TimeZoneInformation"},"Bias":480,"DaylightBias":-60,"StandardBias":0}},"TimeZones":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZones"}},"AdjustHijriDays":0,"AlternateCalendarType":0,"AM":"AM","CalendarType":1,"Collation":25,"CollationLCID":2070,"DateFormat":0,"DateSeparator":"/","DecimalSeparator":".","DigitGrouping":"3;0","FirstDayOfWeek":0,"FirstWeekOfYear":0,"IsEastAsia":false,"IsRightToLeft":false,"IsUIRightToLeft":false,"ListSeparator":",","LocaleId":1033,"NegativeSign":"-","NegNumberMode":1,"PM":"PM","PositiveSign":"","ShowWeeks":false,"ThousandSeparator":",","Time24":false,"TimeMarkerPosition":0,"TimeSeparator":":","WorkDayEndHour":1020,"WorkDays":62,"WorkDayStartHour":480},"Id":"7aa3c357-cdeb-43b9-9dcd-dc1645b30cff","Url":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup"}} \ No newline at end of file diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-0-00001.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-0-00001.response new file mode 100644 index 0000000000..10b1651a76 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-0-00001.response @@ -0,0 +1,9 @@ +--batchresponse_c5d3f6bb-4a09-485b-8619-87a0e4bf3d94 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","type":"SP.Site"},"GroupId":"08b3accf-0665-4523-945b-473c3161b2ec","Id":"b260dc66-b285-477f-8a1a-14997982e986"}} +--batchresponse_c5d3f6bb-4a09-485b-8619-87a0e4bf3d94-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-0-00002.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-0-00002.response new file mode 100644 index 0000000000..02a7b0b196 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-0-00002.response @@ -0,0 +1,9 @@ +--batchresponse_4255563e-4d58-4331-9e5a-791e54b6fe98 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"results":[{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')","etag":"\"4\"","type":"SP.List"},"FirstUniqueAncestorSecurableObject":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/FirstUniqueAncestorSecurableObject"}},"RoleAssignments":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/RoleAssignments"}},"Author":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Author"}},"ContentTypes":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/ContentTypes"}},"CreatablesInfo":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/CreatablesInfo"}},"DefaultView":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/DefaultView"}},"DescriptionResource":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/DescriptionResource"}},"EventReceivers":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/EventReceivers"}},"Fields":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Fields"}},"Forms":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Forms"}},"InformationRightsManagementSettings":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/InformationRightsManagementSettings"}},"Items":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Items"}},"ParentWeb":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/ParentWeb"}},"RootFolder":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/RootFolder"}},"Subscriptions":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Subscriptions"}},"TitleResource":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/TitleResource"}},"UserCustomActions":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/UserCustomActions"}},"Views":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Views"}},"WorkflowAssociations":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/WorkflowAssociations"}},"AllowContentTypes":true,"BaseTemplate":101,"BaseType":1,"ContentTypesEnabled":false,"CrawlNonDefaultViews":false,"Created":"2021-05-09T05:30:54Z","CurrentChangeToken":{"__metadata":{"type":"SP.ChangeToken"},"StringValue":"1;3;11dcfc58-be30-4b2d-b3ba-b6752c766f47;637564294083400000;173755679"},"DefaultContentApprovalWorkflowId":"00000000-0000-0000-0000-000000000000","DefaultItemOpenUseListSetting":false,"Description":"","Direction":"none","DisableCommenting":false,"DisableGridEditing":false,"DocumentTemplateUrl":"/sites/pnpcoresdktestgroup/Shared Documents/Forms/template.dotx","DraftVersionVisibility":0,"EnableAttachments":false,"EnableFolderCreation":true,"EnableMinorVersions":false,"EnableModeration":false,"EnableRequestSignOff":true,"EnableVersioning":true,"EntityTypeName":"Shared_x0020_Documents","ExemptFromBlockDownloadOfNonViewableFiles":false,"FileSavePostProcessingEnabled":false,"ForceCheckout":false,"HasExternalDataSource":false,"Hidden":false,"Id":"11dcfc58-be30-4b2d-b3ba-b6752c766f47","ImagePath":{"__metadata":{"type":"SP.ResourcePath"},"DecodedUrl":"/_layouts/15/images/itdl.png?rev=47"},"ImageUrl":"/_layouts/15/images/itdl.png?rev=47","IrmEnabled":false,"IrmExpire":false,"IrmReject":false,"IsApplicationList":false,"IsCatalog":false,"IsPrivate":false,"ItemCount":2,"LastItemDeletedDate":"2021-05-12T14:42:29Z","LastItemModifiedDate":"2021-05-12T15:03:25Z","LastItemUserModifiedDate":"2021-05-12T15:03:25Z","ListExperienceOptions":1,"ListItemEntityTypeFullName":"SP.Data.Shared_x0020_DocumentsItem","MajorVersionLimit":500,"MajorWithMinorVersionsLimit":0,"MultipleDataList":false,"NoCrawl":false,"ParentWebPath":{"__metadata":{"type":"SP.ResourcePath"},"DecodedUrl":"/sites/pnpcoresdktestgroup"},"ParentWebUrl":"/sites/pnpcoresdktestgroup","ParserDisabled":false,"ServerTemplateCanCreateFolders":true,"TemplateFeatureId":"00bfea71-e717-4e80-aa17-d0c71b360101","Title":"Documents"}]}} +--batchresponse_4255563e-4d58-4331-9e5a-791e54b6fe98-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-0-00003.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-0-00003.response new file mode 100644 index 0000000000..100a32047b --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-0-00003.response @@ -0,0 +1,9 @@ +--batchresponse_fe48bbc5-1093-4b63-bcaa-ca59c0f589e7 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared Documents')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')","type":"SP.Folder"},"Files":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/Files"}},"ListItemAllFields":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/ListItemAllFields"}},"ParentFolder":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/ParentFolder"}},"Properties":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/Properties"}},"StorageMetrics":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/StorageMetrics"}},"Folders":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/Folders"}},"Exists":true,"IsWOPIEnabled":false,"ItemCount":2,"Name":"Shared Documents","ProgID":null,"ServerRelativeUrl":"/sites/pnpcoresdktestgroup/Shared Documents","TimeCreated":"2021-05-09T05:30:54Z","TimeLastModified":"2021-05-12T14:42:58Z","UniqueId":"f3991d81-8402-4396-a0b1-b0fe28ca6f30","WelcomePage":""}} +--batchresponse_fe48bbc5-1093-4b63-bcaa-ca59c0f589e7-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-0-00004.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-0-00004.response new file mode 100644 index 0000000000..adf7ec2094 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-0-00004.response @@ -0,0 +1 @@ +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesAsyncTest.docx')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesAsyncTest.docx')","type":"SP.File"},"Author":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesAsyncTest.docx')/Author"}},"CheckedOutByUser":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesAsyncTest.docx')/CheckedOutByUser"}},"EffectiveInformationRightsManagementSettings":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesAsyncTest.docx')/EffectiveInformationRightsManagementSettings"}},"InformationRightsManagementSettings":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesAsyncTest.docx')/InformationRightsManagementSettings"}},"ListItemAllFields":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesAsyncTest.docx')/ListItemAllFields"}},"LockedByUser":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesAsyncTest.docx')/LockedByUser"}},"ModifiedBy":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesAsyncTest.docx')/ModifiedBy"}},"Properties":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesAsyncTest.docx')/Properties"}},"VersionEvents":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesAsyncTest.docx')/VersionEvents"}},"Versions":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesAsyncTest.docx')/Versions"}},"CheckInComment":"","CheckOutType":2,"ContentTag":"{1DA95E02-DA8B-4695-AF65-D8259A33942A},3,6","CustomizedPageStatus":0,"ETag":"\"{1DA95E02-DA8B-4695-AF65-D8259A33942A},3\"","Exists":true,"IrmEnabled":false,"Length":"18054","Level":1,"LinkingUri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesAsyncTest.docx?d=w1da95e02da8b4695af65d8259a33942a","LinkingUrl":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesAsyncTest.docx?d=w1da95e02da8b4695af65d8259a33942a","MajorVersion":3,"MinorVersion":0,"Name":"PNP_SDK_TEST_GetIFilePropertiesAsyncTest.docx","ServerRelativeUrl":"/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesAsyncTest.docx","TimeCreated":"2021-05-12T14:42:58Z","TimeLastModified":"2021-05-12T15:16:49Z","Title":"","UIVersion":1536,"UIVersionLabel":"3.0","UniqueId":"1da95e02-da8b-4695-af65-d8259a33942a"}} \ No newline at end of file diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-1-00000.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-1-00000.response new file mode 100644 index 0000000000..5bd003c0bf --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-1-00000.response @@ -0,0 +1 @@ +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","type":"SP.Web"},"RegionalSettings":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","type":"SP.RegionalSettings"},"InstalledLanguages":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/InstalledLanguages"}},"TimeZone":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","type":"SP.TimeZone"},"Description":"(UTC-08:00) Pacific Time (US and Canada)","Id":13,"Information":{"__metadata":{"type":"SP.TimeZoneInformation"},"Bias":480,"DaylightBias":-60,"StandardBias":0}},"TimeZones":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZones"}},"AdjustHijriDays":0,"AlternateCalendarType":0,"AM":"AM","CalendarType":1,"Collation":25,"CollationLCID":2070,"DateFormat":0,"DateSeparator":"/","DecimalSeparator":".","DigitGrouping":"3;0","FirstDayOfWeek":0,"FirstWeekOfYear":0,"IsEastAsia":false,"IsRightToLeft":false,"IsUIRightToLeft":false,"ListSeparator":",","LocaleId":1033,"NegativeSign":"-","NegNumberMode":1,"PM":"PM","PositiveSign":"","ShowWeeks":false,"ThousandSeparator":",","Time24":false,"TimeMarkerPosition":0,"TimeSeparator":":","WorkDayEndHour":1020,"WorkDays":62,"WorkDayStartHour":480},"Id":"7aa3c357-cdeb-43b9-9dcd-dc1645b30cff","Url":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup"}} \ No newline at end of file diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-1-00001.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-1-00001.response new file mode 100644 index 0000000000..82f1e4c1d0 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-1-00001.response @@ -0,0 +1,9 @@ +--batchresponse_75c91ada-06a5-43cc-b439-296761bd3b50 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","type":"SP.Site"},"GroupId":"08b3accf-0665-4523-945b-473c3161b2ec","Id":"b260dc66-b285-477f-8a1a-14997982e986"}} +--batchresponse_75c91ada-06a5-43cc-b439-296761bd3b50-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-1-00002.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-1-00002.response new file mode 100644 index 0000000000..843aaad277 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-1-00002.response @@ -0,0 +1,9 @@ +--batchresponse_b7148daa-89bc-4478-a518-b12648c87a58 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesAsyncTest.docx')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesAsyncTest.docx')","type":"SP.File"},"HasAlternateContentStreams":false,"Length":"18054","ServerRedirectedUrl":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_layouts/15/Doc.aspx?sourcedoc=%7B1DA95E02-DA8B-4695-AF65-D8259A33942A%7D&file=PNP_SDK_TEST_GetIFilePropertiesAsyncTest.docx&action=default&mobileredirect=true","UniqueId":"1da95e02-da8b-4695-af65-d8259a33942a","VroomDriveID":"b!ZtxgsoWyf0eKGhSZeYLphlfDo3rrzblDnc3cFkWzDP9Y_NwRML4tS7O6tnUsdm9H","VroomItemID":"01TEEVMCACL2UR3C62SVDK6ZOYEWNDHFBK"}} +--batchresponse_b7148daa-89bc-4478-a518-b12648c87a58-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-2-00000.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-2-00000.response new file mode 100644 index 0000000000..5bd003c0bf --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-2-00000.response @@ -0,0 +1 @@ +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","type":"SP.Web"},"RegionalSettings":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","type":"SP.RegionalSettings"},"InstalledLanguages":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/InstalledLanguages"}},"TimeZone":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","type":"SP.TimeZone"},"Description":"(UTC-08:00) Pacific Time (US and Canada)","Id":13,"Information":{"__metadata":{"type":"SP.TimeZoneInformation"},"Bias":480,"DaylightBias":-60,"StandardBias":0}},"TimeZones":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZones"}},"AdjustHijriDays":0,"AlternateCalendarType":0,"AM":"AM","CalendarType":1,"Collation":25,"CollationLCID":2070,"DateFormat":0,"DateSeparator":"/","DecimalSeparator":".","DigitGrouping":"3;0","FirstDayOfWeek":0,"FirstWeekOfYear":0,"IsEastAsia":false,"IsRightToLeft":false,"IsUIRightToLeft":false,"ListSeparator":",","LocaleId":1033,"NegativeSign":"-","NegNumberMode":1,"PM":"PM","PositiveSign":"","ShowWeeks":false,"ThousandSeparator":",","Time24":false,"TimeMarkerPosition":0,"TimeSeparator":":","WorkDayEndHour":1020,"WorkDays":62,"WorkDayStartHour":480},"Id":"7aa3c357-cdeb-43b9-9dcd-dc1645b30cff","Url":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup"}} \ No newline at end of file diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-2-00001.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-2-00001.response new file mode 100644 index 0000000000..82f1e4c1d0 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-2-00001.response @@ -0,0 +1,9 @@ +--batchresponse_75c91ada-06a5-43cc-b439-296761bd3b50 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","type":"SP.Site"},"GroupId":"08b3accf-0665-4523-945b-473c3161b2ec","Id":"b260dc66-b285-477f-8a1a-14997982e986"}} +--batchresponse_75c91ada-06a5-43cc-b439-296761bd3b50-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-2-00002.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-2-00002.response new file mode 100644 index 0000000000..843aaad277 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-2-00002.response @@ -0,0 +1,9 @@ +--batchresponse_b7148daa-89bc-4478-a518-b12648c87a58 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesAsyncTest.docx')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesAsyncTest.docx')","type":"SP.File"},"HasAlternateContentStreams":false,"Length":"18054","ServerRedirectedUrl":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_layouts/15/Doc.aspx?sourcedoc=%7B1DA95E02-DA8B-4695-AF65-D8259A33942A%7D&file=PNP_SDK_TEST_GetIFilePropertiesAsyncTest.docx&action=default&mobileredirect=true","UniqueId":"1da95e02-da8b-4695-af65-d8259a33942a","VroomDriveID":"b!ZtxgsoWyf0eKGhSZeYLphlfDo3rrzblDnc3cFkWzDP9Y_NwRML4tS7O6tnUsdm9H","VroomItemID":"01TEEVMCACL2UR3C62SVDK6ZOYEWNDHFBK"}} +--batchresponse_b7148daa-89bc-4478-a518-b12648c87a58-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-2-00003.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-2-00003.response new file mode 100644 index 0000000000..6d76e9031d --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesAsyncTest-2-00003.response @@ -0,0 +1,9 @@ +--batchresponse_45f2a082-0751-42fc-8fa5-72049a94ed1d +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + + +--batchresponse_45f2a082-0751-42fc-8fa5-72049a94ed1d-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-0-00000.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-0-00000.response new file mode 100644 index 0000000000..5bd003c0bf --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-0-00000.response @@ -0,0 +1 @@ +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","type":"SP.Web"},"RegionalSettings":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","type":"SP.RegionalSettings"},"InstalledLanguages":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/InstalledLanguages"}},"TimeZone":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","type":"SP.TimeZone"},"Description":"(UTC-08:00) Pacific Time (US and Canada)","Id":13,"Information":{"__metadata":{"type":"SP.TimeZoneInformation"},"Bias":480,"DaylightBias":-60,"StandardBias":0}},"TimeZones":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZones"}},"AdjustHijriDays":0,"AlternateCalendarType":0,"AM":"AM","CalendarType":1,"Collation":25,"CollationLCID":2070,"DateFormat":0,"DateSeparator":"/","DecimalSeparator":".","DigitGrouping":"3;0","FirstDayOfWeek":0,"FirstWeekOfYear":0,"IsEastAsia":false,"IsRightToLeft":false,"IsUIRightToLeft":false,"ListSeparator":",","LocaleId":1033,"NegativeSign":"-","NegNumberMode":1,"PM":"PM","PositiveSign":"","ShowWeeks":false,"ThousandSeparator":",","Time24":false,"TimeMarkerPosition":0,"TimeSeparator":":","WorkDayEndHour":1020,"WorkDays":62,"WorkDayStartHour":480},"Id":"7aa3c357-cdeb-43b9-9dcd-dc1645b30cff","Url":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup"}} \ No newline at end of file diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-0-00001.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-0-00001.response new file mode 100644 index 0000000000..4e2b41754c --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-0-00001.response @@ -0,0 +1,9 @@ +--batchresponse_2fced660-d78c-4b42-a7fb-2dcb2b4e0b18 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","type":"SP.Site"},"GroupId":"08b3accf-0665-4523-945b-473c3161b2ec","Id":"b260dc66-b285-477f-8a1a-14997982e986"}} +--batchresponse_2fced660-d78c-4b42-a7fb-2dcb2b4e0b18-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-0-00002.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-0-00002.response new file mode 100644 index 0000000000..9802cfec5a --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-0-00002.response @@ -0,0 +1,9 @@ +--batchresponse_635f99c1-28d6-4bc1-bd9f-4fde66b147df +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"results":[{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')","etag":"\"4\"","type":"SP.List"},"FirstUniqueAncestorSecurableObject":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/FirstUniqueAncestorSecurableObject"}},"RoleAssignments":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/RoleAssignments"}},"Author":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Author"}},"ContentTypes":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/ContentTypes"}},"CreatablesInfo":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/CreatablesInfo"}},"DefaultView":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/DefaultView"}},"DescriptionResource":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/DescriptionResource"}},"EventReceivers":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/EventReceivers"}},"Fields":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Fields"}},"Forms":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Forms"}},"InformationRightsManagementSettings":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/InformationRightsManagementSettings"}},"Items":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Items"}},"ParentWeb":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/ParentWeb"}},"RootFolder":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/RootFolder"}},"Subscriptions":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Subscriptions"}},"TitleResource":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/TitleResource"}},"UserCustomActions":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/UserCustomActions"}},"Views":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Views"}},"WorkflowAssociations":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/WorkflowAssociations"}},"AllowContentTypes":true,"BaseTemplate":101,"BaseType":1,"ContentTypesEnabled":false,"CrawlNonDefaultViews":false,"Created":"2021-05-09T05:30:54Z","CurrentChangeToken":{"__metadata":{"type":"SP.ChangeToken"},"StringValue":"1;3;11dcfc58-be30-4b2d-b3ba-b6752c766f47;637564320915900000;173779660"},"DefaultContentApprovalWorkflowId":"00000000-0000-0000-0000-000000000000","DefaultItemOpenUseListSetting":false,"Description":"","Direction":"none","DisableCommenting":false,"DisableGridEditing":false,"DocumentTemplateUrl":"/sites/pnpcoresdktestgroup/Shared Documents/Forms/template.dotx","DraftVersionVisibility":0,"EnableAttachments":false,"EnableFolderCreation":true,"EnableMinorVersions":false,"EnableModeration":false,"EnableRequestSignOff":true,"EnableVersioning":true,"EntityTypeName":"Shared_x0020_Documents","ExemptFromBlockDownloadOfNonViewableFiles":false,"FileSavePostProcessingEnabled":false,"ForceCheckout":false,"HasExternalDataSource":false,"Hidden":false,"Id":"11dcfc58-be30-4b2d-b3ba-b6752c766f47","ImagePath":{"__metadata":{"type":"SP.ResourcePath"},"DecodedUrl":"/_layouts/15/images/itdl.png?rev=47"},"ImageUrl":"/_layouts/15/images/itdl.png?rev=47","IrmEnabled":false,"IrmExpire":false,"IrmReject":false,"IsApplicationList":false,"IsCatalog":false,"IsPrivate":false,"ItemCount":5,"LastItemDeletedDate":"2021-05-12T14:42:29Z","LastItemModifiedDate":"2021-05-12T15:34:19Z","LastItemUserModifiedDate":"2021-05-12T15:34:19Z","ListExperienceOptions":1,"ListItemEntityTypeFullName":"SP.Data.Shared_x0020_DocumentsItem","MajorVersionLimit":500,"MajorWithMinorVersionsLimit":0,"MultipleDataList":false,"NoCrawl":false,"ParentWebPath":{"__metadata":{"type":"SP.ResourcePath"},"DecodedUrl":"/sites/pnpcoresdktestgroup"},"ParentWebUrl":"/sites/pnpcoresdktestgroup","ParserDisabled":false,"ServerTemplateCanCreateFolders":true,"TemplateFeatureId":"00bfea71-e717-4e80-aa17-d0c71b360101","Title":"Documents"}]}} +--batchresponse_635f99c1-28d6-4bc1-bd9f-4fde66b147df-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-0-00003.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-0-00003.response new file mode 100644 index 0000000000..f53e2c91f5 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-0-00003.response @@ -0,0 +1,9 @@ +--batchresponse_666f66e5-b126-472f-93a1-1d41a7e5c200 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared Documents')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')","type":"SP.Folder"},"Files":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/Files"}},"ListItemAllFields":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/ListItemAllFields"}},"ParentFolder":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/ParentFolder"}},"Properties":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/Properties"}},"StorageMetrics":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/StorageMetrics"}},"Folders":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/Folders"}},"Exists":true,"IsWOPIEnabled":false,"ItemCount":5,"Name":"Shared Documents","ProgID":null,"ServerRelativeUrl":"/sites/pnpcoresdktestgroup/Shared Documents","TimeCreated":"2021-05-09T05:30:54Z","TimeLastModified":"2021-05-12T15:34:19Z","UniqueId":"f3991d81-8402-4396-a0b1-b0fe28ca6f30","WelcomePage":""}} +--batchresponse_666f66e5-b126-472f-93a1-1d41a7e5c200-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-0-00004.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-0-00004.response new file mode 100644 index 0000000000..5f31601039 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-0-00004.response @@ -0,0 +1 @@ +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesBatchAsyncTest.docx')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchAsyncTest.docx')","type":"SP.File"},"Author":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchAsyncTest.docx')/Author"}},"CheckedOutByUser":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchAsyncTest.docx')/CheckedOutByUser"}},"EffectiveInformationRightsManagementSettings":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchAsyncTest.docx')/EffectiveInformationRightsManagementSettings"}},"InformationRightsManagementSettings":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchAsyncTest.docx')/InformationRightsManagementSettings"}},"ListItemAllFields":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchAsyncTest.docx')/ListItemAllFields"}},"LockedByUser":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchAsyncTest.docx')/LockedByUser"}},"ModifiedBy":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchAsyncTest.docx')/ModifiedBy"}},"Properties":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchAsyncTest.docx')/Properties"}},"VersionEvents":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchAsyncTest.docx')/VersionEvents"}},"Versions":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchAsyncTest.docx')/Versions"}},"CheckInComment":"","CheckOutType":2,"ContentTag":"{A29586FA-5B54-4596-9AD2-04A3723F7D01},1,2","CustomizedPageStatus":0,"ETag":"\"{A29586FA-5B54-4596-9AD2-04A3723F7D01},1\"","Exists":true,"IrmEnabled":false,"Length":"18046","Level":1,"LinkingUri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchAsyncTest.docx?d=wa29586fa5b5445969ad204a3723f7d01","LinkingUrl":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesBatchAsyncTest.docx?d=wa29586fa5b5445969ad204a3723f7d01","MajorVersion":1,"MinorVersion":0,"Name":"PNP_SDK_TEST_GetIFilePropertiesBatchAsyncTest.docx","ServerRelativeUrl":"/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesBatchAsyncTest.docx","TimeCreated":"2021-05-12T16:01:34Z","TimeLastModified":"2021-05-12T16:01:34Z","Title":"","UIVersion":512,"UIVersionLabel":"1.0","UniqueId":"a29586fa-5b54-4596-9ad2-04a3723f7d01"}} \ No newline at end of file diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-1-00000.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-1-00000.response new file mode 100644 index 0000000000..5bd003c0bf --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-1-00000.response @@ -0,0 +1 @@ +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","type":"SP.Web"},"RegionalSettings":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","type":"SP.RegionalSettings"},"InstalledLanguages":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/InstalledLanguages"}},"TimeZone":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","type":"SP.TimeZone"},"Description":"(UTC-08:00) Pacific Time (US and Canada)","Id":13,"Information":{"__metadata":{"type":"SP.TimeZoneInformation"},"Bias":480,"DaylightBias":-60,"StandardBias":0}},"TimeZones":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZones"}},"AdjustHijriDays":0,"AlternateCalendarType":0,"AM":"AM","CalendarType":1,"Collation":25,"CollationLCID":2070,"DateFormat":0,"DateSeparator":"/","DecimalSeparator":".","DigitGrouping":"3;0","FirstDayOfWeek":0,"FirstWeekOfYear":0,"IsEastAsia":false,"IsRightToLeft":false,"IsUIRightToLeft":false,"ListSeparator":",","LocaleId":1033,"NegativeSign":"-","NegNumberMode":1,"PM":"PM","PositiveSign":"","ShowWeeks":false,"ThousandSeparator":",","Time24":false,"TimeMarkerPosition":0,"TimeSeparator":":","WorkDayEndHour":1020,"WorkDays":62,"WorkDayStartHour":480},"Id":"7aa3c357-cdeb-43b9-9dcd-dc1645b30cff","Url":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup"}} \ No newline at end of file diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-1-00001.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-1-00001.response new file mode 100644 index 0000000000..fccd49f888 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-1-00001.response @@ -0,0 +1,9 @@ +--batchresponse_fc2ac03f-150b-489e-902c-0158c955db21 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","type":"SP.Site"},"GroupId":"08b3accf-0665-4523-945b-473c3161b2ec","Id":"b260dc66-b285-477f-8a1a-14997982e986"}} +--batchresponse_fc2ac03f-150b-489e-902c-0158c955db21-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-1-00002.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-1-00002.response new file mode 100644 index 0000000000..27bb091d3d --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-1-00002.response @@ -0,0 +1,9 @@ +--batchresponse_1799a645-fe55-4403-9bf4-8bde1565d1c2 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesBatchAsyncTest.docx')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchAsyncTest.docx')","type":"SP.File"},"HasAlternateContentStreams":false,"Length":"18046","ServerRedirectedUrl":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_layouts/15/Doc.aspx?sourcedoc=%7BA29586FA-5B54-4596-9AD2-04A3723F7D01%7D&file=PNP_SDK_TEST_GetIFilePropertiesBatchAsyncTest.docx&action=default&mobileredirect=true","UniqueId":"a29586fa-5b54-4596-9ad2-04a3723f7d01","VroomDriveID":"b!ZtxgsoWyf0eKGhSZeYLphlfDo3rrzblDnc3cFkWzDP9Y_NwRML4tS7O6tnUsdm9H","VroomItemID":"01TEEVMCH2Q2K2EVC3SZCZVUQEUNZD67IB"}} +--batchresponse_1799a645-fe55-4403-9bf4-8bde1565d1c2-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-2-00000.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-2-00000.response new file mode 100644 index 0000000000..5bd003c0bf --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-2-00000.response @@ -0,0 +1 @@ +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","type":"SP.Web"},"RegionalSettings":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","type":"SP.RegionalSettings"},"InstalledLanguages":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/InstalledLanguages"}},"TimeZone":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","type":"SP.TimeZone"},"Description":"(UTC-08:00) Pacific Time (US and Canada)","Id":13,"Information":{"__metadata":{"type":"SP.TimeZoneInformation"},"Bias":480,"DaylightBias":-60,"StandardBias":0}},"TimeZones":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZones"}},"AdjustHijriDays":0,"AlternateCalendarType":0,"AM":"AM","CalendarType":1,"Collation":25,"CollationLCID":2070,"DateFormat":0,"DateSeparator":"/","DecimalSeparator":".","DigitGrouping":"3;0","FirstDayOfWeek":0,"FirstWeekOfYear":0,"IsEastAsia":false,"IsRightToLeft":false,"IsUIRightToLeft":false,"ListSeparator":",","LocaleId":1033,"NegativeSign":"-","NegNumberMode":1,"PM":"PM","PositiveSign":"","ShowWeeks":false,"ThousandSeparator":",","Time24":false,"TimeMarkerPosition":0,"TimeSeparator":":","WorkDayEndHour":1020,"WorkDays":62,"WorkDayStartHour":480},"Id":"7aa3c357-cdeb-43b9-9dcd-dc1645b30cff","Url":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup"}} \ No newline at end of file diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-2-00001.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-2-00001.response new file mode 100644 index 0000000000..fccd49f888 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-2-00001.response @@ -0,0 +1,9 @@ +--batchresponse_fc2ac03f-150b-489e-902c-0158c955db21 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","type":"SP.Site"},"GroupId":"08b3accf-0665-4523-945b-473c3161b2ec","Id":"b260dc66-b285-477f-8a1a-14997982e986"}} +--batchresponse_fc2ac03f-150b-489e-902c-0158c955db21-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-2-00002.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-2-00002.response new file mode 100644 index 0000000000..27bb091d3d --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-2-00002.response @@ -0,0 +1,9 @@ +--batchresponse_1799a645-fe55-4403-9bf4-8bde1565d1c2 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesBatchAsyncTest.docx')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchAsyncTest.docx')","type":"SP.File"},"HasAlternateContentStreams":false,"Length":"18046","ServerRedirectedUrl":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_layouts/15/Doc.aspx?sourcedoc=%7BA29586FA-5B54-4596-9AD2-04A3723F7D01%7D&file=PNP_SDK_TEST_GetIFilePropertiesBatchAsyncTest.docx&action=default&mobileredirect=true","UniqueId":"a29586fa-5b54-4596-9ad2-04a3723f7d01","VroomDriveID":"b!ZtxgsoWyf0eKGhSZeYLphlfDo3rrzblDnc3cFkWzDP9Y_NwRML4tS7O6tnUsdm9H","VroomItemID":"01TEEVMCH2Q2K2EVC3SZCZVUQEUNZD67IB"}} +--batchresponse_1799a645-fe55-4403-9bf4-8bde1565d1c2-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-2-00003.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-2-00003.response new file mode 100644 index 0000000000..6d76e9031d --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchAsyncTest-2-00003.response @@ -0,0 +1,9 @@ +--batchresponse_45f2a082-0751-42fc-8fa5-72049a94ed1d +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + + +--batchresponse_45f2a082-0751-42fc-8fa5-72049a94ed1d-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-0-00000.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-0-00000.response new file mode 100644 index 0000000000..5bd003c0bf --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-0-00000.response @@ -0,0 +1 @@ +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","type":"SP.Web"},"RegionalSettings":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","type":"SP.RegionalSettings"},"InstalledLanguages":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/InstalledLanguages"}},"TimeZone":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","type":"SP.TimeZone"},"Description":"(UTC-08:00) Pacific Time (US and Canada)","Id":13,"Information":{"__metadata":{"type":"SP.TimeZoneInformation"},"Bias":480,"DaylightBias":-60,"StandardBias":0}},"TimeZones":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZones"}},"AdjustHijriDays":0,"AlternateCalendarType":0,"AM":"AM","CalendarType":1,"Collation":25,"CollationLCID":2070,"DateFormat":0,"DateSeparator":"/","DecimalSeparator":".","DigitGrouping":"3;0","FirstDayOfWeek":0,"FirstWeekOfYear":0,"IsEastAsia":false,"IsRightToLeft":false,"IsUIRightToLeft":false,"ListSeparator":",","LocaleId":1033,"NegativeSign":"-","NegNumberMode":1,"PM":"PM","PositiveSign":"","ShowWeeks":false,"ThousandSeparator":",","Time24":false,"TimeMarkerPosition":0,"TimeSeparator":":","WorkDayEndHour":1020,"WorkDays":62,"WorkDayStartHour":480},"Id":"7aa3c357-cdeb-43b9-9dcd-dc1645b30cff","Url":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup"}} \ No newline at end of file diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-0-00001.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-0-00001.response new file mode 100644 index 0000000000..2f6f3e07b6 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-0-00001.response @@ -0,0 +1,9 @@ +--batchresponse_ba95b85d-71d8-498d-95b8-1e27b1624dd6 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","type":"SP.Site"},"GroupId":"08b3accf-0665-4523-945b-473c3161b2ec","Id":"b260dc66-b285-477f-8a1a-14997982e986"}} +--batchresponse_ba95b85d-71d8-498d-95b8-1e27b1624dd6-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-0-00002.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-0-00002.response new file mode 100644 index 0000000000..7932c05a5e --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-0-00002.response @@ -0,0 +1,9 @@ +--batchresponse_9bcf80f3-659b-4483-a4c9-4253d9cb1076 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"results":[{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')","etag":"\"4\"","type":"SP.List"},"FirstUniqueAncestorSecurableObject":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/FirstUniqueAncestorSecurableObject"}},"RoleAssignments":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/RoleAssignments"}},"Author":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Author"}},"ContentTypes":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/ContentTypes"}},"CreatablesInfo":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/CreatablesInfo"}},"DefaultView":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/DefaultView"}},"DescriptionResource":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/DescriptionResource"}},"EventReceivers":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/EventReceivers"}},"Fields":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Fields"}},"Forms":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Forms"}},"InformationRightsManagementSettings":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/InformationRightsManagementSettings"}},"Items":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Items"}},"ParentWeb":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/ParentWeb"}},"RootFolder":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/RootFolder"}},"Subscriptions":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Subscriptions"}},"TitleResource":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/TitleResource"}},"UserCustomActions":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/UserCustomActions"}},"Views":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Views"}},"WorkflowAssociations":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/WorkflowAssociations"}},"AllowContentTypes":true,"BaseTemplate":101,"BaseType":1,"ContentTypesEnabled":false,"CrawlNonDefaultViews":false,"Created":"2021-05-09T05:30:54Z","CurrentChangeToken":{"__metadata":{"type":"SP.ChangeToken"},"StringValue":"1;3;11dcfc58-be30-4b2d-b3ba-b6752c766f47;637564326021700000;173780634"},"DefaultContentApprovalWorkflowId":"00000000-0000-0000-0000-000000000000","DefaultItemOpenUseListSetting":false,"Description":"","Direction":"none","DisableCommenting":false,"DisableGridEditing":false,"DocumentTemplateUrl":"/sites/pnpcoresdktestgroup/Shared Documents/Forms/template.dotx","DraftVersionVisibility":0,"EnableAttachments":false,"EnableFolderCreation":true,"EnableMinorVersions":false,"EnableModeration":false,"EnableRequestSignOff":true,"EnableVersioning":true,"EntityTypeName":"Shared_x0020_Documents","ExemptFromBlockDownloadOfNonViewableFiles":false,"FileSavePostProcessingEnabled":false,"ForceCheckout":false,"HasExternalDataSource":false,"Hidden":false,"Id":"11dcfc58-be30-4b2d-b3ba-b6752c766f47","ImagePath":{"__metadata":{"type":"SP.ResourcePath"},"DecodedUrl":"/_layouts/15/images/itdl.png?rev=47"},"ImageUrl":"/_layouts/15/images/itdl.png?rev=47","IrmEnabled":false,"IrmExpire":false,"IrmReject":false,"IsApplicationList":false,"IsCatalog":false,"IsPrivate":false,"ItemCount":6,"LastItemDeletedDate":"2021-05-12T14:42:29Z","LastItemModifiedDate":"2021-05-12T16:01:34Z","LastItemUserModifiedDate":"2021-05-12T16:01:34Z","ListExperienceOptions":1,"ListItemEntityTypeFullName":"SP.Data.Shared_x0020_DocumentsItem","MajorVersionLimit":500,"MajorWithMinorVersionsLimit":0,"MultipleDataList":false,"NoCrawl":false,"ParentWebPath":{"__metadata":{"type":"SP.ResourcePath"},"DecodedUrl":"/sites/pnpcoresdktestgroup"},"ParentWebUrl":"/sites/pnpcoresdktestgroup","ParserDisabled":false,"ServerTemplateCanCreateFolders":true,"TemplateFeatureId":"00bfea71-e717-4e80-aa17-d0c71b360101","Title":"Documents"}]}} +--batchresponse_9bcf80f3-659b-4483-a4c9-4253d9cb1076-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-0-00003.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-0-00003.response new file mode 100644 index 0000000000..f104bccdc6 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-0-00003.response @@ -0,0 +1,9 @@ +--batchresponse_f62dd00b-618a-4289-bfbb-c53943d1658e +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared Documents')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')","type":"SP.Folder"},"Files":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/Files"}},"ListItemAllFields":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/ListItemAllFields"}},"ParentFolder":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/ParentFolder"}},"Properties":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/Properties"}},"StorageMetrics":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/StorageMetrics"}},"Folders":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/Folders"}},"Exists":true,"IsWOPIEnabled":false,"ItemCount":6,"Name":"Shared Documents","ProgID":null,"ServerRelativeUrl":"/sites/pnpcoresdktestgroup/Shared Documents","TimeCreated":"2021-05-09T05:30:54Z","TimeLastModified":"2021-05-12T16:01:34Z","UniqueId":"f3991d81-8402-4396-a0b1-b0fe28ca6f30","WelcomePage":""}} +--batchresponse_f62dd00b-618a-4289-bfbb-c53943d1658e-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-0-00004.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-0-00004.response new file mode 100644 index 0000000000..9591c0dc48 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-0-00004.response @@ -0,0 +1 @@ +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesBatchTest.docx')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchTest.docx')","type":"SP.File"},"Author":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchTest.docx')/Author"}},"CheckedOutByUser":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchTest.docx')/CheckedOutByUser"}},"EffectiveInformationRightsManagementSettings":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchTest.docx')/EffectiveInformationRightsManagementSettings"}},"InformationRightsManagementSettings":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchTest.docx')/InformationRightsManagementSettings"}},"ListItemAllFields":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchTest.docx')/ListItemAllFields"}},"LockedByUser":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchTest.docx')/LockedByUser"}},"ModifiedBy":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchTest.docx')/ModifiedBy"}},"Properties":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchTest.docx')/Properties"}},"VersionEvents":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchTest.docx')/VersionEvents"}},"Versions":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchTest.docx')/Versions"}},"CheckInComment":"","CheckOutType":2,"ContentTag":"{431407D7-D943-427E-AB55-ABA4FE13791F},1,2","CustomizedPageStatus":0,"ETag":"\"{431407D7-D943-427E-AB55-ABA4FE13791F},1\"","Exists":true,"IrmEnabled":false,"Length":"18052","Level":1,"LinkingUri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchTest.docx?d=w431407d7d943427eab55aba4fe13791f","LinkingUrl":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesBatchTest.docx?d=w431407d7d943427eab55aba4fe13791f","MajorVersion":1,"MinorVersion":0,"Name":"PNP_SDK_TEST_GetIFilePropertiesBatchTest.docx","ServerRelativeUrl":"/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesBatchTest.docx","TimeCreated":"2021-05-12T16:10:03Z","TimeLastModified":"2021-05-12T16:10:03Z","Title":"","UIVersion":512,"UIVersionLabel":"1.0","UniqueId":"431407d7-d943-427e-ab55-aba4fe13791f"}} \ No newline at end of file diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-1-00000.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-1-00000.response new file mode 100644 index 0000000000..5bd003c0bf --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-1-00000.response @@ -0,0 +1 @@ +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","type":"SP.Web"},"RegionalSettings":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","type":"SP.RegionalSettings"},"InstalledLanguages":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/InstalledLanguages"}},"TimeZone":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","type":"SP.TimeZone"},"Description":"(UTC-08:00) Pacific Time (US and Canada)","Id":13,"Information":{"__metadata":{"type":"SP.TimeZoneInformation"},"Bias":480,"DaylightBias":-60,"StandardBias":0}},"TimeZones":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZones"}},"AdjustHijriDays":0,"AlternateCalendarType":0,"AM":"AM","CalendarType":1,"Collation":25,"CollationLCID":2070,"DateFormat":0,"DateSeparator":"/","DecimalSeparator":".","DigitGrouping":"3;0","FirstDayOfWeek":0,"FirstWeekOfYear":0,"IsEastAsia":false,"IsRightToLeft":false,"IsUIRightToLeft":false,"ListSeparator":",","LocaleId":1033,"NegativeSign":"-","NegNumberMode":1,"PM":"PM","PositiveSign":"","ShowWeeks":false,"ThousandSeparator":",","Time24":false,"TimeMarkerPosition":0,"TimeSeparator":":","WorkDayEndHour":1020,"WorkDays":62,"WorkDayStartHour":480},"Id":"7aa3c357-cdeb-43b9-9dcd-dc1645b30cff","Url":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup"}} \ No newline at end of file diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-1-00001.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-1-00001.response new file mode 100644 index 0000000000..8b3a82c5e5 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-1-00001.response @@ -0,0 +1,9 @@ +--batchresponse_2e6e1040-6d9a-408d-bade-148f3b297cc8 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","type":"SP.Site"},"GroupId":"08b3accf-0665-4523-945b-473c3161b2ec","Id":"b260dc66-b285-477f-8a1a-14997982e986"}} +--batchresponse_2e6e1040-6d9a-408d-bade-148f3b297cc8-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-1-00002.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-1-00002.response new file mode 100644 index 0000000000..7b5fe01baf --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-1-00002.response @@ -0,0 +1,9 @@ +--batchresponse_4ce9c81a-b312-4b38-9ef8-37806f374488 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesBatchTest.docx')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchTest.docx')","type":"SP.File"},"HasAlternateContentStreams":false,"Length":"18052","ServerRedirectedUrl":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_layouts/15/Doc.aspx?sourcedoc=%7B431407D7-D943-427E-AB55-ABA4FE13791F%7D&file=PNP_SDK_TEST_GetIFilePropertiesBatchTest.docx&action=default&mobileredirect=true","UniqueId":"431407d7-d943-427e-ab55-aba4fe13791f","VroomDriveID":"b!ZtxgsoWyf0eKGhSZeYLphlfDo3rrzblDnc3cFkWzDP9Y_NwRML4tS7O6tnUsdm9H","VroomItemID":"01TEEVMCGXA4KEGQ6ZPZBKWVNLUT7BG6I7"}} +--batchresponse_4ce9c81a-b312-4b38-9ef8-37806f374488-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-2-00000.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-2-00000.response new file mode 100644 index 0000000000..5bd003c0bf --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-2-00000.response @@ -0,0 +1 @@ +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","type":"SP.Web"},"RegionalSettings":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","type":"SP.RegionalSettings"},"InstalledLanguages":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/InstalledLanguages"}},"TimeZone":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","type":"SP.TimeZone"},"Description":"(UTC-08:00) Pacific Time (US and Canada)","Id":13,"Information":{"__metadata":{"type":"SP.TimeZoneInformation"},"Bias":480,"DaylightBias":-60,"StandardBias":0}},"TimeZones":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZones"}},"AdjustHijriDays":0,"AlternateCalendarType":0,"AM":"AM","CalendarType":1,"Collation":25,"CollationLCID":2070,"DateFormat":0,"DateSeparator":"/","DecimalSeparator":".","DigitGrouping":"3;0","FirstDayOfWeek":0,"FirstWeekOfYear":0,"IsEastAsia":false,"IsRightToLeft":false,"IsUIRightToLeft":false,"ListSeparator":",","LocaleId":1033,"NegativeSign":"-","NegNumberMode":1,"PM":"PM","PositiveSign":"","ShowWeeks":false,"ThousandSeparator":",","Time24":false,"TimeMarkerPosition":0,"TimeSeparator":":","WorkDayEndHour":1020,"WorkDays":62,"WorkDayStartHour":480},"Id":"7aa3c357-cdeb-43b9-9dcd-dc1645b30cff","Url":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup"}} \ No newline at end of file diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-2-00001.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-2-00001.response new file mode 100644 index 0000000000..8b3a82c5e5 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-2-00001.response @@ -0,0 +1,9 @@ +--batchresponse_2e6e1040-6d9a-408d-bade-148f3b297cc8 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","type":"SP.Site"},"GroupId":"08b3accf-0665-4523-945b-473c3161b2ec","Id":"b260dc66-b285-477f-8a1a-14997982e986"}} +--batchresponse_2e6e1040-6d9a-408d-bade-148f3b297cc8-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-2-00002.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-2-00002.response new file mode 100644 index 0000000000..7b5fe01baf --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-2-00002.response @@ -0,0 +1,9 @@ +--batchresponse_4ce9c81a-b312-4b38-9ef8-37806f374488 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesBatchTest.docx')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesBatchTest.docx')","type":"SP.File"},"HasAlternateContentStreams":false,"Length":"18052","ServerRedirectedUrl":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_layouts/15/Doc.aspx?sourcedoc=%7B431407D7-D943-427E-AB55-ABA4FE13791F%7D&file=PNP_SDK_TEST_GetIFilePropertiesBatchTest.docx&action=default&mobileredirect=true","UniqueId":"431407d7-d943-427e-ab55-aba4fe13791f","VroomDriveID":"b!ZtxgsoWyf0eKGhSZeYLphlfDo3rrzblDnc3cFkWzDP9Y_NwRML4tS7O6tnUsdm9H","VroomItemID":"01TEEVMCGXA4KEGQ6ZPZBKWVNLUT7BG6I7"}} +--batchresponse_4ce9c81a-b312-4b38-9ef8-37806f374488-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-2-00003.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-2-00003.response new file mode 100644 index 0000000000..6d76e9031d --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesBatchTest-2-00003.response @@ -0,0 +1,9 @@ +--batchresponse_45f2a082-0751-42fc-8fa5-72049a94ed1d +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + + +--batchresponse_45f2a082-0751-42fc-8fa5-72049a94ed1d-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-0-00000.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-0-00000.response new file mode 100644 index 0000000000..5bd003c0bf --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-0-00000.response @@ -0,0 +1 @@ +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","type":"SP.Web"},"RegionalSettings":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","type":"SP.RegionalSettings"},"InstalledLanguages":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/InstalledLanguages"}},"TimeZone":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","type":"SP.TimeZone"},"Description":"(UTC-08:00) Pacific Time (US and Canada)","Id":13,"Information":{"__metadata":{"type":"SP.TimeZoneInformation"},"Bias":480,"DaylightBias":-60,"StandardBias":0}},"TimeZones":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZones"}},"AdjustHijriDays":0,"AlternateCalendarType":0,"AM":"AM","CalendarType":1,"Collation":25,"CollationLCID":2070,"DateFormat":0,"DateSeparator":"/","DecimalSeparator":".","DigitGrouping":"3;0","FirstDayOfWeek":0,"FirstWeekOfYear":0,"IsEastAsia":false,"IsRightToLeft":false,"IsUIRightToLeft":false,"ListSeparator":",","LocaleId":1033,"NegativeSign":"-","NegNumberMode":1,"PM":"PM","PositiveSign":"","ShowWeeks":false,"ThousandSeparator":",","Time24":false,"TimeMarkerPosition":0,"TimeSeparator":":","WorkDayEndHour":1020,"WorkDays":62,"WorkDayStartHour":480},"Id":"7aa3c357-cdeb-43b9-9dcd-dc1645b30cff","Url":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup"}} \ No newline at end of file diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-0-00001.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-0-00001.response new file mode 100644 index 0000000000..f1b7b3da61 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-0-00001.response @@ -0,0 +1,9 @@ +--batchresponse_850c6900-d85c-4477-8291-159fa1646ecc +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","type":"SP.Site"},"GroupId":"08b3accf-0665-4523-945b-473c3161b2ec","Id":"b260dc66-b285-477f-8a1a-14997982e986"}} +--batchresponse_850c6900-d85c-4477-8291-159fa1646ecc-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-0-00002.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-0-00002.response new file mode 100644 index 0000000000..7fdb7265e7 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-0-00002.response @@ -0,0 +1,9 @@ +--batchresponse_c0ba73df-8e96-4d03-802e-c48ad04a65c1 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"results":[{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')","etag":"\"4\"","type":"SP.List"},"FirstUniqueAncestorSecurableObject":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/FirstUniqueAncestorSecurableObject"}},"RoleAssignments":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/RoleAssignments"}},"Author":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Author"}},"ContentTypes":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/ContentTypes"}},"CreatablesInfo":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/CreatablesInfo"}},"DefaultView":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/DefaultView"}},"DescriptionResource":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/DescriptionResource"}},"EventReceivers":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/EventReceivers"}},"Fields":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Fields"}},"Forms":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Forms"}},"InformationRightsManagementSettings":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/InformationRightsManagementSettings"}},"Items":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Items"}},"ParentWeb":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/ParentWeb"}},"RootFolder":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/RootFolder"}},"Subscriptions":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Subscriptions"}},"TitleResource":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/TitleResource"}},"UserCustomActions":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/UserCustomActions"}},"Views":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Views"}},"WorkflowAssociations":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/WorkflowAssociations"}},"AllowContentTypes":true,"BaseTemplate":101,"BaseType":1,"ContentTypesEnabled":false,"CrawlNonDefaultViews":false,"Created":"2021-05-09T05:30:54Z","CurrentChangeToken":{"__metadata":{"type":"SP.ChangeToken"},"StringValue":"1;3;11dcfc58-be30-4b2d-b3ba-b6752c766f47;637564300527100000;173759441"},"DefaultContentApprovalWorkflowId":"00000000-0000-0000-0000-000000000000","DefaultItemOpenUseListSetting":false,"Description":"","Direction":"none","DisableCommenting":false,"DisableGridEditing":false,"DocumentTemplateUrl":"/sites/pnpcoresdktestgroup/Shared Documents/Forms/template.dotx","DraftVersionVisibility":0,"EnableAttachments":false,"EnableFolderCreation":true,"EnableMinorVersions":false,"EnableModeration":false,"EnableRequestSignOff":true,"EnableVersioning":true,"EntityTypeName":"Shared_x0020_Documents","ExemptFromBlockDownloadOfNonViewableFiles":false,"FileSavePostProcessingEnabled":false,"ForceCheckout":false,"HasExternalDataSource":false,"Hidden":false,"Id":"11dcfc58-be30-4b2d-b3ba-b6752c766f47","ImagePath":{"__metadata":{"type":"SP.ResourcePath"},"DecodedUrl":"/_layouts/15/images/itdl.png?rev=47"},"ImageUrl":"/_layouts/15/images/itdl.png?rev=47","IrmEnabled":false,"IrmExpire":false,"IrmReject":false,"IsApplicationList":false,"IsCatalog":false,"IsPrivate":false,"ItemCount":3,"LastItemDeletedDate":"2021-05-12T14:42:29Z","LastItemModifiedDate":"2021-05-12T15:22:33Z","LastItemUserModifiedDate":"2021-05-12T15:22:33Z","ListExperienceOptions":1,"ListItemEntityTypeFullName":"SP.Data.Shared_x0020_DocumentsItem","MajorVersionLimit":500,"MajorWithMinorVersionsLimit":0,"MultipleDataList":false,"NoCrawl":false,"ParentWebPath":{"__metadata":{"type":"SP.ResourcePath"},"DecodedUrl":"/sites/pnpcoresdktestgroup"},"ParentWebUrl":"/sites/pnpcoresdktestgroup","ParserDisabled":false,"ServerTemplateCanCreateFolders":true,"TemplateFeatureId":"00bfea71-e717-4e80-aa17-d0c71b360101","Title":"Documents"}]}} +--batchresponse_c0ba73df-8e96-4d03-802e-c48ad04a65c1-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-0-00003.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-0-00003.response new file mode 100644 index 0000000000..27f823040a --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-0-00003.response @@ -0,0 +1,9 @@ +--batchresponse_92414171-061a-409a-b54e-251c18851e4c +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared Documents')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')","type":"SP.Folder"},"Files":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/Files"}},"ListItemAllFields":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/ListItemAllFields"}},"ParentFolder":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/ParentFolder"}},"Properties":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/Properties"}},"StorageMetrics":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/StorageMetrics"}},"Folders":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/Folders"}},"Exists":true,"IsWOPIEnabled":false,"ItemCount":3,"Name":"Shared Documents","ProgID":null,"ServerRelativeUrl":"/sites/pnpcoresdktestgroup/Shared Documents","TimeCreated":"2021-05-09T05:30:54Z","TimeLastModified":"2021-05-12T15:22:33Z","UniqueId":"f3991d81-8402-4396-a0b1-b0fe28ca6f30","WelcomePage":""}} +--batchresponse_92414171-061a-409a-b54e-251c18851e4c-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-0-00004.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-0-00004.response new file mode 100644 index 0000000000..05e74d933d --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-0-00004.response @@ -0,0 +1 @@ +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchAsyncTest.docx')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchAsyncTest.docx')","type":"SP.File"},"Author":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchAsyncTest.docx')/Author"}},"CheckedOutByUser":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchAsyncTest.docx')/CheckedOutByUser"}},"EffectiveInformationRightsManagementSettings":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchAsyncTest.docx')/EffectiveInformationRightsManagementSettings"}},"InformationRightsManagementSettings":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchAsyncTest.docx')/InformationRightsManagementSettings"}},"ListItemAllFields":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchAsyncTest.docx')/ListItemAllFields"}},"LockedByUser":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchAsyncTest.docx')/LockedByUser"}},"ModifiedBy":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchAsyncTest.docx')/ModifiedBy"}},"Properties":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchAsyncTest.docx')/Properties"}},"VersionEvents":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchAsyncTest.docx')/VersionEvents"}},"Versions":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchAsyncTest.docx')/Versions"}},"CheckInComment":"","CheckOutType":2,"ContentTag":"{EB8CF6A2-E76E-4D7F-8B04-88302476F7AD},1,2","CustomizedPageStatus":0,"ETag":"\"{EB8CF6A2-E76E-4D7F-8B04-88302476F7AD},1\"","Exists":true,"IrmEnabled":false,"Length":"18050","Level":1,"LinkingUri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchAsyncTest.docx?d=web8cf6a2e76e4d7f8b0488302476f7ad","LinkingUrl":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchAsyncTest.docx?d=web8cf6a2e76e4d7f8b0488302476f7ad","MajorVersion":1,"MinorVersion":0,"Name":"PNP_SDK_TEST_GetIFilePropertiesCurrentBatchAsyncTest.docx","ServerRelativeUrl":"/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchAsyncTest.docx","TimeCreated":"2021-05-12T15:27:33Z","TimeLastModified":"2021-05-12T15:27:33Z","Title":"","UIVersion":512,"UIVersionLabel":"1.0","UniqueId":"eb8cf6a2-e76e-4d7f-8b04-88302476f7ad"}} \ No newline at end of file diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-1-00000.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-1-00000.response new file mode 100644 index 0000000000..5bd003c0bf --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-1-00000.response @@ -0,0 +1 @@ +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","type":"SP.Web"},"RegionalSettings":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","type":"SP.RegionalSettings"},"InstalledLanguages":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/InstalledLanguages"}},"TimeZone":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","type":"SP.TimeZone"},"Description":"(UTC-08:00) Pacific Time (US and Canada)","Id":13,"Information":{"__metadata":{"type":"SP.TimeZoneInformation"},"Bias":480,"DaylightBias":-60,"StandardBias":0}},"TimeZones":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZones"}},"AdjustHijriDays":0,"AlternateCalendarType":0,"AM":"AM","CalendarType":1,"Collation":25,"CollationLCID":2070,"DateFormat":0,"DateSeparator":"/","DecimalSeparator":".","DigitGrouping":"3;0","FirstDayOfWeek":0,"FirstWeekOfYear":0,"IsEastAsia":false,"IsRightToLeft":false,"IsUIRightToLeft":false,"ListSeparator":",","LocaleId":1033,"NegativeSign":"-","NegNumberMode":1,"PM":"PM","PositiveSign":"","ShowWeeks":false,"ThousandSeparator":",","Time24":false,"TimeMarkerPosition":0,"TimeSeparator":":","WorkDayEndHour":1020,"WorkDays":62,"WorkDayStartHour":480},"Id":"7aa3c357-cdeb-43b9-9dcd-dc1645b30cff","Url":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup"}} \ No newline at end of file diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-1-00001.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-1-00001.response new file mode 100644 index 0000000000..bfd1684874 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-1-00001.response @@ -0,0 +1,9 @@ +--batchresponse_81a32426-664e-4468-b82e-4a2e95e5859a +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","type":"SP.Site"},"GroupId":"08b3accf-0665-4523-945b-473c3161b2ec","Id":"b260dc66-b285-477f-8a1a-14997982e986"}} +--batchresponse_81a32426-664e-4468-b82e-4a2e95e5859a-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-1-00002.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-1-00002.response new file mode 100644 index 0000000000..86ab394b25 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-1-00002.response @@ -0,0 +1,9 @@ +--batchresponse_ce4818f0-fb66-444a-8bd4-c5f441cf16a7 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchAsyncTest.docx')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchAsyncTest.docx')","type":"SP.File"},"HasAlternateContentStreams":false,"Length":"18050","ServerRedirectedUrl":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_layouts/15/Doc.aspx?sourcedoc=%7BEB8CF6A2-E76E-4D7F-8B04-88302476F7AD%7D&file=PNP_SDK_TEST_GetIFilePropertiesCurrentBatchAsyncTest.docx&action=default&mobileredirect=true","UniqueId":"eb8cf6a2-e76e-4d7f-8b04-88302476f7ad","VroomDriveID":"b!ZtxgsoWyf0eKGhSZeYLphlfDo3rrzblDnc3cFkWzDP9Y_NwRML4tS7O6tnUsdm9H","VroomItemID":"01TEEVMCFC62GOW3XHP5GYWBEIGASHN55N"}} +--batchresponse_ce4818f0-fb66-444a-8bd4-c5f441cf16a7-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-2-00000.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-2-00000.response new file mode 100644 index 0000000000..5bd003c0bf --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-2-00000.response @@ -0,0 +1 @@ +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","type":"SP.Web"},"RegionalSettings":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","type":"SP.RegionalSettings"},"InstalledLanguages":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/InstalledLanguages"}},"TimeZone":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","type":"SP.TimeZone"},"Description":"(UTC-08:00) Pacific Time (US and Canada)","Id":13,"Information":{"__metadata":{"type":"SP.TimeZoneInformation"},"Bias":480,"DaylightBias":-60,"StandardBias":0}},"TimeZones":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZones"}},"AdjustHijriDays":0,"AlternateCalendarType":0,"AM":"AM","CalendarType":1,"Collation":25,"CollationLCID":2070,"DateFormat":0,"DateSeparator":"/","DecimalSeparator":".","DigitGrouping":"3;0","FirstDayOfWeek":0,"FirstWeekOfYear":0,"IsEastAsia":false,"IsRightToLeft":false,"IsUIRightToLeft":false,"ListSeparator":",","LocaleId":1033,"NegativeSign":"-","NegNumberMode":1,"PM":"PM","PositiveSign":"","ShowWeeks":false,"ThousandSeparator":",","Time24":false,"TimeMarkerPosition":0,"TimeSeparator":":","WorkDayEndHour":1020,"WorkDays":62,"WorkDayStartHour":480},"Id":"7aa3c357-cdeb-43b9-9dcd-dc1645b30cff","Url":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup"}} \ No newline at end of file diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-2-00001.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-2-00001.response new file mode 100644 index 0000000000..bfd1684874 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-2-00001.response @@ -0,0 +1,9 @@ +--batchresponse_81a32426-664e-4468-b82e-4a2e95e5859a +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","type":"SP.Site"},"GroupId":"08b3accf-0665-4523-945b-473c3161b2ec","Id":"b260dc66-b285-477f-8a1a-14997982e986"}} +--batchresponse_81a32426-664e-4468-b82e-4a2e95e5859a-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-2-00002.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-2-00002.response new file mode 100644 index 0000000000..86ab394b25 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-2-00002.response @@ -0,0 +1,9 @@ +--batchresponse_ce4818f0-fb66-444a-8bd4-c5f441cf16a7 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchAsyncTest.docx')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchAsyncTest.docx')","type":"SP.File"},"HasAlternateContentStreams":false,"Length":"18050","ServerRedirectedUrl":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_layouts/15/Doc.aspx?sourcedoc=%7BEB8CF6A2-E76E-4D7F-8B04-88302476F7AD%7D&file=PNP_SDK_TEST_GetIFilePropertiesCurrentBatchAsyncTest.docx&action=default&mobileredirect=true","UniqueId":"eb8cf6a2-e76e-4d7f-8b04-88302476f7ad","VroomDriveID":"b!ZtxgsoWyf0eKGhSZeYLphlfDo3rrzblDnc3cFkWzDP9Y_NwRML4tS7O6tnUsdm9H","VroomItemID":"01TEEVMCFC62GOW3XHP5GYWBEIGASHN55N"}} +--batchresponse_ce4818f0-fb66-444a-8bd4-c5f441cf16a7-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-2-00003.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-2-00003.response new file mode 100644 index 0000000000..6d76e9031d --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchAsyncTest-2-00003.response @@ -0,0 +1,9 @@ +--batchresponse_45f2a082-0751-42fc-8fa5-72049a94ed1d +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + + +--batchresponse_45f2a082-0751-42fc-8fa5-72049a94ed1d-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-0-00000.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-0-00000.response new file mode 100644 index 0000000000..5bd003c0bf --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-0-00000.response @@ -0,0 +1 @@ +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","type":"SP.Web"},"RegionalSettings":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","type":"SP.RegionalSettings"},"InstalledLanguages":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/InstalledLanguages"}},"TimeZone":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","type":"SP.TimeZone"},"Description":"(UTC-08:00) Pacific Time (US and Canada)","Id":13,"Information":{"__metadata":{"type":"SP.TimeZoneInformation"},"Bias":480,"DaylightBias":-60,"StandardBias":0}},"TimeZones":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZones"}},"AdjustHijriDays":0,"AlternateCalendarType":0,"AM":"AM","CalendarType":1,"Collation":25,"CollationLCID":2070,"DateFormat":0,"DateSeparator":"/","DecimalSeparator":".","DigitGrouping":"3;0","FirstDayOfWeek":0,"FirstWeekOfYear":0,"IsEastAsia":false,"IsRightToLeft":false,"IsUIRightToLeft":false,"ListSeparator":",","LocaleId":1033,"NegativeSign":"-","NegNumberMode":1,"PM":"PM","PositiveSign":"","ShowWeeks":false,"ThousandSeparator":",","Time24":false,"TimeMarkerPosition":0,"TimeSeparator":":","WorkDayEndHour":1020,"WorkDays":62,"WorkDayStartHour":480},"Id":"7aa3c357-cdeb-43b9-9dcd-dc1645b30cff","Url":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup"}} \ No newline at end of file diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-0-00001.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-0-00001.response new file mode 100644 index 0000000000..76dd913bb4 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-0-00001.response @@ -0,0 +1,9 @@ +--batchresponse_fbab41ea-a91d-4e6b-a1cd-39dc0dd9eb3d +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","type":"SP.Site"},"GroupId":"08b3accf-0665-4523-945b-473c3161b2ec","Id":"b260dc66-b285-477f-8a1a-14997982e986"}} +--batchresponse_fbab41ea-a91d-4e6b-a1cd-39dc0dd9eb3d-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-0-00002.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-0-00002.response new file mode 100644 index 0000000000..257e96fa6c --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-0-00002.response @@ -0,0 +1,9 @@ +--batchresponse_1a7fee45-420c-4837-86c8-e53eb917433b +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"results":[{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')","etag":"\"4\"","type":"SP.List"},"FirstUniqueAncestorSecurableObject":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/FirstUniqueAncestorSecurableObject"}},"RoleAssignments":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/RoleAssignments"}},"Author":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Author"}},"ContentTypes":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/ContentTypes"}},"CreatablesInfo":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/CreatablesInfo"}},"DefaultView":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/DefaultView"}},"DescriptionResource":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/DescriptionResource"}},"EventReceivers":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/EventReceivers"}},"Fields":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Fields"}},"Forms":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Forms"}},"InformationRightsManagementSettings":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/InformationRightsManagementSettings"}},"Items":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Items"}},"ParentWeb":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/ParentWeb"}},"RootFolder":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/RootFolder"}},"Subscriptions":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Subscriptions"}},"TitleResource":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/TitleResource"}},"UserCustomActions":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/UserCustomActions"}},"Views":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Views"}},"WorkflowAssociations":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/WorkflowAssociations"}},"AllowContentTypes":true,"BaseTemplate":101,"BaseType":1,"ContentTypesEnabled":false,"CrawlNonDefaultViews":false,"Created":"2021-05-09T05:30:54Z","CurrentChangeToken":{"__metadata":{"type":"SP.ChangeToken"},"StringValue":"1;3;11dcfc58-be30-4b2d-b3ba-b6752c766f47;637564304572570000;173760679"},"DefaultContentApprovalWorkflowId":"00000000-0000-0000-0000-000000000000","DefaultItemOpenUseListSetting":false,"Description":"","Direction":"none","DisableCommenting":false,"DisableGridEditing":false,"DocumentTemplateUrl":"/sites/pnpcoresdktestgroup/Shared Documents/Forms/template.dotx","DraftVersionVisibility":0,"EnableAttachments":false,"EnableFolderCreation":true,"EnableMinorVersions":false,"EnableModeration":false,"EnableRequestSignOff":true,"EnableVersioning":true,"EntityTypeName":"Shared_x0020_Documents","ExemptFromBlockDownloadOfNonViewableFiles":false,"FileSavePostProcessingEnabled":false,"ForceCheckout":false,"HasExternalDataSource":false,"Hidden":false,"Id":"11dcfc58-be30-4b2d-b3ba-b6752c766f47","ImagePath":{"__metadata":{"type":"SP.ResourcePath"},"DecodedUrl":"/_layouts/15/images/itdl.png?rev=47"},"ImageUrl":"/_layouts/15/images/itdl.png?rev=47","IrmEnabled":false,"IrmExpire":false,"IrmReject":false,"IsApplicationList":false,"IsCatalog":false,"IsPrivate":false,"ItemCount":4,"LastItemDeletedDate":"2021-05-12T14:42:29Z","LastItemModifiedDate":"2021-05-12T15:27:33Z","LastItemUserModifiedDate":"2021-05-12T15:27:33Z","ListExperienceOptions":1,"ListItemEntityTypeFullName":"SP.Data.Shared_x0020_DocumentsItem","MajorVersionLimit":500,"MajorWithMinorVersionsLimit":0,"MultipleDataList":false,"NoCrawl":false,"ParentWebPath":{"__metadata":{"type":"SP.ResourcePath"},"DecodedUrl":"/sites/pnpcoresdktestgroup"},"ParentWebUrl":"/sites/pnpcoresdktestgroup","ParserDisabled":false,"ServerTemplateCanCreateFolders":true,"TemplateFeatureId":"00bfea71-e717-4e80-aa17-d0c71b360101","Title":"Documents"}]}} +--batchresponse_1a7fee45-420c-4837-86c8-e53eb917433b-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-0-00003.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-0-00003.response new file mode 100644 index 0000000000..7fc53ace50 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-0-00003.response @@ -0,0 +1,9 @@ +--batchresponse_8baa5c5b-717f-4437-bfd7-ce9845de66e1 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared Documents')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')","type":"SP.Folder"},"Files":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/Files"}},"ListItemAllFields":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/ListItemAllFields"}},"ParentFolder":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/ParentFolder"}},"Properties":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/Properties"}},"StorageMetrics":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/StorageMetrics"}},"Folders":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/Folders"}},"Exists":true,"IsWOPIEnabled":false,"ItemCount":4,"Name":"Shared Documents","ProgID":null,"ServerRelativeUrl":"/sites/pnpcoresdktestgroup/Shared Documents","TimeCreated":"2021-05-09T05:30:54Z","TimeLastModified":"2021-05-12T15:27:33Z","UniqueId":"f3991d81-8402-4396-a0b1-b0fe28ca6f30","WelcomePage":""}} +--batchresponse_8baa5c5b-717f-4437-bfd7-ce9845de66e1-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-0-00004.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-0-00004.response new file mode 100644 index 0000000000..0dc2255fdb --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-0-00004.response @@ -0,0 +1 @@ +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchTest.docx')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchTest.docx')","type":"SP.File"},"Author":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchTest.docx')/Author"}},"CheckedOutByUser":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchTest.docx')/CheckedOutByUser"}},"EffectiveInformationRightsManagementSettings":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchTest.docx')/EffectiveInformationRightsManagementSettings"}},"InformationRightsManagementSettings":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchTest.docx')/InformationRightsManagementSettings"}},"ListItemAllFields":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchTest.docx')/ListItemAllFields"}},"LockedByUser":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchTest.docx')/LockedByUser"}},"ModifiedBy":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchTest.docx')/ModifiedBy"}},"Properties":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchTest.docx')/Properties"}},"VersionEvents":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchTest.docx')/VersionEvents"}},"Versions":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchTest.docx')/Versions"}},"CheckInComment":"","CheckOutType":2,"ContentTag":"{FBD54892-2EFC-4A13-8968-A48AD6D3F4F0},1,2","CustomizedPageStatus":0,"ETag":"\"{FBD54892-2EFC-4A13-8968-A48AD6D3F4F0},1\"","Exists":true,"IrmEnabled":false,"Length":"18046","Level":1,"LinkingUri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchTest.docx?d=wfbd548922efc4a138968a48ad6d3f4f0","LinkingUrl":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchTest.docx?d=wfbd548922efc4a138968a48ad6d3f4f0","MajorVersion":1,"MinorVersion":0,"Name":"PNP_SDK_TEST_GetIFilePropertiesCurrentBatchTest.docx","ServerRelativeUrl":"/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchTest.docx","TimeCreated":"2021-05-12T15:34:19Z","TimeLastModified":"2021-05-12T15:34:19Z","Title":"","UIVersion":512,"UIVersionLabel":"1.0","UniqueId":"fbd54892-2efc-4a13-8968-a48ad6d3f4f0"}} \ No newline at end of file diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-1-00000.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-1-00000.response new file mode 100644 index 0000000000..5bd003c0bf --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-1-00000.response @@ -0,0 +1 @@ +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","type":"SP.Web"},"RegionalSettings":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","type":"SP.RegionalSettings"},"InstalledLanguages":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/InstalledLanguages"}},"TimeZone":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","type":"SP.TimeZone"},"Description":"(UTC-08:00) Pacific Time (US and Canada)","Id":13,"Information":{"__metadata":{"type":"SP.TimeZoneInformation"},"Bias":480,"DaylightBias":-60,"StandardBias":0}},"TimeZones":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZones"}},"AdjustHijriDays":0,"AlternateCalendarType":0,"AM":"AM","CalendarType":1,"Collation":25,"CollationLCID":2070,"DateFormat":0,"DateSeparator":"/","DecimalSeparator":".","DigitGrouping":"3;0","FirstDayOfWeek":0,"FirstWeekOfYear":0,"IsEastAsia":false,"IsRightToLeft":false,"IsUIRightToLeft":false,"ListSeparator":",","LocaleId":1033,"NegativeSign":"-","NegNumberMode":1,"PM":"PM","PositiveSign":"","ShowWeeks":false,"ThousandSeparator":",","Time24":false,"TimeMarkerPosition":0,"TimeSeparator":":","WorkDayEndHour":1020,"WorkDays":62,"WorkDayStartHour":480},"Id":"7aa3c357-cdeb-43b9-9dcd-dc1645b30cff","Url":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup"}} \ No newline at end of file diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-1-00001.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-1-00001.response new file mode 100644 index 0000000000..5dc2f7c726 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-1-00001.response @@ -0,0 +1,9 @@ +--batchresponse_827f22eb-dfe5-4115-9b6a-1d83189dbcf8 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","type":"SP.Site"},"GroupId":"08b3accf-0665-4523-945b-473c3161b2ec","Id":"b260dc66-b285-477f-8a1a-14997982e986"}} +--batchresponse_827f22eb-dfe5-4115-9b6a-1d83189dbcf8-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-1-00002.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-1-00002.response new file mode 100644 index 0000000000..9102bbf85b --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-1-00002.response @@ -0,0 +1,9 @@ +--batchresponse_0f4507ff-238f-41f8-be3f-a002919434c3 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchTest.docx')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchTest.docx')","type":"SP.File"},"HasAlternateContentStreams":false,"Length":"18046","ServerRedirectedUrl":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_layouts/15/Doc.aspx?sourcedoc=%7BFBD54892-2EFC-4A13-8968-A48AD6D3F4F0%7D&file=PNP_SDK_TEST_GetIFilePropertiesCurrentBatchTest.docx&action=default&mobileredirect=true","UniqueId":"fbd54892-2efc-4a13-8968-a48ad6d3f4f0","VroomDriveID":"b!ZtxgsoWyf0eKGhSZeYLphlfDo3rrzblDnc3cFkWzDP9Y_NwRML4tS7O6tnUsdm9H","VroomItemID":"01TEEVMCESJDK7X7BOCNFIS2FERLLNH5HQ"}} +--batchresponse_0f4507ff-238f-41f8-be3f-a002919434c3-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-2-00000.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-2-00000.response new file mode 100644 index 0000000000..5bd003c0bf --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-2-00000.response @@ -0,0 +1 @@ +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","type":"SP.Web"},"RegionalSettings":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","type":"SP.RegionalSettings"},"InstalledLanguages":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/InstalledLanguages"}},"TimeZone":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","type":"SP.TimeZone"},"Description":"(UTC-08:00) Pacific Time (US and Canada)","Id":13,"Information":{"__metadata":{"type":"SP.TimeZoneInformation"},"Bias":480,"DaylightBias":-60,"StandardBias":0}},"TimeZones":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZones"}},"AdjustHijriDays":0,"AlternateCalendarType":0,"AM":"AM","CalendarType":1,"Collation":25,"CollationLCID":2070,"DateFormat":0,"DateSeparator":"/","DecimalSeparator":".","DigitGrouping":"3;0","FirstDayOfWeek":0,"FirstWeekOfYear":0,"IsEastAsia":false,"IsRightToLeft":false,"IsUIRightToLeft":false,"ListSeparator":",","LocaleId":1033,"NegativeSign":"-","NegNumberMode":1,"PM":"PM","PositiveSign":"","ShowWeeks":false,"ThousandSeparator":",","Time24":false,"TimeMarkerPosition":0,"TimeSeparator":":","WorkDayEndHour":1020,"WorkDays":62,"WorkDayStartHour":480},"Id":"7aa3c357-cdeb-43b9-9dcd-dc1645b30cff","Url":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup"}} \ No newline at end of file diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-2-00001.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-2-00001.response new file mode 100644 index 0000000000..5dc2f7c726 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-2-00001.response @@ -0,0 +1,9 @@ +--batchresponse_827f22eb-dfe5-4115-9b6a-1d83189dbcf8 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","type":"SP.Site"},"GroupId":"08b3accf-0665-4523-945b-473c3161b2ec","Id":"b260dc66-b285-477f-8a1a-14997982e986"}} +--batchresponse_827f22eb-dfe5-4115-9b6a-1d83189dbcf8-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-2-00002.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-2-00002.response new file mode 100644 index 0000000000..9102bbf85b --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-2-00002.response @@ -0,0 +1,9 @@ +--batchresponse_0f4507ff-238f-41f8-be3f-a002919434c3 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchTest.docx')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesCurrentBatchTest.docx')","type":"SP.File"},"HasAlternateContentStreams":false,"Length":"18046","ServerRedirectedUrl":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_layouts/15/Doc.aspx?sourcedoc=%7BFBD54892-2EFC-4A13-8968-A48AD6D3F4F0%7D&file=PNP_SDK_TEST_GetIFilePropertiesCurrentBatchTest.docx&action=default&mobileredirect=true","UniqueId":"fbd54892-2efc-4a13-8968-a48ad6d3f4f0","VroomDriveID":"b!ZtxgsoWyf0eKGhSZeYLphlfDo3rrzblDnc3cFkWzDP9Y_NwRML4tS7O6tnUsdm9H","VroomItemID":"01TEEVMCESJDK7X7BOCNFIS2FERLLNH5HQ"}} +--batchresponse_0f4507ff-238f-41f8-be3f-a002919434c3-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-2-00003.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-2-00003.response new file mode 100644 index 0000000000..6d76e9031d --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesCurrentBatchTest-2-00003.response @@ -0,0 +1,9 @@ +--batchresponse_45f2a082-0751-42fc-8fa5-72049a94ed1d +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + + +--batchresponse_45f2a082-0751-42fc-8fa5-72049a94ed1d-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-0-00000.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-0-00000.response new file mode 100644 index 0000000000..5bd003c0bf --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-0-00000.response @@ -0,0 +1 @@ +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","type":"SP.Web"},"RegionalSettings":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","type":"SP.RegionalSettings"},"InstalledLanguages":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/InstalledLanguages"}},"TimeZone":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","type":"SP.TimeZone"},"Description":"(UTC-08:00) Pacific Time (US and Canada)","Id":13,"Information":{"__metadata":{"type":"SP.TimeZoneInformation"},"Bias":480,"DaylightBias":-60,"StandardBias":0}},"TimeZones":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZones"}},"AdjustHijriDays":0,"AlternateCalendarType":0,"AM":"AM","CalendarType":1,"Collation":25,"CollationLCID":2070,"DateFormat":0,"DateSeparator":"/","DecimalSeparator":".","DigitGrouping":"3;0","FirstDayOfWeek":0,"FirstWeekOfYear":0,"IsEastAsia":false,"IsRightToLeft":false,"IsUIRightToLeft":false,"ListSeparator":",","LocaleId":1033,"NegativeSign":"-","NegNumberMode":1,"PM":"PM","PositiveSign":"","ShowWeeks":false,"ThousandSeparator":",","Time24":false,"TimeMarkerPosition":0,"TimeSeparator":":","WorkDayEndHour":1020,"WorkDays":62,"WorkDayStartHour":480},"Id":"7aa3c357-cdeb-43b9-9dcd-dc1645b30cff","Url":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup"}} \ No newline at end of file diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-0-00001.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-0-00001.response new file mode 100644 index 0000000000..28319d1efe --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-0-00001.response @@ -0,0 +1,9 @@ +--batchresponse_28f6c3af-171d-4b78-a4a5-d9f949562205 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","type":"SP.Site"},"GroupId":"08b3accf-0665-4523-945b-473c3161b2ec","Id":"b260dc66-b285-477f-8a1a-14997982e986"}} +--batchresponse_28f6c3af-171d-4b78-a4a5-d9f949562205-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-0-00002.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-0-00002.response new file mode 100644 index 0000000000..015b0dfb24 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-0-00002.response @@ -0,0 +1,9 @@ +--batchresponse_8c615c16-df09-43bd-9c8b-8f338422c17a +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"results":[{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')","etag":"\"4\"","type":"SP.List"},"FirstUniqueAncestorSecurableObject":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/FirstUniqueAncestorSecurableObject"}},"RoleAssignments":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/RoleAssignments"}},"Author":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Author"}},"ContentTypes":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/ContentTypes"}},"CreatablesInfo":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/CreatablesInfo"}},"DefaultView":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/DefaultView"}},"DescriptionResource":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/DescriptionResource"}},"EventReceivers":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/EventReceivers"}},"Fields":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Fields"}},"Forms":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Forms"}},"InformationRightsManagementSettings":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/InformationRightsManagementSettings"}},"Items":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Items"}},"ParentWeb":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/ParentWeb"}},"RootFolder":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/RootFolder"}},"Subscriptions":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Subscriptions"}},"TitleResource":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/TitleResource"}},"UserCustomActions":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/UserCustomActions"}},"Views":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/Views"}},"WorkflowAssociations":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/Lists(guid'11dcfc58-be30-4b2d-b3ba-b6752c766f47')/WorkflowAssociations"}},"AllowContentTypes":true,"BaseTemplate":101,"BaseType":1,"ContentTypesEnabled":false,"CrawlNonDefaultViews":false,"Created":"2021-05-09T05:30:54Z","CurrentChangeToken":{"__metadata":{"type":"SP.ChangeToken"},"StringValue":"1;3;11dcfc58-be30-4b2d-b3ba-b6752c766f47;637564297526000000;173756776"},"DefaultContentApprovalWorkflowId":"00000000-0000-0000-0000-000000000000","DefaultItemOpenUseListSetting":false,"Description":"","Direction":"none","DisableCommenting":false,"DisableGridEditing":false,"DocumentTemplateUrl":"/sites/pnpcoresdktestgroup/Shared Documents/Forms/template.dotx","DraftVersionVisibility":0,"EnableAttachments":false,"EnableFolderCreation":true,"EnableMinorVersions":false,"EnableModeration":false,"EnableRequestSignOff":true,"EnableVersioning":true,"EntityTypeName":"Shared_x0020_Documents","ExemptFromBlockDownloadOfNonViewableFiles":false,"FileSavePostProcessingEnabled":false,"ForceCheckout":false,"HasExternalDataSource":false,"Hidden":false,"Id":"11dcfc58-be30-4b2d-b3ba-b6752c766f47","ImagePath":{"__metadata":{"type":"SP.ResourcePath"},"DecodedUrl":"/_layouts/15/images/itdl.png?rev=47"},"ImageUrl":"/_layouts/15/images/itdl.png?rev=47","IrmEnabled":false,"IrmExpire":false,"IrmReject":false,"IsApplicationList":false,"IsCatalog":false,"IsPrivate":false,"ItemCount":2,"LastItemDeletedDate":"2021-05-12T14:42:29Z","LastItemModifiedDate":"2021-05-12T15:16:49Z","LastItemUserModifiedDate":"2021-05-12T15:16:49Z","ListExperienceOptions":1,"ListItemEntityTypeFullName":"SP.Data.Shared_x0020_DocumentsItem","MajorVersionLimit":500,"MajorWithMinorVersionsLimit":0,"MultipleDataList":false,"NoCrawl":false,"ParentWebPath":{"__metadata":{"type":"SP.ResourcePath"},"DecodedUrl":"/sites/pnpcoresdktestgroup"},"ParentWebUrl":"/sites/pnpcoresdktestgroup","ParserDisabled":false,"ServerTemplateCanCreateFolders":true,"TemplateFeatureId":"00bfea71-e717-4e80-aa17-d0c71b360101","Title":"Documents"}]}} +--batchresponse_8c615c16-df09-43bd-9c8b-8f338422c17a-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-0-00003.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-0-00003.response new file mode 100644 index 0000000000..df64297619 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-0-00003.response @@ -0,0 +1,9 @@ +--batchresponse_5c69112c-43d0-40fb-aabd-c004511182d6 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared Documents')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')","type":"SP.Folder"},"Files":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/Files"}},"ListItemAllFields":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/ListItemAllFields"}},"ParentFolder":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/ParentFolder"}},"Properties":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/Properties"}},"StorageMetrics":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/StorageMetrics"}},"Folders":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents')/Folders"}},"Exists":true,"IsWOPIEnabled":false,"ItemCount":2,"Name":"Shared Documents","ProgID":null,"ServerRelativeUrl":"/sites/pnpcoresdktestgroup/Shared Documents","TimeCreated":"2021-05-09T05:30:54Z","TimeLastModified":"2021-05-12T14:42:58Z","UniqueId":"f3991d81-8402-4396-a0b1-b0fe28ca6f30","WelcomePage":""}} +--batchresponse_5c69112c-43d0-40fb-aabd-c004511182d6-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-0-00004.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-0-00004.response new file mode 100644 index 0000000000..9e0a0c1827 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-0-00004.response @@ -0,0 +1 @@ +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesTest.docx')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesTest.docx')","type":"SP.File"},"Author":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesTest.docx')/Author"}},"CheckedOutByUser":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesTest.docx')/CheckedOutByUser"}},"EffectiveInformationRightsManagementSettings":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesTest.docx')/EffectiveInformationRightsManagementSettings"}},"InformationRightsManagementSettings":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesTest.docx')/InformationRightsManagementSettings"}},"ListItemAllFields":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesTest.docx')/ListItemAllFields"}},"LockedByUser":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesTest.docx')/LockedByUser"}},"ModifiedBy":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesTest.docx')/ModifiedBy"}},"Properties":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesTest.docx')/Properties"}},"VersionEvents":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesTest.docx')/VersionEvents"}},"Versions":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesTest.docx')/Versions"}},"CheckInComment":"","CheckOutType":2,"ContentTag":"{4128AF05-F375-4A02-9099-1C7DBD888A2B},1,2","CustomizedPageStatus":0,"ETag":"\"{4128AF05-F375-4A02-9099-1C7DBD888A2B},1\"","Exists":true,"IrmEnabled":false,"Length":"18047","Level":1,"LinkingUri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesTest.docx?d=w4128af05f3754a0290991c7dbd888a2b","LinkingUrl":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesTest.docx?d=w4128af05f3754a0290991c7dbd888a2b","MajorVersion":1,"MinorVersion":0,"Name":"PNP_SDK_TEST_GetIFilePropertiesTest.docx","ServerRelativeUrl":"/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesTest.docx","TimeCreated":"2021-05-12T15:22:33Z","TimeLastModified":"2021-05-12T15:22:33Z","Title":"","UIVersion":512,"UIVersionLabel":"1.0","UniqueId":"4128af05-f375-4a02-9099-1c7dbd888a2b"}} \ No newline at end of file diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-1-00000.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-1-00000.response new file mode 100644 index 0000000000..5bd003c0bf --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-1-00000.response @@ -0,0 +1 @@ +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","type":"SP.Web"},"RegionalSettings":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","type":"SP.RegionalSettings"},"InstalledLanguages":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/InstalledLanguages"}},"TimeZone":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","type":"SP.TimeZone"},"Description":"(UTC-08:00) Pacific Time (US and Canada)","Id":13,"Information":{"__metadata":{"type":"SP.TimeZoneInformation"},"Bias":480,"DaylightBias":-60,"StandardBias":0}},"TimeZones":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZones"}},"AdjustHijriDays":0,"AlternateCalendarType":0,"AM":"AM","CalendarType":1,"Collation":25,"CollationLCID":2070,"DateFormat":0,"DateSeparator":"/","DecimalSeparator":".","DigitGrouping":"3;0","FirstDayOfWeek":0,"FirstWeekOfYear":0,"IsEastAsia":false,"IsRightToLeft":false,"IsUIRightToLeft":false,"ListSeparator":",","LocaleId":1033,"NegativeSign":"-","NegNumberMode":1,"PM":"PM","PositiveSign":"","ShowWeeks":false,"ThousandSeparator":",","Time24":false,"TimeMarkerPosition":0,"TimeSeparator":":","WorkDayEndHour":1020,"WorkDays":62,"WorkDayStartHour":480},"Id":"7aa3c357-cdeb-43b9-9dcd-dc1645b30cff","Url":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup"}} \ No newline at end of file diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-1-00001.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-1-00001.response new file mode 100644 index 0000000000..fc09196ae6 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-1-00001.response @@ -0,0 +1,9 @@ +--batchresponse_d9fec4b2-614b-48c9-9cde-738cfa2c793e +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","type":"SP.Site"},"GroupId":"08b3accf-0665-4523-945b-473c3161b2ec","Id":"b260dc66-b285-477f-8a1a-14997982e986"}} +--batchresponse_d9fec4b2-614b-48c9-9cde-738cfa2c793e-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-1-00002.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-1-00002.response new file mode 100644 index 0000000000..aa74e3fde9 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-1-00002.response @@ -0,0 +1,9 @@ +--batchresponse_96b0b314-ef0b-42f7-a80e-e31a91c0b873 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesTest.docx')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesTest.docx')","type":"SP.File"},"HasAlternateContentStreams":false,"Length":"18047","ServerRedirectedUrl":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_layouts/15/Doc.aspx?sourcedoc=%7B4128AF05-F375-4A02-9099-1C7DBD888A2B%7D&file=PNP_SDK_TEST_GetIFilePropertiesTest.docx&action=default&mobileredirect=true","UniqueId":"4128af05-f375-4a02-9099-1c7dbd888a2b","VroomDriveID":"b!ZtxgsoWyf0eKGhSZeYLphlfDo3rrzblDnc3cFkWzDP9Y_NwRML4tS7O6tnUsdm9H","VroomItemID":"01TEEVMCAFV4UEC5PTAJFJBGI4PW6YRCRL"}} +--batchresponse_96b0b314-ef0b-42f7-a80e-e31a91c0b873-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-2-00000.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-2-00000.response new file mode 100644 index 0000000000..5bd003c0bf --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-2-00000.response @@ -0,0 +1 @@ +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web","type":"SP.Web"},"RegionalSettings":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings","type":"SP.RegionalSettings"},"InstalledLanguages":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/InstalledLanguages"}},"TimeZone":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZone","type":"SP.TimeZone"},"Description":"(UTC-08:00) Pacific Time (US and Canada)","Id":13,"Information":{"__metadata":{"type":"SP.TimeZoneInformation"},"Bias":480,"DaylightBias":-60,"StandardBias":0}},"TimeZones":{"__deferred":{"uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/RegionalSettings/TimeZones"}},"AdjustHijriDays":0,"AlternateCalendarType":0,"AM":"AM","CalendarType":1,"Collation":25,"CollationLCID":2070,"DateFormat":0,"DateSeparator":"/","DecimalSeparator":".","DigitGrouping":"3;0","FirstDayOfWeek":0,"FirstWeekOfYear":0,"IsEastAsia":false,"IsRightToLeft":false,"IsUIRightToLeft":false,"ListSeparator":",","LocaleId":1033,"NegativeSign":"-","NegNumberMode":1,"PM":"PM","PositiveSign":"","ShowWeeks":false,"ThousandSeparator":",","Time24":false,"TimeMarkerPosition":0,"TimeSeparator":":","WorkDayEndHour":1020,"WorkDays":62,"WorkDayStartHour":480},"Id":"7aa3c357-cdeb-43b9-9dcd-dc1645b30cff","Url":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup"}} \ No newline at end of file diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-2-00001.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-2-00001.response new file mode 100644 index 0000000000..fc09196ae6 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-2-00001.response @@ -0,0 +1,9 @@ +--batchresponse_d9fec4b2-614b-48c9-9cde-738cfa2c793e +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Site","type":"SP.Site"},"GroupId":"08b3accf-0665-4523-945b-473c3161b2ec","Id":"b260dc66-b285-477f-8a1a-14997982e986"}} +--batchresponse_d9fec4b2-614b-48c9-9cde-738cfa2c793e-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-2-00002.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-2-00002.response new file mode 100644 index 0000000000..aa74e3fde9 --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-2-00002.response @@ -0,0 +1,9 @@ +--batchresponse_96b0b314-ef0b-42f7-a80e-e31a91c0b873 +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + +{"d":{"__metadata":{"id":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared Documents/PNP_SDK_TEST_GetIFilePropertiesTest.docx')","uri":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/pnpcoresdktestgroup/Shared%20Documents/PNP_SDK_TEST_GetIFilePropertiesTest.docx')","type":"SP.File"},"HasAlternateContentStreams":false,"Length":"18047","ServerRedirectedUrl":"https://gimmalkyle2.sharepoint.com/sites/pnpcoresdktestgroup/_layouts/15/Doc.aspx?sourcedoc=%7B4128AF05-F375-4A02-9099-1C7DBD888A2B%7D&file=PNP_SDK_TEST_GetIFilePropertiesTest.docx&action=default&mobileredirect=true","UniqueId":"4128af05-f375-4a02-9099-1c7dbd888a2b","VroomDriveID":"b!ZtxgsoWyf0eKGhSZeYLphlfDo3rrzblDnc3cFkWzDP9Y_NwRML4tS7O6tnUsdm9H","VroomItemID":"01TEEVMCAFV4UEC5PTAJFJBGI4PW6YRCRL"}} +--batchresponse_96b0b314-ef0b-42f7-a80e-e31a91c0b873-- diff --git a/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-2-00003.response b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-2-00003.response new file mode 100644 index 0000000000..6d76e9031d --- /dev/null +++ b/src/sdk/PnP.Core.Test/SharePoint/MockData/FilesTests/GetIFilePropertiesTest-2-00003.response @@ -0,0 +1,9 @@ +--batchresponse_45f2a082-0751-42fc-8fa5-72049a94ed1d +Content-Type: application/http +Content-Transfer-Encoding: binary + +HTTP/1.1 200 OK +CONTENT-TYPE: application/json;odata=verbose;charset=utf-8 + + +--batchresponse_45f2a082-0751-42fc-8fa5-72049a94ed1d-- diff --git a/src/sdk/PnP.Core/Model/SharePoint/Core/Internal/FieldValueCollection.cs b/src/sdk/PnP.Core/Model/SharePoint/Core/Internal/FieldValueCollection.cs index d2e8281b18..6eed2d2214 100644 --- a/src/sdk/PnP.Core/Model/SharePoint/Core/Internal/FieldValueCollection.cs +++ b/src/sdk/PnP.Core/Model/SharePoint/Core/Internal/FieldValueCollection.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Collections.Specialized; using System.Linq; using System.Text; using System.Text.Json; @@ -31,19 +32,19 @@ internal FieldValueCollection(IField field, string propertyName) internal bool HasChanges => GetChangedValues() != null; - private void Values_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) + private void Values_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) { - if (e.Action == System.Collections.Specialized.NotifyCollectionChangedAction.Remove || - e.Action == System.Collections.Specialized.NotifyCollectionChangedAction.Reset || - e.Action == System.Collections.Specialized.NotifyCollectionChangedAction.Add) + if (e?.Action != null && (e.Action == NotifyCollectionChangedAction.Remove || + e.Action == NotifyCollectionChangedAction.Reset || + e.Action == NotifyCollectionChangedAction.Add)) { hasChangedDueToDeleteOrAdd = true; - if (e.Action == System.Collections.Specialized.NotifyCollectionChangedAction.Add) + if (e.Action == NotifyCollectionChangedAction.Add && e.NewItems != null) { - foreach (var item in e.NewItems) + foreach (var item in e.NewItems.OfType()) { - (item as FieldValue).MarkAsChanged(); + item.MarkAsChanged(); } } } diff --git a/src/sdk/PnP.Core/Model/SharePoint/Core/Internal/File.cs b/src/sdk/PnP.Core/Model/SharePoint/Core/Internal/File.cs index cc7e734a0c..41d41598ed 100644 --- a/src/sdk/PnP.Core/Model/SharePoint/Core/Internal/File.cs +++ b/src/sdk/PnP.Core/Model/SharePoint/Core/Internal/File.cs @@ -41,8 +41,12 @@ public File() public bool Exists { get => GetValue(); set => SetValue(value); } + public bool HasAlternateContentStreams { get => GetValue(); set => SetValue(value); } + public bool IrmEnabled { get => GetValue(); set => SetValue(value); } + public long Length { get => GetValue(); set => SetValue(value); } + public string LinkingUri { get => GetValue(); set => SetValue(value); } public string LinkingUrl { get => GetValue(); set => SetValue(value); } @@ -57,6 +61,8 @@ public File() public PublishedStatus Level { get => GetValue(); set => SetValue(value); } + public string ServerRedirectedUrl { get => GetValue(); set => SetValue(value); } + public string ServerRelativeUrl { get => GetValue(); set => SetValue(value); } public Guid SiteId { get => GetValue(); set => SetValue(value); } @@ -73,6 +79,10 @@ public File() public Guid UniqueId { get => GetValue(); set => SetValue(value); } + public string VroomDriveID { get => GetValue(); set => SetValue(value); } + + public string VroomItemID { get => GetValue(); set => SetValue(value); } + public Guid WebId { get => GetValue(); set => SetValue(value); } public IListItem ListItemAllFields { get => GetModelValue(); } @@ -691,7 +701,7 @@ public async Task> ClassifyA }; var batchRequest = await RawRequestBatchAsync(batch, apiCall, HttpMethod.Post).ConfigureAwait(false); - + return new BatchSingleResult(batch, batchRequest.Id, apiCall.RawSingleResult as ISyntexClassifyAndExtractResult); } diff --git a/src/sdk/PnP.Core/Model/SharePoint/Core/Public/IFile.cs b/src/sdk/PnP.Core/Model/SharePoint/Core/Public/IFile.cs index ab8bcb2b19..81bc6f277a 100644 --- a/src/sdk/PnP.Core/Model/SharePoint/Core/Public/IFile.cs +++ b/src/sdk/PnP.Core/Model/SharePoint/Core/Public/IFile.cs @@ -49,11 +49,18 @@ public interface IFile : IDataModel, IDataModelGet, IDataModelLoad /// public bool Exists { get; } + public bool HasAlternateContentStreams { get; } + /// /// Gets or sets whether Irm is enabled on the file. /// public bool IrmEnabled { get; set; } + /// + /// Gets the file size of the file. + /// + public long Length { get; } + /// /// Gets the linking URI of the file. /// @@ -89,6 +96,11 @@ public interface IFile : IDataModel, IDataModelGet, IDataModelLoad /// public PublishedStatus Level { get; } + /// + /// Gets the URL which opens the document in Office Web Apps. + /// + public string ServerRedirectedUrl { get; } + /// /// Gets the relative URL of the file based on the URL for the server. /// @@ -129,6 +141,16 @@ public interface IFile : IDataModel, IDataModelGet, IDataModelLoad /// public Guid UniqueId { get; } + /// + /// Get the Graph Drive ID of the drive to which the file belongs. + /// + public string VroomDriveID { get; } + + /// + /// Get the Graph DriveItem ID of the file. + /// + public string VroomItemID { get; } + /// /// Gets the Id of the site in which the file is stored. ///