Showing preview only (628K chars total). Download the full file or copy to clipboard to get everything.
Repository: OneDrive/onedrive-sdk-csharp
Branch: master
Commit: 3594584535a4
Files: 226
Total size: 564.4 KB
Directory structure:
gitextract_f6t6dqdk/
├── .gitignore
├── Common/
│ └── Microsoft.OneDriveSDK.nuspec
├── LICENSE.txt
├── OneDriveSdk.sln
├── README.md
├── docs/
│ ├── auth.md
│ ├── chunked-uploads.md
│ ├── collections.md
│ ├── errors.md
│ ├── items.md
│ └── overview.md
├── src/
│ └── OneDriveSdk/
│ ├── Constants.cs
│ ├── Enums/
│ │ └── OneDriveErrorCode.cs
│ ├── Helpers/
│ │ └── ChunkedUploadProvider.cs
│ ├── Microsoft.OneDrive.Sdk.csproj
│ ├── Models/
│ │ └── Generated/
│ │ ├── Audio.cs
│ │ ├── ChunkedUploadSessionDescriptor.cs
│ │ ├── Deleted.cs
│ │ ├── Drive.cs
│ │ ├── File.cs
│ │ ├── FileSystemInfo.cs
│ │ ├── Folder.cs
│ │ ├── Hashes.cs
│ │ ├── Identity.cs
│ │ ├── IdentitySet.cs
│ │ ├── Image.cs
│ │ ├── Item.cs
│ │ ├── ItemCopyRequestBody.cs
│ │ ├── ItemCreateLinkRequestBody.cs
│ │ ├── ItemCreateSessionRequestBody.cs
│ │ ├── ItemInviteRequestBody.cs
│ │ ├── ItemReference.cs
│ │ ├── Location.cs
│ │ ├── OpenWithApp.cs
│ │ ├── OpenWithSet.cs
│ │ ├── Permission.cs
│ │ ├── Photo.cs
│ │ ├── Quota.cs
│ │ ├── Recipient.cs
│ │ ├── SearchResult.cs
│ │ ├── Share.cs
│ │ ├── Shared.cs
│ │ ├── SharingInvitation.cs
│ │ ├── SharingLink.cs
│ │ ├── SpecialFolder.cs
│ │ ├── Thumbnail.cs
│ │ ├── ThumbnailSet.cs
│ │ ├── UploadSession.cs
│ │ └── Video.cs
│ ├── Properties/
│ │ └── AssemblyInfo.cs
│ ├── Requests/
│ │ ├── Extensions/
│ │ │ ├── DriveRequestBuilderExtensions.cs
│ │ │ ├── DriveSpecialCollectionRequestBuilderExtensions.cs
│ │ │ ├── IDriveRequestBuilderExtensions.cs
│ │ │ ├── IDriveSpecialCollectionRequestBuilderExtensions.cs
│ │ │ ├── IItemRequestBuilderExtensions.cs
│ │ │ ├── IOneDriveClientExtensions.cs
│ │ │ ├── IShareRequestBuilderExtensions.cs
│ │ │ ├── IThumbnailSetRequestBuilderExtensions.cs
│ │ │ ├── ItemRequestBuilderExtensions.cs
│ │ │ ├── OneDriveClientExtensions.cs
│ │ │ ├── ShareRequestBuilderExtensions.cs
│ │ │ ├── ThumbnailSetExtensions.cs
│ │ │ └── ThumbnailSetRequestBuilderExtensions.cs
│ │ ├── Generated/
│ │ │ ├── DriveItemsCollectionPage.cs
│ │ │ ├── DriveItemsCollectionRequest.cs
│ │ │ ├── DriveItemsCollectionRequestBuilder.cs
│ │ │ ├── DriveItemsCollectionResponse.cs
│ │ │ ├── DriveRecentCollectionPage.cs
│ │ │ ├── DriveRecentCollectionResponse.cs
│ │ │ ├── DriveRecentRequest.cs
│ │ │ ├── DriveRecentRequestBuilder.cs
│ │ │ ├── DriveRequest.cs
│ │ │ ├── DriveRequestBuilder.cs
│ │ │ ├── DriveSharedCollectionPage.cs
│ │ │ ├── DriveSharedCollectionRequest.cs
│ │ │ ├── DriveSharedCollectionRequestBuilder.cs
│ │ │ ├── DriveSharedCollectionResponse.cs
│ │ │ ├── DriveSpecialCollectionPage.cs
│ │ │ ├── DriveSpecialCollectionRequest.cs
│ │ │ ├── DriveSpecialCollectionRequestBuilder.cs
│ │ │ ├── DriveSpecialCollectionResponse.cs
│ │ │ ├── IDriveItemsCollectionPage.cs
│ │ │ ├── IDriveItemsCollectionRequest.cs
│ │ │ ├── IDriveItemsCollectionRequestBuilder.cs
│ │ │ ├── IDriveRecentCollectionPage.cs
│ │ │ ├── IDriveRecentRequest.cs
│ │ │ ├── IDriveRecentRequestBuilder.cs
│ │ │ ├── IDriveRequest.cs
│ │ │ ├── IDriveRequestBuilder.cs
│ │ │ ├── IDriveSharedCollectionPage.cs
│ │ │ ├── IDriveSharedCollectionRequest.cs
│ │ │ ├── IDriveSharedCollectionRequestBuilder.cs
│ │ │ ├── IDriveSpecialCollectionPage.cs
│ │ │ ├── IDriveSpecialCollectionRequest.cs
│ │ │ ├── IDriveSpecialCollectionRequestBuilder.cs
│ │ │ ├── IItemChildrenCollectionPage.cs
│ │ │ ├── IItemChildrenCollectionRequest.cs
│ │ │ ├── IItemChildrenCollectionRequestBuilder.cs
│ │ │ ├── IItemContentRequest.cs
│ │ │ ├── IItemContentRequestBuilder.cs
│ │ │ ├── IItemCopyRequest.cs
│ │ │ ├── IItemCopyRequestBuilder.cs
│ │ │ ├── IItemCreateLinkRequest.cs
│ │ │ ├── IItemCreateLinkRequestBuilder.cs
│ │ │ ├── IItemCreateSessionRequest.cs
│ │ │ ├── IItemCreateSessionRequestBuilder.cs
│ │ │ ├── IItemDeltaCollectionPage.cs
│ │ │ ├── IItemDeltaRequest.cs
│ │ │ ├── IItemDeltaRequestBuilder.cs
│ │ │ ├── IItemInviteRequest.cs
│ │ │ ├── IItemInviteRequestBuilder.cs
│ │ │ ├── IItemPermissionsCollectionPage.cs
│ │ │ ├── IItemPermissionsCollectionRequest.cs
│ │ │ ├── IItemPermissionsCollectionRequestBuilder.cs
│ │ │ ├── IItemRequest.cs
│ │ │ ├── IItemRequestBuilder.cs
│ │ │ ├── IItemSearchCollectionPage.cs
│ │ │ ├── IItemSearchRequest.cs
│ │ │ ├── IItemSearchRequestBuilder.cs
│ │ │ ├── IItemThumbnailsCollectionPage.cs
│ │ │ ├── IItemThumbnailsCollectionRequest.cs
│ │ │ ├── IItemThumbnailsCollectionRequestBuilder.cs
│ │ │ ├── IItemVersionsCollectionPage.cs
│ │ │ ├── IItemVersionsCollectionRequest.cs
│ │ │ ├── IItemVersionsCollectionRequestBuilder.cs
│ │ │ ├── IOneDriveClient.cs
│ │ │ ├── IOneDriveDrivesCollectionPage.cs
│ │ │ ├── IOneDriveDrivesCollectionRequest.cs
│ │ │ ├── IOneDriveDrivesCollectionRequestBuilder.cs
│ │ │ ├── IOneDriveSharesCollectionPage.cs
│ │ │ ├── IOneDriveSharesCollectionRequest.cs
│ │ │ ├── IOneDriveSharesCollectionRequestBuilder.cs
│ │ │ ├── IPermissionRequest.cs
│ │ │ ├── IPermissionRequestBuilder.cs
│ │ │ ├── IShareItemsCollectionPage.cs
│ │ │ ├── IShareItemsCollectionRequest.cs
│ │ │ ├── IShareItemsCollectionRequestBuilder.cs
│ │ │ ├── IShareRequest.cs
│ │ │ ├── IShareRequestBuilder.cs
│ │ │ ├── IThumbnailContentRequest.cs
│ │ │ ├── IThumbnailContentRequestBuilder.cs
│ │ │ ├── IThumbnailSetRequest.cs
│ │ │ ├── IThumbnailSetRequestBuilder.cs
│ │ │ ├── ItemChildrenCollectionPage.cs
│ │ │ ├── ItemChildrenCollectionRequest.cs
│ │ │ ├── ItemChildrenCollectionRequestBuilder.cs
│ │ │ ├── ItemChildrenCollectionResponse.cs
│ │ │ ├── ItemContentRequest.cs
│ │ │ ├── ItemContentRequestBuilder.cs
│ │ │ ├── ItemCopyRequest.cs
│ │ │ ├── ItemCopyRequestBuilder.cs
│ │ │ ├── ItemCreateLinkRequest.cs
│ │ │ ├── ItemCreateLinkRequestBuilder.cs
│ │ │ ├── ItemCreateSessionRequest.cs
│ │ │ ├── ItemCreateSessionRequestBuilder.cs
│ │ │ ├── ItemDeltaCollectionPage.cs
│ │ │ ├── ItemDeltaCollectionResponse.cs
│ │ │ ├── ItemDeltaRequest.cs
│ │ │ ├── ItemDeltaRequestBuilder.cs
│ │ │ ├── ItemInviteRequest.cs
│ │ │ ├── ItemInviteRequestBuilder.cs
│ │ │ ├── ItemPermissionsCollectionPage.cs
│ │ │ ├── ItemPermissionsCollectionRequest.cs
│ │ │ ├── ItemPermissionsCollectionRequestBuilder.cs
│ │ │ ├── ItemPermissionsCollectionResponse.cs
│ │ │ ├── ItemRequest.cs
│ │ │ ├── ItemRequestBuilder.cs
│ │ │ ├── ItemSearchCollectionPage.cs
│ │ │ ├── ItemSearchCollectionResponse.cs
│ │ │ ├── ItemSearchRequest.cs
│ │ │ ├── ItemSearchRequestBuilder.cs
│ │ │ ├── ItemThumbnailsCollectionPage.cs
│ │ │ ├── ItemThumbnailsCollectionRequest.cs
│ │ │ ├── ItemThumbnailsCollectionRequestBuilder.cs
│ │ │ ├── ItemThumbnailsCollectionResponse.cs
│ │ │ ├── ItemVersionsCollectionPage.cs
│ │ │ ├── ItemVersionsCollectionRequest.cs
│ │ │ ├── ItemVersionsCollectionRequestBuilder.cs
│ │ │ ├── ItemVersionsCollectionResponse.cs
│ │ │ ├── OneDriveClient.cs
│ │ │ ├── OneDriveDrivesCollectionPage.cs
│ │ │ ├── OneDriveDrivesCollectionRequest.cs
│ │ │ ├── OneDriveDrivesCollectionRequestBuilder.cs
│ │ │ ├── OneDriveDrivesCollectionResponse.cs
│ │ │ ├── OneDriveSharesCollectionPage.cs
│ │ │ ├── OneDriveSharesCollectionRequest.cs
│ │ │ ├── OneDriveSharesCollectionRequestBuilder.cs
│ │ │ ├── OneDriveSharesCollectionResponse.cs
│ │ │ ├── PermissionRequest.cs
│ │ │ ├── PermissionRequestBuilder.cs
│ │ │ ├── ShareItemsCollectionPage.cs
│ │ │ ├── ShareItemsCollectionRequest.cs
│ │ │ ├── ShareItemsCollectionRequestBuilder.cs
│ │ │ ├── ShareItemsCollectionResponse.cs
│ │ │ ├── ShareRequest.cs
│ │ │ ├── ShareRequestBuilder.cs
│ │ │ ├── ThumbnailContentRequest.cs
│ │ │ ├── ThumbnailContentRequestBuilder.cs
│ │ │ ├── ThumbnailSetRequest.cs
│ │ │ └── ThumbnailSetRequestBuilder.cs
│ │ ├── IThumbnailRequest.cs
│ │ ├── IThumbnailRequestBuilder.cs
│ │ ├── IUploadChunkRequest.cs
│ │ ├── ThumbnailRequest.cs
│ │ ├── ThumbnailRequestBuilder.cs
│ │ ├── UploadChunkRequest.cs
│ │ └── UploadSessionRequest.cs
│ ├── app.config
│ └── packages.config
└── tests/
└── Test.OneDriveSdk/
├── 35MSSharedLib1024.snk
├── ChunkedUploadProviderTests.cs
├── Mocks/
│ ├── ExceptionHttpMessageHandler.cs
│ ├── MockAuthenticationProvider.cs
│ ├── MockHttpProvider.cs
│ ├── MockSerializer.cs
│ ├── TestChunkedUploadProvider.cs
│ └── TestHttpMessageHandler.cs
├── Properties/
│ └── AssemblyInfo.cs
├── Requests/
│ ├── ItemRequestTests.cs
│ ├── MethodRequestTests.cs
│ ├── RequestTestBase.cs
│ ├── ThumbnailRequestTests.cs
│ └── UploadChunkRequestTest.cs
├── Test.OneDrive.Sdk.csproj
├── app.config
└── packages.config
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitignore
================================================
*.sln.docstates
*.suo
*.user
*.userosscache
*.sln.ide
TestResults/*
.vs/*
# UWP project files
project.lock.json
*StoreKey.pfx
Package.StoreAssociation.xml
# Build results
**/[Dd]ebug/
**/[Dd]ebugPublic/
**/[Rr]elease/
**/[Rr]eleases/
**/x64/
**/x86/
**/build/
**/bld/
**/[Bb]in/
**/[Oo]bj/
/lib
# NuGet
*.nupkg
**/packages/*
!**/packages/build/
# VS project upgrade files
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
================================================
FILE: Common/Microsoft.OneDriveSDK.nuspec
================================================
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
<metadata>
<id>Microsoft.OneDriveSDK</id>
<version>2.0.7</version>
<title>OneDrive .NET SDK</title>
<authors>Microsoft</authors>
<owners>Microsoft</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Integrate the OneDrive API into your .NET App!</description>
<copyright>Copyright 2016 Microsoft Corporation</copyright>
<projectUrl>https://github.com/OneDrive/onedrive-sdk-csharp</projectUrl>
<licenseUrl>http://msdn.microsoft.com/en-US/cc300389</licenseUrl>
<iconUrl>https://dev.onedrive.com/images/OneDriveCloud.png</iconUrl>
<tags>onedrive sharepoint files livesdk liveconnect cloud storage microsoftaccount windowsliveid microsoftid windowsphone windowsstore metro xaml html</tags>
<dependencies>
<group>
<dependency id="Microsoft.Graph.Core" version="1.2.1" />
<dependency id="Newtonsoft.Json" version="9.0.1" />
</group>
</dependencies>
</metadata>
<files>
<!-- PCL projects -->
<file src="..\lib\Microsoft.OneDrive.Sdk.dll" target="lib\portable-net45+netcore45+wpa81+win8\Microsoft.OneDrive.Sdk.dll" />
</files>
</package>
================================================
FILE: LICENSE.txt
================================================
OneDrive SDK for CSharp
Copyright 2015 Microsoft Corporation
All right reserved.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
================================================
FILE: OneDriveSdk.sln
================================================
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25123.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{2EFD6E75-C1E0-4600-88D6-BFEDAD24A50A}"
ProjectSection(SolutionItems) = preProject
Common\Microsoft.OneDriveSDK.nuspec = Common\Microsoft.OneDriveSDK.nuspec
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.OneDrive.Sdk", "src\OneDriveSdk\Microsoft.OneDrive.Sdk.csproj", "{1368527B-D7B2-46AD-893D-6DC8C073D819}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{369050EF-15AF-4B0E-98DF-085B91E1B68D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test.OneDrive.Sdk", "tests\Test.OneDriveSdk\Test.OneDrive.Sdk.csproj", "{E3A990AA-5628-42AA-A8D4-1C599602DD96}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|ARM = Debug|ARM
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|ARM = Release|ARM
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1368527B-D7B2-46AD-893D-6DC8C073D819}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1368527B-D7B2-46AD-893D-6DC8C073D819}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1368527B-D7B2-46AD-893D-6DC8C073D819}.Debug|ARM.ActiveCfg = Debug|Any CPU
{1368527B-D7B2-46AD-893D-6DC8C073D819}.Debug|ARM.Build.0 = Debug|Any CPU
{1368527B-D7B2-46AD-893D-6DC8C073D819}.Debug|x64.ActiveCfg = Debug|Any CPU
{1368527B-D7B2-46AD-893D-6DC8C073D819}.Debug|x64.Build.0 = Debug|Any CPU
{1368527B-D7B2-46AD-893D-6DC8C073D819}.Debug|x86.ActiveCfg = Debug|Any CPU
{1368527B-D7B2-46AD-893D-6DC8C073D819}.Debug|x86.Build.0 = Debug|Any CPU
{1368527B-D7B2-46AD-893D-6DC8C073D819}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1368527B-D7B2-46AD-893D-6DC8C073D819}.Release|Any CPU.Build.0 = Release|Any CPU
{1368527B-D7B2-46AD-893D-6DC8C073D819}.Release|ARM.ActiveCfg = Release|Any CPU
{1368527B-D7B2-46AD-893D-6DC8C073D819}.Release|ARM.Build.0 = Release|Any CPU
{1368527B-D7B2-46AD-893D-6DC8C073D819}.Release|x64.ActiveCfg = Release|Any CPU
{1368527B-D7B2-46AD-893D-6DC8C073D819}.Release|x64.Build.0 = Release|Any CPU
{1368527B-D7B2-46AD-893D-6DC8C073D819}.Release|x86.ActiveCfg = Release|Any CPU
{1368527B-D7B2-46AD-893D-6DC8C073D819}.Release|x86.Build.0 = Release|Any CPU
{E3A990AA-5628-42AA-A8D4-1C599602DD96}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E3A990AA-5628-42AA-A8D4-1C599602DD96}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E3A990AA-5628-42AA-A8D4-1C599602DD96}.Debug|ARM.ActiveCfg = Debug|Any CPU
{E3A990AA-5628-42AA-A8D4-1C599602DD96}.Debug|ARM.Build.0 = Debug|Any CPU
{E3A990AA-5628-42AA-A8D4-1C599602DD96}.Debug|x64.ActiveCfg = Debug|Any CPU
{E3A990AA-5628-42AA-A8D4-1C599602DD96}.Debug|x64.Build.0 = Debug|Any CPU
{E3A990AA-5628-42AA-A8D4-1C599602DD96}.Debug|x86.ActiveCfg = Debug|Any CPU
{E3A990AA-5628-42AA-A8D4-1C599602DD96}.Debug|x86.Build.0 = Debug|Any CPU
{E3A990AA-5628-42AA-A8D4-1C599602DD96}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E3A990AA-5628-42AA-A8D4-1C599602DD96}.Release|ARM.ActiveCfg = Release|Any CPU
{E3A990AA-5628-42AA-A8D4-1C599602DD96}.Release|x64.ActiveCfg = Release|Any CPU
{E3A990AA-5628-42AA-A8D4-1C599602DD96}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{1368527B-D7B2-46AD-893D-6DC8C073D819} = {2EFD6E75-C1E0-4600-88D6-BFEDAD24A50A}
{E3A990AA-5628-42AA-A8D4-1C599602DD96} = {369050EF-15AF-4B0E-98DF-085B91E1B68D}
EndGlobalSection
EndGlobal
================================================
FILE: README.md
================================================
# OneDrive SDK for CSharp
[](https://ci.appveyor.com/project/OneDrive/onedrive-sdk-csharp/branch/master)
Integrate the [OneDrive API](https://dev.onedrive.com/README.htm) into your C#
project!
The OneDrive SDK is built as a Portable Class Library and targets the following
frameworks:
* .NET 4.5.1
* .NET for Windows Store apps
* Windows Phone 8.1 and higher
Azure Active Directory authentication is available for:
* Windows Forms apps
* UWP apps
* Windows 8.1 apps
## Installation via Nuget
To install the OneDrive SDK via NuGet
* Search for `Microsoft.OneDriveSDK` in the NuGet Library, or
* Type `Install-Package Microsoft.OneDriveSDK` into the Package Manager Console.
## Getting started
### 1. Register your application
Register your application for OneDrive by following [these](https://dev.onedrive.com/app-registration.htm) steps.
### 2. Setting your application Id and scopes
Your app must requests permissions in order to access a user's OneDrive. To do this, specify your app ID and scopes, or permission level.
For more information, see [Authentication scopes](https://dev.onedrive.com/auth/msa_oauth.htm#authentication-scopes).
### 3. Getting an authenticated OneDriveClient object
You must get a **OneDriveClient** object in order for your app to make requests to the service, but first you must have an instance of an object that implements `IAuthenticationProvider` in Microsoft.Graph.Core.
An example of such an imlementation can be found [MSA Auth Adapter repository](https://github.com/OneDrive/onedrive-sdk-dotnet-msa-auth-adapter). You should create the `IAuthenticationProvider`, authenticate
using `AuthenticateUserAsync()`, and then create a `OneDriveClient` using the auth provider as a constructor argument. You must also provide the ClientId of your app, the return URL you have specified for your app,
and the base URL for the API. Below is a sample of that pattern for authentication on the OneDrive service.
```csharp
var msaAuthProvider = new myAuthProvider(
myClientId,
"https://login.live.com/oauth20_desktop.srf",
{ "onedrive.readonly", "wl.signin" });
await msaAuthProvider.AuthenticateUserAsync();
var oneDriveClient = new OneDriveClient("https://api.onedrive.com/v1.0", msaAuthProvider);
```
After that, you will be able to use the `oneDriveClient` object to make calls to the service. For more information, see [Authenticate your C# app for OneDrive](docs/auth.md).
### 4. Making requests to the service
Once you have a OneDriveClient that is authenticated you can begin to make calls against the service. The requests against the service look like OneDrive's [REST API](https://dev.onedrive.com/README.htm).
To retrieve a user's drive:
```csharp
var drive = await oneDriveClient
.Drive
.Request()
.GetAsync();
```
`GetAsync` will return a `Drive` object on success and throw a `Microsoft.Graph.ServiceException` on error.
To get the current user's root folder of their drive:
```csharp
var rootItem = await oneDriveClient
.Drive
.Root
.Request()
.GetAsync();
```
`GetAsync` will return an `Item` object on success and throw a `Microsoft.Graph.ServiceException` on error.
For a general overview of how the SDK is designed, see [overview](docs/overview.md).
The following sample applications are also available:
* [OneDrive API Browser](https://github.com/OneDrive/onedrive-sample-apibrowser-dotnet) - Windows Forms app
* [OneDrive Photo Browser](https://github.com/OneDrive/onedrive-sample-photobrowser-uwp) - Windows Universal app
* [OneDrive Webhooks](https://github.com/OneDrive/onedrive-webhooks-aspnet) - ASP.NET MVC app
To run the OneDrivePhotoBrowser sample app your machine will need to be configured for [UWP app development](https://msdn.microsoft.com/en-us/library/windows/apps/dn609832.aspx) and the project must be associated with the Windows Store.
## Documentation and resources
* [Overview](docs/overview.md)
* [Auth](docs/auth.md)
* [Items](docs/items.md)
* [Chunked uploads](docs/chunked-uploads.md)
* [Collections](docs/collections.md)
* [Errors](docs/errors.md)
* [OneDrive API](http://dev.onedrive.com)
## Issues
To view or log issues, see [issues](https://github.com/OneDrive/onedrive-sdk-csharp/issues).
## Other resources
* NuGet Package: [https://www.nuget.org/packages/Microsoft.OneDriveSDK](https://www.nuget.org/packages/Microsoft.OneDriveSDK)
## License
[License](LICENSE.txt)
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
================================================
FILE: docs/auth.md
================================================
Authenticate your C# app for OneDrive
=====
To authenticate your app to use OneDrive, you need to instantiate an object that implements `IAuthenticationProvider` from Microsoft.Graph and call `AuthenticateAsync` on it. Then, you must create a `OneDriveClient` object and pass in your auth provider as an argument. Note that if the user changes their password, your app must re-authenticate. If you see `401` error codes, this is most likely the case. See [Error codes for the OneDrive C# SDK](errors.md) for more info.
**Note** This topic assumes that you are familiar with app authentication. For more info about authentication in OneDrive, see [Authentication for the OneDrive API](https://dev.onedrive.com/auth/readme.htm).
## Standard authentication components
When implementing `IAuthenticationProvider`, a standard set of parameters will be required:
| Parameter | Description |
|:----------|:------------|
| _clientId_ | The client ID of the app. Required. |
| _returnUrl_ | A redirect URL. Required. |
| _baseUrl_ | URL where the target OneDrive service is found. Required. |
| _scopes_ | Permissions that your app requires from the user. Required. |
| _client\_secret_ | The client secret created for your app. Optional. Not available for Windows Store 8.1, Windows Phone 8.1, and Universal Windows Platform (UWP) apps. |
In addition to _clientId_, _returnURL_, _scopes_, and _client\_secret_ the method takes in implementations for a client type, credential cache, HTTP provider, and a service info provider or web authentication UI. If not provided, the default implementations of each item will be used.
### ClientType
A single client can only call OneDrive for Consumer or OneDrive for Business, not both. The target service is configured implicitly by the `IAuthenticationProvider` and the _baseUrl_ passed into the `OneDriveClient` constructor.
If the application would like to interact with both OneDrive for Consumer and OneDrive for Business, a client should be created for each.
## More Information
More information, and a fuller example of authentication, can be found at the [MSA Auth Adapter repository](https://github.com/OneDrive/onedrive-sdk-dotnet-msa-auth-adapter).
================================================
FILE: docs/chunked-uploads.md
================================================
# Chunked Uploads
## Uploading large files and pausing/resuming uploads
Chunked uploads are easy using `Helpers.ChunkedUploadProvider`. The easiest way to upload a large file
looks like this:
```csharp
var session = await oneDriveClient.ItemWithPath(uploadPath).CreateSession().Request().PostAsync();
var provider = new ChunkedUploadProvider(session, oneDriveClient, fileStream);
var uploadedItem = await provider.UploadAsync();
```
Your file will upload in default-sized chunks (5MiB). You can also adjust chunk size by adding a parameter to the `ChunkedUploadProvider`
constructor: `new ChunkedUploadProvider(session, oneDriveClient, fileStream, 1024*1024); // 1 MiB`.
## Controlling and Monitoring Large Uploads
You may want to monitor the progress of an upload (perhaps to show a progress bar to the user). You can get finer control of uploading each chunk using
the skeleton below. You will certainly need to make a few modifications. Also, you can check out how the [ChunkedUploadProvider](../src/OneDriveSdk/Helpers/ChunkedUploadProvider.cs)
```csharp
// Get the provider
var myMaxChunkSize = 5*1024*1024; // 5MB
var session = await oneDriveClient.ItemWithPath(uploadPath).CreateSession().Request().PostAsync();
var provider = new ChunkedUploadProvider(session, oneDriveClient, fileStream, myMaxChunkSize);
// Setup the chunk request necessities
var chunkRequests = provider.GetUploadChunkRequests();
var readBuffer = new byte[myMaxChunkSize];
var trackedExceptions = new List<Exception>();
Item itemResult = null;
//upload the chunks
foreach(var request in chunkRequests)
{
// Do your updates here: update progress bar, etc.
// ...
// Send chunk request
var result = await provider.GetChunkRequestResponseAsync(request, readBuffer, trackedExceptions);
if(result.UploadSucceeded)
{
itemResult = result.ItemResponse;
}
}
// Check that upload succeeded
if (itemResult == null)
{
// Retry the upload
// ...
}
```
================================================
FILE: docs/collections.md
================================================
Collections in the OneDrive SDK for C#
=====
You can use the OneDrive SDK for C# to work with item collections in OneDrive.
## Getting a collection
To retrieve a collection, like a folder's children, you call `GetAsync`:
```csharp
await oneDriveClient
.Drive
.Items[itemId]
.Children
.Request()
.GetAsync();
```
`GetAsync` returns an `ICollectionPage<T>` implementation on success and throws a `OneDriveException` on error. For children collections, the type returned is `IChildrenCollectionPage`, which inherits `ICollectionPage<Item>`.
`IChildrenCollectionPage` contains three properties:
|Name |Description |
|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------|
|**CurrentPage** |An `IList<Item>`. |
|**NextPageRequest** |An `IChildrenPageRequest` used to get to the next page of items, if another page exists. This value will be null if there is not a next page.|
|**AdditionData** |An `IDictionary<string, object>` to any additional values returned by the service. In this case, none. |
## Adding to a collection
Some collections, like the children of a folder, can be changed. To add a folder to the children of an item, you can call the `AddAsync` method:
```csharp
var folderToCreate = new Item { Name = "New folder", Folder = new Folder() };
var newFolder = await oneDriveClient
.Drive
.Items[itemId]
.Children
.Request()
.AddAsync(folderToCreate);
```
`AddAsync` returns the created item on success and throws a `OneDriveException` on error.
## Expanding a collection
To expand a collection, you call `Expand` on the collection request object with the string value of the expand:
```csharp
var children = await oneDriveClient
.Drive
.Items[itemId]
.Children
.Request()
.Expand("thumbnails")
.GetAsync();
```
## Special collections
Some API calls will return collections with added properties. These properties will always be in the additional data dictionary. These collections are also their own objects (subclasses of `ICollectionPage<T>`) that will have these properties attached to them.
To get the delta of an item you call:
```csharp
var deltaCollectionPage = await oneDriveClient
.Drive
.Items[itemId]
.Delta(deltaToken)
.Request()
.GetAsync();
```
`IItemDeltaCollectionPage` is an `ICollectionPage<Item>` object with a `Token` property and a `DeltaLink` property. The token link can be used to pass into `Delta:` when you want to check for more changes. You can also construct a delta request with the `DeltaLink` property. The `NextPageRequest` is an `IItemDeltaRequest` to be used for paging purposes and will be null when there are no more changes.
================================================
FILE: docs/errors.md
================================================
Handling errors in the OneDrive SDK for C#
=====
Errors in the OneDrive SDK for C# behave just like errors returned from the OneDrive service. You can read more about them [here](https://github.com/OneDrive/onedrive-api-docs/blob/master/misc/errors.md).
Anytime you make a request against the service there is the potential for an error. You will see that all requests to the service can return an error. In the case of an error, the request will throw a `OneDriveException` object with an inner `Error` object that contains the service error details.
## Checking the error
There are a few different types of errors that can occur during a network call. These error codes are defined in [OneDriveErrorCodes.cs](../src/OneDriveSdk/Enums/OneDriveErrorCodes.cs).
### Checking the error code
You can easily check if an error has a specific code by calling `IsMatch` on the error code value. `IsMatch` is not case sensitive:
```csharp
if (exception.IsMatch(OneDriveErrorCode.AccessDenied.ToString())
{
// Handle access denied error
}
```
Each error object has a `Message` property as well as code. This message is for debugging purposes and is not be meant to be displayed to the user. Common error codes are defined in [OneDriveErrorCodes.cs](../src/OneDriveSdk/Enums/OneDriveErrorCodes.cs).
### Authentication errors
There can be errors during the authentication process. Authentication errors will have the code `AuthenticationFailed`. Authentication cancelled errors will have the code `AuthenticationCancelled`.
```csharp
if (exception.IsMatch(OneDriveErrorCode.AuthenticationFailure.ToString())
{
// Handle auth error
}
```
The `Message` property will contain more detailed error information if available.
================================================
FILE: docs/items.md
================================================
Items in the OneDrive SDK for C#
=====
Items in the OneDrive SDK for C# behave just like items through the OneDrive API. All actions on items described in the OneDrive API are available through the SDK. For more information, see the [Items Reference](https://dev.onedrive.com/README.htm#item-resource).
The examples below assume that you have [Authenticated](/docs/auth.md) your app with a **OneDriveClient** object.
* [Get an Item](#get-an-item)
* [Delete an Item](#delete-an-item)
* [Get Children for an Item](#get-children-for-an-item)
* [Create a folder](#create-a-folder)
* [Uploading contents](#uploading-contents)
* [Downloading contents](#downloading-contents)
* [Moving and updating an Item](#moving-and-updating-an-item)
* [Copy an Item](#copy-an-item)
Get an Item
---------------
### 1. By ID
```csharp
var item = await oneDriveClient
.Items[itemId]
.Request()
.GetAsync();
```
### 2. By path
```csharp
var item = await oneDriveClient
.Drive
.Root
.ItemWithPath("path/to/file/txt")
.Request()
.GetAsync();
```
Access an item by parent reference path:
```csharp
var item = await oneDriveClient
.ItemWithPath(parentItem.ParentReference.Path + "/" + parentItem.Name + "/relative/path")
.Request()
.GetAsync();
```
Delete an Item
---------------
```csharp
await oneDriveClient
.Drive
.Items[itemId]
.Request()
.DeleteAsync();
```
Get children for an Item
-------------------------
More info about collections [here](/docs/collections.md).
```csharp
await oneDriveClient
.Drive
.Items[itemId]
.Children
.Request()
.GetAsync();
```
Create a folder
-------------------------
### 1. By POST to a known folder ID
```csharp
var folderToCreate = new Item { Folder = new Folder(), Name = "folder name" };
var createdFolder = await oneDriveClient
.Drive
.Items[itemId]
.Children
.Request()
.AddAsync(folderToCreate);
```
### 2. By PUT to a known folder ID
```csharp
var folderToCreate = new Item { Folder = new Folder() };
var createdFolder = await oneDriveClient
.Drive
.Items[itemId]
.ItemWithPath("folder name")
.Request()
.CreateAsync(folderToCreate);
```
### 3. By PUT with a given path
```csharp
var folderToCreate = new Item { Folder = new Folder() };
var createdFolder = await oneDriveClient
.Drive
.Root
.ItemWithPath("folder/subfolder")
.Request()
.CreateAsync(folderToCreate);
```
Note: If the specified path does not exist, every folder name in the path will also be created.
Uploading contents
------------------------------
```csharp
using (contentStream)
{
var uploadedItem = await oneDriveClient
.Drive
.Root
.ItemWithPath("path/to/file.txt")
.Content
.Request()
.PutAsync<Item>(contentStream);
}
```
Downloading contents
------------------------------
```csharp
var contentStream = await oneDriveClient
.Drive
.Items[itemId]
.Content
.Request()
.GetAsync();
```
Moving and updating an Item
--------------
To [move](https://dev.onedrive.com/items/move.htm) an item you must update its parent reference.
```csharp
var updateItem = new Item { ParentReference = new ItemReference { Id = newParentId } };
var itemWithUpdates = await oneDriveClient
.Drive
.Items[itemId]
.Request()
.UpdateAsync(updateItem);
```
To change an item's name you could:
```csharp
var updateItem = new Item { Name = "New name!" };
var itemWithUpdates = await oneDriveClient
.Drive
.Items[itemId]
.Request()
.UpdateAsync(updateItem);
```
Copy an Item
---------------
Copying an item is an async action described [here](https://dev.onedrive.com/items/copy.htm).
```csharp
var asyncStatus = await oneDriveClient
.Drive
.Items[itemId]
.Copy(newItemName, new ItemReference { Id = copyLocationId })
.Request()
.PostAsync();
```
The `Copy` action returns an `IItemCopyAsyncMonitor` instance that has a method to poll the monitor URL for completion. The poll method returns the created item on completion.
To poll until the copy action completes:
```csharp
var newItem = await asyncStatus.CompleteOperationAsync(null, CancellationToken.None);
```
`CompleteOperationAsync` takes in an `IProgress<AsyncOperationStatus>` for reporting back progress status and a `CancellationToken` for action cancellation. The method will poll until completion unless cancelled.
================================================
FILE: docs/overview.md
================================================
OneDrive SDK for CSharp overview
=====
The OneDrive C# SDK is designed to look just like the [OneDrive API](https://github.com/onedrive/onedrive-api-docs/).
## OneDriveClient
When accessing the OneDrive APIs, all requests will be made through a **OneDriveClient** object. For a more detailed explanation, see [Authentication](/docs/auth.md).
## Resource model
Resources, like [items](/docs/items.md) or drives, are represented by `Item` and `Drive`. These objects contain properties that represent the properties of a resource. These objects are property bags and cannot make calls against the service.
To get the name of an item you would address the `Name` property. It is possible for any of these properties to be null at any time. To check if an item is a folder you can address the `Folder` property of the item. If the item is a folder, a `Folder` object that contains all of the properties described by the [folder](https://github.com/OneDrive/onedrive-api-docs/blob/master/facets/folder_facet.md) facet will be returned.
See [Resource model](https://github.com/onedrive/onedrive-api-docs/#resource-model) for more information.
## Requests
To make requests against the service, you construct request objects using a request builder object. The type of the request builder will depend on the type of the object you are addressing. This is meant to mimic creating the URL for any of the OneDrive APIs.
### 1. Request builders
To generate a request you chain together calls on request builder objects. You get the first request builder from the `OneDriveClient` object. To get a drive request builder you call:
|Task | SDK | URL |
|:---------------|:---------------------:|:--------------------------------|
|Get a drive | oneDriveClient.Drive | GET api.onedrive.com/v1.0/drive/|
The call will return an `IDriveRequestBuilder` object. From drive you can continue to chain the requests to get everything else in the API, like an item.
|Task | SDK | URL |
|:---------------|:------------------------------------:|:------------------------------------------|
|Get an item | oneDriveClient.Drive.Items["1234"] | GET api.onedrive.com/v1.0/drive/items/1234|
Here `oneDriveClient.Drive` returns an `IDriveRequestBuilder` that contains a property `Items` of type `IItemsCollectionRequestBuilder`. That builder has an accessor for the item ID and Items["1234"] returns an `IItemRequestBuilder`.
Similarly to get thumbnails:
|Task | SDK | URL |
|----------------|--------------------------------|--------------------------|
| Get thumbnails | ... Items["1234"].Thumbnails | .../items/1234/thumbnails|
Here, `oneDriveClient.Drive.Items["1234"]` returns an `IItemRequestBuilder` that contains the property Thumbnails of type `IThumbnailsCollectionRequestBuilder`.
This returns a collection of [thumbnail sets](https://github.com/OneDrive/onedrive-api-docs/blob/master/resources/thumbnailSet.md). To index the collection directly you can call:
|Task | SDK | URL |
|-------------------|-------------------------------------|----------------------------|
| Get thumbnail Set | ... Items["1234"].Thumbnails["0"] | ...items/1234/thumbnails/0 |
To return a thumbnail set, and to get a specific [thumbnail](https://github.com/OneDrive/onedrive-api-docs/blob/master/resources/thumbnail.md), you can add the name of the thumbnail to the URL like this:
|Task | SDK | URL |
|-----------------|-----------------------------|------------------------|
| Get a thumbnail | ... Thumbnails["0"].Small | .../thumbnails/0/small |
### 2. Request calls
After you build the request you call the `Request` method on the request builder. This will construct the request object needed to make calls against the service.
For an item you call:
```csharp
var itemRequest = oneDriveClient
.Drive
.Items[itemId]
.Request();
```
All request builders have a `Request` method that can generate a request object. Request objects may have different methods on them depending on the type of request. To get an item you call:
```csharp
var item = await oneDriveClient
.Drive
.Items[itemId]
.Request()
.GetAsync();
```
For more info, see [items](/docs/items.md) and [errors](/docs/errors.md).
## Query options
If you only want to retrieve certain properties of a resource you can select them. Here's how to get only the names and IDs of an item:
```csharp
var item = await oneDriveClient
.Drive
.Items[itemId]
.Request()
.Select("name,id")
.GetAsync();
```
All properties other than `Name` and `Id` will be null on the item.
To expand certain properties on resources you can call a similar expand method, like this:
```csharp
var item = await oneDriveClient
.Drive
.Items[itemId]
.Request()
.Expand("thumbnails,children(expand=thumbnails)")
.GetAsync();
```
The above call will expand thumbnails and children for the item, as well as thumbnails for all of the children.
================================================
FILE: src/OneDriveSdk/Constants.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
namespace Microsoft.OneDrive.Sdk
{
public static class Constants
{
public const int PollingIntervalInMs = 5000;
public static class Headers
{
public const string SdkVersionHeaderPrefix = "onedrive";
}
public static class Url
{
public const string Drive = "drive";
public const string Root = "root";
public const string AppRoot = "approot";
public const string Documents = "documents";
public const string Photos = "photos";
public const string CameraRoll = "cameraroll";
public const string Music = "music";
}
}
}
================================================
FILE: src/OneDriveSdk/Enums/OneDriveErrorCode.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
namespace Microsoft.OneDrive.Sdk
{
public enum OneDriveErrorCode
{
AccessDenied,
ActivityLimitReached,
GeneralException,
InvalidRange,
InvalidRequest,
ItemNotFound,
MalwareDetected,
NameAlreadyExists,
NotAllowed,
NotSupported,
ResourceModified,
ResyncRequired,
ServiceNotAvailable,
Timeout,
TooManyRedirects,
QuotaLimitReached,
Unauthenticated,
}
}
================================================
FILE: src/OneDriveSdk/Helpers/ChunkedUploadProvider.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
namespace Microsoft.OneDrive.Sdk.Helpers
{
using Microsoft.Graph;
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
/// <summary>
/// Use this class to make resumable uploads or to upload large files. This
/// class allows the client to control the size of chunks uploaded (for example, can be useful
/// to use small chunks if the connection is slow). Also allows the client to
/// pause an upload and resume later.
/// </summary>
public class ChunkedUploadProvider
{
private const int DefaultMaxChunkSize = 5 * 1024 * 1024;
private const int RequiredChunkSizeIncrement = 320 * 1024;
public UploadSession Session { get; private set; }
private IBaseClient client;
private Stream uploadStream;
private readonly int maxChunkSize;
private List<Tuple<long, long>> rangesRemaining;
private long totalUploadLength => uploadStream.Length;
/// <summary>
/// Helps with resumable uploads. Generates chunk requests based on <paramref name="session"/>
/// information, and can control uploading of requests using <paramref name="client"/>
/// </summary>
/// <param name="session">Session information.</param>
/// <param name="client">Client used to upload chunks.</param>
/// <param name="uploadStream">Readable, seekable stream to be uploaded. Length of session is determined via uploadStream.Length</param>
/// <param name="maxChunkSize">Max size of each chunk to be uploaded. Multiple of 320 KiB (320 * 1024) is required.
/// If less than 0, default value of 5 MiB is used. .</param>
public ChunkedUploadProvider(UploadSession session, IBaseClient client, Stream uploadStream, int maxChunkSize = -1)
{
if (!uploadStream.CanRead || !uploadStream.CanSeek)
{
throw new ArgumentException("Must provide stream that can read and seek");
}
this.Session = session;
this.client = client;
this.uploadStream = uploadStream;
this.rangesRemaining = this.GetRangesRemaining(session);
this.maxChunkSize = maxChunkSize < 0 ? DefaultMaxChunkSize : maxChunkSize;
if (this.maxChunkSize % RequiredChunkSizeIncrement != 0)
{
throw new ArgumentException("Max chunk size must be a multiple of 320 KiB", nameof(maxChunkSize));
}
}
/// <summary>
/// Get the series of requests needed to complete the upload session. Call <see cref="UpdateSessionStatusAsync"/>
/// first to update the internal session information.
/// </summary>
/// <param name="options">Options to be applied to each request.</param>
/// <returns>All requests currently needed to complete the upload session.</returns>
public virtual IEnumerable<UploadChunkRequest> GetUploadChunkRequests(IEnumerable<Option> options = null)
{
foreach (var range in this.rangesRemaining)
{
var currentRangeBegins = range.Item1;
while (currentRangeBegins <= range.Item2)
{
var nextChunkSize = NextChunkSize(currentRangeBegins, range.Item2);
var uploadRequest = new UploadChunkRequest(
this.Session.UploadUrl,
this.client,
options,
currentRangeBegins,
currentRangeBegins + nextChunkSize - 1,
this.totalUploadLength);
yield return uploadRequest;
currentRangeBegins += nextChunkSize;
}
}
}
/// <summary>
/// Get the status of the session. Stores returned session internally.
/// Updates internal list of ranges remaining to be uploaded (according to the server).
/// </summary>
/// <returns>UploadSession returned by the server.</returns>
public virtual async Task<UploadSession> UpdateSessionStatusAsync()
{
var request = new UploadSessionRequest(this.Session, this.client, null);
var newSession = await request.GetAsync();
var newRangesRemaining = this.GetRangesRemaining(newSession);
this.rangesRemaining = newRangesRemaining;
newSession.UploadUrl = this.Session.UploadUrl; // Sometimes the UploadUrl is not returned
this.Session = newSession;
return newSession;
}
/// <summary>
/// Delete the session.
/// </summary>
/// <returns>Once returned task is complete, the session has been deleted.</returns>
public async Task DeleteSession()
{
var request = new UploadSessionRequest(this.Session, this.client, null);
await request.DeleteAsync();
}
/// <summary>
/// Upload the whole session.
/// </summary>
/// <param name="maxTries">Number of times to retry entire session before giving up.</param>
/// <returns>Item information returned by server.</returns>
public async Task<Item> UploadAsync(int maxTries = 3, IEnumerable<Option> options = null)
{
var uploadTries = 0;
var readBuffer = new byte[this.maxChunkSize];
var trackedExceptions = new List<Exception>();
while (uploadTries < maxTries)
{
var chunkRequests = this.GetUploadChunkRequests(options);
foreach (var request in chunkRequests)
{
var result = await this.GetChunkRequestResponseAsync(request, readBuffer, trackedExceptions);
if (result.UploadSucceeded)
{
return result.ItemResponse;
}
}
await this.UpdateSessionStatusAsync();
uploadTries += 1;
if (uploadTries < maxTries)
{
// Exponential backoff in case of failures.
await Task.Delay(2000 * uploadTries * uploadTries).ConfigureAwait(false);
}
}
throw new TaskCanceledException("Upload failed too many times. See InnerException for list of exceptions that occured.", new AggregateException(trackedExceptions.ToArray()));
}
public virtual async Task<UploadChunkResult> GetChunkRequestResponseAsync(UploadChunkRequest request, byte[] readBuffer, ICollection<Exception> exceptionTrackingList)
{
var firstAttempt = true;
this.uploadStream.Seek(request.RangeBegin, SeekOrigin.Begin);
await this.uploadStream.ReadAsync(readBuffer, 0, request.RangeLength).ConfigureAwait(false);
while (true)
{
using (var requestBodyStream = new MemoryStream(request.RangeLength))
{
await requestBodyStream.WriteAsync(readBuffer, 0, request.RangeLength).ConfigureAwait(false);
requestBodyStream.Seek(0, SeekOrigin.Begin);
try
{
return await request.PutAsync(requestBodyStream).ConfigureAwait(false);
}
catch (ServiceException exception)
{
if (exception.IsMatch("generalException") || exception.IsMatch("timeout"))
{
if (firstAttempt)
{
firstAttempt = false;
exceptionTrackingList.Add(exception);
}
else
{
throw;
}
}
else if (exception.IsMatch("invalidRange"))
{
// Succeeded previously, but nothing to return right now
return new UploadChunkResult();
}
else
{
throw;
}
}
}
}
}
internal List<Tuple<long, long>> GetRangesRemaining(UploadSession session)
{
// nextExpectedRanges: https://dev.onedrive.com/items/upload_large_files.htm
// Sample: ["12345-55232","77829-99375"]
// Also, second number in range can be blank, which means 'until the end'
var newRangesRemaining = new List<Tuple<long, long>>();
foreach (var range in session.NextExpectedRanges)
{
var rangeSpecifiers = range.Split('-');
newRangesRemaining.Add(new Tuple<long, long>(long.Parse(rangeSpecifiers[0]),
string.IsNullOrEmpty(rangeSpecifiers[1]) ? this.totalUploadLength - 1 : long.Parse(rangeSpecifiers[1])));
}
return newRangesRemaining;
}
private int NextChunkSize(long rangeBegin, long rangeEnd)
{
var sizeBasedOnRange = (int) (rangeEnd - rangeBegin) + 1;
return sizeBasedOnRange > this.maxChunkSize
? this.maxChunkSize
: sizeBasedOnRange;
}
}
}
================================================
FILE: src/OneDriveSdk/Microsoft.OneDrive.Sdk.csproj
================================================
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<MinimumVisualStudioVersion>10.0</MinimumVisualStudioVersion>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{1368527B-D7B2-46AD-893D-6DC8C073D819}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Microsoft.OneDrive.Sdk</RootNamespace>
<AssemblyName>Microsoft.OneDrive.Sdk</AssemblyName>
<DefaultLanguage>en-US</DefaultLanguage>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<TargetFrameworkProfile>Profile111</TargetFrameworkProfile>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<SignAssembly>true</SignAssembly>
<DelaySign>true</DelaySign>
<AssemblyOriginatorKeyFile>..\..\build\35MSSharedLib1024.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Compile Include="Constants.cs" />
<Compile Include="Enums\OneDriveErrorCode.cs" />
<Compile Include="Helpers\ChunkedUploadProvider.cs" />
<Compile Include="Models\Generated\*.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Requests\Extensions\DriveRequestBuilderExtensions.cs" />
<Compile Include="Requests\Extensions\DriveSpecialCollectionRequestBuilderExtensions.cs" />
<Compile Include="Requests\Extensions\IDriveRequestBuilderExtensions.cs" />
<Compile Include="Requests\Extensions\IDriveSpecialCollectionRequestBuilderExtensions.cs" />
<Compile Include="Requests\Extensions\IItemRequestBuilderExtensions.cs" />
<Compile Include="Requests\Extensions\IOneDriveClientExtensions.cs" />
<Compile Include="Requests\Extensions\IShareRequestBuilderExtensions.cs" />
<Compile Include="Requests\Extensions\ItemRequestBuilderExtensions.cs" />
<Compile Include="Requests\Extensions\IThumbnailSetRequestBuilderExtensions.cs" />
<Compile Include="Requests\Extensions\OneDriveClientExtensions.cs" />
<Compile Include="Requests\Extensions\ShareRequestBuilderExtensions.cs" />
<Compile Include="Requests\Extensions\ThumbnailSetExtensions.cs" />
<Compile Include="Requests\Extensions\ThumbnailSetRequestBuilderExtensions.cs" />
<Compile Include="Requests\Generated\*.cs" />
<Compile Include="Requests\IUploadChunkRequest.cs" />
<Compile Include="Requests\IThumbnailRequest.cs" />
<Compile Include="Requests\IThumbnailRequestBuilder.cs" />
<Compile Include="Requests\UploadChunkRequest.cs" />
<Compile Include="Requests\ThumbnailRequest.cs" />
<Compile Include="Requests\ThumbnailRequestBuilder.cs" />
<Compile Include="Requests\UploadSessionRequest.cs" />
</ItemGroup>
<ItemGroup>
<Reference Include="Microsoft.Graph.Core, Version=1.3.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\packages\Microsoft.Graph.Core.1.3.1\lib\portable45-net45+win8+wpa81\Microsoft.Graph.Core.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\..\packages\Newtonsoft.Json.9.0.1\lib\portable-net45+wp80+win8+wpa81\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config">
<SubType>Designer</SubType>
</None>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>xcopy /Y /I "$(TargetDir)$(TargetName).dll" "$(SolutionDir)lib\"</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
================================================
FILE: src/OneDriveSdk/Models/Generated/Audio.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type Audio.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class Audio
{
/// <summary>
/// Gets or sets album.
/// </summary>
[DataMember(Name = "album", EmitDefaultValue = false, IsRequired = false)]
public string Album { get; set; }
/// <summary>
/// Gets or sets albumArtist.
/// </summary>
[DataMember(Name = "albumArtist", EmitDefaultValue = false, IsRequired = false)]
public string AlbumArtist { get; set; }
/// <summary>
/// Gets or sets artist.
/// </summary>
[DataMember(Name = "artist", EmitDefaultValue = false, IsRequired = false)]
public string Artist { get; set; }
/// <summary>
/// Gets or sets bitrate.
/// </summary>
[DataMember(Name = "bitrate", EmitDefaultValue = false, IsRequired = false)]
public Int64? Bitrate { get; set; }
/// <summary>
/// Gets or sets composers.
/// </summary>
[DataMember(Name = "composers", EmitDefaultValue = false, IsRequired = false)]
public string Composers { get; set; }
/// <summary>
/// Gets or sets copyright.
/// </summary>
[DataMember(Name = "copyright", EmitDefaultValue = false, IsRequired = false)]
public string Copyright { get; set; }
/// <summary>
/// Gets or sets disc.
/// </summary>
[DataMember(Name = "disc", EmitDefaultValue = false, IsRequired = false)]
public Int16? Disc { get; set; }
/// <summary>
/// Gets or sets discCount.
/// </summary>
[DataMember(Name = "discCount", EmitDefaultValue = false, IsRequired = false)]
public Int16? DiscCount { get; set; }
/// <summary>
/// Gets or sets duration.
/// </summary>
[DataMember(Name = "duration", EmitDefaultValue = false, IsRequired = false)]
public Int64? Duration { get; set; }
/// <summary>
/// Gets or sets genre.
/// </summary>
[DataMember(Name = "genre", EmitDefaultValue = false, IsRequired = false)]
public string Genre { get; set; }
/// <summary>
/// Gets or sets hasDrm.
/// </summary>
[DataMember(Name = "hasDrm", EmitDefaultValue = false, IsRequired = false)]
public bool? HasDrm { get; set; }
/// <summary>
/// Gets or sets isVariableBitrate.
/// </summary>
[DataMember(Name = "isVariableBitrate", EmitDefaultValue = false, IsRequired = false)]
public bool? IsVariableBitrate { get; set; }
/// <summary>
/// Gets or sets title.
/// </summary>
[DataMember(Name = "title", EmitDefaultValue = false, IsRequired = false)]
public string Title { get; set; }
/// <summary>
/// Gets or sets track.
/// </summary>
[DataMember(Name = "track", EmitDefaultValue = false, IsRequired = false)]
public Int32? Track { get; set; }
/// <summary>
/// Gets or sets trackCount.
/// </summary>
[DataMember(Name = "trackCount", EmitDefaultValue = false, IsRequired = false)]
public Int32? TrackCount { get; set; }
/// <summary>
/// Gets or sets year.
/// </summary>
[DataMember(Name = "year", EmitDefaultValue = false, IsRequired = false)]
public Int32? Year { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/ChunkedUploadSessionDescriptor.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type ChunkedUploadSessionDescriptor.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class ChunkedUploadSessionDescriptor
{
/// <summary>
/// Gets or sets name.
/// </summary>
[DataMember(Name = "name", EmitDefaultValue = false, IsRequired = false)]
public string Name { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/Deleted.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type Deleted.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class Deleted
{
/// <summary>
/// Gets or sets state.
/// </summary>
[DataMember(Name = "state", EmitDefaultValue = false, IsRequired = false)]
public string State { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/Drive.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type Drive.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class Drive
{
/// <summary>
/// Gets or sets id.
/// </summary>
[DataMember(Name = "id", EmitDefaultValue = false, IsRequired = false)]
public string Id { get; set; }
/// <summary>
/// Gets or sets drive type.
/// </summary>
[DataMember(Name = "driveType", EmitDefaultValue = false, IsRequired = false)]
public string DriveType { get; set; }
/// <summary>
/// Gets or sets owner.
/// </summary>
[DataMember(Name = "owner", EmitDefaultValue = false, IsRequired = false)]
public IdentitySet Owner { get; set; }
/// <summary>
/// Gets or sets quota.
/// </summary>
[DataMember(Name = "quota", EmitDefaultValue = false, IsRequired = false)]
public Quota Quota { get; set; }
/// <summary>
/// Gets or sets items.
/// </summary>
[DataMember(Name = "items", EmitDefaultValue = false, IsRequired = false)]
public IDriveItemsCollectionPage Items { get; set; }
/// <summary>
/// Gets or sets shared.
/// </summary>
[DataMember(Name = "shared", EmitDefaultValue = false, IsRequired = false)]
public IDriveSharedCollectionPage Shared { get; set; }
/// <summary>
/// Gets or sets special.
/// </summary>
[DataMember(Name = "special", EmitDefaultValue = false, IsRequired = false)]
public IDriveSpecialCollectionPage Special { get; set; }
/// <summary>
/// Gets or sets @odata.type.
/// </summary>
[DataMember(Name = "@odata.type", EmitDefaultValue = false, IsRequired = false)]
public string ODataType { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true, WriteData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/File.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type File.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class File
{
/// <summary>
/// Gets or sets hashes.
/// </summary>
[DataMember(Name = "hashes", EmitDefaultValue = false, IsRequired = false)]
public Hashes Hashes { get; set; }
/// <summary>
/// Gets or sets mimeType.
/// </summary>
[DataMember(Name = "mimeType", EmitDefaultValue = false, IsRequired = false)]
public string MimeType { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/FileSystemInfo.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type FileSystemInfo.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class FileSystemInfo
{
/// <summary>
/// Gets or sets createdDateTime.
/// </summary>
[DataMember(Name = "createdDateTime", EmitDefaultValue = false, IsRequired = false)]
public DateTimeOffset? CreatedDateTime { get; set; }
/// <summary>
/// Gets or sets lastModifiedDateTime.
/// </summary>
[DataMember(Name = "lastModifiedDateTime", EmitDefaultValue = false, IsRequired = false)]
public DateTimeOffset? LastModifiedDateTime { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/Folder.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type Folder.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class Folder
{
/// <summary>
/// Gets or sets childCount.
/// </summary>
[DataMember(Name = "childCount", EmitDefaultValue = false, IsRequired = false)]
public Int32? ChildCount { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/Hashes.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type Hashes.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class Hashes
{
/// <summary>
/// Gets or sets crc32Hash.
/// </summary>
[DataMember(Name = "crc32Hash", EmitDefaultValue = false, IsRequired = false)]
public string Crc32Hash { get; set; }
/// <summary>
/// Gets or sets sha1Hash.
/// </summary>
[DataMember(Name = "sha1Hash", EmitDefaultValue = false, IsRequired = false)]
public string Sha1Hash { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/Identity.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type Identity.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class Identity
{
/// <summary>
/// Gets or sets displayName.
/// </summary>
[DataMember(Name = "displayName", EmitDefaultValue = false, IsRequired = false)]
public string DisplayName { get; set; }
/// <summary>
/// Gets or sets id.
/// </summary>
[DataMember(Name = "id", EmitDefaultValue = false, IsRequired = false)]
public string Id { get; set; }
/// <summary>
/// Gets or sets thumbnails.
/// </summary>
[DataMember(Name = "thumbnails", EmitDefaultValue = false, IsRequired = false)]
public ThumbnailSet Thumbnails { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/IdentitySet.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type IdentitySet.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class IdentitySet
{
/// <summary>
/// Gets or sets application.
/// </summary>
[DataMember(Name = "application", EmitDefaultValue = false, IsRequired = false)]
public Identity Application { get; set; }
/// <summary>
/// Gets or sets device.
/// </summary>
[DataMember(Name = "device", EmitDefaultValue = false, IsRequired = false)]
public Identity Device { get; set; }
/// <summary>
/// Gets or sets user.
/// </summary>
[DataMember(Name = "user", EmitDefaultValue = false, IsRequired = false)]
public Identity User { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/Image.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type Image.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class Image
{
/// <summary>
/// Gets or sets height.
/// </summary>
[DataMember(Name = "height", EmitDefaultValue = false, IsRequired = false)]
public Int32? Height { get; set; }
/// <summary>
/// Gets or sets width.
/// </summary>
[DataMember(Name = "width", EmitDefaultValue = false, IsRequired = false)]
public Int32? Width { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/Item.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type Item.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class Item
{
/// <summary>
/// Gets or sets content.
/// </summary>
[DataMember(Name = "content", EmitDefaultValue = false, IsRequired = false)]
public Stream Content { get; set; }
/// <summary>
/// Gets or sets created by.
/// </summary>
[DataMember(Name = "createdBy", EmitDefaultValue = false, IsRequired = false)]
public IdentitySet CreatedBy { get; set; }
/// <summary>
/// Gets or sets created date time.
/// </summary>
[DataMember(Name = "createdDateTime", EmitDefaultValue = false, IsRequired = false)]
public DateTimeOffset? CreatedDateTime { get; set; }
/// <summary>
/// Gets or sets c tag.
/// </summary>
[DataMember(Name = "cTag", EmitDefaultValue = false, IsRequired = false)]
public string CTag { get; set; }
/// <summary>
/// Gets or sets description.
/// </summary>
[DataMember(Name = "description", EmitDefaultValue = false, IsRequired = false)]
public string Description { get; set; }
/// <summary>
/// Gets or sets e tag.
/// </summary>
[DataMember(Name = "eTag", EmitDefaultValue = false, IsRequired = false)]
public string ETag { get; set; }
/// <summary>
/// Gets or sets id.
/// </summary>
[DataMember(Name = "id", EmitDefaultValue = false, IsRequired = false)]
public string Id { get; set; }
/// <summary>
/// Gets or sets last modified by.
/// </summary>
[DataMember(Name = "lastModifiedBy", EmitDefaultValue = false, IsRequired = false)]
public IdentitySet LastModifiedBy { get; set; }
/// <summary>
/// Gets or sets last modified date time.
/// </summary>
[DataMember(Name = "lastModifiedDateTime", EmitDefaultValue = false, IsRequired = false)]
public DateTimeOffset? LastModifiedDateTime { get; set; }
/// <summary>
/// Gets or sets name.
/// </summary>
[DataMember(Name = "name", EmitDefaultValue = false, IsRequired = false)]
public string Name { get; set; }
/// <summary>
/// Gets or sets parent reference.
/// </summary>
[DataMember(Name = "parentReference", EmitDefaultValue = false, IsRequired = false)]
public ItemReference ParentReference { get; set; }
/// <summary>
/// Gets or sets size.
/// </summary>
[DataMember(Name = "size", EmitDefaultValue = false, IsRequired = false)]
public Int64? Size { get; set; }
/// <summary>
/// Gets or sets web url.
/// </summary>
[DataMember(Name = "webUrl", EmitDefaultValue = false, IsRequired = false)]
public string WebUrl { get; set; }
/// <summary>
/// Gets or sets audio.
/// </summary>
[DataMember(Name = "audio", EmitDefaultValue = false, IsRequired = false)]
public Audio Audio { get; set; }
/// <summary>
/// Gets or sets deleted.
/// </summary>
[DataMember(Name = "deleted", EmitDefaultValue = false, IsRequired = false)]
public Deleted Deleted { get; set; }
/// <summary>
/// Gets or sets file.
/// </summary>
[DataMember(Name = "file", EmitDefaultValue = false, IsRequired = false)]
public File File { get; set; }
/// <summary>
/// Gets or sets file system info.
/// </summary>
[DataMember(Name = "fileSystemInfo", EmitDefaultValue = false, IsRequired = false)]
public FileSystemInfo FileSystemInfo { get; set; }
/// <summary>
/// Gets or sets folder.
/// </summary>
[DataMember(Name = "folder", EmitDefaultValue = false, IsRequired = false)]
public Folder Folder { get; set; }
/// <summary>
/// Gets or sets image.
/// </summary>
[DataMember(Name = "image", EmitDefaultValue = false, IsRequired = false)]
public Image Image { get; set; }
/// <summary>
/// Gets or sets location.
/// </summary>
[DataMember(Name = "location", EmitDefaultValue = false, IsRequired = false)]
public Location Location { get; set; }
/// <summary>
/// Gets or sets open with.
/// </summary>
[DataMember(Name = "openWith", EmitDefaultValue = false, IsRequired = false)]
public OpenWithSet OpenWith { get; set; }
/// <summary>
/// Gets or sets photo.
/// </summary>
[DataMember(Name = "photo", EmitDefaultValue = false, IsRequired = false)]
public Photo Photo { get; set; }
/// <summary>
/// Gets or sets remote item.
/// </summary>
[DataMember(Name = "remoteItem", EmitDefaultValue = false, IsRequired = false)]
public Item RemoteItem { get; set; }
/// <summary>
/// Gets or sets search result.
/// </summary>
[DataMember(Name = "searchResult", EmitDefaultValue = false, IsRequired = false)]
public SearchResult SearchResult { get; set; }
/// <summary>
/// Gets or sets shared.
/// </summary>
[DataMember(Name = "shared", EmitDefaultValue = false, IsRequired = false)]
public Shared Shared { get; set; }
/// <summary>
/// Gets or sets special folder.
/// </summary>
[DataMember(Name = "specialFolder", EmitDefaultValue = false, IsRequired = false)]
public SpecialFolder SpecialFolder { get; set; }
/// <summary>
/// Gets or sets video.
/// </summary>
[DataMember(Name = "video", EmitDefaultValue = false, IsRequired = false)]
public Video Video { get; set; }
/// <summary>
/// Gets or sets permissions.
/// </summary>
[DataMember(Name = "permissions", EmitDefaultValue = false, IsRequired = false)]
public IItemPermissionsCollectionPage Permissions { get; set; }
/// <summary>
/// Gets or sets versions.
/// </summary>
[DataMember(Name = "versions", EmitDefaultValue = false, IsRequired = false)]
public IItemVersionsCollectionPage Versions { get; set; }
/// <summary>
/// Gets or sets children.
/// </summary>
[DataMember(Name = "children", EmitDefaultValue = false, IsRequired = false)]
public IItemChildrenCollectionPage Children { get; set; }
/// <summary>
/// Gets or sets thumbnails.
/// </summary>
[DataMember(Name = "thumbnails", EmitDefaultValue = false, IsRequired = false)]
public IItemThumbnailsCollectionPage Thumbnails { get; set; }
/// <summary>
/// Gets or sets @odata.type.
/// </summary>
[DataMember(Name = "@odata.type", EmitDefaultValue = false, IsRequired = false)]
public string ODataType { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true, WriteData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/ItemCopyRequestBody.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
/// <summary>
/// The type ItemCopyRequestBody.
/// </summary>
[DataContract]
public partial class ItemCopyRequestBody
{
/// <summary>
/// Gets or sets Name.
/// </summary>
[DataMember(Name = "name", EmitDefaultValue = false, IsRequired = false)]
public string Name { get; set; }
/// <summary>
/// Gets or sets ParentReference.
/// </summary>
[DataMember(Name = "parentReference", EmitDefaultValue = false, IsRequired = false)]
public ItemReference ParentReference { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/ItemCreateLinkRequestBody.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
/// <summary>
/// The type ItemCreateLinkRequestBody.
/// </summary>
[DataContract]
public partial class ItemCreateLinkRequestBody
{
/// <summary>
/// Gets or sets Type.
/// </summary>
[DataMember(Name = "type", EmitDefaultValue = false, IsRequired = false)]
public string Type { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/ItemCreateSessionRequestBody.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
/// <summary>
/// The type ItemCreateSessionRequestBody.
/// </summary>
[DataContract]
public partial class ItemCreateSessionRequestBody
{
/// <summary>
/// Gets or sets Item.
/// </summary>
[DataMember(Name = "item", EmitDefaultValue = false, IsRequired = false)]
public ChunkedUploadSessionDescriptor Item { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/ItemInviteRequestBody.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
/// <summary>
/// The type ItemCreateLinkRequestBody.
/// </summary>
[DataContract]
public partial class ItemInviteRequestBody
{
[DataMember(Name = "requireSignIn", EmitDefaultValue = false, IsRequired = false)]
public bool RequireSignIn { get; set; }
[DataMember(Name = "sendInvitation", EmitDefaultValue = false, IsRequired = false)]
public bool SendInvitation { get; set; }
[DataMember(Name = "roles", EmitDefaultValue = false, IsRequired = false)]
public string[] Roles { get; set; }
[DataMember(Name = "recipients", EmitDefaultValue = false, IsRequired = false)]
public Recipient[] Recipients { get; set; }
[DataMember(Name = "message", EmitDefaultValue = false, IsRequired = false)]
public string Message { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/ItemReference.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type ItemReference.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class ItemReference
{
/// <summary>
/// Gets or sets driveId.
/// </summary>
[DataMember(Name = "driveId", EmitDefaultValue = false, IsRequired = false)]
public string DriveId { get; set; }
/// <summary>
/// Gets or sets id.
/// </summary>
[DataMember(Name = "id", EmitDefaultValue = false, IsRequired = false)]
public string Id { get; set; }
/// <summary>
/// Gets or sets path.
/// </summary>
[DataMember(Name = "path", EmitDefaultValue = false, IsRequired = false)]
public string Path { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/Location.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type Location.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class Location
{
/// <summary>
/// Gets or sets altitude.
/// </summary>
[DataMember(Name = "altitude", EmitDefaultValue = false, IsRequired = false)]
public double? Altitude { get; set; }
/// <summary>
/// Gets or sets latitude.
/// </summary>
[DataMember(Name = "latitude", EmitDefaultValue = false, IsRequired = false)]
public double? Latitude { get; set; }
/// <summary>
/// Gets or sets longitude.
/// </summary>
[DataMember(Name = "longitude", EmitDefaultValue = false, IsRequired = false)]
public double? Longitude { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/OpenWithApp.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type OpenWithApp.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class OpenWithApp
{
/// <summary>
/// Gets or sets app.
/// </summary>
[DataMember(Name = "app", EmitDefaultValue = false, IsRequired = false)]
public Identity App { get; set; }
/// <summary>
/// Gets or sets viewUrl.
/// </summary>
[DataMember(Name = "viewUrl", EmitDefaultValue = false, IsRequired = false)]
public string ViewUrl { get; set; }
/// <summary>
/// Gets or sets editUrl.
/// </summary>
[DataMember(Name = "editUrl", EmitDefaultValue = false, IsRequired = false)]
public string EditUrl { get; set; }
/// <summary>
/// Gets or sets viewPostParameters.
/// </summary>
[DataMember(Name = "viewPostParameters", EmitDefaultValue = false, IsRequired = false)]
public string ViewPostParameters { get; set; }
/// <summary>
/// Gets or sets editPostParameters.
/// </summary>
[DataMember(Name = "editPostParameters", EmitDefaultValue = false, IsRequired = false)]
public string EditPostParameters { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/OpenWithSet.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type OpenWithSet.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class OpenWithSet
{
/// <summary>
/// Gets or sets web.
/// </summary>
[DataMember(Name = "web", EmitDefaultValue = false, IsRequired = false)]
public OpenWithApp Web { get; set; }
/// <summary>
/// Gets or sets webEmbed.
/// </summary>
[DataMember(Name = "webEmbed", EmitDefaultValue = false, IsRequired = false)]
public OpenWithApp WebEmbed { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/Permission.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type Permission.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class Permission
{
/// <summary>
/// Gets or sets granted to.
/// </summary>
[DataMember(Name = "grantedTo", EmitDefaultValue = false, IsRequired = false)]
public IdentitySet GrantedTo { get; set; }
/// <summary>
/// Gets or sets id.
/// </summary>
[DataMember(Name = "id", EmitDefaultValue = false, IsRequired = false)]
public string Id { get; set; }
/// <summary>
/// Gets or sets invitation.
/// </summary>
[DataMember(Name = "invitation", EmitDefaultValue = false, IsRequired = false)]
public SharingInvitation Invitation { get; set; }
/// <summary>
/// Gets or sets inherited from.
/// </summary>
[DataMember(Name = "inheritedFrom", EmitDefaultValue = false, IsRequired = false)]
public ItemReference InheritedFrom { get; set; }
/// <summary>
/// Gets or sets link.
/// </summary>
[DataMember(Name = "link", EmitDefaultValue = false, IsRequired = false)]
public SharingLink Link { get; set; }
/// <summary>
/// Gets or sets roles.
/// </summary>
[DataMember(Name = "roles", EmitDefaultValue = false, IsRequired = false)]
public IEnumerable<string> Roles { get; set; }
/// <summary>
/// Gets or sets share id.
/// </summary>
[DataMember(Name = "shareId", EmitDefaultValue = false, IsRequired = false)]
public string ShareId { get; set; }
/// <summary>
/// Gets or sets @odata.type.
/// </summary>
[DataMember(Name = "@odata.type", EmitDefaultValue = false, IsRequired = false)]
public string ODataType { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true, WriteData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/Photo.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type Photo.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class Photo
{
/// <summary>
/// Gets or sets cameraMake.
/// </summary>
[DataMember(Name = "cameraMake", EmitDefaultValue = false, IsRequired = false)]
public string CameraMake { get; set; }
/// <summary>
/// Gets or sets cameraModel.
/// </summary>
[DataMember(Name = "cameraModel", EmitDefaultValue = false, IsRequired = false)]
public string CameraModel { get; set; }
/// <summary>
/// Gets or sets exposureDenominator.
/// </summary>
[DataMember(Name = "exposureDenominator", EmitDefaultValue = false, IsRequired = false)]
public double? ExposureDenominator { get; set; }
/// <summary>
/// Gets or sets exposureNumerator.
/// </summary>
[DataMember(Name = "exposureNumerator", EmitDefaultValue = false, IsRequired = false)]
public double? ExposureNumerator { get; set; }
/// <summary>
/// Gets or sets focalLength.
/// </summary>
[DataMember(Name = "focalLength", EmitDefaultValue = false, IsRequired = false)]
public double? FocalLength { get; set; }
/// <summary>
/// Gets or sets fNumber.
/// </summary>
[DataMember(Name = "fNumber", EmitDefaultValue = false, IsRequired = false)]
public double? FNumber { get; set; }
/// <summary>
/// Gets or sets takenDateTime.
/// </summary>
[DataMember(Name = "takenDateTime", EmitDefaultValue = false, IsRequired = false)]
public DateTimeOffset? TakenDateTime { get; set; }
/// <summary>
/// Gets or sets iso.
/// </summary>
[DataMember(Name = "iso", EmitDefaultValue = false, IsRequired = false)]
public Int32? Iso { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/Quota.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type Quota.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class Quota
{
/// <summary>
/// Gets or sets deleted.
/// </summary>
[DataMember(Name = "deleted", EmitDefaultValue = false, IsRequired = false)]
public Int64? Deleted { get; set; }
/// <summary>
/// Gets or sets remaining.
/// </summary>
[DataMember(Name = "remaining", EmitDefaultValue = false, IsRequired = false)]
public Int64? Remaining { get; set; }
/// <summary>
/// Gets or sets state.
/// </summary>
[DataMember(Name = "state", EmitDefaultValue = false, IsRequired = false)]
public string State { get; set; }
/// <summary>
/// Gets or sets total.
/// </summary>
[DataMember(Name = "total", EmitDefaultValue = false, IsRequired = false)]
public Int64? Total { get; set; }
/// <summary>
/// Gets or sets used.
/// </summary>
[DataMember(Name = "used", EmitDefaultValue = false, IsRequired = false)]
public Int64? Used { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/Recipient.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type SharingInvitation.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class Recipient
{
/// <summary>
/// Gets or sets email.
/// </summary>
[DataMember(Name = "email", EmitDefaultValue = false, IsRequired = false)]
public string Email { get; set; }
/// <summary>
/// Gets or sets alias.
/// </summary>
[DataMember(Name = "alias", EmitDefaultValue = false, IsRequired = false)]
public string Alias { get; set; }
/// <summary>
/// Gets or sets objectId.
/// </summary>
[DataMember(Name = "objectId", EmitDefaultValue = false, IsRequired = false)]
public string ObjectId { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/SearchResult.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type SearchResult.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class SearchResult
{
/// <summary>
/// Gets or sets onClickTelemetryUrl.
/// </summary>
[DataMember(Name = "onClickTelemetryUrl", EmitDefaultValue = false, IsRequired = false)]
public string OnClickTelemetryUrl { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/Share.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type Share.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class Share
{
/// <summary>
/// Gets or sets id.
/// </summary>
[DataMember(Name = "id", EmitDefaultValue = false, IsRequired = false)]
public string Id { get; set; }
/// <summary>
/// Gets or sets name.
/// </summary>
[DataMember(Name = "name", EmitDefaultValue = false, IsRequired = false)]
public string Name { get; set; }
/// <summary>
/// Gets or sets owner.
/// </summary>
[DataMember(Name = "owner", EmitDefaultValue = false, IsRequired = false)]
public IdentitySet Owner { get; set; }
/// <summary>
/// Gets or sets items.
/// </summary>
[DataMember(Name = "items", EmitDefaultValue = false, IsRequired = false)]
public IShareItemsCollectionPage Items { get; set; }
/// <summary>
/// Gets or sets @odata.type.
/// </summary>
[DataMember(Name = "@odata.type", EmitDefaultValue = false, IsRequired = false)]
public string ODataType { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true, WriteData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/Shared.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type Shared.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class Shared
{
/// <summary>
/// Gets or sets effectiveRoles.
/// </summary>
[DataMember(Name = "effectiveRoles", EmitDefaultValue = false, IsRequired = false)]
public IEnumerable<string> EffectiveRoles { get; set; }
/// <summary>
/// Gets or sets owner.
/// </summary>
[DataMember(Name = "owner", EmitDefaultValue = false, IsRequired = false)]
public IdentitySet Owner { get; set; }
/// <summary>
/// Gets or sets scope.
/// </summary>
[DataMember(Name = "scope", EmitDefaultValue = false, IsRequired = false)]
public string Scope { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/SharingInvitation.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type SharingInvitation.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class SharingInvitation
{
/// <summary>
/// Gets or sets email.
/// </summary>
[DataMember(Name = "email", EmitDefaultValue = false, IsRequired = false)]
public string Email { get; set; }
/// <summary>
/// Gets or sets invitedBy.
/// </summary>
[DataMember(Name = "invitedBy", EmitDefaultValue = false, IsRequired = false)]
public IdentitySet InvitedBy { get; set; }
/// <summary>
/// Gets or sets signInRequired.
/// </summary>
[DataMember(Name = "signInRequired", EmitDefaultValue = false, IsRequired = false)]
public bool? SignInRequired { get; set; }
/// <summary>
/// Gets or sets sendInvitationStatus.
/// </summary>
[DataMember(Name = "sendInvitationStatus", EmitDefaultValue = false, IsRequired = false)]
public string SendInvitationStatus { get; set; }
/// <summary>
/// Gets or sets inviteErrorResolveUrl.
/// </summary>
[DataMember(Name = "inviteErrorResolveUrl", EmitDefaultValue = false, IsRequired = false)]
public string InviteErrorResolveUrl { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/SharingLink.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type SharingLink.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class SharingLink
{
/// <summary>
/// Gets or sets application.
/// </summary>
[DataMember(Name = "application", EmitDefaultValue = false, IsRequired = false)]
public Identity Application { get; set; }
/// <summary>
/// Gets or sets type.
/// </summary>
[DataMember(Name = "type", EmitDefaultValue = false, IsRequired = false)]
public string Type { get; set; }
/// <summary>
/// Gets or sets webUrl.
/// </summary>
[DataMember(Name = "webUrl", EmitDefaultValue = false, IsRequired = false)]
public string WebUrl { get; set; }
/// <summary>
/// Gets or sets webHtml.
/// </summary>
[DataMember(Name = "webHtml", EmitDefaultValue = false, IsRequired = false)]
public string WebHtml { get; set; }
/// <summary>
/// Gets or sets configuratorUrl.
/// </summary>
[DataMember(Name = "configuratorUrl", EmitDefaultValue = false, IsRequired = false)]
public string ConfiguratorUrl { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/SpecialFolder.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type SpecialFolder.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class SpecialFolder
{
/// <summary>
/// Gets or sets name.
/// </summary>
[DataMember(Name = "name", EmitDefaultValue = false, IsRequired = false)]
public string Name { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/Thumbnail.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type Thumbnail.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class Thumbnail
{
/// <summary>
/// Gets or sets content.
/// </summary>
[DataMember(Name = "content", EmitDefaultValue = false, IsRequired = false)]
public Stream Content { get; set; }
/// <summary>
/// Gets or sets height.
/// </summary>
[DataMember(Name = "height", EmitDefaultValue = false, IsRequired = false)]
public Int32? Height { get; set; }
/// <summary>
/// Gets or sets url.
/// </summary>
[DataMember(Name = "url", EmitDefaultValue = false, IsRequired = false)]
public string Url { get; set; }
/// <summary>
/// Gets or sets width.
/// </summary>
[DataMember(Name = "width", EmitDefaultValue = false, IsRequired = false)]
public Int32? Width { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/ThumbnailSet.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type Thumbnail Set.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class ThumbnailSet
{
/// <summary>
/// Gets or sets id.
/// </summary>
[DataMember(Name = "id", EmitDefaultValue = false, IsRequired = false)]
public string Id { get; set; }
/// <summary>
/// Gets or sets large.
/// </summary>
[DataMember(Name = "large", EmitDefaultValue = false, IsRequired = false)]
public Thumbnail Large { get; set; }
/// <summary>
/// Gets or sets medium.
/// </summary>
[DataMember(Name = "medium", EmitDefaultValue = false, IsRequired = false)]
public Thumbnail Medium { get; set; }
/// <summary>
/// Gets or sets small.
/// </summary>
[DataMember(Name = "small", EmitDefaultValue = false, IsRequired = false)]
public Thumbnail Small { get; set; }
/// <summary>
/// Gets or sets source.
/// </summary>
[DataMember(Name = "source", EmitDefaultValue = false, IsRequired = false)]
public Thumbnail Source { get; set; }
/// <summary>
/// Gets or sets @odata.type.
/// </summary>
[DataMember(Name = "@odata.type", EmitDefaultValue = false, IsRequired = false)]
public string ODataType { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true, WriteData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/UploadSession.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type UploadSession.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class UploadSession
{
/// <summary>
/// Gets or sets uploadUrl.
/// </summary>
[DataMember(Name = "uploadUrl", EmitDefaultValue = false, IsRequired = false)]
public string UploadUrl { get; set; }
/// <summary>
/// Gets or sets expirationDateTime.
/// </summary>
[DataMember(Name = "expirationDateTime", EmitDefaultValue = false, IsRequired = false)]
public DateTimeOffset? ExpirationDateTime { get; set; }
/// <summary>
/// Gets or sets nextExpectedRanges.
/// </summary>
[DataMember(Name = "nextExpectedRanges", EmitDefaultValue = false, IsRequired = false)]
public IEnumerable<string> NextExpectedRanges { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Models/Generated/Video.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type Video.
/// </summary>
[DataContract]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class Video
{
/// <summary>
/// Gets or sets bitrate.
/// </summary>
[DataMember(Name = "bitrate", EmitDefaultValue = false, IsRequired = false)]
public Int32? Bitrate { get; set; }
/// <summary>
/// Gets or sets duration.
/// </summary>
[DataMember(Name = "duration", EmitDefaultValue = false, IsRequired = false)]
public Int64? Duration { get; set; }
/// <summary>
/// Gets or sets height.
/// </summary>
[DataMember(Name = "height", EmitDefaultValue = false, IsRequired = false)]
public Int32? Height { get; set; }
/// <summary>
/// Gets or sets width.
/// </summary>
[DataMember(Name = "width", EmitDefaultValue = false, IsRequired = false)]
public Int32? Width { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Properties/AssemblyInfo.cs
================================================
using System.Resources;
using System.Reflection;
using System.Runtime.CompilerServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Microsoft.OneDrive.Sdk")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Microsoft.OneDrive.Sdk")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: NeutralResourcesLanguage("en")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.0.0")]
[assembly: AssemblyFileVersion("2.0.0")]
#if DEBUG
[assembly: InternalsVisibleTo("Test.OneDrive.Sdk")]
#else
[assembly: InternalsVisibleTo("Test.OneDrive.Sdk, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")]
#endif
================================================
FILE: src/OneDriveSdk/Requests/Extensions/DriveRequestBuilderExtensions.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
namespace Microsoft.OneDrive.Sdk
{
public partial class DriveRequestBuilder
{
/// <summary>
/// Gets root item request builder.
/// <returns>The item request builder.</returns>
/// </summary>
public IItemRequestBuilder Root
{
get { return new ItemRequestBuilder(this.AppendSegmentToRequestUrl(Constants.Url.Root), this.Client); }
}
}
}
================================================
FILE: src/OneDriveSdk/Requests/Extensions/DriveSpecialCollectionRequestBuilderExtensions.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
namespace Microsoft.OneDrive.Sdk
{
public partial class DriveSpecialCollectionRequestBuilder
{
/// <summary>
/// Gets app root special folder item request builder.
/// <returns>The item request builder.</returns>
/// </summary>
public IItemRequestBuilder AppRoot
{
get { return new ItemRequestBuilder(this.AppendSegmentToRequestUrl(Constants.Url.AppRoot), this.Client); }
}
/// <summary>
/// Gets Documents special folder item request builder.
/// <returns>The item request builder.</returns>
/// </summary>
public IItemRequestBuilder Documents
{
get { return new ItemRequestBuilder(this.AppendSegmentToRequestUrl(Constants.Url.Documents), this.Client); }
}
/// <summary>
/// Gets Photos special folder item request builder.
/// <returns>The item request builder.</returns>
/// </summary>
public IItemRequestBuilder Photos
{
get { return new ItemRequestBuilder(this.AppendSegmentToRequestUrl(Constants.Url.Photos), this.Client); }
}
/// <summary>
/// Gets Camera Roll special folder item request builder.
/// <returns>The item request builder.</returns>
/// </summary>
public IItemRequestBuilder CameraRoll
{
get { return new ItemRequestBuilder(this.AppendSegmentToRequestUrl(Constants.Url.CameraRoll), this.Client); }
}
/// <summary>
/// Gets Music special folder item request builder.
/// <returns>The item request builder.</returns>
/// </summary>
public IItemRequestBuilder Music
{
get { return new ItemRequestBuilder(this.AppendSegmentToRequestUrl(Constants.Url.Music), this.Client); }
}
}
}
================================================
FILE: src/OneDriveSdk/Requests/Extensions/IDriveRequestBuilderExtensions.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
namespace Microsoft.OneDrive.Sdk
{
public partial interface IDriveRequestBuilder
{
/// <summary>
/// Gets root item request builder.
/// <returns>The item request builder.</returns>
/// </summary>
IItemRequestBuilder Root { get; }
}
}
================================================
FILE: src/OneDriveSdk/Requests/Extensions/IDriveSpecialCollectionRequestBuilderExtensions.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
namespace Microsoft.OneDrive.Sdk
{
public partial interface IDriveSpecialCollectionRequestBuilder
{
/// <summary>
/// Gets app root special folder item request builder.
/// <returns>The item request builder.</returns>
/// </summary>
IItemRequestBuilder AppRoot { get; }
/// <summary>
/// Gets documents special folder item request builder.
/// <returns>The item request builder.</returns>
/// </summary>
IItemRequestBuilder Documents { get; }
/// <summary>
/// Gets photos special folder item request builder.
/// <returns>The item request builder.</returns>
/// </summary>
IItemRequestBuilder Photos { get; }
/// <summary>
/// Gets camera roll special folder item request builder.
/// <returns>The item request builder.</returns>
/// </summary>
IItemRequestBuilder CameraRoll { get; }
/// <summary>
/// Gets Music special folder item request builder.
/// <returns>The item request builder.</returns>
/// </summary>
IItemRequestBuilder Music { get; }
}
}
================================================
FILE: src/OneDriveSdk/Requests/Extensions/IItemRequestBuilderExtensions.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
namespace Microsoft.OneDrive.Sdk
{
/// <summary>
/// The type ItemRequestBuilder.
/// </summary>
public partial interface IItemRequestBuilder
{
/// <summary>
/// Gets item request builder for the specified item path.
/// <returns>The item request builder.</returns>
/// </summary>
IItemRequestBuilder ItemWithPath(string path);
}
}
================================================
FILE: src/OneDriveSdk/Requests/Extensions/IOneDriveClientExtensions.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
namespace Microsoft.OneDrive.Sdk
{
public partial interface IOneDriveClient
{
/// <summary>
/// Gets the default drive.
/// </summary>
IDriveRequestBuilder Drive { get; }
/// <summary>
/// Gets item request builder for the specified item path.
/// <returns>The item request builder.</returns>
/// </summary>
IItemRequestBuilder ItemWithPath(string path);
}
}
================================================
FILE: src/OneDriveSdk/Requests/Extensions/IShareRequestBuilderExtensions.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
namespace Microsoft.OneDrive.Sdk
{
public partial interface IShareRequestBuilder
{
/// <summary>
/// Gets root item request builder.
/// <returns>The item request builder.</returns>
/// </summary>
IItemRequestBuilder Root { get; }
}
}
================================================
FILE: src/OneDriveSdk/Requests/Extensions/IThumbnailSetRequestBuilderExtensions.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
namespace Microsoft.OneDrive.Sdk
{
public partial interface IThumbnailSetRequestBuilder
{
IThumbnailRequestBuilder this[string size] { get; }
}
}
================================================
FILE: src/OneDriveSdk/Requests/Extensions/ItemRequestBuilderExtensions.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
namespace Microsoft.OneDrive.Sdk
{
/// <summary>
/// The type ItemRequestBuilder.
/// </summary>
public partial class ItemRequestBuilder
{
/// <summary>
/// Gets children request.
/// <returns>The children request.</returns>
/// </summary>
public IItemRequestBuilder ItemWithPath(string path)
{
if (!string.IsNullOrEmpty(path))
{
if (!path.StartsWith("/"))
{
path = string.Format("/{0}", path);
}
}
return new ItemRequestBuilder(
string.Format("{0}:{1}:", this.RequestUrl, path),
this.Client);
}
}
}
================================================
FILE: src/OneDriveSdk/Requests/Extensions/OneDriveClientExtensions.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
namespace Microsoft.OneDrive.Sdk
{
public partial class OneDriveClient
{
/// <summary>
/// Gets the default drive.
/// </summary>
public IDriveRequestBuilder Drive
{
get
{
return new DriveRequestBuilder(string.Format("{0}/{1}", this.BaseUrl, Constants.Url.Drive), this);
}
}
/// <summary>
/// Gets item request builder for the specified item path.
/// <returns>The item request builder.</returns>
/// </summary>
public IItemRequestBuilder ItemWithPath(string path)
{
return new ItemRequestBuilder(
string.Format("{0}{1}:", this.BaseUrl, path),
this);
}
}
}
================================================
FILE: src/OneDriveSdk/Requests/Extensions/ShareRequestBuilderExtensions.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
namespace Microsoft.OneDrive.Sdk
{
public partial class ShareRequestBuilder
{
/// <summary>
/// Gets root item request builder.
/// <returns>The item request builder.</returns>
/// </summary>
public IItemRequestBuilder Root
{
get { return new ItemRequestBuilder(this.AppendSegmentToRequestUrl(Constants.Url.Root), this.Client); }
}
}
}
================================================
FILE: src/OneDriveSdk/Requests/Extensions/ThumbnailSetExtensions.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
namespace Microsoft.OneDrive.Sdk
{
public partial class ThumbnailSet
{
/// <summary>
/// Allows for the lookup of custom thumbnails from this thumbnail set.
/// </summary>
/// <param name="customThumbnailName">The name of the custom thumbnail.</param>
/// <returns>The custom thumbnail.</returns>
public Thumbnail this[string customThumbnailName]
{
get
{
if (this.AdditionalData != null)
{
object thumbnail;
if (this.AdditionalData.TryGetValue(customThumbnailName, out thumbnail))
{
return thumbnail as Thumbnail;
}
}
return null;
}
}
}
}
================================================
FILE: src/OneDriveSdk/Requests/Extensions/ThumbnailSetRequestBuilderExtensions.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
namespace Microsoft.OneDrive.Sdk
{
/// <summary>
/// The type ThumbnailSetRequestBuilder.
/// </summary>
public partial class ThumbnailSetRequestBuilder
{
public IThumbnailRequestBuilder this[string size]
{
get
{
return new ThumbnailRequestBuilder(
this.AppendSegmentToRequestUrl(size),
this.Client);
}
}
}
}
================================================
FILE: src/OneDriveSdk/Requests/Generated/DriveItemsCollectionPage.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using Microsoft.Graph;
/// <summary>
/// The type DriveItemsCollectionPage.
/// </summary>
public partial class DriveItemsCollectionPage : CollectionPage<Item>, IDriveItemsCollectionPage
{
/// <summary>
/// Gets the next page <see cref="IDriveItemsCollectionRequest"/> instance.
/// </summary>
public IDriveItemsCollectionRequest NextPageRequest { get; private set; }
/// <summary>
/// Initializes the NextPageRequest property.
/// </summary>
public void InitializeNextPageRequest(IBaseClient client, string nextPageLinkString)
{
if (!string.IsNullOrEmpty(nextPageLinkString))
{
this.NextPageRequest = new DriveItemsCollectionRequest(
nextPageLinkString,
client,
null);
}
}
}
}
================================================
FILE: src/OneDriveSdk/Requests/Generated/DriveItemsCollectionRequest.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading;
using Microsoft.Graph;
/// <summary>
/// The type DriveItemsCollectionRequest.
/// </summary>
public partial class DriveItemsCollectionRequest : BaseRequest, IDriveItemsCollectionRequest
{
/// <summary>
/// Constructs a new DriveItemsCollectionRequest.
/// </summary>
/// <param name="requestUrl">The URL for the built request.</param>
/// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param>
/// <param name="options">Query and header option name value pairs for the request.</param>
public DriveItemsCollectionRequest(
string requestUrl,
IBaseClient client,
IEnumerable<Option> options)
: base(requestUrl, client, options)
{
this.SdkVersionHeaderPrefix = "onedrive";
}
/// <summary>
/// Adds the specified Item to the collection via POST.
/// </summary>
/// <param name="item">The Item to add.</param>
/// <returns>The created Item.</returns>
public System.Threading.Tasks.Task<Item> AddAsync(Item item)
{
return this.AddAsync(item, CancellationToken.None);
}
/// <summary>
/// Adds the specified Item to the collection via POST.
/// </summary>
/// <param name="item">The Item to add.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The created Item.</returns>
public System.Threading.Tasks.Task<Item> AddAsync(Item item, CancellationToken cancellationToken)
{
this.ContentType = "application/json";
this.Method = "POST";
return this.SendAsync<Item>(item, cancellationToken);
}
/// <summary>
/// Gets the collection page.
/// </summary>
/// <returns>The collection page.</returns>
public System.Threading.Tasks.Task<IDriveItemsCollectionPage> GetAsync()
{
return this.GetAsync(CancellationToken.None);
}
/// <summary>
/// Gets the collection page.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The collection page.</returns>
public async System.Threading.Tasks.Task<IDriveItemsCollectionPage> GetAsync(CancellationToken cancellationToken)
{
this.Method = "GET";
var response = await this.SendAsync<DriveItemsCollectionResponse>(null, cancellationToken).ConfigureAwait(false);
if (response != null && response.Value != null && response.Value.CurrentPage != null)
{
if (response.AdditionalData != null)
{
object nextPageLink;
response.AdditionalData.TryGetValue("@odata.nextLink", out nextPageLink);
var nextPageLinkString = nextPageLink as string;
if (!string.IsNullOrEmpty(nextPageLinkString))
{
response.Value.InitializeNextPageRequest(
this.Client,
nextPageLinkString);
}
// Copy the additional data collection to the page itself so that information is not lost
response.Value.AdditionalData = response.AdditionalData;
}
return response.Value;
}
return null;
}
/// <summary>
/// Adds the specified expand value to the request.
/// </summary>
/// <param name="value">The expand value.</param>
/// <returns>The request object to send.</returns>
public IDriveItemsCollectionRequest Expand(string value)
{
this.QueryOptions.Add(new QueryOption("$expand", value));
return this;
}
/// <summary>
/// Adds the specified select value to the request.
/// </summary>
/// <param name="value">The select value.</param>
/// <returns>The request object to send.</returns>
public IDriveItemsCollectionRequest Select(string value)
{
this.QueryOptions.Add(new QueryOption("$select", value));
return this;
}
/// <summary>
/// Adds the specified top value to the request.
/// </summary>
/// <param name="value">The top value.</param>
/// <returns>The request object to send.</returns>
public IDriveItemsCollectionRequest Top(int value)
{
this.QueryOptions.Add(new QueryOption("$top", value.ToString()));
return this;
}
/// <summary>
/// Adds the specified filter value to the request.
/// </summary>
/// <param name="value">The filter value.</param>
/// <returns>The request object to send.</returns>
public IDriveItemsCollectionRequest Filter(string value)
{
this.QueryOptions.Add(new QueryOption("$filter", value));
return this;
}
/// <summary>
/// Adds the specified skip value to the request.
/// </summary>
/// <param name="value">The skip value.</param>
/// <returns>The request object to send.</returns>
public IDriveItemsCollectionRequest Skip(int value)
{
this.QueryOptions.Add(new QueryOption("$skip", value.ToString()));
return this;
}
/// <summary>
/// Adds the specified orderby value to the request.
/// </summary>
/// <param name="value">The orderby value.</param>
/// <returns>The request object to send.</returns>
public IDriveItemsCollectionRequest OrderBy(string value)
{
this.QueryOptions.Add(new QueryOption("$orderby", value));
return this;
}
}
}
================================================
FILE: src/OneDriveSdk/Requests/Generated/DriveItemsCollectionRequestBuilder.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using Microsoft.Graph;
/// <summary>
/// The type DriveItemsCollectionRequestBuilder.
/// </summary>
public partial class DriveItemsCollectionRequestBuilder : BaseRequestBuilder, IDriveItemsCollectionRequestBuilder
{
/// <summary>
/// Constructs a new DriveItemsCollectionRequestBuilder.
/// </summary>
/// <param name="requestUrl">The URL for the built request.</param>
/// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param>
public DriveItemsCollectionRequestBuilder(
string requestUrl,
IBaseClient client)
: base(requestUrl, client)
{
}
/// <summary>
/// Builds the request.
/// </summary>
/// <returns>The built request.</returns>
public IDriveItemsCollectionRequest Request()
{
return this.Request(null);
}
/// <summary>
/// Builds the request.
/// </summary>
/// <param name="options">The query and header options for the request.</param>
/// <returns>The built request.</returns>
public IDriveItemsCollectionRequest Request(IEnumerable<Option> options)
{
return new DriveItemsCollectionRequest(this.RequestUrl, this.Client, options);
}
/// <summary>
/// Gets an <see cref="IItemRequestBuilder"/> for the specified DriveItem.
/// </summary>
/// <param name="id">The ID for the DriveItem.</param>
/// <returns>The <see cref="IItemRequestBuilder"/>.</returns>
public IItemRequestBuilder this[string id]
{
get
{
return new ItemRequestBuilder(this.AppendSegmentToRequestUrl(id), this.Client);
}
}
}
}
================================================
FILE: src/OneDriveSdk/Requests/Generated/DriveItemsCollectionResponse.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System.Collections.Generic;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type DriveItemsCollectionResponse.
/// </summary>
[DataContract]
public class DriveItemsCollectionResponse
{
/// <summary>
/// Gets or sets the <see cref="IDriveItemsCollectionPage"/> value.
/// </summary>
[DataMember(Name = "value", EmitDefaultValue = false, IsRequired = false)]
public IDriveItemsCollectionPage Value { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Requests/Generated/DriveRecentCollectionPage.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using Microsoft.Graph;
/// <summary>
/// The type DriveRecentCollectionPage.
/// </summary>
public partial class DriveRecentCollectionPage : CollectionPage<Item>, IDriveRecentCollectionPage
{
/// <summary>
/// Gets the next page <see cref="IDriveRecentRequest"/> instance.
/// </summary>
public IDriveRecentRequest NextPageRequest { get; private set; }
/// <summary>
/// Initializes the NextPageRequest property.
/// </summary>
public void InitializeNextPageRequest(IBaseClient client, string nextPageLinkString)
{
if (!string.IsNullOrEmpty(nextPageLinkString))
{
this.NextPageRequest = new DriveRecentRequest(
nextPageLinkString,
client,
null);
}
}
}
}
================================================
FILE: src/OneDriveSdk/Requests/Generated/DriveRecentCollectionResponse.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System.Collections.Generic;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type DriveRecentCollectionResponse.
/// </summary>
[DataContract]
public class DriveRecentCollectionResponse
{
/// <summary>
/// Gets or sets the <see cref="IDriveRecentCollectionPage"/> value.
/// </summary>
[DataMember(Name = "value", EmitDefaultValue = false, IsRequired = false)]
public IDriveRecentCollectionPage Value { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Requests/Generated/DriveRecentRequest.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Net.Http;
using System.Threading;
using Microsoft.Graph;
/// <summary>
/// The type DriveRecentRequest.
/// </summary>
public partial class DriveRecentRequest : BaseRequest, IDriveRecentRequest
{
/// <summary>
/// Constructs a new DriveRecentRequest.
/// </summary>
public DriveRecentRequest(
string requestUrl,
IBaseClient client,
IEnumerable<Option> options)
: base(requestUrl, client, options)
{
this.Method = "GET";
}
/// <summary>
/// Issues the GET request.
/// </summary>
public System.Threading.Tasks.Task<IDriveRecentCollectionPage> GetAsync()
{
return this.GetAsync(CancellationToken.None);
}
/// <summary>
/// Issues the GET request.
/// </summary>
/// <param name=""cancellationToken"">The <see cref=""CancellationToken""/> for the request.</param>
/// <returns>The task to await for async call.</returns>
public async System.Threading.Tasks.Task<IDriveRecentCollectionPage> GetAsync(
CancellationToken cancellationToken)
{
var response = await this.SendAsync<DriveRecentCollectionResponse>(null, cancellationToken).ConfigureAwait(false);
if (response != null && response.Value != null && response.Value.CurrentPage != null)
{
if (response.AdditionalData != null)
{
response.Value.AdditionalData = response.AdditionalData;
object nextPageLink;
response.AdditionalData.TryGetValue("@odata.nextLink", out nextPageLink);
var nextPageLinkString = nextPageLink as string;
if (!string.IsNullOrEmpty(nextPageLinkString))
{
response.Value.InitializeNextPageRequest(
this.Client,
nextPageLinkString);
}
}
return response.Value;
}
return null;
}
/// <summary>
/// Adds the specified expand value to the request.
/// </summary>
/// <param name="value">The expand value.</param>
/// <returns>The request object to send.</returns>
public IDriveRecentRequest Expand(string value)
{
this.QueryOptions.Add(new QueryOption("$expand", value));
return this;
}
/// <summary>
/// Adds the specified select value to the request.
/// </summary>
/// <param name="value">The select value.</param>
/// <returns>The request object to send.</returns>
public IDriveRecentRequest Select(string value)
{
this.QueryOptions.Add(new QueryOption("$select", value));
return this;
}
/// <summary>
/// Adds the specified top value to the request.
/// </summary>
/// <param name="value">The top value.</param>
/// <returns>The request object to send.</returns>
public IDriveRecentRequest Top(int value)
{
this.QueryOptions.Add(new QueryOption("$top", value.ToString()));
return this;
}
/// <summary>
/// Adds the specified filter value to the request.
/// </summary>
/// <param name="value">The filter value.</param>
/// <returns>The request object to send.</returns>
public IDriveRecentRequest Filter(string value)
{
this.QueryOptions.Add(new QueryOption("$filter", value));
return this;
}
/// <summary>
/// Adds the specified skip value to the request.
/// </summary>
/// <param name="value">The skip value.</param>
/// <returns>The request object to send.</returns>
public IDriveRecentRequest Skip(int value)
{
this.QueryOptions.Add(new QueryOption("$skip", value.ToString()));
return this;
}
/// <summary>
/// Adds the specified orderby value to the request.
/// </summary>
/// <param name="value">The orderby value.</param>
/// <returns>The request object to send.</returns>
public IDriveRecentRequest OrderBy(string value)
{
this.QueryOptions.Add(new QueryOption("$orderby", value));
return this;
}
}
}
================================================
FILE: src/OneDriveSdk/Requests/Generated/DriveRecentRequestBuilder.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using Microsoft.Graph;
/// <summary>
/// The type DriveRecentRequestBuilder.
/// </summary>
public partial class DriveRecentRequestBuilder : BaseFunctionMethodRequestBuilder<IDriveRecentRequest>, IDriveRecentRequestBuilder
{
/// <summary>
/// Constructs a new <see cref="DriveRecentRequestBuilder"/>.
/// </summary>
/// <param name="requestUrl">The URL for the request.</param>
/// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param>
public DriveRecentRequestBuilder(
string requestUrl,
IBaseClient client)
: base(requestUrl, client)
{
this.passParametersInQueryString = true;
}
/// <summary>
/// A method used by the base class to construct a request class instance.
/// </summary>
/// <param name="functionUrl">The request URL to </param>
/// <param name="options">The query and header options for the request.</param>
/// <returns>An instance of a specific request class.</returns>
protected override IDriveRecentRequest CreateRequest(string functionUrl, IEnumerable<Option> options)
{
var request = new DriveRecentRequest(functionUrl, this.Client, options);
return request;
}
}
}
================================================
FILE: src/OneDriveSdk/Requests/Generated/DriveRequest.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Net.Http;
using System.Threading;
using Microsoft.Graph;
/// <summary>
/// The type DriveRequest.
/// </summary>
public partial class DriveRequest : BaseRequest, IDriveRequest
{
/// <summary>
/// Constructs a new DriveRequest.
/// </summary>
/// <param name="requestUrl">The URL for the built request.</param>
/// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param>
/// <param name="options">Query and header option name value pairs for the request.</param>
public DriveRequest(
string requestUrl,
IBaseClient client,
IEnumerable<Option> options)
: base(requestUrl, client, options)
{
this.SdkVersionHeaderPrefix = "onedrive";
}
/// <summary>
/// Creates the specified Drive using PUT.
/// </summary>
/// <param name="driveToCreate">The Drive to create.</param>
/// <returns>The created Drive.</returns>
public System.Threading.Tasks.Task<Drive> CreateAsync(Drive driveToCreate)
{
return this.CreateAsync(driveToCreate, CancellationToken.None);
}
/// <summary>
/// Creates the specified Drive using PUT.
/// </summary>
/// <param name="driveToCreate">The Drive to create.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The created Drive.</returns>
public async System.Threading.Tasks.Task<Drive> CreateAsync(Drive driveToCreate, CancellationToken cancellationToken)
{
this.ContentType = "application/json";
this.Method = "PUT";
var newEntity = await this.SendAsync<Drive>(driveToCreate, cancellationToken).ConfigureAwait(false);
this.InitializeCollectionProperties(newEntity);
return newEntity;
}
/// <summary>
/// Deletes the specified Drive.
/// </summary>
/// <returns>The task to await.</returns>
public System.Threading.Tasks.Task DeleteAsync()
{
return this.DeleteAsync(CancellationToken.None);
}
/// <summary>
/// Deletes the specified Drive.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task to await.</returns>
public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken)
{
this.Method = "DELETE";
await this.SendAsync<Drive>(null, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Gets the specified Drive.
/// </summary>
/// <returns>The Drive.</returns>
public System.Threading.Tasks.Task<Drive> GetAsync()
{
return this.GetAsync(CancellationToken.None);
}
/// <summary>
/// Gets the specified Drive.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The Drive.</returns>
public async System.Threading.Tasks.Task<Drive> GetAsync(CancellationToken cancellationToken)
{
this.Method = "GET";
var retrievedEntity = await this.SendAsync<Drive>(null, cancellationToken).ConfigureAwait(false);
this.InitializeCollectionProperties(retrievedEntity);
return retrievedEntity;
}
/// <summary>
/// Updates the specified Drive using PATCH.
/// </summary>
/// <param name="driveToUpdate">The Drive to update.</param>
/// <returns>The updated Drive.</returns>
public System.Threading.Tasks.Task<Drive> UpdateAsync(Drive driveToUpdate)
{
return this.UpdateAsync(driveToUpdate, CancellationToken.None);
}
/// <summary>
/// Updates the specified Drive using PATCH.
/// </summary>
/// <param name="driveToUpdate">The Drive to update.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The updated Drive.</returns>
public async System.Threading.Tasks.Task<Drive> UpdateAsync(Drive driveToUpdate, CancellationToken cancellationToken)
{
this.ContentType = "application/json";
this.Method = "PATCH";
var updatedEntity = await this.SendAsync<Drive>(driveToUpdate, cancellationToken).ConfigureAwait(false);
this.InitializeCollectionProperties(updatedEntity);
return updatedEntity;
}
/// <summary>
/// Adds the specified expand value to the request.
/// </summary>
/// <param name="value">The expand value.</param>
/// <returns>The request object to send.</returns>
public IDriveRequest Expand(string value)
{
this.QueryOptions.Add(new QueryOption("$expand", value));
return this;
}
/// <summary>
/// Adds the specified select value to the request.
/// </summary>
/// <param name="value">The select value.</param>
/// <returns>The request object to send.</returns>
public IDriveRequest Select(string value)
{
this.QueryOptions.Add(new QueryOption("$select", value));
return this;
}
/// <summary>
/// Initializes any collection properties after deserialization, like next requests for paging.
/// </summary>
/// <param name="driveToInitialize">The <see cref="Drive"/> with the collection properties to initialize.</param>
private void InitializeCollectionProperties(Drive driveToInitialize)
{
if (driveToInitialize != null && driveToInitialize.AdditionalData != null)
{
if (driveToInitialize.Items != null && driveToInitialize.Items.CurrentPage != null)
{
driveToInitialize.Items.AdditionalData = driveToInitialize.AdditionalData;
object nextPageLink;
driveToInitialize.AdditionalData.TryGetValue("items@odata.nextLink", out nextPageLink);
var nextPageLinkString = nextPageLink as string;
if (!string.IsNullOrEmpty(nextPageLinkString))
{
driveToInitialize.Items.InitializeNextPageRequest(
this.Client,
nextPageLinkString);
}
}
if (driveToInitialize.Shared != null && driveToInitialize.Shared.CurrentPage != null)
{
driveToInitialize.Shared.AdditionalData = driveToInitialize.AdditionalData;
object nextPageLink;
driveToInitialize.AdditionalData.TryGetValue("shared@odata.nextLink", out nextPageLink);
var nextPageLinkString = nextPageLink as string;
if (!string.IsNullOrEmpty(nextPageLinkString))
{
driveToInitialize.Shared.InitializeNextPageRequest(
this.Client,
nextPageLinkString);
}
}
if (driveToInitialize.Special != null && driveToInitialize.Special.CurrentPage != null)
{
driveToInitialize.Special.AdditionalData = driveToInitialize.AdditionalData;
object nextPageLink;
driveToInitialize.AdditionalData.TryGetValue("special@odata.nextLink", out nextPageLink);
var nextPageLinkString = nextPageLink as string;
if (!string.IsNullOrEmpty(nextPageLinkString))
{
driveToInitialize.Special.InitializeNextPageRequest(
this.Client,
nextPageLinkString);
}
}
}
}
}
}
================================================
FILE: src/OneDriveSdk/Requests/Generated/DriveRequestBuilder.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.IO;
using Microsoft.Graph;
/// <summary>
/// The type DriveRequestBuilder.
/// </summary>
public partial class DriveRequestBuilder : BaseRequestBuilder, IDriveRequestBuilder
{
/// <summary>
/// Constructs a new DriveRequestBuilder.
/// </summary>
/// <param name="requestUrl">The URL for the built request.</param>
/// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param>
public DriveRequestBuilder(
string requestUrl,
IBaseClient client)
: base(requestUrl, client)
{
}
/// <summary>
/// Builds the request.
/// </summary>
/// <returns>The built request.</returns>
public IDriveRequest Request()
{
return this.Request(null);
}
/// <summary>
/// Builds the request.
/// </summary>
/// <param name="options">The query and header options for the request.</param>
/// <returns>The built request.</returns>
public IDriveRequest Request(IEnumerable<Option> options)
{
return new DriveRequest(this.RequestUrl, this.Client, options);
}
/// <summary>
/// Gets the request builder for Items.
/// </summary>
/// <returns>The <see cref="IDriveItemsCollectionRequestBuilder"/>.</returns>
public IDriveItemsCollectionRequestBuilder Items
{
get
{
return new DriveItemsCollectionRequestBuilder(this.AppendSegmentToRequestUrl("items"), this.Client);
}
}
/// <summary>
/// Gets the request builder for Shared.
/// </summary>
/// <returns>The <see cref="IDriveSharedCollectionRequestBuilder"/>.</returns>
public IDriveSharedCollectionRequestBuilder Shared
{
get
{
return new DriveSharedCollectionRequestBuilder(this.AppendSegmentToRequestUrl("shared"), this.Client);
}
}
/// <summary>
/// Gets the request builder for Special.
/// </summary>
/// <returns>The <see cref="IDriveSpecialCollectionRequestBuilder"/>.</returns>
public IDriveSpecialCollectionRequestBuilder Special
{
get
{
return new DriveSpecialCollectionRequestBuilder(this.AppendSegmentToRequestUrl("special"), this.Client);
}
}
/// <summary>
/// Gets the request builder for DriveRecent.
/// </summary>
/// <returns>The <see cref="IDriveRecentRequestBuilder"/>.</returns>
public IDriveRecentRequestBuilder Recent()
{
return new DriveRecentRequestBuilder(
this.AppendSegmentToRequestUrl("oneDrive.recent"),
this.Client);
}
}
}
================================================
FILE: src/OneDriveSdk/Requests/Generated/DriveSharedCollectionPage.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using Microsoft.Graph;
/// <summary>
/// The type DriveSharedCollectionPage.
/// </summary>
public partial class DriveSharedCollectionPage : CollectionPage<Item>, IDriveSharedCollectionPage
{
/// <summary>
/// Gets the next page <see cref="IDriveSharedCollectionRequest"/> instance.
/// </summary>
public IDriveSharedCollectionRequest NextPageRequest { get; private set; }
/// <summary>
/// Initializes the NextPageRequest property.
/// </summary>
public void InitializeNextPageRequest(IBaseClient client, string nextPageLinkString)
{
if (!string.IsNullOrEmpty(nextPageLinkString))
{
this.NextPageRequest = new DriveSharedCollectionRequest(
nextPageLinkString,
client,
null);
}
}
}
}
================================================
FILE: src/OneDriveSdk/Requests/Generated/DriveSharedCollectionRequest.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading;
using Microsoft.Graph;
/// <summary>
/// The type DriveSharedCollectionRequest.
/// </summary>
public partial class DriveSharedCollectionRequest : BaseRequest, IDriveSharedCollectionRequest
{
/// <summary>
/// Constructs a new DriveSharedCollectionRequest.
/// </summary>
/// <param name="requestUrl">The URL for the built request.</param>
/// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param>
/// <param name="options">Query and header option name value pairs for the request.</param>
public DriveSharedCollectionRequest(
string requestUrl,
IBaseClient client,
IEnumerable<Option> options)
: base(requestUrl, client, options)
{
this.SdkVersionHeaderPrefix = "onedrive";
}
/// <summary>
/// Adds the specified Item to the collection via POST.
/// </summary>
/// <param name="item">The Item to add.</param>
/// <returns>The created Item.</returns>
public System.Threading.Tasks.Task<Item> AddAsync(Item item)
{
return this.AddAsync(item, CancellationToken.None);
}
/// <summary>
/// Adds the specified Item to the collection via POST.
/// </summary>
/// <param name="item">The Item to add.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The created Item.</returns>
public System.Threading.Tasks.Task<Item> AddAsync(Item item, CancellationToken cancellationToken)
{
this.ContentType = "application/json";
this.Method = "POST";
return this.SendAsync<Item>(item, cancellationToken);
}
/// <summary>
/// Gets the collection page.
/// </summary>
/// <returns>The collection page.</returns>
public System.Threading.Tasks.Task<IDriveSharedCollectionPage> GetAsync()
{
return this.GetAsync(CancellationToken.None);
}
/// <summary>
/// Gets the collection page.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The collection page.</returns>
public async System.Threading.Tasks.Task<IDriveSharedCollectionPage> GetAsync(CancellationToken cancellationToken)
{
this.Method = "GET";
var response = await this.SendAsync<DriveSharedCollectionResponse>(null, cancellationToken).ConfigureAwait(false);
if (response != null && response.Value != null && response.Value.CurrentPage != null)
{
if (response.AdditionalData != null)
{
object nextPageLink;
response.AdditionalData.TryGetValue("@odata.nextLink", out nextPageLink);
var nextPageLinkString = nextPageLink as string;
if (!string.IsNullOrEmpty(nextPageLinkString))
{
response.Value.InitializeNextPageRequest(
this.Client,
nextPageLinkString);
}
// Copy the additional data collection to the page itself so that information is not lost
response.Value.AdditionalData = response.AdditionalData;
}
return response.Value;
}
return null;
}
/// <summary>
/// Adds the specified expand value to the request.
/// </summary>
/// <param name="value">The expand value.</param>
/// <returns>The request object to send.</returns>
public IDriveSharedCollectionRequest Expand(string value)
{
this.QueryOptions.Add(new QueryOption("$expand", value));
return this;
}
/// <summary>
/// Adds the specified select value to the request.
/// </summary>
/// <param name="value">The select value.</param>
/// <returns>The request object to send.</returns>
public IDriveSharedCollectionRequest Select(string value)
{
this.QueryOptions.Add(new QueryOption("$select", value));
return this;
}
/// <summary>
/// Adds the specified top value to the request.
/// </summary>
/// <param name="value">The top value.</param>
/// <returns>The request object to send.</returns>
public IDriveSharedCollectionRequest Top(int value)
{
this.QueryOptions.Add(new QueryOption("$top", value.ToString()));
return this;
}
/// <summary>
/// Adds the specified filter value to the request.
/// </summary>
/// <param name="value">The filter value.</param>
/// <returns>The request object to send.</returns>
public IDriveSharedCollectionRequest Filter(string value)
{
this.QueryOptions.Add(new QueryOption("$filter", value));
return this;
}
/// <summary>
/// Adds the specified skip value to the request.
/// </summary>
/// <param name="value">The skip value.</param>
/// <returns>The request object to send.</returns>
public IDriveSharedCollectionRequest Skip(int value)
{
this.QueryOptions.Add(new QueryOption("$skip", value.ToString()));
return this;
}
/// <summary>
/// Adds the specified orderby value to the request.
/// </summary>
/// <param name="value">The orderby value.</param>
/// <returns>The request object to send.</returns>
public IDriveSharedCollectionRequest OrderBy(string value)
{
this.QueryOptions.Add(new QueryOption("$orderby", value));
return this;
}
}
}
================================================
FILE: src/OneDriveSdk/Requests/Generated/DriveSharedCollectionRequestBuilder.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using Microsoft.Graph;
/// <summary>
/// The type DriveSharedCollectionRequestBuilder.
/// </summary>
public partial class DriveSharedCollectionRequestBuilder : BaseRequestBuilder, IDriveSharedCollectionRequestBuilder
{
/// <summary>
/// Constructs a new DriveSharedCollectionRequestBuilder.
/// </summary>
/// <param name="requestUrl">The URL for the built request.</param>
/// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param>
public DriveSharedCollectionRequestBuilder(
string requestUrl,
IBaseClient client)
: base(requestUrl, client)
{
}
/// <summary>
/// Builds the request.
/// </summary>
/// <returns>The built request.</returns>
public IDriveSharedCollectionRequest Request()
{
return this.Request(null);
}
/// <summary>
/// Builds the request.
/// </summary>
/// <param name="options">The query and header options for the request.</param>
/// <returns>The built request.</returns>
public IDriveSharedCollectionRequest Request(IEnumerable<Option> options)
{
return new DriveSharedCollectionRequest(this.RequestUrl, this.Client, options);
}
/// <summary>
/// Gets an <see cref="IItemRequestBuilder"/> for the specified DriveItem.
/// </summary>
/// <param name="id">The ID for the DriveItem.</param>
/// <returns>The <see cref="IItemRequestBuilder"/>.</returns>
public IItemRequestBuilder this[string id]
{
get
{
return new ItemRequestBuilder(this.AppendSegmentToRequestUrl(id), this.Client);
}
}
}
}
================================================
FILE: src/OneDriveSdk/Requests/Generated/DriveSharedCollectionResponse.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System.Collections.Generic;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type DriveSharedCollectionResponse.
/// </summary>
[DataContract]
public class DriveSharedCollectionResponse
{
/// <summary>
/// Gets or sets the <see cref="IDriveSharedCollectionPage"/> value.
/// </summary>
[DataMember(Name = "value", EmitDefaultValue = false, IsRequired = false)]
public IDriveSharedCollectionPage Value { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Requests/Generated/DriveSpecialCollectionPage.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using Microsoft.Graph;
/// <summary>
/// The type DriveSpecialCollectionPage.
/// </summary>
public partial class DriveSpecialCollectionPage : CollectionPage<Item>, IDriveSpecialCollectionPage
{
/// <summary>
/// Gets the next page <see cref="IDriveSpecialCollectionRequest"/> instance.
/// </summary>
public IDriveSpecialCollectionRequest NextPageRequest { get; private set; }
/// <summary>
/// Initializes the NextPageRequest property.
/// </summary>
public void InitializeNextPageRequest(IBaseClient client, string nextPageLinkString)
{
if (!string.IsNullOrEmpty(nextPageLinkString))
{
this.NextPageRequest = new DriveSpecialCollectionRequest(
nextPageLinkString,
client,
null);
}
}
}
}
================================================
FILE: src/OneDriveSdk/Requests/Generated/DriveSpecialCollectionRequest.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading;
using Microsoft.Graph;
/// <summary>
/// The type DriveSpecialCollectionRequest.
/// </summary>
public partial class DriveSpecialCollectionRequest : BaseRequest, IDriveSpecialCollectionRequest
{
/// <summary>
/// Constructs a new DriveSpecialCollectionRequest.
/// </summary>
/// <param name="requestUrl">The URL for the built request.</param>
/// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param>
/// <param name="options">Query and header option name value pairs for the request.</param>
public DriveSpecialCollectionRequest(
string requestUrl,
IBaseClient client,
IEnumerable<Option> options)
: base(requestUrl, client, options)
{
this.SdkVersionHeaderPrefix = "onedrive";
}
/// <summary>
/// Adds the specified Item to the collection via POST.
/// </summary>
/// <param name="item">The Item to add.</param>
/// <returns>The created Item.</returns>
public System.Threading.Tasks.Task<Item> AddAsync(Item item)
{
return this.AddAsync(item, CancellationToken.None);
}
/// <summary>
/// Adds the specified Item to the collection via POST.
/// </summary>
/// <param name="item">The Item to add.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The created Item.</returns>
public System.Threading.Tasks.Task<Item> AddAsync(Item item, CancellationToken cancellationToken)
{
this.ContentType = "application/json";
this.Method = "POST";
return this.SendAsync<Item>(item, cancellationToken);
}
/// <summary>
/// Gets the collection page.
/// </summary>
/// <returns>The collection page.</returns>
public System.Threading.Tasks.Task<IDriveSpecialCollectionPage> GetAsync()
{
return this.GetAsync(CancellationToken.None);
}
/// <summary>
/// Gets the collection page.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The collection page.</returns>
public async System.Threading.Tasks.Task<IDriveSpecialCollectionPage> GetAsync(CancellationToken cancellationToken)
{
this.Method = "GET";
var response = await this.SendAsync<DriveSpecialCollectionResponse>(null, cancellationToken).ConfigureAwait(false);
if (response != null && response.Value != null && response.Value.CurrentPage != null)
{
if (response.AdditionalData != null)
{
object nextPageLink;
response.AdditionalData.TryGetValue("@odata.nextLink", out nextPageLink);
var nextPageLinkString = nextPageLink as string;
if (!string.IsNullOrEmpty(nextPageLinkString))
{
response.Value.InitializeNextPageRequest(
this.Client,
nextPageLinkString);
}
// Copy the additional data collection to the page itself so that information is not lost
response.Value.AdditionalData = response.AdditionalData;
}
return response.Value;
}
return null;
}
/// <summary>
/// Adds the specified expand value to the request.
/// </summary>
/// <param name="value">The expand value.</param>
/// <returns>The request object to send.</returns>
public IDriveSpecialCollectionRequest Expand(string value)
{
this.QueryOptions.Add(new QueryOption("$expand", value));
return this;
}
/// <summary>
/// Adds the specified select value to the request.
/// </summary>
/// <param name="value">The select value.</param>
/// <returns>The request object to send.</returns>
public IDriveSpecialCollectionRequest Select(string value)
{
this.QueryOptions.Add(new QueryOption("$select", value));
return this;
}
/// <summary>
/// Adds the specified top value to the request.
/// </summary>
/// <param name="value">The top value.</param>
/// <returns>The request object to send.</returns>
public IDriveSpecialCollectionRequest Top(int value)
{
this.QueryOptions.Add(new QueryOption("$top", value.ToString()));
return this;
}
/// <summary>
/// Adds the specified filter value to the request.
/// </summary>
/// <param name="value">The filter value.</param>
/// <returns>The request object to send.</returns>
public IDriveSpecialCollectionRequest Filter(string value)
{
this.QueryOptions.Add(new QueryOption("$filter", value));
return this;
}
/// <summary>
/// Adds the specified skip value to the request.
/// </summary>
/// <param name="value">The skip value.</param>
/// <returns>The request object to send.</returns>
public IDriveSpecialCollectionRequest Skip(int value)
{
this.QueryOptions.Add(new QueryOption("$skip", value.ToString()));
return this;
}
/// <summary>
/// Adds the specified orderby value to the request.
/// </summary>
/// <param name="value">The orderby value.</param>
/// <returns>The request object to send.</returns>
public IDriveSpecialCollectionRequest OrderBy(string value)
{
this.QueryOptions.Add(new QueryOption("$orderby", value));
return this;
}
}
}
================================================
FILE: src/OneDriveSdk/Requests/Generated/DriveSpecialCollectionRequestBuilder.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using System.Collections.Generic;
using Microsoft.Graph;
/// <summary>
/// The type DriveSpecialCollectionRequestBuilder.
/// </summary>
public partial class DriveSpecialCollectionRequestBuilder : BaseRequestBuilder, IDriveSpecialCollectionRequestBuilder
{
/// <summary>
/// Constructs a new DriveSpecialCollectionRequestBuilder.
/// </summary>
/// <param name="requestUrl">The URL for the built request.</param>
/// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param>
public DriveSpecialCollectionRequestBuilder(
string requestUrl,
IBaseClient client)
: base(requestUrl, client)
{
}
/// <summary>
/// Builds the request.
/// </summary>
/// <returns>The built request.</returns>
public IDriveSpecialCollectionRequest Request()
{
return this.Request(null);
}
/// <summary>
/// Builds the request.
/// </summary>
/// <param name="options">The query and header options for the request.</param>
/// <returns>The built request.</returns>
public IDriveSpecialCollectionRequest Request(IEnumerable<Option> options)
{
return new DriveSpecialCollectionRequest(this.RequestUrl, this.Client, options);
}
/// <summary>
/// Gets an <see cref="IItemRequestBuilder"/> for the specified DriveItem.
/// </summary>
/// <param name="id">The ID for the DriveItem.</param>
/// <returns>The <see cref="IItemRequestBuilder"/>.</returns>
public IItemRequestBuilder this[string id]
{
get
{
return new ItemRequestBuilder(this.AppendSegmentToRequestUrl(id), this.Client);
}
}
}
}
================================================
FILE: src/OneDriveSdk/Requests/Generated/DriveSpecialCollectionResponse.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System.Collections.Generic;
using System.Runtime.Serialization;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The type DriveSpecialCollectionResponse.
/// </summary>
[DataContract]
public class DriveSpecialCollectionResponse
{
/// <summary>
/// Gets or sets the <see cref="IDriveSpecialCollectionPage"/> value.
/// </summary>
[DataMember(Name = "value", EmitDefaultValue = false, IsRequired = false)]
public IDriveSpecialCollectionPage Value { get; set; }
/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
}
}
================================================
FILE: src/OneDriveSdk/Requests/Generated/IDriveItemsCollectionPage.cs
================================================
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.OneDrive.Sdk
{
using System;
using Microsoft.Graph;
using Newtonsoft.Json;
/// <summary>
/// The interface IDriveItemsCollectionPage.
/// </summary>
[JsonConverter(typeof(InterfaceConverter<DriveItemsCollectionPage>))]
public interface IDriveItemsCollectionPage : ICollectionPage<Item>
{
/// <summary>
/// Gets the next page <see cref="IDriveItemsCollectionRequest"/> instance.
/// </summary>
IDriveItemsCollectionRequest NextPageRequest { get; }
/// <summary>
/// Initializes the NextPageRequest property.
/// </summary>
void InitializeNextPageRequest(IBaseClient client, string nextPageLinkString);
}
}
================================================
FILE: src/OneDriveSdk/Requests/Generated/IDriveItemsCollectionRequest.cs
=======================================
gitextract_f6t6dqdk/
├── .gitignore
├── Common/
│ └── Microsoft.OneDriveSDK.nuspec
├── LICENSE.txt
├── OneDriveSdk.sln
├── README.md
├── docs/
│ ├── auth.md
│ ├── chunked-uploads.md
│ ├── collections.md
│ ├── errors.md
│ ├── items.md
│ └── overview.md
├── src/
│ └── OneDriveSdk/
│ ├── Constants.cs
│ ├── Enums/
│ │ └── OneDriveErrorCode.cs
│ ├── Helpers/
│ │ └── ChunkedUploadProvider.cs
│ ├── Microsoft.OneDrive.Sdk.csproj
│ ├── Models/
│ │ └── Generated/
│ │ ├── Audio.cs
│ │ ├── ChunkedUploadSessionDescriptor.cs
│ │ ├── Deleted.cs
│ │ ├── Drive.cs
│ │ ├── File.cs
│ │ ├── FileSystemInfo.cs
│ │ ├── Folder.cs
│ │ ├── Hashes.cs
│ │ ├── Identity.cs
│ │ ├── IdentitySet.cs
│ │ ├── Image.cs
│ │ ├── Item.cs
│ │ ├── ItemCopyRequestBody.cs
│ │ ├── ItemCreateLinkRequestBody.cs
│ │ ├── ItemCreateSessionRequestBody.cs
│ │ ├── ItemInviteRequestBody.cs
│ │ ├── ItemReference.cs
│ │ ├── Location.cs
│ │ ├── OpenWithApp.cs
│ │ ├── OpenWithSet.cs
│ │ ├── Permission.cs
│ │ ├── Photo.cs
│ │ ├── Quota.cs
│ │ ├── Recipient.cs
│ │ ├── SearchResult.cs
│ │ ├── Share.cs
│ │ ├── Shared.cs
│ │ ├── SharingInvitation.cs
│ │ ├── SharingLink.cs
│ │ ├── SpecialFolder.cs
│ │ ├── Thumbnail.cs
│ │ ├── ThumbnailSet.cs
│ │ ├── UploadSession.cs
│ │ └── Video.cs
│ ├── Properties/
│ │ └── AssemblyInfo.cs
│ ├── Requests/
│ │ ├── Extensions/
│ │ │ ├── DriveRequestBuilderExtensions.cs
│ │ │ ├── DriveSpecialCollectionRequestBuilderExtensions.cs
│ │ │ ├── IDriveRequestBuilderExtensions.cs
│ │ │ ├── IDriveSpecialCollectionRequestBuilderExtensions.cs
│ │ │ ├── IItemRequestBuilderExtensions.cs
│ │ │ ├── IOneDriveClientExtensions.cs
│ │ │ ├── IShareRequestBuilderExtensions.cs
│ │ │ ├── IThumbnailSetRequestBuilderExtensions.cs
│ │ │ ├── ItemRequestBuilderExtensions.cs
│ │ │ ├── OneDriveClientExtensions.cs
│ │ │ ├── ShareRequestBuilderExtensions.cs
│ │ │ ├── ThumbnailSetExtensions.cs
│ │ │ └── ThumbnailSetRequestBuilderExtensions.cs
│ │ ├── Generated/
│ │ │ ├── DriveItemsCollectionPage.cs
│ │ │ ├── DriveItemsCollectionRequest.cs
│ │ │ ├── DriveItemsCollectionRequestBuilder.cs
│ │ │ ├── DriveItemsCollectionResponse.cs
│ │ │ ├── DriveRecentCollectionPage.cs
│ │ │ ├── DriveRecentCollectionResponse.cs
│ │ │ ├── DriveRecentRequest.cs
│ │ │ ├── DriveRecentRequestBuilder.cs
│ │ │ ├── DriveRequest.cs
│ │ │ ├── DriveRequestBuilder.cs
│ │ │ ├── DriveSharedCollectionPage.cs
│ │ │ ├── DriveSharedCollectionRequest.cs
│ │ │ ├── DriveSharedCollectionRequestBuilder.cs
│ │ │ ├── DriveSharedCollectionResponse.cs
│ │ │ ├── DriveSpecialCollectionPage.cs
│ │ │ ├── DriveSpecialCollectionRequest.cs
│ │ │ ├── DriveSpecialCollectionRequestBuilder.cs
│ │ │ ├── DriveSpecialCollectionResponse.cs
│ │ │ ├── IDriveItemsCollectionPage.cs
│ │ │ ├── IDriveItemsCollectionRequest.cs
│ │ │ ├── IDriveItemsCollectionRequestBuilder.cs
│ │ │ ├── IDriveRecentCollectionPage.cs
│ │ │ ├── IDriveRecentRequest.cs
│ │ │ ├── IDriveRecentRequestBuilder.cs
│ │ │ ├── IDriveRequest.cs
│ │ │ ├── IDriveRequestBuilder.cs
│ │ │ ├── IDriveSharedCollectionPage.cs
│ │ │ ├── IDriveSharedCollectionRequest.cs
│ │ │ ├── IDriveSharedCollectionRequestBuilder.cs
│ │ │ ├── IDriveSpecialCollectionPage.cs
│ │ │ ├── IDriveSpecialCollectionRequest.cs
│ │ │ ├── IDriveSpecialCollectionRequestBuilder.cs
│ │ │ ├── IItemChildrenCollectionPage.cs
│ │ │ ├── IItemChildrenCollectionRequest.cs
│ │ │ ├── IItemChildrenCollectionRequestBuilder.cs
│ │ │ ├── IItemContentRequest.cs
│ │ │ ├── IItemContentRequestBuilder.cs
│ │ │ ├── IItemCopyRequest.cs
│ │ │ ├── IItemCopyRequestBuilder.cs
│ │ │ ├── IItemCreateLinkRequest.cs
│ │ │ ├── IItemCreateLinkRequestBuilder.cs
│ │ │ ├── IItemCreateSessionRequest.cs
│ │ │ ├── IItemCreateSessionRequestBuilder.cs
│ │ │ ├── IItemDeltaCollectionPage.cs
│ │ │ ├── IItemDeltaRequest.cs
│ │ │ ├── IItemDeltaRequestBuilder.cs
│ │ │ ├── IItemInviteRequest.cs
│ │ │ ├── IItemInviteRequestBuilder.cs
│ │ │ ├── IItemPermissionsCollectionPage.cs
│ │ │ ├── IItemPermissionsCollectionRequest.cs
│ │ │ ├── IItemPermissionsCollectionRequestBuilder.cs
│ │ │ ├── IItemRequest.cs
│ │ │ ├── IItemRequestBuilder.cs
│ │ │ ├── IItemSearchCollectionPage.cs
│ │ │ ├── IItemSearchRequest.cs
│ │ │ ├── IItemSearchRequestBuilder.cs
│ │ │ ├── IItemThumbnailsCollectionPage.cs
│ │ │ ├── IItemThumbnailsCollectionRequest.cs
│ │ │ ├── IItemThumbnailsCollectionRequestBuilder.cs
│ │ │ ├── IItemVersionsCollectionPage.cs
│ │ │ ├── IItemVersionsCollectionRequest.cs
│ │ │ ├── IItemVersionsCollectionRequestBuilder.cs
│ │ │ ├── IOneDriveClient.cs
│ │ │ ├── IOneDriveDrivesCollectionPage.cs
│ │ │ ├── IOneDriveDrivesCollectionRequest.cs
│ │ │ ├── IOneDriveDrivesCollectionRequestBuilder.cs
│ │ │ ├── IOneDriveSharesCollectionPage.cs
│ │ │ ├── IOneDriveSharesCollectionRequest.cs
│ │ │ ├── IOneDriveSharesCollectionRequestBuilder.cs
│ │ │ ├── IPermissionRequest.cs
│ │ │ ├── IPermissionRequestBuilder.cs
│ │ │ ├── IShareItemsCollectionPage.cs
│ │ │ ├── IShareItemsCollectionRequest.cs
│ │ │ ├── IShareItemsCollectionRequestBuilder.cs
│ │ │ ├── IShareRequest.cs
│ │ │ ├── IShareRequestBuilder.cs
│ │ │ ├── IThumbnailContentRequest.cs
│ │ │ ├── IThumbnailContentRequestBuilder.cs
│ │ │ ├── IThumbnailSetRequest.cs
│ │ │ ├── IThumbnailSetRequestBuilder.cs
│ │ │ ├── ItemChildrenCollectionPage.cs
│ │ │ ├── ItemChildrenCollectionRequest.cs
│ │ │ ├── ItemChildrenCollectionRequestBuilder.cs
│ │ │ ├── ItemChildrenCollectionResponse.cs
│ │ │ ├── ItemContentRequest.cs
│ │ │ ├── ItemContentRequestBuilder.cs
│ │ │ ├── ItemCopyRequest.cs
│ │ │ ├── ItemCopyRequestBuilder.cs
│ │ │ ├── ItemCreateLinkRequest.cs
│ │ │ ├── ItemCreateLinkRequestBuilder.cs
│ │ │ ├── ItemCreateSessionRequest.cs
│ │ │ ├── ItemCreateSessionRequestBuilder.cs
│ │ │ ├── ItemDeltaCollectionPage.cs
│ │ │ ├── ItemDeltaCollectionResponse.cs
│ │ │ ├── ItemDeltaRequest.cs
│ │ │ ├── ItemDeltaRequestBuilder.cs
│ │ │ ├── ItemInviteRequest.cs
│ │ │ ├── ItemInviteRequestBuilder.cs
│ │ │ ├── ItemPermissionsCollectionPage.cs
│ │ │ ├── ItemPermissionsCollectionRequest.cs
│ │ │ ├── ItemPermissionsCollectionRequestBuilder.cs
│ │ │ ├── ItemPermissionsCollectionResponse.cs
│ │ │ ├── ItemRequest.cs
│ │ │ ├── ItemRequestBuilder.cs
│ │ │ ├── ItemSearchCollectionPage.cs
│ │ │ ├── ItemSearchCollectionResponse.cs
│ │ │ ├── ItemSearchRequest.cs
│ │ │ ├── ItemSearchRequestBuilder.cs
│ │ │ ├── ItemThumbnailsCollectionPage.cs
│ │ │ ├── ItemThumbnailsCollectionRequest.cs
│ │ │ ├── ItemThumbnailsCollectionRequestBuilder.cs
│ │ │ ├── ItemThumbnailsCollectionResponse.cs
│ │ │ ├── ItemVersionsCollectionPage.cs
│ │ │ ├── ItemVersionsCollectionRequest.cs
│ │ │ ├── ItemVersionsCollectionRequestBuilder.cs
│ │ │ ├── ItemVersionsCollectionResponse.cs
│ │ │ ├── OneDriveClient.cs
│ │ │ ├── OneDriveDrivesCollectionPage.cs
│ │ │ ├── OneDriveDrivesCollectionRequest.cs
│ │ │ ├── OneDriveDrivesCollectionRequestBuilder.cs
│ │ │ ├── OneDriveDrivesCollectionResponse.cs
│ │ │ ├── OneDriveSharesCollectionPage.cs
│ │ │ ├── OneDriveSharesCollectionRequest.cs
│ │ │ ├── OneDriveSharesCollectionRequestBuilder.cs
│ │ │ ├── OneDriveSharesCollectionResponse.cs
│ │ │ ├── PermissionRequest.cs
│ │ │ ├── PermissionRequestBuilder.cs
│ │ │ ├── ShareItemsCollectionPage.cs
│ │ │ ├── ShareItemsCollectionRequest.cs
│ │ │ ├── ShareItemsCollectionRequestBuilder.cs
│ │ │ ├── ShareItemsCollectionResponse.cs
│ │ │ ├── ShareRequest.cs
│ │ │ ├── ShareRequestBuilder.cs
│ │ │ ├── ThumbnailContentRequest.cs
│ │ │ ├── ThumbnailContentRequestBuilder.cs
│ │ │ ├── ThumbnailSetRequest.cs
│ │ │ └── ThumbnailSetRequestBuilder.cs
│ │ ├── IThumbnailRequest.cs
│ │ ├── IThumbnailRequestBuilder.cs
│ │ ├── IUploadChunkRequest.cs
│ │ ├── ThumbnailRequest.cs
│ │ ├── ThumbnailRequestBuilder.cs
│ │ ├── UploadChunkRequest.cs
│ │ └── UploadSessionRequest.cs
│ ├── app.config
│ └── packages.config
└── tests/
└── Test.OneDriveSdk/
├── 35MSSharedLib1024.snk
├── ChunkedUploadProviderTests.cs
├── Mocks/
│ ├── ExceptionHttpMessageHandler.cs
│ ├── MockAuthenticationProvider.cs
│ ├── MockHttpProvider.cs
│ ├── MockSerializer.cs
│ ├── TestChunkedUploadProvider.cs
│ └── TestHttpMessageHandler.cs
├── Properties/
│ └── AssemblyInfo.cs
├── Requests/
│ ├── ItemRequestTests.cs
│ ├── MethodRequestTests.cs
│ ├── RequestTestBase.cs
│ ├── ThumbnailRequestTests.cs
│ └── UploadChunkRequestTest.cs
├── Test.OneDrive.Sdk.csproj
├── app.config
└── packages.config
SYMBOL INDEX (885 symbols across 206 files)
FILE: src/OneDriveSdk/Constants.cs
class Constants (line 7) | public static class Constants
class Headers (line 11) | public static class Headers
class Url (line 16) | public static class Url
FILE: src/OneDriveSdk/Enums/OneDriveErrorCode.cs
type OneDriveErrorCode (line 7) | public enum OneDriveErrorCode
FILE: src/OneDriveSdk/Helpers/ChunkedUploadProvider.cs
class ChunkedUploadProvider (line 20) | public class ChunkedUploadProvider
method ChunkedUploadProvider (line 41) | public ChunkedUploadProvider(UploadSession session, IBaseClient client...
method GetUploadChunkRequests (line 65) | public virtual IEnumerable<UploadChunkRequest> GetUploadChunkRequests(...
method UpdateSessionStatusAsync (line 94) | public virtual async Task<UploadSession> UpdateSessionStatusAsync()
method DeleteSession (line 111) | public async Task DeleteSession()
method UploadAsync (line 122) | public async Task<Item> UploadAsync(int maxTries = 3, IEnumerable<Opti...
method GetChunkRequestResponseAsync (line 154) | public virtual async Task<UploadChunkResult> GetChunkRequestResponseAs...
method GetRangesRemaining (line 199) | internal List<Tuple<long, long>> GetRangesRemaining(UploadSession sess...
method NextChunkSize (line 215) | private int NextChunkSize(long rangeBegin, long rangeEnd)
FILE: src/OneDriveSdk/Models/Generated/Audio.cs
class Audio (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/ChunkedUploadSessionDescriptor.cs
class ChunkedUploadSessionDescriptor (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/Deleted.cs
class Deleted (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/Drive.cs
class Drive (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/File.cs
class File (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/FileSystemInfo.cs
class FileSystemInfo (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/Folder.cs
class Folder (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/Hashes.cs
class Hashes (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/Identity.cs
class Identity (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/IdentitySet.cs
class IdentitySet (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/Image.cs
class Image (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/Item.cs
class Item (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/ItemCopyRequestBody.cs
class ItemCopyRequestBody (line 19) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/ItemCreateLinkRequestBody.cs
class ItemCreateLinkRequestBody (line 19) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/ItemCreateSessionRequestBody.cs
class ItemCreateSessionRequestBody (line 19) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/ItemInviteRequestBody.cs
class ItemInviteRequestBody (line 19) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/ItemReference.cs
class ItemReference (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/Location.cs
class Location (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/OpenWithApp.cs
class OpenWithApp (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/OpenWithSet.cs
class OpenWithSet (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/Permission.cs
class Permission (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/Photo.cs
class Photo (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/Quota.cs
class Quota (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/Recipient.cs
class Recipient (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/SearchResult.cs
class SearchResult (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/Share.cs
class Share (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/Shared.cs
class Shared (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/SharingInvitation.cs
class SharingInvitation (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/SharingLink.cs
class SharingLink (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/SpecialFolder.cs
class SpecialFolder (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/Thumbnail.cs
class Thumbnail (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/ThumbnailSet.cs
class ThumbnailSet (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/UploadSession.cs
class UploadSession (line 20) | [DataContract]
FILE: src/OneDriveSdk/Models/Generated/Video.cs
class Video (line 20) | [DataContract]
FILE: src/OneDriveSdk/Requests/Extensions/DriveRequestBuilderExtensions.cs
class DriveRequestBuilder (line 7) | public partial class DriveRequestBuilder
FILE: src/OneDriveSdk/Requests/Extensions/DriveSpecialCollectionRequestBuilderExtensions.cs
class DriveSpecialCollectionRequestBuilder (line 7) | public partial class DriveSpecialCollectionRequestBuilder
FILE: src/OneDriveSdk/Requests/Extensions/IDriveRequestBuilderExtensions.cs
type IDriveRequestBuilder (line 6) | public partial interface IDriveRequestBuilder
FILE: src/OneDriveSdk/Requests/Extensions/IDriveSpecialCollectionRequestBuilderExtensions.cs
type IDriveSpecialCollectionRequestBuilder (line 7) | public partial interface IDriveSpecialCollectionRequestBuilder
FILE: src/OneDriveSdk/Requests/Extensions/IItemRequestBuilderExtensions.cs
type IItemRequestBuilder (line 10) | public partial interface IItemRequestBuilder
method ItemWithPath (line 16) | IItemRequestBuilder ItemWithPath(string path);
FILE: src/OneDriveSdk/Requests/Extensions/IOneDriveClientExtensions.cs
type IOneDriveClient (line 7) | public partial interface IOneDriveClient
method ItemWithPath (line 19) | IItemRequestBuilder ItemWithPath(string path);
FILE: src/OneDriveSdk/Requests/Extensions/IShareRequestBuilderExtensions.cs
type IShareRequestBuilder (line 7) | public partial interface IShareRequestBuilder
FILE: src/OneDriveSdk/Requests/Extensions/IThumbnailSetRequestBuilderExtensions.cs
type IThumbnailSetRequestBuilder (line 7) | public partial interface IThumbnailSetRequestBuilder
FILE: src/OneDriveSdk/Requests/Extensions/ItemRequestBuilderExtensions.cs
class ItemRequestBuilder (line 10) | public partial class ItemRequestBuilder
method ItemWithPath (line 16) | public IItemRequestBuilder ItemWithPath(string path)
FILE: src/OneDriveSdk/Requests/Extensions/OneDriveClientExtensions.cs
class OneDriveClient (line 7) | public partial class OneDriveClient
method ItemWithPath (line 24) | public IItemRequestBuilder ItemWithPath(string path)
FILE: src/OneDriveSdk/Requests/Extensions/ShareRequestBuilderExtensions.cs
class ShareRequestBuilder (line 7) | public partial class ShareRequestBuilder
FILE: src/OneDriveSdk/Requests/Extensions/ThumbnailSetExtensions.cs
class ThumbnailSet (line 7) | public partial class ThumbnailSet
FILE: src/OneDriveSdk/Requests/Extensions/ThumbnailSetRequestBuilderExtensions.cs
class ThumbnailSetRequestBuilder (line 10) | public partial class ThumbnailSetRequestBuilder
FILE: src/OneDriveSdk/Requests/Generated/DriveItemsCollectionPage.cs
class DriveItemsCollectionPage (line 16) | public partial class DriveItemsCollectionPage : CollectionPage<Item>, ID...
method InitializeNextPageRequest (line 26) | public void InitializeNextPageRequest(IBaseClient client, string nextP...
FILE: src/OneDriveSdk/Requests/Generated/DriveItemsCollectionRequest.cs
class DriveItemsCollectionRequest (line 19) | public partial class DriveItemsCollectionRequest : BaseRequest, IDriveIt...
method DriveItemsCollectionRequest (line 27) | public DriveItemsCollectionRequest(
method AddAsync (line 41) | public System.Threading.Tasks.Task<Item> AddAsync(Item item)
method AddAsync (line 52) | public System.Threading.Tasks.Task<Item> AddAsync(Item item, Cancellat...
method GetAsync (line 63) | public System.Threading.Tasks.Task<IDriveItemsCollectionPage> GetAsync()
method GetAsync (line 73) | public async System.Threading.Tasks.Task<IDriveItemsCollectionPage> Ge...
method Expand (line 108) | public IDriveItemsCollectionRequest Expand(string value)
method Select (line 119) | public IDriveItemsCollectionRequest Select(string value)
method Top (line 130) | public IDriveItemsCollectionRequest Top(int value)
method Filter (line 141) | public IDriveItemsCollectionRequest Filter(string value)
method Skip (line 152) | public IDriveItemsCollectionRequest Skip(int value)
method OrderBy (line 163) | public IDriveItemsCollectionRequest OrderBy(string value)
FILE: src/OneDriveSdk/Requests/Generated/DriveItemsCollectionRequestBuilder.cs
class DriveItemsCollectionRequestBuilder (line 16) | public partial class DriveItemsCollectionRequestBuilder : BaseRequestBui...
method DriveItemsCollectionRequestBuilder (line 23) | public DriveItemsCollectionRequestBuilder(
method Request (line 34) | public IDriveItemsCollectionRequest Request()
method Request (line 44) | public IDriveItemsCollectionRequest Request(IEnumerable<Option> options)
FILE: src/OneDriveSdk/Requests/Generated/DriveItemsCollectionResponse.cs
class DriveItemsCollectionResponse (line 17) | [DataContract]
FILE: src/OneDriveSdk/Requests/Generated/DriveRecentCollectionPage.cs
class DriveRecentCollectionPage (line 15) | public partial class DriveRecentCollectionPage : CollectionPage<Item>, I...
method InitializeNextPageRequest (line 25) | public void InitializeNextPageRequest(IBaseClient client, string nextP...
FILE: src/OneDriveSdk/Requests/Generated/DriveRecentCollectionResponse.cs
class DriveRecentCollectionResponse (line 18) | [DataContract]
FILE: src/OneDriveSdk/Requests/Generated/DriveRecentRequest.cs
class DriveRecentRequest (line 20) | public partial class DriveRecentRequest : BaseRequest, IDriveRecentRequest
method DriveRecentRequest (line 25) | public DriveRecentRequest(
method GetAsync (line 37) | public System.Threading.Tasks.Task<IDriveRecentCollectionPage> GetAsync()
method GetAsync (line 47) | public async System.Threading.Tasks.Task<IDriveRecentCollectionPage> G...
method Expand (line 81) | public IDriveRecentRequest Expand(string value)
method Select (line 92) | public IDriveRecentRequest Select(string value)
method Top (line 103) | public IDriveRecentRequest Top(int value)
method Filter (line 114) | public IDriveRecentRequest Filter(string value)
method Skip (line 125) | public IDriveRecentRequest Skip(int value)
method OrderBy (line 136) | public IDriveRecentRequest OrderBy(string value)
FILE: src/OneDriveSdk/Requests/Generated/DriveRecentRequestBuilder.cs
class DriveRecentRequestBuilder (line 18) | public partial class DriveRecentRequestBuilder : BaseFunctionMethodReque...
method DriveRecentRequestBuilder (line 25) | public DriveRecentRequestBuilder(
method CreateRequest (line 39) | protected override IDriveRecentRequest CreateRequest(string functionUr...
FILE: src/OneDriveSdk/Requests/Generated/DriveRequest.cs
class DriveRequest (line 20) | public partial class DriveRequest : BaseRequest, IDriveRequest
method DriveRequest (line 28) | public DriveRequest(
method CreateAsync (line 42) | public System.Threading.Tasks.Task<Drive> CreateAsync(Drive driveToCre...
method CreateAsync (line 53) | public async System.Threading.Tasks.Task<Drive> CreateAsync(Drive driv...
method DeleteAsync (line 66) | public System.Threading.Tasks.Task DeleteAsync()
method DeleteAsync (line 76) | public async System.Threading.Tasks.Task DeleteAsync(CancellationToken...
method GetAsync (line 86) | public System.Threading.Tasks.Task<Drive> GetAsync()
method GetAsync (line 96) | public async System.Threading.Tasks.Task<Drive> GetAsync(CancellationT...
method UpdateAsync (line 109) | public System.Threading.Tasks.Task<Drive> UpdateAsync(Drive driveToUpd...
method UpdateAsync (line 120) | public async System.Threading.Tasks.Task<Drive> UpdateAsync(Drive driv...
method Expand (line 134) | public IDriveRequest Expand(string value)
method Select (line 145) | public IDriveRequest Select(string value)
method InitializeCollectionProperties (line 155) | private void InitializeCollectionProperties(Drive driveToInitialize)
FILE: src/OneDriveSdk/Requests/Generated/DriveRequestBuilder.cs
class DriveRequestBuilder (line 18) | public partial class DriveRequestBuilder : BaseRequestBuilder, IDriveReq...
method DriveRequestBuilder (line 26) | public DriveRequestBuilder(
method Request (line 37) | public IDriveRequest Request()
method Request (line 47) | public IDriveRequest Request(IEnumerable<Option> options)
method Recent (line 92) | public IDriveRecentRequestBuilder Recent()
FILE: src/OneDriveSdk/Requests/Generated/DriveSharedCollectionPage.cs
class DriveSharedCollectionPage (line 16) | public partial class DriveSharedCollectionPage : CollectionPage<Item>, I...
method InitializeNextPageRequest (line 26) | public void InitializeNextPageRequest(IBaseClient client, string nextP...
FILE: src/OneDriveSdk/Requests/Generated/DriveSharedCollectionRequest.cs
class DriveSharedCollectionRequest (line 19) | public partial class DriveSharedCollectionRequest : BaseRequest, IDriveS...
method DriveSharedCollectionRequest (line 27) | public DriveSharedCollectionRequest(
method AddAsync (line 41) | public System.Threading.Tasks.Task<Item> AddAsync(Item item)
method AddAsync (line 52) | public System.Threading.Tasks.Task<Item> AddAsync(Item item, Cancellat...
method GetAsync (line 63) | public System.Threading.Tasks.Task<IDriveSharedCollectionPage> GetAsync()
method GetAsync (line 73) | public async System.Threading.Tasks.Task<IDriveSharedCollectionPage> G...
method Expand (line 108) | public IDriveSharedCollectionRequest Expand(string value)
method Select (line 119) | public IDriveSharedCollectionRequest Select(string value)
method Top (line 130) | public IDriveSharedCollectionRequest Top(int value)
method Filter (line 141) | public IDriveSharedCollectionRequest Filter(string value)
method Skip (line 152) | public IDriveSharedCollectionRequest Skip(int value)
method OrderBy (line 163) | public IDriveSharedCollectionRequest OrderBy(string value)
FILE: src/OneDriveSdk/Requests/Generated/DriveSharedCollectionRequestBuilder.cs
class DriveSharedCollectionRequestBuilder (line 16) | public partial class DriveSharedCollectionRequestBuilder : BaseRequestBu...
method DriveSharedCollectionRequestBuilder (line 23) | public DriveSharedCollectionRequestBuilder(
method Request (line 34) | public IDriveSharedCollectionRequest Request()
method Request (line 44) | public IDriveSharedCollectionRequest Request(IEnumerable<Option> options)
FILE: src/OneDriveSdk/Requests/Generated/DriveSharedCollectionResponse.cs
class DriveSharedCollectionResponse (line 17) | [DataContract]
FILE: src/OneDriveSdk/Requests/Generated/DriveSpecialCollectionPage.cs
class DriveSpecialCollectionPage (line 16) | public partial class DriveSpecialCollectionPage : CollectionPage<Item>, ...
method InitializeNextPageRequest (line 26) | public void InitializeNextPageRequest(IBaseClient client, string nextP...
FILE: src/OneDriveSdk/Requests/Generated/DriveSpecialCollectionRequest.cs
class DriveSpecialCollectionRequest (line 19) | public partial class DriveSpecialCollectionRequest : BaseRequest, IDrive...
method DriveSpecialCollectionRequest (line 27) | public DriveSpecialCollectionRequest(
method AddAsync (line 41) | public System.Threading.Tasks.Task<Item> AddAsync(Item item)
method AddAsync (line 52) | public System.Threading.Tasks.Task<Item> AddAsync(Item item, Cancellat...
method GetAsync (line 63) | public System.Threading.Tasks.Task<IDriveSpecialCollectionPage> GetAsy...
method GetAsync (line 73) | public async System.Threading.Tasks.Task<IDriveSpecialCollectionPage> ...
method Expand (line 108) | public IDriveSpecialCollectionRequest Expand(string value)
method Select (line 119) | public IDriveSpecialCollectionRequest Select(string value)
method Top (line 130) | public IDriveSpecialCollectionRequest Top(int value)
method Filter (line 141) | public IDriveSpecialCollectionRequest Filter(string value)
method Skip (line 152) | public IDriveSpecialCollectionRequest Skip(int value)
method OrderBy (line 163) | public IDriveSpecialCollectionRequest OrderBy(string value)
FILE: src/OneDriveSdk/Requests/Generated/DriveSpecialCollectionRequestBuilder.cs
class DriveSpecialCollectionRequestBuilder (line 16) | public partial class DriveSpecialCollectionRequestBuilder : BaseRequestB...
method DriveSpecialCollectionRequestBuilder (line 23) | public DriveSpecialCollectionRequestBuilder(
method Request (line 34) | public IDriveSpecialCollectionRequest Request()
method Request (line 44) | public IDriveSpecialCollectionRequest Request(IEnumerable<Option> opti...
FILE: src/OneDriveSdk/Requests/Generated/DriveSpecialCollectionResponse.cs
class DriveSpecialCollectionResponse (line 17) | [DataContract]
FILE: src/OneDriveSdk/Requests/Generated/IDriveItemsCollectionPage.cs
type IDriveItemsCollectionPage (line 17) | [JsonConverter(typeof(InterfaceConverter<DriveItemsCollectionPage>))]
method InitializeNextPageRequest (line 28) | void InitializeNextPageRequest(IBaseClient client, string nextPageLink...
FILE: src/OneDriveSdk/Requests/Generated/IDriveItemsCollectionRequest.cs
type IDriveItemsCollectionRequest (line 19) | public partial interface IDriveItemsCollectionRequest : IBaseRequest
method AddAsync (line 27) | System.Threading.Tasks.Task<Item> AddAsync(Item item);
method AddAsync (line 35) | System.Threading.Tasks.Task<Item> AddAsync(Item item, CancellationToke...
method GetAsync (line 40) | System.Threading.Tasks.Task<IDriveItemsCollectionPage> GetAsync();
method GetAsync (line 47) | System.Threading.Tasks.Task<IDriveItemsCollectionPage> GetAsync(Cancel...
method Expand (line 54) | IDriveItemsCollectionRequest Expand(string value);
method Select (line 61) | IDriveItemsCollectionRequest Select(string value);
method Top (line 68) | IDriveItemsCollectionRequest Top(int value);
method Filter (line 75) | IDriveItemsCollectionRequest Filter(string value);
method Skip (line 82) | IDriveItemsCollectionRequest Skip(int value);
method OrderBy (line 89) | IDriveItemsCollectionRequest OrderBy(string value);
FILE: src/OneDriveSdk/Requests/Generated/IDriveItemsCollectionRequestBuilder.cs
type IDriveItemsCollectionRequestBuilder (line 16) | public partial interface IDriveItemsCollectionRequestBuilder
method Request (line 22) | IDriveItemsCollectionRequest Request();
method Request (line 29) | IDriveItemsCollectionRequest Request(IEnumerable<Option> options);
FILE: src/OneDriveSdk/Requests/Generated/IDriveRecentCollectionPage.cs
type IDriveRecentCollectionPage (line 16) | [JsonConverter(typeof(InterfaceConverter<DriveRecentCollectionPage>))]
method InitializeNextPageRequest (line 27) | void InitializeNextPageRequest(IBaseClient client, string nextPageLink...
FILE: src/OneDriveSdk/Requests/Generated/IDriveRecentRequest.cs
type IDriveRecentRequest (line 20) | public partial interface IDriveRecentRequest : IBaseRequest
method GetAsync (line 26) | System.Threading.Tasks.Task<IDriveRecentCollectionPage> GetAsync();
method GetAsync (line 33) | System.Threading.Tasks.Task<IDriveRecentCollectionPage> GetAsync(Cance...
method Expand (line 40) | IDriveRecentRequest Expand(string value);
method Select (line 47) | IDriveRecentRequest Select(string value);
method Top (line 54) | IDriveRecentRequest Top(int value);
method Filter (line 61) | IDriveRecentRequest Filter(string value);
method Skip (line 68) | IDriveRecentRequest Skip(int value);
method OrderBy (line 75) | IDriveRecentRequest OrderBy(string value);
FILE: src/OneDriveSdk/Requests/Generated/IDriveRecentRequestBuilder.cs
type IDriveRecentRequestBuilder (line 18) | public partial interface IDriveRecentRequestBuilder
method Request (line 25) | IDriveRecentRequest Request(IEnumerable<Option> options = null);
FILE: src/OneDriveSdk/Requests/Generated/IDriveRequest.cs
type IDriveRequest (line 19) | public partial interface IDriveRequest : IBaseRequest
method CreateAsync (line 26) | System.Threading.Tasks.Task<Drive> CreateAsync(Drive driveToCreate);
method CreateAsync (line 32) | System.Threading.Tasks.Task<Drive> CreateAsync(Drive driveToCreate, Ca...
method DeleteAsync (line 38) | System.Threading.Tasks.Task DeleteAsync();
method DeleteAsync (line 45) | System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellation...
method GetAsync (line 51) | System.Threading.Tasks.Task<Drive> GetAsync();
method GetAsync (line 58) | System.Threading.Tasks.Task<Drive> GetAsync(CancellationToken cancella...
method UpdateAsync (line 65) | System.Threading.Tasks.Task<Drive> UpdateAsync(Drive driveToUpdate);
method UpdateAsync (line 73) | System.Threading.Tasks.Task<Drive> UpdateAsync(Drive driveToUpdate, Ca...
method Expand (line 80) | IDriveRequest Expand(string value);
method Select (line 87) | IDriveRequest Select(string value);
FILE: src/OneDriveSdk/Requests/Generated/IDriveRequestBuilder.cs
type IDriveRequestBuilder (line 18) | public partial interface IDriveRequestBuilder : IBaseRequestBuilder
method Request (line 24) | IDriveRequest Request();
method Request (line 31) | IDriveRequest Request(IEnumerable<Option> options);
method Recent (line 55) | IDriveRecentRequestBuilder Recent();
FILE: src/OneDriveSdk/Requests/Generated/IDriveSharedCollectionPage.cs
type IDriveSharedCollectionPage (line 17) | [JsonConverter(typeof(InterfaceConverter<DriveSharedCollectionPage>))]
method InitializeNextPageRequest (line 28) | void InitializeNextPageRequest(IBaseClient client, string nextPageLink...
FILE: src/OneDriveSdk/Requests/Generated/IDriveSharedCollectionRequest.cs
type IDriveSharedCollectionRequest (line 19) | public partial interface IDriveSharedCollectionRequest : IBaseRequest
method AddAsync (line 27) | System.Threading.Tasks.Task<Item> AddAsync(Item item);
method AddAsync (line 35) | System.Threading.Tasks.Task<Item> AddAsync(Item item, CancellationToke...
method GetAsync (line 40) | System.Threading.Tasks.Task<IDriveSharedCollectionPage> GetAsync();
method GetAsync (line 47) | System.Threading.Tasks.Task<IDriveSharedCollectionPage> GetAsync(Cance...
method Expand (line 54) | IDriveSharedCollectionRequest Expand(string value);
method Select (line 61) | IDriveSharedCollectionRequest Select(string value);
method Top (line 68) | IDriveSharedCollectionRequest Top(int value);
method Filter (line 75) | IDriveSharedCollectionRequest Filter(string value);
method Skip (line 82) | IDriveSharedCollectionRequest Skip(int value);
method OrderBy (line 89) | IDriveSharedCollectionRequest OrderBy(string value);
FILE: src/OneDriveSdk/Requests/Generated/IDriveSharedCollectionRequestBuilder.cs
type IDriveSharedCollectionRequestBuilder (line 16) | public partial interface IDriveSharedCollectionRequestBuilder
method Request (line 22) | IDriveSharedCollectionRequest Request();
method Request (line 29) | IDriveSharedCollectionRequest Request(IEnumerable<Option> options);
FILE: src/OneDriveSdk/Requests/Generated/IDriveSpecialCollectionPage.cs
type IDriveSpecialCollectionPage (line 17) | [JsonConverter(typeof(InterfaceConverter<DriveSpecialCollectionPage>))]
method InitializeNextPageRequest (line 28) | void InitializeNextPageRequest(IBaseClient client, string nextPageLink...
FILE: src/OneDriveSdk/Requests/Generated/IDriveSpecialCollectionRequest.cs
type IDriveSpecialCollectionRequest (line 19) | public partial interface IDriveSpecialCollectionRequest : IBaseRequest
method AddAsync (line 27) | System.Threading.Tasks.Task<Item> AddAsync(Item item);
method AddAsync (line 35) | System.Threading.Tasks.Task<Item> AddAsync(Item item, CancellationToke...
method GetAsync (line 40) | System.Threading.Tasks.Task<IDriveSpecialCollectionPage> GetAsync();
method GetAsync (line 47) | System.Threading.Tasks.Task<IDriveSpecialCollectionPage> GetAsync(Canc...
method Expand (line 54) | IDriveSpecialCollectionRequest Expand(string value);
method Select (line 61) | IDriveSpecialCollectionRequest Select(string value);
method Top (line 68) | IDriveSpecialCollectionRequest Top(int value);
method Filter (line 75) | IDriveSpecialCollectionRequest Filter(string value);
method Skip (line 82) | IDriveSpecialCollectionRequest Skip(int value);
method OrderBy (line 89) | IDriveSpecialCollectionRequest OrderBy(string value);
FILE: src/OneDriveSdk/Requests/Generated/IDriveSpecialCollectionRequestBuilder.cs
type IDriveSpecialCollectionRequestBuilder (line 16) | public partial interface IDriveSpecialCollectionRequestBuilder
method Request (line 22) | IDriveSpecialCollectionRequest Request();
method Request (line 29) | IDriveSpecialCollectionRequest Request(IEnumerable<Option> options);
FILE: src/OneDriveSdk/Requests/Generated/IItemChildrenCollectionPage.cs
type IItemChildrenCollectionPage (line 17) | [JsonConverter(typeof(InterfaceConverter<ItemChildrenCollectionPage>))]
method InitializeNextPageRequest (line 28) | void InitializeNextPageRequest(IBaseClient client, string nextPageLink...
FILE: src/OneDriveSdk/Requests/Generated/IItemChildrenCollectionRequest.cs
type IItemChildrenCollectionRequest (line 19) | public partial interface IItemChildrenCollectionRequest : IBaseRequest
method AddAsync (line 27) | System.Threading.Tasks.Task<Item> AddAsync(Item item);
method AddAsync (line 35) | System.Threading.Tasks.Task<Item> AddAsync(Item item, CancellationToke...
method GetAsync (line 40) | System.Threading.Tasks.Task<IItemChildrenCollectionPage> GetAsync();
method GetAsync (line 47) | System.Threading.Tasks.Task<IItemChildrenCollectionPage> GetAsync(Canc...
method Expand (line 54) | IItemChildrenCollectionRequest Expand(string value);
method Select (line 61) | IItemChildrenCollectionRequest Select(string value);
method Top (line 68) | IItemChildrenCollectionRequest Top(int value);
method Filter (line 75) | IItemChildrenCollectionRequest Filter(string value);
method Skip (line 82) | IItemChildrenCollectionRequest Skip(int value);
method OrderBy (line 89) | IItemChildrenCollectionRequest OrderBy(string value);
FILE: src/OneDriveSdk/Requests/Generated/IItemChildrenCollectionRequestBuilder.cs
type IItemChildrenCollectionRequestBuilder (line 16) | public partial interface IItemChildrenCollectionRequestBuilder
method Request (line 22) | IItemChildrenCollectionRequest Request();
method Request (line 29) | IItemChildrenCollectionRequest Request(IEnumerable<Option> options);
FILE: src/OneDriveSdk/Requests/Generated/IItemContentRequest.cs
type IItemContentRequest (line 19) | public partial interface IItemContentRequest : IBaseRequest
method GetAsync (line 25) | System.Threading.Tasks.Task<Stream> GetAsync();
method GetAsync (line 33) | System.Threading.Tasks.Task<Stream> GetAsync(CancellationToken cancell...
method PutAsync (line 42) | System.Threading.Tasks.Task<T> PutAsync<T>(Stream content) where T : I...
method PutAsync (line 52) | System.Threading.Tasks.Task<T> PutAsync<T>(Stream content, Cancellatio...
FILE: src/OneDriveSdk/Requests/Generated/IItemContentRequestBuilder.cs
type IItemContentRequestBuilder (line 16) | public partial interface IItemContentRequestBuilder
method Request (line 22) | IItemContentRequest Request();
FILE: src/OneDriveSdk/Requests/Generated/IItemCopyRequest.cs
type IItemCopyRequest (line 20) | public partial interface IItemCopyRequest : IBaseRequest
method PostAsync (line 31) | System.Threading.Tasks.Task<IAsyncMonitor<Item>> PostAsync();
method PostAsync (line 38) | System.Threading.Tasks.Task<IAsyncMonitor<Item>> PostAsync(Cancellatio...
method Expand (line 45) | IItemCopyRequest Expand(string value);
method Select (line 52) | IItemCopyRequest Select(string value);
FILE: src/OneDriveSdk/Requests/Generated/IItemCopyRequestBuilder.cs
type IItemCopyRequestBuilder (line 18) | public partial interface IItemCopyRequestBuilder
method Request (line 25) | IItemCopyRequest Request(IEnumerable<Option> options = null);
FILE: src/OneDriveSdk/Requests/Generated/IItemCreateLinkRequest.cs
type IItemCreateLinkRequest (line 20) | public partial interface IItemCreateLinkRequest : IBaseRequest
method PostAsync (line 31) | System.Threading.Tasks.Task<Permission> PostAsync();
method PostAsync (line 38) | System.Threading.Tasks.Task<Permission> PostAsync(CancellationToken ca...
method Expand (line 45) | IItemCreateLinkRequest Expand(string value);
method Select (line 52) | IItemCreateLinkRequest Select(string value);
FILE: src/OneDriveSdk/Requests/Generated/IItemCreateLinkRequestBuilder.cs
type IItemCreateLinkRequestBuilder (line 18) | public partial interface IItemCreateLinkRequestBuilder
method Request (line 25) | IItemCreateLinkRequest Request(IEnumerable<Option> options = null);
FILE: src/OneDriveSdk/Requests/Generated/IItemCreateSessionRequest.cs
type IItemCreateSessionRequest (line 20) | public partial interface IItemCreateSessionRequest : IBaseRequest
method PostAsync (line 31) | System.Threading.Tasks.Task<UploadSession> PostAsync();
method PostAsync (line 38) | System.Threading.Tasks.Task<UploadSession> PostAsync(CancellationToken...
method Expand (line 45) | IItemCreateSessionRequest Expand(string value);
method Select (line 52) | IItemCreateSessionRequest Select(string value);
FILE: src/OneDriveSdk/Requests/Generated/IItemCreateSessionRequestBuilder.cs
type IItemCreateSessionRequestBuilder (line 18) | public partial interface IItemCreateSessionRequestBuilder
method Request (line 25) | IItemCreateSessionRequest Request(IEnumerable<Option> options = null);
FILE: src/OneDriveSdk/Requests/Generated/IItemDeltaCollectionPage.cs
type IItemDeltaCollectionPage (line 16) | [JsonConverter(typeof(InterfaceConverter<ItemDeltaCollectionPage>))]
method InitializeNextPageRequest (line 37) | void InitializeNextPageRequest(IBaseClient client, string nextPageLink...
FILE: src/OneDriveSdk/Requests/Generated/IItemDeltaRequest.cs
type IItemDeltaRequest (line 20) | public partial interface IItemDeltaRequest : IBaseRequest
method GetAsync (line 26) | System.Threading.Tasks.Task<IItemDeltaCollectionPage> GetAsync();
method GetAsync (line 33) | System.Threading.Tasks.Task<IItemDeltaCollectionPage> GetAsync(Cancell...
method Expand (line 40) | IItemDeltaRequest Expand(string value);
method Select (line 47) | IItemDeltaRequest Select(string value);
method Top (line 54) | IItemDeltaRequest Top(int value);
method Filter (line 61) | IItemDeltaRequest Filter(string value);
method Skip (line 68) | IItemDeltaRequest Skip(int value);
method OrderBy (line 75) | IItemDeltaRequest OrderBy(string value);
FILE: src/OneDriveSdk/Requests/Generated/IItemDeltaRequestBuilder.cs
type IItemDeltaRequestBuilder (line 18) | public partial interface IItemDeltaRequestBuilder
method Request (line 25) | IItemDeltaRequest Request(IEnumerable<Option> options = null);
FILE: src/OneDriveSdk/Requests/Generated/IItemInviteRequest.cs
type IItemInviteRequest (line 20) | public partial interface IItemInviteRequest : IBaseRequest
method PostAsync (line 31) | System.Threading.Tasks.Task<IItemPermissionsCollectionPage> PostAsync();
method PostAsync (line 38) | System.Threading.Tasks.Task<IItemPermissionsCollectionPage> PostAsync(...
method Expand (line 45) | IItemInviteRequest Expand(string value);
method Select (line 52) | IItemInviteRequest Select(string value);
FILE: src/OneDriveSdk/Requests/Generated/IItemInviteRequestBuilder.cs
type IItemInviteRequestBuilder (line 18) | public partial interface IItemInviteRequestBuilder
method Request (line 25) | IItemInviteRequest Request(IEnumerable<Option> options = null);
FILE: src/OneDriveSdk/Requests/Generated/IItemPermissionsCollectionPage.cs
type IItemPermissionsCollectionPage (line 17) | [JsonConverter(typeof(InterfaceConverter<ItemPermissionsCollectionPage>))]
method InitializeNextPageRequest (line 28) | void InitializeNextPageRequest(IBaseClient client, string nextPageLink...
FILE: src/OneDriveSdk/Requests/Generated/IItemPermissionsCollectionRequest.cs
type IItemPermissionsCollectionRequest (line 19) | public partial interface IItemPermissionsCollectionRequest : IBaseRequest
method AddAsync (line 27) | System.Threading.Tasks.Task<Permission> AddAsync(Permission permission);
method AddAsync (line 35) | System.Threading.Tasks.Task<Permission> AddAsync(Permission permission...
method GetAsync (line 40) | System.Threading.Tasks.Task<IItemPermissionsCollectionPage> GetAsync();
method GetAsync (line 47) | System.Threading.Tasks.Task<IItemPermissionsCollectionPage> GetAsync(C...
method Expand (line 54) | IItemPermissionsCollectionRequest Expand(string value);
method Select (line 61) | IItemPermissionsCollectionRequest Select(string value);
method Top (line 68) | IItemPermissionsCollectionRequest Top(int value);
method Filter (line 75) | IItemPermissionsCollectionRequest Filter(string value);
method Skip (line 82) | IItemPermissionsCollectionRequest Skip(int value);
method OrderBy (line 89) | IItemPermissionsCollectionRequest OrderBy(string value);
FILE: src/OneDriveSdk/Requests/Generated/IItemPermissionsCollectionRequestBuilder.cs
type IItemPermissionsCollectionRequestBuilder (line 16) | public partial interface IItemPermissionsCollectionRequestBuilder
method Request (line 22) | IItemPermissionsCollectionRequest Request();
method Request (line 29) | IItemPermissionsCollectionRequest Request(IEnumerable<Option> options);
FILE: src/OneDriveSdk/Requests/Generated/IItemRequest.cs
type IItemRequest (line 19) | public partial interface IItemRequest : IBaseRequest
method CreateAsync (line 26) | System.Threading.Tasks.Task<Item> CreateAsync(Item itemToCreate);
method CreateAsync (line 32) | System.Threading.Tasks.Task<Item> CreateAsync(Item itemToCreate, Cance...
method DeleteAsync (line 38) | System.Threading.Tasks.Task DeleteAsync();
method DeleteAsync (line 45) | System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellation...
method GetAsync (line 51) | System.Threading.Tasks.Task<Item> GetAsync();
method GetAsync (line 58) | System.Threading.Tasks.Task<Item> GetAsync(CancellationToken cancellat...
method UpdateAsync (line 65) | System.Threading.Tasks.Task<Item> UpdateAsync(Item itemToUpdate);
method UpdateAsync (line 73) | System.Threading.Tasks.Task<Item> UpdateAsync(Item itemToUpdate, Cance...
method Expand (line 80) | IItemRequest Expand(string value);
method Select (line 87) | IItemRequest Select(string value);
FILE: src/OneDriveSdk/Requests/Generated/IItemRequestBuilder.cs
type IItemRequestBuilder (line 18) | public partial interface IItemRequestBuilder : IBaseRequestBuilder
method Request (line 24) | IItemRequest Request();
method Request (line 31) | IItemRequest Request(IEnumerable<Option> options);
method CreateSession (line 67) | IItemCreateSessionRequestBuilder CreateSession(
method Copy (line 74) | IItemCopyRequestBuilder Copy(
method CreateLink (line 82) | IItemCreateLinkRequestBuilder CreateLink(
method Delta (line 89) | IItemDeltaRequestBuilder Delta(
method Search (line 96) | IItemSearchRequestBuilder Search(
method Invite (line 103) | IItemInviteRequestBuilder Invite(string[] roles,
FILE: src/OneDriveSdk/Requests/Generated/IItemSearchCollectionPage.cs
type IItemSearchCollectionPage (line 16) | [JsonConverter(typeof(InterfaceConverter<ItemSearchCollectionPage>))]
method InitializeNextPageRequest (line 27) | void InitializeNextPageRequest(IBaseClient client, string nextPageLink...
FILE: src/OneDriveSdk/Requests/Generated/IItemSearchRequest.cs
type IItemSearchRequest (line 20) | public partial interface IItemSearchRequest : IBaseRequest
method GetAsync (line 26) | System.Threading.Tasks.Task<IItemSearchCollectionPage> GetAsync();
method GetAsync (line 33) | System.Threading.Tasks.Task<IItemSearchCollectionPage> GetAsync(Cancel...
method Expand (line 40) | IItemSearchRequest Expand(string value);
method Select (line 47) | IItemSearchRequest Select(string value);
method Top (line 54) | IItemSearchRequest Top(int value);
method Filter (line 61) | IItemSearchRequest Filter(string value);
method Skip (line 68) | IItemSearchRequest Skip(int value);
method OrderBy (line 75) | IItemSearchRequest OrderBy(string value);
FILE: src/OneDriveSdk/Requests/Generated/IItemSearchRequestBuilder.cs
type IItemSearchRequestBuilder (line 18) | public partial interface IItemSearchRequestBuilder
method Request (line 25) | IItemSearchRequest Request(IEnumerable<Option> options = null);
FILE: src/OneDriveSdk/Requests/Generated/IItemThumbnailsCollectionPage.cs
type IItemThumbnailsCollectionPage (line 17) | [JsonConverter(typeof(InterfaceConverter<ItemThumbnailsCollectionPage>))]
method InitializeNextPageRequest (line 28) | void InitializeNextPageRequest(IBaseClient client, string nextPageLink...
FILE: src/OneDriveSdk/Requests/Generated/IItemThumbnailsCollectionRequest.cs
type IItemThumbnailsCollectionRequest (line 19) | public partial interface IItemThumbnailsCollectionRequest : IBaseRequest
method AddAsync (line 27) | System.Threading.Tasks.Task<ThumbnailSet> AddAsync(ThumbnailSet thumbn...
method AddAsync (line 35) | System.Threading.Tasks.Task<ThumbnailSet> AddAsync(ThumbnailSet thumbn...
method GetAsync (line 40) | System.Threading.Tasks.Task<IItemThumbnailsCollectionPage> GetAsync();
method GetAsync (line 47) | System.Threading.Tasks.Task<IItemThumbnailsCollectionPage> GetAsync(Ca...
method Expand (line 54) | IItemThumbnailsCollectionRequest Expand(string value);
method Select (line 61) | IItemThumbnailsCollectionRequest Select(string value);
method Top (line 68) | IItemThumbnailsCollectionRequest Top(int value);
method Filter (line 75) | IItemThumbnailsCollectionRequest Filter(string value);
method Skip (line 82) | IItemThumbnailsCollectionRequest Skip(int value);
method OrderBy (line 89) | IItemThumbnailsCollectionRequest OrderBy(string value);
FILE: src/OneDriveSdk/Requests/Generated/IItemThumbnailsCollectionRequestBuilder.cs
type IItemThumbnailsCollectionRequestBuilder (line 16) | public partial interface IItemThumbnailsCollectionRequestBuilder
method Request (line 22) | IItemThumbnailsCollectionRequest Request();
method Request (line 29) | IItemThumbnailsCollectionRequest Request(IEnumerable<Option> options);
FILE: src/OneDriveSdk/Requests/Generated/IItemVersionsCollectionPage.cs
type IItemVersionsCollectionPage (line 17) | [JsonConverter(typeof(InterfaceConverter<ItemVersionsCollectionPage>))]
method InitializeNextPageRequest (line 28) | void InitializeNextPageRequest(IBaseClient client, string nextPageLink...
FILE: src/OneDriveSdk/Requests/Generated/IItemVersionsCollectionRequest.cs
type IItemVersionsCollectionRequest (line 19) | public partial interface IItemVersionsCollectionRequest : IBaseRequest
method AddAsync (line 27) | System.Threading.Tasks.Task<Item> AddAsync(Item item);
method AddAsync (line 35) | System.Threading.Tasks.Task<Item> AddAsync(Item item, CancellationToke...
method GetAsync (line 40) | System.Threading.Tasks.Task<IItemVersionsCollectionPage> GetAsync();
method GetAsync (line 47) | System.Threading.Tasks.Task<IItemVersionsCollectionPage> GetAsync(Canc...
method Expand (line 54) | IItemVersionsCollectionRequest Expand(string value);
method Select (line 61) | IItemVersionsCollectionRequest Select(string value);
method Top (line 68) | IItemVersionsCollectionRequest Top(int value);
method Filter (line 75) | IItemVersionsCollectionRequest Filter(string value);
method Skip (line 82) | IItemVersionsCollectionRequest Skip(int value);
method OrderBy (line 89) | IItemVersionsCollectionRequest OrderBy(string value);
FILE: src/OneDriveSdk/Requests/Generated/IItemVersionsCollectionRequestBuilder.cs
type IItemVersionsCollectionRequestBuilder (line 16) | public partial interface IItemVersionsCollectionRequestBuilder
method Request (line 22) | IItemVersionsCollectionRequest Request();
method Request (line 29) | IItemVersionsCollectionRequest Request(IEnumerable<Option> options);
FILE: src/OneDriveSdk/Requests/Generated/IOneDriveClient.cs
type IOneDriveClient (line 15) | public partial interface IOneDriveClient : IBaseClient
FILE: src/OneDriveSdk/Requests/Generated/IOneDriveDrivesCollectionPage.cs
type IOneDriveDrivesCollectionPage (line 17) | [JsonConverter(typeof(InterfaceConverter<OneDriveDrivesCollectionPage>))]
method InitializeNextPageRequest (line 28) | void InitializeNextPageRequest(IBaseClient client, string nextPageLink...
FILE: src/OneDriveSdk/Requests/Generated/IOneDriveDrivesCollectionRequest.cs
type IOneDriveDrivesCollectionRequest (line 19) | public partial interface IOneDriveDrivesCollectionRequest : IBaseRequest
method AddAsync (line 27) | System.Threading.Tasks.Task<Drive> AddAsync(Drive drive);
method AddAsync (line 35) | System.Threading.Tasks.Task<Drive> AddAsync(Drive drive, CancellationT...
method GetAsync (line 40) | System.Threading.Tasks.Task<IOneDriveDrivesCollectionPage> GetAsync();
method GetAsync (line 47) | System.Threading.Tasks.Task<IOneDriveDrivesCollectionPage> GetAsync(Ca...
method Expand (line 54) | IOneDriveDrivesCollectionRequest Expand(string value);
method Select (line 61) | IOneDriveDrivesCollectionRequest Select(string value);
method Top (line 68) | IOneDriveDrivesCollectionRequest Top(int value);
method Filter (line 75) | IOneDriveDrivesCollectionRequest Filter(string value);
method Skip (line 82) | IOneDriveDrivesCollectionRequest Skip(int value);
method OrderBy (line 89) | IOneDriveDrivesCollectionRequest OrderBy(string value);
FILE: src/OneDriveSdk/Requests/Generated/IOneDriveDrivesCollectionRequestBuilder.cs
type IOneDriveDrivesCollectionRequestBuilder (line 16) | public partial interface IOneDriveDrivesCollectionRequestBuilder
method Request (line 22) | IOneDriveDrivesCollectionRequest Request();
method Request (line 29) | IOneDriveDrivesCollectionRequest Request(IEnumerable<Option> options);
FILE: src/OneDriveSdk/Requests/Generated/IOneDriveSharesCollectionPage.cs
type IOneDriveSharesCollectionPage (line 17) | [JsonConverter(typeof(InterfaceConverter<OneDriveSharesCollectionPage>))]
method InitializeNextPageRequest (line 28) | void InitializeNextPageRequest(IBaseClient client, string nextPageLink...
FILE: src/OneDriveSdk/Requests/Generated/IOneDriveSharesCollectionRequest.cs
type IOneDriveSharesCollectionRequest (line 19) | public partial interface IOneDriveSharesCollectionRequest : IBaseRequest
method AddAsync (line 27) | System.Threading.Tasks.Task<Share> AddAsync(Share share);
method AddAsync (line 35) | System.Threading.Tasks.Task<Share> AddAsync(Share share, CancellationT...
method GetAsync (line 40) | System.Threading.Tasks.Task<IOneDriveSharesCollectionPage> GetAsync();
method GetAsync (line 47) | System.Threading.Tasks.Task<IOneDriveSharesCollectionPage> GetAsync(Ca...
method Expand (line 54) | IOneDriveSharesCollectionRequest Expand(string value);
method Select (line 61) | IOneDriveSharesCollectionRequest Select(string value);
method Top (line 68) | IOneDriveSharesCollectionRequest Top(int value);
method Filter (line 75) | IOneDriveSharesCollectionRequest Filter(string value);
method Skip (line 82) | IOneDriveSharesCollectionRequest Skip(int value);
method OrderBy (line 89) | IOneDriveSharesCollectionRequest OrderBy(string value);
FILE: src/OneDriveSdk/Requests/Generated/IOneDriveSharesCollectionRequestBuilder.cs
type IOneDriveSharesCollectionRequestBuilder (line 16) | public partial interface IOneDriveSharesCollectionRequestBuilder
method Request (line 22) | IOneDriveSharesCollectionRequest Request();
method Request (line 29) | IOneDriveSharesCollectionRequest Request(IEnumerable<Option> options);
FILE: src/OneDriveSdk/Requests/Generated/IPermissionRequest.cs
type IPermissionRequest (line 19) | public partial interface IPermissionRequest : IBaseRequest
method CreateAsync (line 26) | System.Threading.Tasks.Task<Permission> CreateAsync(Permission permiss...
method CreateAsync (line 32) | System.Threading.Tasks.Task<Permission> CreateAsync(Permission permiss...
method DeleteAsync (line 38) | System.Threading.Tasks.Task DeleteAsync();
method DeleteAsync (line 45) | System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellation...
method GetAsync (line 51) | System.Threading.Tasks.Task<Permission> GetAsync();
method GetAsync (line 58) | System.Threading.Tasks.Task<Permission> GetAsync(CancellationToken can...
method UpdateAsync (line 65) | System.Threading.Tasks.Task<Permission> UpdateAsync(Permission permiss...
method UpdateAsync (line 73) | System.Threading.Tasks.Task<Permission> UpdateAsync(Permission permiss...
method Expand (line 80) | IPermissionRequest Expand(string value);
method Select (line 87) | IPermissionRequest Select(string value);
FILE: src/OneDriveSdk/Requests/Generated/IPermissionRequestBuilder.cs
type IPermissionRequestBuilder (line 18) | public partial interface IPermissionRequestBuilder : IBaseRequestBuilder
method Request (line 24) | IPermissionRequest Request();
method Request (line 31) | IPermissionRequest Request(IEnumerable<Option> options);
FILE: src/OneDriveSdk/Requests/Generated/IShareItemsCollectionPage.cs
type IShareItemsCollectionPage (line 17) | [JsonConverter(typeof(InterfaceConverter<ShareItemsCollectionPage>))]
method InitializeNextPageRequest (line 28) | void InitializeNextPageRequest(IBaseClient client, string nextPageLink...
FILE: src/OneDriveSdk/Requests/Generated/IShareItemsCollectionRequest.cs
type IShareItemsCollectionRequest (line 19) | public partial interface IShareItemsCollectionRequest : IBaseRequest
method AddAsync (line 27) | System.Threading.Tasks.Task<Item> AddAsync(Item item);
method AddAsync (line 35) | System.Threading.Tasks.Task<Item> AddAsync(Item item, CancellationToke...
method GetAsync (line 40) | System.Threading.Tasks.Task<IShareItemsCollectionPage> GetAsync();
method GetAsync (line 47) | System.Threading.Tasks.Task<IShareItemsCollectionPage> GetAsync(Cancel...
method Expand (line 54) | IShareItemsCollectionRequest Expand(string value);
method Select (line 61) | IShareItemsCollectionRequest Select(string value);
method Top (line 68) | IShareItemsCollectionRequest Top(int value);
method Filter (line 75) | IShareItemsCollectionRequest Filter(string value);
method Skip (line 82) | IShareItemsCollectionRequest Skip(int value);
method OrderBy (line 89) | IShareItemsCollectionRequest OrderBy(string value);
FILE: src/OneDriveSdk/Requests/Generated/IShareItemsCollectionRequestBuilder.cs
type IShareItemsCollectionRequestBuilder (line 16) | public partial interface IShareItemsCollectionRequestBuilder
method Request (line 22) | IShareItemsCollectionRequest Request();
method Request (line 29) | IShareItemsCollectionRequest Request(IEnumerable<Option> options);
FILE: src/OneDriveSdk/Requests/Generated/IShareRequest.cs
type IShareRequest (line 19) | public partial interface IShareRequest : IBaseRequest
method CreateAsync (line 26) | System.Threading.Tasks.Task<Share> CreateAsync(Share shareToCreate);
method CreateAsync (line 32) | System.Threading.Tasks.Task<Share> CreateAsync(Share shareToCreate, Ca...
method DeleteAsync (line 38) | System.Threading.Tasks.Task DeleteAsync();
method DeleteAsync (line 45) | System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellation...
method GetAsync (line 51) | System.Threading.Tasks.Task<Share> GetAsync();
method GetAsync (line 58) | System.Threading.Tasks.Task<Share> GetAsync(CancellationToken cancella...
method UpdateAsync (line 65) | System.Threading.Tasks.Task<Share> UpdateAsync(Share shareToUpdate);
method UpdateAsync (line 73) | System.Threading.Tasks.Task<Share> UpdateAsync(Share shareToUpdate, Ca...
method Expand (line 80) | IShareRequest Expand(string value);
method Select (line 87) | IShareRequest Select(string value);
FILE: src/OneDriveSdk/Requests/Generated/IShareRequestBuilder.cs
type IShareRequestBuilder (line 18) | public partial interface IShareRequestBuilder : IBaseRequestBuilder
method Request (line 24) | IShareRequest Request();
method Request (line 31) | IShareRequest Request(IEnumerable<Option> options);
FILE: src/OneDriveSdk/Requests/Generated/IThumbnailContentRequest.cs
type IThumbnailContentRequest (line 19) | public partial interface IThumbnailContentRequest : IBaseRequest
method GetAsync (line 25) | System.Threading.Tasks.Task<Stream> GetAsync();
method GetAsync (line 33) | System.Threading.Tasks.Task<Stream> GetAsync(CancellationToken cancell...
method PutAsync (line 42) | System.Threading.Tasks.Task<T> PutAsync<T>(Stream content) where T : T...
method PutAsync (line 52) | System.Threading.Tasks.Task<T> PutAsync<T>(Stream content, Cancellatio...
FILE: src/OneDriveSdk/Requests/Generated/IThumbnailContentRequestBuilder.cs
type IThumbnailContentRequestBuilder (line 16) | public partial interface IThumbnailContentRequestBuilder
method Request (line 22) | IThumbnailContentRequest Request();
FILE: src/OneDriveSdk/Requests/Generated/IThumbnailSetRequest.cs
type IThumbnailSetRequest (line 19) | public partial interface IThumbnailSetRequest : IBaseRequest
method CreateAsync (line 26) | System.Threading.Tasks.Task<ThumbnailSet> CreateAsync(ThumbnailSet thu...
method CreateAsync (line 32) | System.Threading.Tasks.Task<ThumbnailSet> CreateAsync(ThumbnailSet thu...
method DeleteAsync (line 38) | System.Threading.Tasks.Task DeleteAsync();
method DeleteAsync (line 45) | System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellation...
method GetAsync (line 51) | System.Threading.Tasks.Task<ThumbnailSet> GetAsync();
method GetAsync (line 58) | System.Threading.Tasks.Task<ThumbnailSet> GetAsync(CancellationToken c...
method UpdateAsync (line 65) | System.Threading.Tasks.Task<ThumbnailSet> UpdateAsync(ThumbnailSet thu...
method UpdateAsync (line 73) | System.Threading.Tasks.Task<ThumbnailSet> UpdateAsync(ThumbnailSet thu...
method Expand (line 80) | IThumbnailSetRequest Expand(string value);
method Select (line 87) | IThumbnailSetRequest Select(string value);
FILE: src/OneDriveSdk/Requests/Generated/IThumbnailSetRequestBuilder.cs
type IThumbnailSetRequestBuilder (line 18) | public partial interface IThumbnailSetRequestBuilder : IBaseRequestBuilder
method Request (line 24) | IThumbnailSetRequest Request();
method Request (line 31) | IThumbnailSetRequest Request(IEnumerable<Option> options);
FILE: src/OneDriveSdk/Requests/Generated/ItemChildrenCollectionPage.cs
class ItemChildrenCollectionPage (line 16) | public partial class ItemChildrenCollectionPage : CollectionPage<Item>, ...
method InitializeNextPageRequest (line 26) | public void InitializeNextPageRequest(IBaseClient client, string nextP...
FILE: src/OneDriveSdk/Requests/Generated/ItemChildrenCollectionRequest.cs
class ItemChildrenCollectionRequest (line 19) | public partial class ItemChildrenCollectionRequest : BaseRequest, IItemC...
method ItemChildrenCollectionRequest (line 27) | public ItemChildrenCollectionRequest(
method AddAsync (line 41) | public System.Threading.Tasks.Task<Item> AddAsync(Item item)
method AddAsync (line 52) | public System.Threading.Tasks.Task<Item> AddAsync(Item item, Cancellat...
method GetAsync (line 63) | public System.Threading.Tasks.Task<IItemChildrenCollectionPage> GetAsy...
method GetAsync (line 73) | public async System.Threading.Tasks.Task<IItemChildrenCollectionPage> ...
method Expand (line 108) | public IItemChildrenCollectionRequest Expand(string value)
method Select (line 119) | public IItemChildrenCollectionRequest Select(string value)
method Top (line 130) | public IItemChildrenCollectionRequest Top(int value)
method Filter (line 141) | public IItemChildrenCollectionRequest Filter(string value)
method Skip (line 152) | public IItemChildrenCollectionRequest Skip(int value)
method OrderBy (line 163) | public IItemChildrenCollectionRequest OrderBy(string value)
FILE: src/OneDriveSdk/Requests/Generated/ItemChildrenCollectionRequestBuilder.cs
class ItemChildrenCollectionRequestBuilder (line 16) | public partial class ItemChildrenCollectionRequestBuilder : BaseRequestB...
method ItemChildrenCollectionRequestBuilder (line 23) | public ItemChildrenCollectionRequestBuilder(
method Request (line 34) | public IItemChildrenCollectionRequest Request()
method Request (line 44) | public IItemChildrenCollectionRequest Request(IEnumerable<Option> opti...
FILE: src/OneDriveSdk/Requests/Generated/ItemChildrenCollectionResponse.cs
class ItemChildrenCollectionResponse (line 17) | [DataContract]
FILE: src/OneDriveSdk/Requests/Generated/ItemContentRequest.cs
class ItemContentRequest (line 19) | public partial class ItemContentRequest : BaseRequest, IItemContentRequest
method ItemContentRequest (line 27) | public ItemContentRequest(
method GetAsync (line 39) | public System.Threading.Tasks.Task<Stream> GetAsync()
method GetAsync (line 50) | public System.Threading.Tasks.Task<Stream> GetAsync(CancellationToken ...
method PutAsync (line 62) | public System.Threading.Tasks.Task<T> PutAsync<T>(Stream content) wher...
method PutAsync (line 75) | public System.Threading.Tasks.Task<T> PutAsync<T>(Stream content, Canc...
FILE: src/OneDriveSdk/Requests/Generated/ItemContentRequestBuilder.cs
class ItemContentRequestBuilder (line 16) | public partial class ItemContentRequestBuilder : BaseRequestBuilder, IIt...
method ItemContentRequestBuilder (line 23) | public ItemContentRequestBuilder(
method Request (line 34) | public IItemContentRequest Request()
FILE: src/OneDriveSdk/Requests/Generated/ItemCopyRequest.cs
class ItemCopyRequest (line 20) | public partial class ItemCopyRequest : BaseRequest, IItemCopyRequest
method ItemCopyRequest (line 25) | public ItemCopyRequest(
method PostAsync (line 44) | public System.Threading.Tasks.Task<IAsyncMonitor<Item>> PostAsync()
method PostAsync (line 54) | public async System.Threading.Tasks.Task<IAsyncMonitor<Item>> PostAsync(
method Expand (line 69) | public IItemCopyRequest Expand(string value)
method Select (line 80) | public IItemCopyRequest Select(string value)
FILE: src/OneDriveSdk/Requests/Generated/ItemCopyRequestBuilder.cs
class ItemCopyRequestBuilder (line 18) | public partial class ItemCopyRequestBuilder : BaseActionMethodRequestBui...
method ItemCopyRequestBuilder (line 27) | public ItemCopyRequestBuilder(
method CreateRequest (line 44) | protected override IItemCopyRequest CreateRequest(string functionUrl, ...
FILE: src/OneDriveSdk/Requests/Generated/ItemCreateLinkRequest.cs
class ItemCreateLinkRequest (line 20) | public partial class ItemCreateLinkRequest : BaseRequest, IItemCreateLin...
method ItemCreateLinkRequest (line 25) | public ItemCreateLinkRequest(
method PostAsync (line 44) | public System.Threading.Tasks.Task<Permission> PostAsync()
method PostAsync (line 54) | public System.Threading.Tasks.Task<Permission> PostAsync(
method Expand (line 65) | public IItemCreateLinkRequest Expand(string value)
method Select (line 76) | public IItemCreateLinkRequest Select(string value)
FILE: src/OneDriveSdk/Requests/Generated/ItemCreateLinkRequestBuilder.cs
class ItemCreateLinkRequestBuilder (line 18) | public partial class ItemCreateLinkRequestBuilder : BaseActionMethodRequ...
method ItemCreateLinkRequestBuilder (line 26) | public ItemCreateLinkRequestBuilder(
method CreateRequest (line 41) | protected override IItemCreateLinkRequest CreateRequest(string functio...
FILE: src/OneDriveSdk/Requests/Generated/ItemCreateSessionRequest.cs
class ItemCreateSessionRequest (line 20) | public partial class ItemCreateSessionRequest : BaseRequest, IItemCreate...
method ItemCreateSessionRequest (line 25) | public ItemCreateSessionRequest(
method PostAsync (line 44) | public System.Threading.Tasks.Task<UploadSession> PostAsync()
method PostAsync (line 54) | public System.Threading.Tasks.Task<UploadSession> PostAsync(
method Expand (line 65) | public IItemCreateSessionRequest Expand(string value)
method Select (line 76) | public IItemCreateSessionRequest Select(string value)
FILE: src/OneDriveSdk/Requests/Generated/ItemCreateSessionRequestBuilder.cs
class ItemCreateSessionRequestBuilder (line 18) | public partial class ItemCreateSessionRequestBuilder : BaseActionMethodR...
method ItemCreateSessionRequestBuilder (line 26) | public ItemCreateSessionRequestBuilder(
method CreateRequest (line 41) | protected override IItemCreateSessionRequest CreateRequest(string func...
FILE: src/OneDriveSdk/Requests/Generated/ItemDeltaCollectionPage.cs
class ItemDeltaCollectionPage (line 15) | public partial class ItemDeltaCollectionPage : CollectionPage<Item>, IIt...
method InitializeNextPageRequest (line 35) | public void InitializeNextPageRequest(IBaseClient client, string nextP...
FILE: src/OneDriveSdk/Requests/Generated/ItemDeltaCollectionResponse.cs
class ItemDeltaCollectionResponse (line 18) | [DataContract]
FILE: src/OneDriveSdk/Requests/Generated/ItemDeltaRequest.cs
class ItemDeltaRequest (line 20) | public partial class ItemDeltaRequest : BaseRequest, IItemDeltaRequest
method ItemDeltaRequest (line 25) | public ItemDeltaRequest(
method GetAsync (line 37) | public System.Threading.Tasks.Task<IItemDeltaCollectionPage> GetAsync()
method GetAsync (line 47) | public async System.Threading.Tasks.Task<IItemDeltaCollectionPage> Get...
method Expand (line 85) | public IItemDeltaRequest Expand(string value)
method Select (line 96) | public IItemDeltaRequest Select(string value)
method Top (line 107) | public IItemDeltaRequest Top(int value)
method Filter (line 118) | public IItemDeltaRequest Filter(string value)
method Skip (line 129) | public IItemDeltaRequest Skip(int value)
method OrderBy (line 140) | public IItemDeltaRequest OrderBy(string value)
FILE: src/OneDriveSdk/Requests/Generated/ItemDeltaRequestBuilder.cs
class ItemDeltaRequestBuilder (line 18) | public partial class ItemDeltaRequestBuilder : BaseFunctionMethodRequest...
method ItemDeltaRequestBuilder (line 26) | public ItemDeltaRequestBuilder(
method CreateRequest (line 42) | protected override IItemDeltaRequest CreateRequest(string functionUrl,...
FILE: src/OneDriveSdk/Requests/Generated/ItemInviteRequest.cs
class ItemInviteRequest (line 20) | public partial class ItemInviteRequest : BaseRequest, IItemInviteRequest
method ItemInviteRequest (line 25) | public ItemInviteRequest(
method PostAsync (line 44) | public System.Threading.Tasks.Task<IItemPermissionsCollectionPage> Pos...
method PostAsync (line 54) | public async System.Threading.Tasks.Task<IItemPermissionsCollectionPag...
method Expand (line 91) | public IItemInviteRequest Expand(string value)
method Select (line 102) | public IItemInviteRequest Select(string value)
FILE: src/OneDriveSdk/Requests/Generated/ItemInviteRequestBuilder.cs
class ItemInviteRequestBuilder (line 18) | public partial class ItemInviteRequestBuilder : BaseActionMethodRequestB...
method ItemInviteRequestBuilder (line 26) | public ItemInviteRequestBuilder(
method CreateRequest (line 49) | protected override IItemInviteRequest CreateRequest(string functionUrl...
FILE: src/OneDriveSdk/Requests/Generated/ItemPermissionsCollectionPage.cs
class ItemPermissionsCollectionPage (line 16) | public partial class ItemPermissionsCollectionPage : CollectionPage<Perm...
method InitializeNextPageRequest (line 26) | public void InitializeNextPageRequest(IBaseClient client, string nextP...
FILE: src/OneDriveSdk/Requests/Generated/ItemPermissionsCollectionRequest.cs
class ItemPermissionsCollectionRequest (line 19) | public partial class ItemPermissionsCollectionRequest : BaseRequest, IIt...
method ItemPermissionsCollectionRequest (line 27) | public ItemPermissionsCollectionRequest(
method AddAsync (line 41) | public System.Threading.Tasks.Task<Permission> AddAsync(Permission per...
method AddAsync (line 52) | public System.Threading.Tasks.Task<Permission> AddAsync(Permission per...
method GetAsync (line 63) | public System.Threading.Tasks.Task<IItemPermissionsCollectionPage> Get...
method GetAsync (line 73) | public async System.Threading.Tasks.Task<IItemPermissionsCollectionPag...
method Expand (line 108) | public IItemPermissionsCollectionRequest Expand(string value)
method Select (line 119) | public IItemPermissionsCollectionRequest Select(string value)
method Top (line 130) | public IItemPermissionsCollectionRequest Top(int value)
method Filter (line 141) | public IItemPermissionsCollectionRequest Filter(string value)
method Skip (line 152) | public IItemPermissionsCollectionRequest Skip(int value)
method OrderBy (line 163) | public IItemPermissionsCollectionRequest OrderBy(string value)
FILE: src/OneDriveSdk/Requests/Generated/ItemPermissionsCollectionRequestBuilder.cs
class ItemPermissionsCollectionRequestBuilder (line 16) | public partial class ItemPermissionsCollectionRequestBuilder : BaseReque...
method ItemPermissionsCollectionRequestBuilder (line 23) | public ItemPermissionsCollectionRequestBuilder(
method Request (line 34) | public IItemPermissionsCollectionRequest Request()
method Request (line 44) | public IItemPermissionsCollectionRequest Request(IEnumerable<Option> o...
FILE: src/OneDriveSdk/Requests/Generated/ItemPermissionsCollectionResponse.cs
class ItemPermissionsCollectionResponse (line 17) | [DataContract]
FILE: src/OneDriveSdk/Requests/Generated/ItemRequest.cs
class ItemRequest (line 20) | public partial class ItemRequest : BaseRequest, IItemRequest
method ItemRequest (line 28) | public ItemRequest(
method CreateAsync (line 42) | public System.Threading.Tasks.Task<Item> CreateAsync(Item itemToCreate)
method CreateAsync (line 53) | public async System.Threading.Tasks.Task<Item> CreateAsync(Item itemTo...
method DeleteAsync (line 66) | public System.Threading.Tasks.Task DeleteAsync()
method DeleteAsync (line 76) | public async System.Threading.Tasks.Task DeleteAsync(CancellationToken...
method GetAsync (line 86) | public System.Threading.Tasks.Task<Item> GetAsync()
method GetAsync (line 96) | public async System.Threading.Tasks.Task<Item> GetAsync(CancellationTo...
method UpdateAsync (line 109) | public System.Threading.Tasks.Task<Item> UpdateAsync(Item itemToUpdate)
method UpdateAsync (line 120) | public async System.Threading.Tasks.Task<Item> UpdateAsync(Item itemTo...
method Expand (line 134) | public IItemRequest Expand(string value)
method Select (line 145) | public IItemRequest Select(string value)
method InitializeCollectionProperties (line 155) | private void InitializeCollectionProperties(Item itemToInitialize)
FILE: src/OneDriveSdk/Requests/Generated/ItemRequestBuilder.cs
class ItemRequestBuilder (line 18) | public partial class ItemRequestBuilder : BaseRequestBuilder, IItemReque...
method ItemRequestBuilder (line 26) | public ItemRequestBuilder(
method Request (line 37) | public IItemRequest Request()
method Request (line 47) | public IItemRequest Request(IEnumerable<Option> options)
method CreateSession (line 116) | public IItemCreateSessionRequestBuilder CreateSession(
method Copy (line 129) | public IItemCopyRequestBuilder Copy(
method CreateLink (line 144) | public IItemCreateLinkRequestBuilder CreateLink(
method Delta (line 157) | public IItemDeltaRequestBuilder Delta(
method Search (line 170) | public IItemSearchRequestBuilder Search(
method Invite (line 184) | public IItemInviteRequestBuilder Invite(
FILE: src/OneDriveSdk/Requests/Generated/ItemSearchCollectionPage.cs
class ItemSearchCollectionPage (line 15) | public partial class ItemSearchCollectionPage : CollectionPage<Item>, II...
method InitializeNextPageRequest (line 25) | public void InitializeNextPageRequest(IBaseClient client, string nextP...
FILE: src/OneDriveSdk/Requests/Generated/ItemSearchCollectionResponse.cs
class ItemSearchCollectionResponse (line 18) | [DataContract]
FILE: src/OneDriveSdk/Requests/Generated/ItemSearchRequest.cs
class ItemSearchRequest (line 20) | public partial class ItemSearchRequest : BaseRequest, IItemSearchRequest
method ItemSearchRequest (line 25) | public ItemSearchRequest(
method GetAsync (line 37) | public System.Threading.Tasks.Task<IItemSearchCollectionPage> GetAsync()
method GetAsync (line 47) | public async System.Threading.Tasks.Task<IItemSearchCollectionPage> Ge...
method Expand (line 81) | public IItemSearchRequest Expand(string value)
method Select (line 92) | public IItemSearchRequest Select(string value)
method Top (line 103) | public IItemSearchRequest Top(int value)
method Filter (line 114) | public IItemSearchRequest Filter(string value)
method Skip (line 125) | public IItemSearchRequest Skip(int value)
method OrderBy (line 136) | public IItemSearchRequest OrderBy(string value)
FILE: src/OneDriveSdk/Requests/Generated/ItemSearchRequestBuilder.cs
class ItemSearchRequestBuilder (line 18) | public partial class ItemSearchRequestBuilder : BaseFunctionMethodReques...
method ItemSearchRequestBuilder (line 26) | public ItemSearchRequestBuilder(
method CreateRequest (line 42) | protected override IItemSearchRequest CreateRequest(string functionUrl...
FILE: src/OneDriveSdk/Requests/Generated/ItemThumbnailsCollectionPage.cs
class ItemThumbnailsCollectionPage (line 16) | public partial class ItemThumbnailsCollectionPage : CollectionPage<Thumb...
method InitializeNextPageRequest (line 26) | public void InitializeNextPageRequest(IBaseClient client, string nextP...
FILE: src/OneDriveSdk/Requests/Generated/ItemThumbnailsCollectionRequest.cs
class ItemThumbnailsCollectionRequest (line 19) | public partial class ItemThumbnailsCollectionRequest : BaseRequest, IIte...
method ItemThumbnailsCollectionRequest (line 27) | public ItemThumbnailsCollectionRequest(
method AddAsync (line 41) | public System.Threading.Tasks.Task<ThumbnailSet> AddAsync(ThumbnailSet...
method AddAsync (line 52) | public System.Threading.Tasks.Task<ThumbnailSet> AddAsync(ThumbnailSet...
method GetAsync (line 63) | public System.Threading.Tasks.Task<IItemThumbnailsCollectionPage> GetA...
method GetAsync (line 73) | public async System.Threading.Tasks.Task<IItemThumbnailsCollectionPage...
method Expand (line 108) | public IItemThumbnailsCollectionRequest Expand(string value)
method Select (line 119) | public IItemThumbnailsCollectionRequest Select(string value)
method Top (line 130) | public IItemThumbnailsCollectionRequest Top(int value)
method Filter (line 141) | public IItemThumbnailsCollectionRequest Filter(string value)
method Skip (line 152) | public IItemThumbnailsCollectionRequest Skip(int value)
method OrderBy (line 163) | public IItemThumbnailsCollectionRequest OrderBy(string value)
FILE: src/OneDriveSdk/Requests/Generated/ItemThumbnailsCollectionRequestBuilder.cs
class ItemThumbnailsCollectionRequestBuilder (line 16) | public partial class ItemThumbnailsCollectionRequestBuilder : BaseReques...
method ItemThumbnailsCollectionRequestBuilder (line 23) | public ItemThumbnailsCollectionRequestBuilder(
method Request (line 34) | public IItemThumbnailsCollectionRequest Request()
method Request (line 44) | public IItemThumbnailsCollectionRequest Request(IEnumerable<Option> op...
FILE: src/OneDriveSdk/Requests/Generated/ItemThumbnailsCollectionResponse.cs
class ItemThumbnailsCollectionResponse (line 17) | [DataContract]
FILE: src/OneDriveSdk/Requests/Generated/ItemVersionsCollectionPage.cs
class ItemVersionsCollectionPage (line 16) | public partial class ItemVersionsCollectionPage : CollectionPage<Item>, ...
method InitializeNextPageRequest (line 26) | public void InitializeNextPageRequest(IBaseClient client, string nextP...
FILE: src/OneDriveSdk/Requests/Generated/ItemVersionsCollectionRequest.cs
class ItemVersionsCollectionRequest (line 19) | public partial class ItemVersionsCollectionRequest : BaseRequest, IItemV...
method ItemVersionsCollectionRequest (line 27) | public ItemVersionsCollectionRequest(
method AddAsync (line 41) | public System.Threading.Tasks.Task<Item> AddAsync(Item item)
method AddAsync (line 52) | public System.Threading.Tasks.Task<Item> AddAsync(Item item, Cancellat...
method GetAsync (line 63) | public System.Threading.Tasks.Task<IItemVersionsCollectionPage> GetAsy...
method GetAsync (line 73) | public async System.Threading.Tasks.Task<IItemVersionsCollectionPage> ...
method Expand (line 108) | public IItemVersionsCollectionRequest Expand(string value)
method Select (line 119) | public IItemVersionsCollectionRequest Select(string value)
method Top (line 130) | public IItemVersionsCollectionRequest Top(int value)
method Filter (line 141) | public IItemVersionsCollectionRequest Filter(string value)
method Skip (line 152) | public IItemVersionsCollectionRequest Skip(int value)
method OrderBy (line 163) | public IItemVersionsCollectionRequest OrderBy(string value)
FILE: src/OneDriveSdk/Requests/Generated/ItemVersionsCollectionRequestBuilder.cs
class ItemVersionsCollectionRequestBuilder (line 16) | public partial class ItemVersionsCollectionRequestBuilder : BaseRequestB...
method ItemVersionsCollectionRequestBuilder (line 23) | public ItemVersionsCollectionRequestBuilder(
method Request (line 34) | public IItemVersionsCollectionRequest Request()
method Request (line 44) | public IItemVersionsCollectionRequest Request(IEnumerable<Option> opti...
FILE: src/OneDriveSdk/Requests/Generated/ItemVersionsCollectionResponse.cs
class ItemVersionsCollectionResponse (line 17) | [DataContract]
FILE: src/OneDriveSdk/Requests/Generated/OneDriveClient.cs
class OneDriveClient (line 15) | public partial class OneDriveClient : BaseClient, IOneDriveClient
method OneDriveClient (line 22) | public OneDriveClient(
method OneDriveClient (line 35) | public OneDriveClient(
FILE: src/OneDriveSdk/Requests/Generated/OneDriveDrivesCollectionPage.cs
class OneDriveDrivesCollectionPage (line 16) | public partial class OneDriveDrivesCollectionPage : CollectionPage<Drive...
method InitializeNextPageRequest (line 26) | public void InitializeNextPageRequest(IBaseClient client, string nextP...
FILE: src/OneDriveSdk/Requests/Generated/OneDriveDrivesCollectionRequest.cs
class OneDriveDrivesCollectionRequest (line 19) | public partial class OneDriveDrivesCollectionRequest : BaseRequest, IOne...
method OneDriveDrivesCollectionRequest (line 27) | public OneDriveDrivesCollectionRequest(
method AddAsync (line 41) | public System.Threading.Tasks.Task<Drive> AddAsync(Drive drive)
method AddAsync (line 52) | public System.Threading.Tasks.Task<Drive> AddAsync(Drive drive, Cancel...
method GetAsync (line 63) | public System.Threading.Tasks.Task<IOneDriveDrivesCollectionPage> GetA...
method GetAsync (line 73) | public async System.Threading.Tasks.Task<IOneDriveDrivesCollectionPage...
method Expand (line 108) | public IOneDriveDrivesCollectionRequest Expand(string value)
method Select (line 119) | public IOneDriveDrivesCollectionRequest Select(string value)
method Top (line 130) | public IOneDriveDrivesCollectionRequest Top(int value)
method Filter (line 141) | public IOneDriveDrivesCollectionRequest Filter(string value)
method Skip (line 152) | public IOneDriveDrivesCollectionRequest Skip(int value)
method OrderBy (line 163) | public IOneDriveDrivesCollectionRequest OrderBy(string value)
FILE: src/OneDriveSdk/Requests/Generated/OneDriveDrivesCollectionRequestBuilder.cs
class OneDriveDrivesCollectionRequestBuilder (line 16) | public partial class OneDriveDrivesCollectionRequestBuilder : BaseReques...
method OneDriveDrivesCollectionRequestBuilder (line 23) | public OneDriveDrivesCollectionRequestBuilder(
method Request (line 34) | public IOneDriveDrivesCollectionRequest Request()
method Request (line 44) | public IOneDriveDrivesCollectionRequest Request(IEnumerable<Option> op...
FILE: src/OneDriveSdk/Requests/Generated/OneDriveDrivesCollectionResponse.cs
class OneDriveDrivesCollectionResponse (line 17) | [DataContract]
FILE: src/OneDriveSdk/Requests/Generated/OneDriveSharesCollectionPage.cs
class OneDriveSharesCollectionPage (line 16) | public partial class OneDriveSharesCollectionPage : CollectionPage<Share...
method InitializeNextPageRequest (line 26) | public void InitializeNextPageRequest(IBaseClient client, string nextP...
FILE: src/OneDriveSdk/Requests/Generated/OneDriveSharesCollectionRequest.cs
class OneDriveSharesCollectionRequest (line 19) | public partial class OneDriveSharesCollectionRequest : BaseRequest, IOne...
method OneDriveSharesCollectionRequest (line 27) | public OneDriveSharesCollectionRequest(
method AddAsync (line 41) | public System.Threading.Tasks.Task<Share> AddAsync(Share share)
method AddAsync (line 52) | public System.Threading.Tasks.Task<Share> AddAsync(Share share, Cancel...
method GetAsync (line 63) | public System.Threading.Tasks.Task<IOneDriveSharesCollectionPage> GetA...
method GetAsync (line 73) | public async System.Threading.Tasks.Task<IOneDriveSharesCollectionPage...
method Expand (line 108) | public IOneDriveSharesCollectionRequest Expand(string value)
method Select (line 119) | public IOneDriveSharesCollectionRequest Select(string value)
method Top (line 130) | public IOneDriveSharesCollectionRequest Top(int value)
method Filter (line 141) | public IOneDriveSharesCollectionRequest Filter(string value)
method Skip (line 152) | public IOneDriveSharesCollectionRequest Skip(int value)
method OrderBy (line 163) | public IOneDriveSharesCollectionRequest OrderBy(string value)
FILE: src/OneDriveSdk/Requests/Generated/OneDriveSharesCollectionRequestBuilder.cs
class OneDriveSharesCollectionRequestBuilder (line 16) | public partial class OneDriveSharesCollectionRequestBuilder : BaseReques...
method OneDriveSharesCollectionRequestBuilder (line 23) | public OneDriveSharesCollectionRequestBuilder(
method Request (line 34) | public IOneDriveSharesCollectionRequest Request()
method Request (line 44) | public IOneDriveSharesCollectionRequest Request(IEnumerable<Option> op...
FILE: src/OneDriveSdk/Requests/Generated/OneDriveSharesCollectionResponse.cs
class OneDriveSharesCollectionResponse (line 17) | [DataContract]
FILE: src/OneDriveSdk/Requests/Generated/PermissionRequest.cs
class PermissionRequest (line 20) | public partial class PermissionRequest : BaseRequest, IPermissionRequest
method PermissionRequest (line 28) | public PermissionRequest(
method CreateAsync (line 42) | public System.Threading.Tasks.Task<Permission> CreateAsync(Permission ...
method CreateAsync (line 53) | public async System.Threading.Tasks.Task<Permission> CreateAsync(Permi...
method DeleteAsync (line 66) | public System.Threading.Tasks.Task DeleteAsync()
method DeleteAsync (line 76) | public async System.Threading.Tasks.Task DeleteAsync(CancellationToken...
method GetAsync (line 86) | public System.Threading.Tasks.Task<Permission> GetAsync()
method GetAsync (line 96) | public async System.Threading.Tasks.Task<Permission> GetAsync(Cancella...
method UpdateAsync (line 109) | public System.Threading.Tasks.Task<Permission> UpdateAsync(Permission ...
method UpdateAsync (line 120) | public async System.Threading.Tasks.Task<Permission> UpdateAsync(Permi...
method Expand (line 134) | public IPermissionRequest Expand(string value)
method Select (line 145) | public IPermissionRequest Select(string value)
method InitializeCollectionProperties (line 155) | private void InitializeCollectionProperties(Permission permissionToIni...
FILE: src/OneDriveSdk/Requests/Generated/PermissionRequestBuilder.cs
class PermissionRequestBuilder (line 18) | public partial class PermissionRequestBuilder : BaseRequestBuilder, IPer...
method PermissionRequestBuilder (line 26) | public PermissionRequestBuilder(
method Request (line 37) | public IPermissionRequest Request()
method Request (line 47) | public IPermissionRequest Request(IEnumerable<Option> options)
FILE: src/OneDriveSdk/Requests/Generated/ShareItemsCollectionPage.cs
class ShareItemsCollectionPage (line 16) | public partial class ShareItemsCollectionPage : CollectionPage<Item>, IS...
method InitializeNextPageRequest (line 26) | public void InitializeNextPageRequest(IBaseClient client, string nextP...
FILE: src/OneDriveSdk/Requests/Generated/ShareItemsCollectionRequest.cs
class ShareItemsCollectionRequest (line 19) | public partial class ShareItemsCollectionRequest : BaseRequest, IShareIt...
method ShareItemsCollectionRequest (line 27) | public ShareItemsCollectionRequest(
method AddAsync (line 41) | public System.Threading.Tasks.Task<Item> AddAsync(Item item)
method AddAsync (line 52) | public System.Threading.Tasks.Task<Item> AddAsync(Item item, Cancellat...
method GetAsync (line 63) | public System.Threading.Tasks.Task<IShareItemsCollectionPage> GetAsync()
method GetAsync (line 73) | public async System.Threading.Tasks.Task<IShareItemsCollectionPage> Ge...
method Expand (line 108) | public IShareItemsCollectionRequest Expand(string value)
method Select (line 119) | public IShareItemsCollectionRequest Select(string value)
method Top (line 130) | public IShareItemsCollectionRequest Top(int value)
method Filter (line 141) | public IShareItemsCollectionRequest Filter(string value)
method Skip (line 152) | public IShareItemsCollectionRequest Skip(int value)
method OrderBy (line 163) | public IShareItemsCollectionRequest OrderBy(string value)
FILE: src/OneDriveSdk/Requests/Generated/ShareItemsCollectionRequestBuilder.cs
class ShareItemsCollectionRequestBuilder (line 16) | public partial class ShareItemsCollectionRequestBuilder : BaseRequestBui...
method ShareItemsCollectionRequestBuilder (line 23) | public ShareItemsCollectionRequestBuilder(
method Request (line 34) | public IShareItemsCollectionRequest Request()
method Request (line 44) | public IShareItemsCollectionRequest Request(IEnumerable<Option> options)
FILE: src/OneDriveSdk/Requests/Generated/ShareItemsCollectionResponse.cs
class ShareItemsCollectionResponse (line 17) | [DataContract]
FILE: src/OneDriveSdk/Requests/Generated/ShareRequest.cs
class ShareRequest (line 20) | public partial class ShareRequest : BaseRequest, IShareRequest
method ShareRequest (line 28) | public ShareRequest(
method CreateAsync (line 42) | public System.Threading.Tasks.Task<Share> CreateAsync(Share shareToCre...
method CreateAsync (line 53) | public async System.Threading.Tasks.Task<Share> CreateAsync(Share shar...
method DeleteAsync (line 66) | public System.Threading.Tasks.Task DeleteAsync()
method DeleteAsync (line 76) | public async System.Threading.Tasks.Task DeleteAsync(CancellationToken...
method GetAsync (line 86) | public System.Threading.Tasks.Task<Share> GetAsync()
method GetAsync (line 96) | public async System.Threading.Tasks.Task<Share> GetAsync(CancellationT...
method UpdateAsync (line 109) | public System.Threading.Tasks.Task<Share> UpdateAsync(Share shareToUpd...
method UpdateAsync (line 120) | public async System.Threading.Tasks.Task<Share> UpdateAsync(Share shar...
method Expand (line 134) | public IShareRequest Expand(string value)
method Select (line 145) | public IShareRequest Select(string value)
method InitializeCollectionProperties (line 155) | private void InitializeCollectionProperties(Share shareToInitialize)
FILE: src/OneDriveSdk/Requests/Generated/ShareRequestBuilder.cs
class ShareRequestBuilder (line 18) | public partial class ShareRequestBuilder : BaseRequestBuilder, IShareReq...
method ShareRequestBuilder (line 26) | public ShareRequestBuilder(
method Request (line 37) | public IShareRequest Request()
method Request (line 47) | public IShareRequest Request(IEnumerable<Option> options)
FILE: src/OneDriveSdk/Requests/Generated/ThumbnailContentRequest.cs
class ThumbnailContentRequest (line 19) | public partial class ThumbnailContentRequest : BaseRequest, IThumbnailCo...
method ThumbnailContentRequest (line 27) | public ThumbnailContentRequest(
method GetAsync (line 39) | public System.Threading.Tasks.Task<Stream> GetAsync()
method GetAsync (line 50) | public System.Threading.Tasks.Task<Stream> GetAsync(CancellationToken ...
method PutAsync (line 62) | public System.Threading.Tasks.Task<T> PutAsync<T>(Stream content) wher...
method PutAsync (line 75) | public System.Threading.Tasks.Task<T> PutAsync<T>(Stream content, Canc...
FILE: src/OneDriveSdk/Requests/Generated/ThumbnailContentRequestBuilder.cs
class ThumbnailContentRequestBuilder (line 16) | public partial class ThumbnailContentRequestBuilder : BaseRequestBuilder...
method ThumbnailContentRequestBuilder (line 23) | public ThumbnailContentRequestBuilder(
method Request (line 34) | public IThumbnailContentRequest Request()
FILE: src/OneDriveSdk/Requests/Generated/ThumbnailSetRequest.cs
class ThumbnailSetRequest (line 20) | public partial class ThumbnailSetRequest : BaseRequest, IThumbnailSetReq...
method ThumbnailSetRequest (line 28) | public ThumbnailSetRequest(
method CreateAsync (line 42) | public System.Threading.Tasks.Task<ThumbnailSet> CreateAsync(Thumbnail...
method CreateAsync (line 53) | public async System.Threading.Tasks.Task<ThumbnailSet> CreateAsync(Thu...
method DeleteAsync (line 66) | public System.Threading.Tasks.Task DeleteAsync()
method DeleteAsync (line 76) | public async System.Threading.Tasks.Task DeleteAsync(CancellationToken...
method GetAsync (line 86) | public System.Threading.Tasks.Task<ThumbnailSet> GetAsync()
method GetAsync (line 96) | public async System.Threading.Tasks.Task<ThumbnailSet> GetAsync(Cancel...
method UpdateAsync (line 109) | public System.Threading.Tasks.Task<ThumbnailSet> UpdateAsync(Thumbnail...
method UpdateAsync (line 120) | public async System.Threading.Tasks.Task<ThumbnailSet> UpdateAsync(Thu...
method Expand (line 134) | public IThumbnailSetRequest Expand(string value)
method Select (line 145) | public IThumbnailSetRequest Select(string value)
method InitializeCollectionProperties (line 155) | private void InitializeCollectionProperties(ThumbnailSet thumbnailSetT...
FILE: src/OneDriveSdk/Requests/Generated/ThumbnailSetRequestBuilder.cs
class ThumbnailSetRequestBuilder (line 18) | public partial class ThumbnailSetRequestBuilder : BaseRequestBuilder, IT...
method ThumbnailSetRequestBuilder (line 26) | public ThumbnailSetRequestBuilder(
method Request (line 37) | public IThumbnailSetRequest Request()
method Request (line 47) | public IThumbnailSetRequest Request(IEnumerable<Option> options)
FILE: src/OneDriveSdk/Requests/IThumbnailRequest.cs
type IThumbnailRequest (line 18) | public partial interface IThumbnailRequest : IBaseRequest
method CreateAsync (line 25) | Task<Thumbnail> CreateAsync(Thumbnail thumbnailToCreate);
method CreateAsync (line 31) | Task<Thumbnail> CreateAsync(Thumbnail thumbnailToCreate, CancellationT...
method DeleteAsync (line 37) | Task DeleteAsync();
method DeleteAsync (line 44) | Task DeleteAsync(CancellationToken cancellationToken);
method GetAsync (line 50) | Task<Thumbnail> GetAsync();
method GetAsync (line 57) | Task<Thumbnail> GetAsync(CancellationToken cancellationToken);
method UpdateAsync (line 64) | Task<Thumbnail> UpdateAsync(Thumbnail thumbnailToUpdate);
method UpdateAsync (line 72) | Task<Thumbnail> UpdateAsync(Thumbnail thumbnailToUpdate, CancellationT...
method Expand (line 79) | IThumbnailRequest Expand(string value);
method Select (line 86) | IThumbnailRequest Select(string value);
FILE: src/OneDriveSdk/Requests/IThumbnailRequestBuilder.cs
type IThumbnailRequestBuilder (line 15) | public partial interface IThumbnailRequestBuilder : IBaseRequestBuilder
method Request (line 21) | IThumbnailRequest Request();
method Request (line 28) | IThumbnailRequest Request(IEnumerable<Option> options);
FILE: src/OneDriveSdk/Requests/IUploadChunkRequest.cs
type IUploadChunkRequest (line 18) | public partial interface IUploadChunkRequest : IBaseRequest
method PutAsync (line 24) | Task<UploadChunkResult> PutAsync(Stream stream);
FILE: src/OneDriveSdk/Requests/ThumbnailRequest.cs
class ThumbnailRequest (line 19) | public partial class ThumbnailRequest : BaseRequest, IThumbnailRequest
method ThumbnailRequest (line 27) | public ThumbnailRequest(
method CreateAsync (line 40) | public Task<Thumbnail> CreateAsync(Thumbnail thumbnailToCreate)
method CreateAsync (line 51) | public async Task<Thumbnail> CreateAsync(Thumbnail thumbnailToCreate, ...
method DeleteAsync (line 64) | public Task DeleteAsync()
method DeleteAsync (line 74) | public async Task DeleteAsync(CancellationToken cancellationToken)
method GetAsync (line 84) | public Task<Thumbnail> GetAsync()
method GetAsync (line 94) | public async Task<Thumbnail> GetAsync(CancellationToken cancellationTo...
method UpdateAsync (line 107) | public Task<Thumbnail> UpdateAsync(Thumbnail thumbnailToUpdate)
method UpdateAsync (line 118) | public async Task<Thumbnail> UpdateAsync(Thumbnail thumbnailToUpdate, ...
method Expand (line 132) | public IThumbnailRequest Expand(string value)
method Select (line 143) | public IThumbnailRequest Select(string value)
method InitializeCollectionProperties (line 153) | private void InitializeCollectionProperties(Thumbnail thumbnailToIniti...
FILE: src/OneDriveSdk/Requests/ThumbnailRequestBuilder.cs
class ThumbnailRequestBuilder (line 15) | public partial class ThumbnailRequestBuilder : BaseRequestBuilder, IThum...
method ThumbnailRequestBuilder (line 23) | public ThumbnailRequestBuilder(
method Request (line 34) | public IThumbnailRequest Request()
method Request (line 44) | public IThumbnailRequest Request(IEnumerable<Option> options)
FILE: src/OneDriveSdk/Requests/UploadChunkRequest.cs
class UploadChunkRequest (line 24) | public partial class UploadChunkRequest : BaseRequest, IUploadChunkRequest
method UploadChunkRequest (line 41) | public UploadChunkRequest(
method PutAsync (line 59) | public Task<UploadChunkResult> PutAsync(Stream stream)
method PutAsync (line 72) | public virtual async Task<UploadChunkResult> PutAsync(Stream stream, C...
method SendRequestAsync (line 123) | private async Task<HttpResponseMessage> SendRequestAsync(
class UploadChunkResult (line 150) | public class UploadChunkResult
FILE: src/OneDriveSdk/Requests/UploadSessionRequest.cs
class UploadSessionRequest (line 12) | public class UploadSessionRequest : BaseRequest
method UploadSessionRequest (line 16) | public UploadSessionRequest(UploadSession session, IBaseClient client,...
method DeleteAsync (line 26) | public Task DeleteAsync()
method DeleteAsync (line 36) | public async Task DeleteAsync(CancellationToken cancellationToken)
method GetAsync (line 46) | public Task<UploadSession> GetAsync()
method GetAsync (line 56) | public async Task<UploadSession> GetAsync(CancellationToken cancellati...
FILE: tests/Test.OneDriveSdk/ChunkedUploadProviderTests.cs
class ChunkedUploadProviderTests (line 24) | [TestClass]
method TestInitialize (line 34) | [TestInitialize]
method ConstructorTest_Valid (line 47) | [TestMethod]
method ConstructorTest_InvalidStream (line 59) | [TestMethod]
method ConstructorTest_InvalidChunkSize (line 72) | [TestMethod]
method GetUploadChunkRequests_OneRangeOneChunk (line 85) | [TestMethod]
method GetUploadChunkRequests_OneRangeMultiChunk (line 95) | [TestMethod]
method GetUploadChunkRequests_MultiRangeMultiChunk (line 110) | [TestMethod]
method GetRangesRemaining_OneRangeOneChunk (line 134) | [TestMethod]
method GetRangesRemaining_OneRangeMultiChunk (line 144) | [TestMethod]
method GetRangesRemaining_MultiRangeMultiChunk (line 157) | [TestMethod]
method GetChunkRequestResponseTest_Success (line 177) | [TestMethod]
method GetChunkRequestResponseTest_SuccessAfterOneException (line 186) | [TestMethod]
method GetChunkRequestResponseTest_Fail (line 196) | [TestMethod]
method GetChunkRequestResponseTest_InvalidRange (line 204) | [TestMethod]
method UploadAsync_RetryUpToMax (line 214) | [TestMethod]
method UploadAsync_TooManyRetries (line 257) | [TestMethod]
method SetupRangesRemainingTest (line 290) | private List<Tuple<long, long>> SetupRangesRemainingTest(
method SetupGetUploadChunksTest (line 312) | private IEnumerable<UploadChunkRequest> SetupGetUploadChunksTest(int c...
method SetupGetChunkResponseTest (line 328) | private UploadChunkResult SetupGetChunkResponseTest(ServiceException s...
method AssertRangesAre (line 393) | private void AssertRangesAre(IList<Tuple<long, long>> rangesExpected, ...
method AssertChunksAre (line 409) | private void AssertChunksAre(IEnumerable<UploadChunkRequest> expectedC...
method CreateUploadExpectedChunkRequests (line 427) | private IEnumerable<UploadChunkRequest> CreateUploadExpectedChunkReque...
method StreamSetup (line 439) | private void StreamSetup(bool canReadAndSeek)
FILE: tests/Test.OneDriveSdk/Mocks/ExceptionHttpMessageHandler.cs
class ExceptionHttpMessageHandler (line 12) | public class ExceptionHttpMessageHandler : HttpMessageHandler
method ExceptionHttpMessageHandler (line 16) | public ExceptionHttpMessageHandler(Exception exceptionToThrow)
method SendAsync (line 21) | protected override Task<HttpResponseMessage> SendAsync(HttpRequestMess...
FILE: tests/Test.OneDriveSdk/Mocks/MockAuthenticationProvider.cs
class MockAuthenticationProvider (line 13) | public class MockAuthenticationProvider : Mock<IAuthenticationProvider>
method MockAuthenticationProvider (line 15) | public MockAuthenticationProvider()
FILE: tests/Test.OneDriveSdk/Mocks/MockHttpProvider.cs
class MockHttpProvider (line 13) | public class MockHttpProvider : Mock<IHttpProvider>
method MockHttpProvider (line 15) | public MockHttpProvider(HttpResponseMessage httpResponseMessage, ISeri...
FILE: tests/Test.OneDriveSdk/Mocks/MockSerializer.cs
class MockSerializer (line 10) | public class MockSerializer : Mock<ISerializer>
method MockSerializer (line 12) | public MockSerializer()
FILE: tests/Test.OneDriveSdk/Mocks/TestChunkedUploadProvider.cs
class TestChunkedUploadProvider (line 16) | public class TestChunkedUploadProvider : ChunkedUploadProvider
method TestChunkedUploadProvider (line 18) | public TestChunkedUploadProvider(UploadSession session, IBaseClient cl...
method GetRangesRemainingProxy (line 22) | public List<Tuple<long, long>> GetRangesRemainingProxy(UploadSession s...
FILE: tests/Test.OneDriveSdk/Mocks/TestHttpMessageHandler.cs
class TestHttpMessageHandler (line 12) | public class TestHttpMessageHandler : HttpMessageHandler
method TestHttpMessageHandler (line 16) | public TestHttpMessageHandler()
method AddResponseMapping (line 21) | public void AddResponseMapping(string requestUrl, HttpResponseMessage ...
method SendAsync (line 26) | protected override Task<HttpResponseMessage> SendAsync(HttpRequestMess...
FILE: tests/Test.OneDriveSdk/Requests/ItemRequestTests.cs
class ItemRequestTests (line 19) | [TestClass]
method GetAsync_InitializeCollectionProperties (line 22) | [TestMethod]
method ItemById_BuildRequest (line 71) | [TestMethod]
method ItemByPath_BuildRequest (line 85) | [TestMethod]
method ItemByPath_BuildRequestWithLeadingSlash (line 99) | [TestMethod]
method ItemRequest_CreateAsync (line 113) | [TestMethod]
method ItemRequest_DeleteAsync (line 119) | [TestMethod]
method ItemRequest_Expand (line 139) | [TestMethod]
method ItemRequest_Select (line 152) | [TestMethod]
method ItemRequest_UpdateAsync (line 165) | [TestMethod]
method RequestWithItemInBody (line 171) | private async Task RequestWithItemInBody(bool isUpdate)
FILE: tests/Test.OneDriveSdk/Requests/MethodRequestTests.cs
class MethodRequestTests (line 18) | [TestClass]
method ItemCreateLinkRequest_BuildRequest (line 21) | [TestMethod]
method ItemCreateLinkRequest_PostAsync (line 38) | [TestMethod]
method ItemDeltaRequest_BuildRequest (line 73) | [TestMethod]
method ItemDeltaRequest_GetAsyncWithNextLink (line 92) | [TestMethod]
method ItemDeltaRequest_GetAsyncWithoutNextLink (line 98) | [TestMethod]
method ItemDeltaRequest_GetAsync (line 104) | private async Task ItemDeltaRequest_GetAsync(bool includeNextLink)
FILE: tests/Test.OneDriveSdk/Requests/RequestTestBase.cs
class RequestTestBase (line 13) | [TestClass]
method Setup (line 22) | [TestInitialize]
method Teardown (line 36) | [TestCleanup]
FILE: tests/Test.OneDriveSdk/Requests/ThumbnailRequestTests.cs
class ThumbnailRequestTests (line 17) | [TestClass]
method ThumbnailContentRequest_BuildRequest (line 20) | [TestMethod]
method ThumbnailContentRequest_GetAsync (line 34) | [TestMethod]
method ThumbnailContentRequest_PutAsync (line 64) | [TestMethod]
method ThumbnailSetExtensions_AdditionalDataNull (line 96) | [TestMethod]
method ThumbnailSetExtensions_CustomThumbnail (line 106) | [TestMethod]
method ThumbnailSetExtensions_CustomThumbnailNotFound (line 124) | [TestMethod]
FILE: tests/Test.OneDriveSdk/Requests/UploadChunkRequestTest.cs
class UploadChunkRequestTest (line 21) | [TestClass]
method PutAsync_ReturnOK (line 24) | [TestMethod]
Condensed preview — 226 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (616K chars).
[
{
"path": ".gitignore",
"chars": 438,
"preview": "*.sln.docstates\n*.suo\n*.user\n*.userosscache\n*.sln.ide\nTestResults/*\n.vs/*\n\n# UWP project files\nproject.lock.json\n*StoreK"
},
{
"path": "Common/Microsoft.OneDriveSDK.nuspec",
"chars": 1275,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<package xmlns=\"http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd\">\n <m"
},
{
"path": "LICENSE.txt",
"chars": 1120,
"preview": "OneDrive SDK for CSharp\n\nCopyright 2015 Microsoft Corporation\n\nAll right reserved.\n\nMIT License\n\nPermission is hereby gr"
},
{
"path": "OneDriveSdk.sln",
"chars": 3820,
"preview": "\nMicrosoft Visual Studio Solution File, Format Version 12.00\n# Visual Studio 14\nVisualStudioVersion = 14.0.25123.0\nMini"
},
{
"path": "README.md",
"chars": 5033,
"preview": "# OneDrive SDK for CSharp\n\n[ Microsoft Corporati"
},
{
"path": "src/OneDriveSdk/Enums/OneDriveErrorCode.cs",
"chars": 817,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporati"
},
{
"path": "src/OneDriveSdk/Helpers/ChunkedUploadProvider.cs",
"chars": 9947,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporati"
},
{
"path": "src/OneDriveSdk/Microsoft.OneDrive.Sdk.csproj",
"chars": 5265,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Project ToolsVersion=\"12.0\" DefaultTargets=\"Build\" xmlns=\"http://schemas.micros"
},
{
"path": "src/OneDriveSdk/Models/Generated/Audio.cs",
"chars": 4430,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/ChunkedUploadSessionDescriptor.cs",
"chars": 1254,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/Deleted.cs",
"chars": 1211,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/Drive.cs",
"chars": 2764,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/File.cs",
"chars": 1424,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/FileSystemInfo.cs",
"chars": 1525,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/Folder.cs",
"chars": 1224,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/Hashes.cs",
"chars": 1437,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/Identity.cs",
"chars": 1657,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/IdentitySet.cs",
"chars": 1657,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/Image.cs",
"chars": 1417,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/Item.cs",
"chars": 8131,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/ItemCopyRequestBody.cs",
"chars": 1190,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/ItemCreateLinkRequestBody.cs",
"chars": 958,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/ItemCreateSessionRequestBody.cs",
"chars": 988,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/ItemInviteRequestBody.cs",
"chars": 1428,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/ItemReference.cs",
"chars": 1631,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/Location.cs",
"chars": 1660,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/OpenWithApp.cs",
"chars": 2133,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/OpenWithSet.cs",
"chars": 1439,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/Permission.cs",
"chars": 2786,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/Photo.cs",
"chars": 2822,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/Quota.cs",
"chars": 2050,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/Recipient.cs",
"chars": 1634,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/SearchResult.cs",
"chars": 1263,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/Share.cs",
"chars": 2078,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/Shared.cs",
"chars": 1668,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/SharingInvitation.cs",
"chars": 2195,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/SharingLink.cs",
"chars": 2103,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/SpecialFolder.cs",
"chars": 1220,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/Thumbnail.cs",
"chars": 1839,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/ThumbnailSet.cs",
"chars": 2297,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/UploadSession.cs",
"chars": 1749,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Models/Generated/Video.cs",
"chars": 1846,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Properties/AssemblyInfo.cs",
"chars": 1515,
"preview": "using System.Resources;\nusing System.Reflection;\nusing System.Runtime.CompilerServices;\n\n// General Information about a"
},
{
"path": "src/OneDriveSdk/Requests/Extensions/DriveRequestBuilderExtensions.cs",
"chars": 734,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Extensions/DriveSpecialCollectionRequestBuilderExtensions.cs",
"chars": 2171,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Extensions/IDriveRequestBuilderExtensions.cs",
"chars": 604,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Extensions/IDriveSpecialCollectionRequestBuilderExtensions.cs",
"chars": 1489,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Extensions/IItemRequestBuilderExtensions.cs",
"chars": 715,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Extensions/IOneDriveClientExtensions.cs",
"chars": 763,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Extensions/IShareRequestBuilderExtensions.cs",
"chars": 605,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Extensions/IThumbnailSetRequestBuilderExtensions.cs",
"chars": 484,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Extensions/ItemRequestBuilderExtensions.cs",
"chars": 1048,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Extensions/OneDriveClientExtensions.cs",
"chars": 1088,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Extensions/ShareRequestBuilderExtensions.cs",
"chars": 734,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Extensions/ThumbnailSetExtensions.cs",
"chars": 1140,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporati"
},
{
"path": "src/OneDriveSdk/Requests/Extensions/ThumbnailSetRequestBuilderExtensions.cs",
"chars": 767,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/DriveItemsCollectionPage.cs",
"chars": 1357,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/DriveItemsCollectionRequest.cs",
"chars": 6585,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/DriveItemsCollectionRequestBuilder.cs",
"chars": 2319,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/DriveItemsCollectionResponse.cs",
"chars": 1204,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/DriveRecentCollectionPage.cs",
"chars": 1315,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/DriveRecentCollectionResponse.cs",
"chars": 1217,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/DriveRecentRequest.cs",
"chars": 5077,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/DriveRecentRequestBuilder.cs",
"chars": 1869,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/DriveRequest.cs",
"chars": 8762,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/DriveRequestBuilder.cs",
"chars": 3429,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/DriveSharedCollectionPage.cs",
"chars": 1363,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/DriveSharedCollectionRequest.cs",
"chars": 6599,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/DriveSharedCollectionRequestBuilder.cs",
"chars": 2327,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/DriveSharedCollectionResponse.cs",
"chars": 1208,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/DriveSpecialCollectionPage.cs",
"chars": 1369,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/DriveSpecialCollectionRequest.cs",
"chars": 6613,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/DriveSpecialCollectionRequestBuilder.cs",
"chars": 2335,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/DriveSpecialCollectionResponse.cs",
"chars": 1212,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IDriveItemsCollectionPage.cs",
"chars": 1135,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IDriveItemsCollectionRequest.cs",
"chars": 3695,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IDriveItemsCollectionRequestBuilder.cs",
"chars": 1468,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IDriveRecentCollectionPage.cs",
"chars": 1102,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IDriveRecentRequest.cs",
"chars": 2898,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IDriveRecentRequestBuilder.cs",
"chars": 989,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IDriveRequest.cs",
"chars": 3717,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IDriveRequestBuilder.cs",
"chars": 2111,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IDriveSharedCollectionPage.cs",
"chars": 1140,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IDriveSharedCollectionRequest.cs",
"chars": 3705,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IDriveSharedCollectionRequestBuilder.cs",
"chars": 1472,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IDriveSpecialCollectionPage.cs",
"chars": 1145,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IDriveSpecialCollectionRequest.cs",
"chars": 3715,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IDriveSpecialCollectionRequestBuilder.cs",
"chars": 1476,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemChildrenCollectionPage.cs",
"chars": 1145,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemChildrenCollectionRequest.cs",
"chars": 3715,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemChildrenCollectionRequestBuilder.cs",
"chars": 1476,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemContentRequest.cs",
"chars": 2574,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemContentRequestBuilder.cs",
"chars": 828,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemCopyRequest.cs",
"chars": 1925,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemCopyRequestBuilder.cs",
"chars": 980,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemCreateLinkRequest.cs",
"chars": 1928,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemCreateLinkRequestBuilder.cs",
"chars": 998,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemCreateSessionRequest.cs",
"chars": 1952,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemCreateSessionRequestBuilder.cs",
"chars": 1007,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemDeltaCollectionPage.cs",
"chars": 1334,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemDeltaRequest.cs",
"chars": 2876,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemDeltaRequestBuilder.cs",
"chars": 983,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemInviteRequest.cs",
"chars": 1952,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemInviteRequestBuilder.cs",
"chars": 990,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemPermissionsCollectionPage.cs",
"chars": 1166,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemPermissionsCollectionRequest.cs",
"chars": 3829,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemPermissionsCollectionRequestBuilder.cs",
"chars": 1518,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemRequest.cs",
"chars": 3677,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemRequestBuilder.cs",
"chars": 4118,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemSearchCollectionPage.cs",
"chars": 1097,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemSearchRequest.cs",
"chars": 2887,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemSearchRequestBuilder.cs",
"chars": 986,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemThumbnailsCollectionPage.cs",
"chars": 1163,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemThumbnailsCollectionRequest.cs",
"chars": 3847,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemThumbnailsCollectionRequestBuilder.cs",
"chars": 1524,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemVersionsCollectionPage.cs",
"chars": 1145,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemVersionsCollectionRequest.cs",
"chars": 3715,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IItemVersionsCollectionRequestBuilder.cs",
"chars": 1476,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IOneDriveClient.cs",
"chars": 940,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IOneDriveDrivesCollectionPage.cs",
"chars": 1156,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IOneDriveDrivesCollectionRequest.cs",
"chars": 3749,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IOneDriveDrivesCollectionRequestBuilder.cs",
"chars": 1489,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IOneDriveSharesCollectionPage.cs",
"chars": 1156,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IOneDriveSharesCollectionRequest.cs",
"chars": 3749,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IOneDriveSharesCollectionRequestBuilder.cs",
"chars": 1489,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IPermissionRequest.cs",
"chars": 3917,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IPermissionRequestBuilder.cs",
"chars": 1172,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IShareItemsCollectionPage.cs",
"chars": 1135,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IShareItemsCollectionRequest.cs",
"chars": 3695,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IShareItemsCollectionRequestBuilder.cs",
"chars": 1468,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IShareRequest.cs",
"chars": 3717,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IShareRequestBuilder.cs",
"chars": 1395,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IThumbnailContentRequest.cs",
"chars": 2594,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IThumbnailContentRequestBuilder.cs",
"chars": 843,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IThumbnailSetRequest.cs",
"chars": 3997,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/IThumbnailSetRequestBuilder.cs",
"chars": 1180,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemChildrenCollectionPage.cs",
"chars": 1369,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemChildrenCollectionRequest.cs",
"chars": 6613,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemChildrenCollectionRequestBuilder.cs",
"chars": 2333,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemChildrenCollectionResponse.cs",
"chars": 1212,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemContentRequest.cs",
"chars": 3665,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemContentRequestBuilder.cs",
"chars": 1407,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemCopyRequest.cs",
"chars": 3021,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemCopyRequestBuilder.cs",
"chars": 2510,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemCreateLinkRequest.cs",
"chars": 2886,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemCreateLinkRequestBuilder.cs",
"chars": 2148,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemCreateSessionRequest.cs",
"chars": 2922,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemCreateSessionRequestBuilder.cs",
"chars": 2219,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemDeltaCollectionPage.cs",
"chars": 1559,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemDeltaCollectionResponse.cs",
"chars": 1665,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemDeltaRequest.cs",
"chars": 5167,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemDeltaRequestBuilder.cs",
"chars": 2017,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemInviteRequest.cs",
"chars": 3990,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemInviteRequestBuilder.cs",
"chars": 3227,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemPermissionsCollectionPage.cs",
"chars": 1393,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemPermissionsCollectionRequest.cs",
"chars": 6757,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemPermissionsCollectionRequestBuilder.cs",
"chars": 2393,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemPermissionsCollectionResponse.cs",
"chars": 1224,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemRequest.cs",
"chars": 9479,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemRequestBuilder.cs",
"chars": 6979,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemSearchCollectionPage.cs",
"chars": 1309,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemSearchCollectionResponse.cs",
"chars": 1213,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemSearchRequest.cs",
"chars": 5063,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemSearchRequestBuilder.cs",
"chars": 2005,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemThumbnailsCollectionPage.cs",
"chars": 1389,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemThumbnailsCollectionRequest.cs",
"chars": 6777,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemThumbnailsCollectionRequestBuilder.cs",
"chars": 2397,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemThumbnailsCollectionResponse.cs",
"chars": 1220,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemVersionsCollectionPage.cs",
"chars": 1369,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemVersionsCollectionRequest.cs",
"chars": 6613,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemVersionsCollectionRequestBuilder.cs",
"chars": 2333,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ItemVersionsCollectionResponse.cs",
"chars": 1212,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/OneDriveClient.cs",
"chars": 2538,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/OneDriveDrivesCollectionPage.cs",
"chars": 1382,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/OneDriveDrivesCollectionRequest.cs",
"chars": 6658,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/OneDriveDrivesCollectionRequestBuilder.cs",
"chars": 2363,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/OneDriveDrivesCollectionResponse.cs",
"chars": 1220,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/OneDriveSharesCollectionPage.cs",
"chars": 1382,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/OneDriveSharesCollectionRequest.cs",
"chars": 6658,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/OneDriveSharesCollectionRequestBuilder.cs",
"chars": 2363,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/OneDriveSharesCollectionResponse.cs",
"chars": 1220,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/PermissionRequest.cs",
"chars": 6720,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/PermissionRequestBuilder.cs",
"chars": 1794,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ShareItemsCollectionPage.cs",
"chars": 1357,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ShareItemsCollectionRequest.cs",
"chars": 6585,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ShareItemsCollectionRequestBuilder.cs",
"chars": 2319,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ShareItemsCollectionResponse.cs",
"chars": 1204,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ShareRequest.cs",
"chars": 7291,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ShareRequestBuilder.cs",
"chars": 2176,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ThumbnailContentRequest.cs",
"chars": 3700,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ThumbnailContentRequestBuilder.cs",
"chars": 1442,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ThumbnailSetRequest.cs",
"chars": 6830,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
},
{
"path": "src/OneDriveSdk/Requests/Generated/ThumbnailSetRequestBuilder.cs",
"chars": 1810,
"preview": "// ------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporatio"
}
]
// ... and 26 more files (download for full content)
About this extraction
This page contains the full source code of the OneDrive/onedrive-sdk-csharp GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 226 files (564.4 KB), approximately 120.6k tokens, and a symbol index with 885 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.