Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 5.37.0 #2255

Merged
merged 20 commits into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
6b86af6
Update upgrade-to-v5.md
andrueastman Nov 28, 2023
da4968e
Merge pull request #2234 from microsoftgraph/andrueastman-patch-1
andrueastman Nov 28, 2023
658aed2
use absolute uri in readme
Nov 28, 2023
a53e213
Merge pull request #2235 from microsoftgraph/andrueastman/absolute-re…
andrueastman Nov 28, 2023
e7cde38
Bump Moq from 4.20.69 to 4.20.70
dependabot[bot] Nov 29, 2023
3c6cc8a
Merge pull request #2238 from microsoftgraph/dependabot/nuget/Moq-4.2…
andrueastman Nov 29, 2023
c1227ef
Bump actions/setup-dotnet from 3.2.0 to 4.0.0
dependabot[bot] Dec 5, 2023
146a3ef
Merge pull request #2241 from microsoftgraph/dependabot/github_action…
baywet Dec 5, 2023
7dc6186
Bump xunit.runner.visualstudio from 2.5.4 to 2.5.5
dependabot[bot] Dec 11, 2023
e2c5c72
Merge pull request #2246 from microsoftgraph/dependabot/nuget/xunit.r…
baywet Dec 11, 2023
328f879
Bump xunit from 2.6.2 to 2.6.3
dependabot[bot] Dec 11, 2023
fb24776
Merge pull request #2245 from microsoftgraph/dependabot/nuget/xunit-2…
baywet Dec 11, 2023
a674f60
Update generated files with build 130446
Dec 12, 2023
4d48584
Bumps version and release notes
Dec 13, 2023
817c16b
Extend CustomDriveItemItemRequestBuilder
MartinM85 Dec 13, 2023
b771e21
Merge pull request #2253 from MartinM85/CustomDriveItemItemRequestBui…
andrueastman Dec 14, 2023
dcc0f82
Merge branch 'dev' into kiota/v1.0/pipelinebuild/130446
SilasKenneth Dec 14, 2023
479ac49
Merge pull request #2250 from microsoftgraph/kiota/v1.0/pipelinebuild…
andrueastman Dec 14, 2023
790e32b
Bump github/codeql-action from 2 to 3
dependabot[bot] Dec 14, 2023
c901f7c
Merge pull request #2256 from microsoftgraph/dependabot/github_action…
baywet Dec 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 3 additions & 3 deletions .github/workflows/validatePullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
steps:
- uses: actions/checkout@v4.1.1
- name: Setup .NET
uses: actions/setup-dotnet@v3.2.0
uses: actions/setup-dotnet@v4.0.0
with:
dotnet-version: 6.0.x
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: csharp
- name: Restore dependencies
Expand All @@ -29,4 +29,4 @@ jobs:
- name: Test
run: dotnet test ${{ env.solutionName }} --no-build --verbosity normal -c Release /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=opencover
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v

## [Unreleased]

## [5.37.0] - 2023-12-13

- Latest metadata updates from 12th December 2023.

## [5.36.0] - 2023-11-22

- Reduces the size of the generated code (https://github.com/microsoft/kiota/issues/3651)
Expand Down
23 changes: 11 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
[![Validate Pull Request](https://github.com/microsoftgraph/msgraph-sdk-dotnet/actions/workflows/validatePullRequest.yml/badge.svg)](https://github.com/microsoftgraph/msgraph-sdk-dotnet/actions/workflows/validatePullRequest.yml)
[![NuGet Version](https://buildstats.info/nuget/Microsoft.Graph)](https://www.nuget.org/packages/Microsoft.Graph/)

Integrate the [Microsoft Graph API](https://graph.microsoft.io) into your .NET
project!
Integrate the [Microsoft Graph API](https://graph.microsoft.com) into your .NET project!

The Microsoft Graph .NET Client Library targets .NetStandard 2.0.

Expand All @@ -25,7 +24,7 @@ Register your application to use Microsoft Graph API using the [Microsoft Applic

The Microsoft Graph .NET Client Library supports the use of TokenCredential classes in the [Azure.Identity](https://www.nuget.org/packages/Azure.Identity) library.

You can read more about available Credential classes [here](https://docs.microsoft.com/en-us/dotnet/api/overview/azure/identity-readme#key-concepts) and examples on how to quickly setup TokenCredential instances can be found [here](docs/tokencredentials.md).
You can read more about available Credential classes [here](https://docs.microsoft.com/en-us/dotnet/api/overview/azure/identity-readme#key-concepts) and examples on how to quickly setup TokenCredential instances can be found [here](https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/dev/docs/tokencredentials.md).

The recommended library for authenticating against Microsoft Identity (Azure AD) is [MSAL](https://github.com/AzureAD/microsoft-authentication-library-for-dotnet).

Expand All @@ -38,7 +37,7 @@ sending them to Microsoft Graph API, and processing the responses. To create a
new instance of this class, you need to provide an instance of
`IAuthenticationProvider` which can authenticate requests to Microsoft Graph.

For more information on initializing a client instance, see the [library overview](docs/overview.md)
For more information on initializing a client instance, see the [library overview](https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/dev/docs/overview.md)

### 4. Make requests to the graph

Expand Down Expand Up @@ -68,7 +67,7 @@ var rootItem = await graphClient.Drives[userDriveId].Root.GetAsync();
`GetAsync` will return a `DriveItem` object on success and throw a
`ApiException` on error.

For a general overview of how the SDK is designed, see [overview](docs/overview.md).
For a general overview of how the SDK is designed, see [overview](https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/dev/docs/overview.md).

The following sample applications are also available:
* [Microsoft Graph UWP Connect Sample](https://github.com/microsoftgraph/uwp-csharp-connect-sample)
Expand All @@ -83,11 +82,11 @@ The following sample applications are also available:

## Documentation and resources

* [Overview](docs/overview.md)
* [Collections](docs/collections.md)
* [Errors](docs/errors.md)
* [Headers](docs/headers.md)
* [Microsoft Graph API](https://graph.microsoft.io)
* [Overview](https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/dev/docs/overview.md)
* [Collections](https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/dev/docs/collections.md)
* [Errors](https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/dev/docs/errors.md)
* [Headers](https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/dev/docs/headers.md)
* [Microsoft Graph API](https://graph.microsoft.com)
* [Release notes](https://github.com/microsoftgraph/msgraph-sdk-dotnet/releases)
* [Blog - Microsoft Graph .NET SDK updates 3/16/20](https://developer.microsoft.com/en-us/graph/blogs/microsoft-graph-net-sdk-updates/)

Expand All @@ -112,14 +111,14 @@ Between 3.x and 4.x there were some major breaking changes:
* Replacing Newtosoft.Json with System.Text.Json
* Upgrading Microsoft.Graph.Core dependency to version 2.0.0

View the upgrade guide [here](docs/upgrade-to-v4.md).
View the upgrade guide [here](https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/dev/docs/upgrade-to-v4.md).


### Upgrading to v5

Between 4.x and 5.x there were several major breaking changes as the SDK now uses Kiota for code generation.

View the upgrade guide [here](docs/upgrade-to-v5.md).
View the upgrade guide [here](https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/dev/docs/upgrade-to-v5.md).

## Issues

Expand Down
2 changes: 1 addition & 1 deletion docs/upgrade-to-v5.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ if (pageIterator.State == PagingState.Delta)
// call delta again with the deltaLink to get the next page of results
Console.WriteLine("Calling delta again with deltaLink");
Console.WriteLine("DeltaLink url is: " + pageIterator.Deltalink);
await pageIterator.IterateAsync();
await pageIterator.ResumeAsync();
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,33 @@
using System.Linq;
using System.Reflection;
using Microsoft.Graph.Drives.Item.Items.Item.Analytics;
using Microsoft.Graph.Drives.Item.Items.Item.AssignSensitivityLabel;
using Microsoft.Graph.Drives.Item.Items.Item.Children;
using Microsoft.Graph.Drives.Item.Items.Item.Content;
using Microsoft.Graph.Drives.Item.Items.Item.ListItem;
using Microsoft.Graph.Drives.Item.Items.Item.Checkin;
using Microsoft.Graph.Drives.Item.Items.Item.Checkout;
using Microsoft.Graph.Drives.Item.Items.Item.Copy;
using Microsoft.Graph.Drives.Item.Items.Item.CreatedByUser;
using Microsoft.Graph.Drives.Item.Items.Item.CreateLink;
using Microsoft.Graph.Drives.Item.Items.Item.CreateUploadSession;
using Microsoft.Graph.Drives.Item.Items.Item.Delta;
using Microsoft.Graph.Drives.Item.Items.Item.DeltaWithToken;
using Microsoft.Graph.Drives.Item.Items.Item.Follow;
using Microsoft.Graph.Drives.Item.Items.Item.GetActivitiesByInterval;
using Microsoft.Graph.Drives.Item.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval;
using Microsoft.Graph.Drives.Item.Items.Item.Invite;
using Microsoft.Graph.Drives.Item.Items.Item.LastModifiedByUser;
using Microsoft.Graph.Drives.Item.Items.Item.ListItem;
using Microsoft.Graph.Drives.Item.Items.Item.PermanentDelete;
using Microsoft.Graph.Drives.Item.Items.Item.Preview;
using Microsoft.Graph.Drives.Item.Items.Item.Restore;
using Microsoft.Graph.Drives.Item.Items.Item.Unfollow;
using Microsoft.Graph.Drives.Item.Items.Item.ValidatePermission;
using Microsoft.Graph.Drives.Item.Items.Item.RetentionLabel;
using Microsoft.Graph.Drives.Item.Items.Item.Permissions;
using Microsoft.Graph.Drives.Item.Items.Item.SearchWithQ;
using Microsoft.Graph.Drives.Item.Items.Item.Subscriptions;
using Microsoft.Graph.Drives.Item.Items.Item.Thumbnails;
using Microsoft.Graph.Drives.Item.Items.Item.Unfollow;
using Microsoft.Graph.Drives.Item.Items.Item.ValidatePermission;
using Microsoft.Graph.Drives.Item.Items.Item.Workbook;
using Microsoft.Graph.Drives.Item.List.Items.Item.Versions;
using Microsoft.Kiota.Abstractions;
Expand Down Expand Up @@ -131,6 +141,11 @@ public CustomDriveItemItemRequestBuilder(Dictionary<string, object> pathParamete
{
get => new AnalyticsRequestBuilder(PathParameters, RequestAdapter).UpdateUrlTemplate(this.UrlTemplate);
}
/// <summary>Provides operations to call the assignSensitivityLabel method.</summary>
public new AssignSensitivityLabelRequestBuilder AssignSensitivityLabel
{
get => new AssignSensitivityLabelRequestBuilder(PathParameters, RequestAdapter).UpdateUrlTemplate(this.UrlTemplate);
}
/// <summary>Provides operations to call the checkin method.</summary>
public new CheckinRequestBuilder Checkin
{
Expand Down Expand Up @@ -158,6 +173,11 @@ public CustomDriveItemItemRequestBuilder(Dictionary<string, object> pathParamete
{
get => new CopyRequestBuilder(PathParameters, RequestAdapter).UpdateUrlTemplate(this.UrlTemplate);
}
/// <summary>Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity.</summary>
public new CreatedByUserRequestBuilder CreatedByUser
{
get => new CreatedByUserRequestBuilder(PathParameters, RequestAdapter).UpdateUrlTemplate(this.UrlTemplate);
}
/// <summary>Provides operations to call the createLink method.</summary>
public new CreateLinkRequestBuilder CreateLink
{
Expand All @@ -168,20 +188,41 @@ public CustomDriveItemItemRequestBuilder(Dictionary<string, object> pathParamete
{
get => new CreateUploadSessionRequestBuilder(PathParameters , RequestAdapter).UpdateUrlTemplate(this.UrlTemplate);
}
/// <summary>Provides operations to call the delta method.</summary>
public new DeltaRequestBuilder Delta
{
get => new DeltaRequestBuilder(PathParameters, RequestAdapter).UpdateUrlTemplate(this.UrlTemplate);
}
/// <summary>Provides operations to call the follow method.</summary>
public new FollowRequestBuilder Follow
{
get => new FollowRequestBuilder(PathParameters, RequestAdapter).UpdateUrlTemplate(this.UrlTemplate);
}
/// <summary>Provides operations to call the getActivitiesByInterval method.</summary>
public new GetActivitiesByIntervalRequestBuilder GetActivitiesByInterval
{
get =>
new GetActivitiesByIntervalRequestBuilder(PathParameters, RequestAdapter).UpdateUrlTemplate(this.UrlTemplate);
}
/// <summary>Provides operations to call the invite method.</summary>
public new InviteRequestBuilder Invite
{
get => new InviteRequestBuilder(PathParameters, RequestAdapter).UpdateUrlTemplate(this.UrlTemplate);
}
/// <summary>Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity.</summary>
public new LastModifiedByUserRequestBuilder LastModifiedByUser
{
get => new LastModifiedByUserRequestBuilder(PathParameters, RequestAdapter).UpdateUrlTemplate(this.UrlTemplate);
}
/// <summary>Provides operations to manage the listItem property of the microsoft.graph.driveItem entity.</summary>
public new ListItemRequestBuilder ListItem {
get => new ListItemRequestBuilder(PathParameters, RequestAdapter).UpdateUrlTemplate(this.UrlTemplate);
}
/// <summary>Provides operations to call the permanentDelete method.</summary>
public new PermanentDeleteRequestBuilder PermanentDelete
{
get => new PermanentDeleteRequestBuilder(PathParameters, RequestAdapter).UpdateUrlTemplate(this.UrlTemplate);
}
/// <summary>Provides operations to manage the permissions property of the microsoft.graph.driveItem entity.</summary>
public new PermissionsRequestBuilder Permissions {
get => new PermissionsRequestBuilder(PathParameters, RequestAdapter).UpdateUrlTemplate(this.UrlTemplate);
Expand All @@ -196,6 +237,11 @@ public CustomDriveItemItemRequestBuilder(Dictionary<string, object> pathParamete
{
get => new RestoreRequestBuilder(PathParameters, RequestAdapter).UpdateUrlTemplate(this.UrlTemplate);
}
/// <summary>Provides operations to manage the retentionLabel property of the microsoft.graph.driveItem entity.</summary>
public new RetentionLabelRequestBuilder RetentionLabel
{
get => new RetentionLabelRequestBuilder(PathParameters, RequestAdapter).UpdateUrlTemplate(this.UrlTemplate);
}
/// <summary>Provides operations to manage the subscriptions property of the microsoft.graph.driveItem entity.</summary>
public new SubscriptionsRequestBuilder Subscriptions
{
Expand Down Expand Up @@ -226,4 +272,30 @@ public CustomDriveItemItemRequestBuilder(Dictionary<string, object> pathParamete
{
get => new WorkbookRequestBuilder(PathParameters, RequestAdapter).UpdateUrlTemplate(this.UrlTemplate);
}
/// <summary>
/// Provides operations to call the delta method.
/// </summary>
/// <param name="token">Usage: token=&apos;{token}&apos;</param>
public new DeltaWithTokenRequestBuilder DeltaWithToken(string token)
{
return new DeltaWithTokenRequestBuilder(PathParameters, RequestAdapter, token).UpdateUrlTemplate(this.UrlTemplate);
}
/// <summary>
/// Provides operations to call the getActivitiesByInterval method.
/// </summary>
/// <param name="endDateTime">Usage: endDateTime=&apos;{endDateTime}&apos;</param>
/// <param name="interval">Usage: interval=&apos;{interval}&apos;</param>
/// <param name="startDateTime">Usage: startDateTime=&apos;{startDateTime}&apos;</param>
public new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval(string endDateTime, string interval, string startDateTime)
{
return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(PathParameters, RequestAdapter, endDateTime, interval, startDateTime).UpdateUrlTemplate(this.UrlTemplate);
}
/// <summary>
/// Provides operations to call the search method.
/// </summary>
/// <param name="q">Usage: q=&apos;{q}&apos;</param>
public new SearchWithQRequestBuilder SearchWithQ(string q)
{
return new SearchWithQRequestBuilder(PathParameters, RequestAdapter, q).UpdateUrlTemplate(this.UrlTemplate);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public BrowserSiteListItemRequestBuilder(Dictionary<string, object> pathParamete
public BrowserSiteListItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}{?%24select,%24expand}", rawUrl) {
}
/// <summary>
/// Delete a browserSiteList object. This API is available in the following national cloud deployments.
/// Delete a browserSiteList object.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/internetexplorermode-delete-sitelists?view=graph-rest-1.0" />
/// </summary>
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
Expand All @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Get a browserSiteList that contains browserSite and browserSharedCookie resources. This API is available in the following national cloud deployments.
/// Get a browserSiteList that contains browserSite and browserSharedCookie resources.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/browsersitelist-get?view=graph-rest-1.0" />
/// </summary>
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
Expand All @@ -84,7 +84,7 @@ public async Task<BrowserSiteList> GetAsync(Action<RequestConfiguration<BrowserS
return await RequestAdapter.SendAsync<BrowserSiteList>(requestInfo, BrowserSiteList.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Update the properties of a browserSiteList object. This API is available in the following national cloud deployments.
/// Update the properties of a browserSiteList object.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/browsersitelist-update?view=graph-rest-1.0" />
/// </summary>
/// <param name="body">The request body</param>
Expand All @@ -106,7 +106,7 @@ public async Task<BrowserSiteList> PatchAsync(BrowserSiteList body, Action<Reque
return await RequestAdapter.SendAsync<BrowserSiteList>(requestInfo, BrowserSiteList.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Delete a browserSiteList object. This API is available in the following national cloud deployments.
/// Delete a browserSiteList object.
/// </summary>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
Expand All @@ -122,7 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration
return requestInfo;
}
/// <summary>
/// Get a browserSiteList that contains browserSite and browserSharedCookie resources. This API is available in the following national cloud deployments.
/// Get a browserSiteList that contains browserSite and browserSharedCookie resources.
/// </summary>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
Expand All @@ -138,7 +138,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Br
return requestInfo;
}
/// <summary>
/// Update the properties of a browserSiteList object. This API is available in the following national cloud deployments.
/// Update the properties of a browserSiteList object.
/// </summary>
/// <param name="body">The request body</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand Down Expand Up @@ -170,7 +170,7 @@ public BrowserSiteListItemRequestBuilder WithUrl(string rawUrl) {
public class BrowserSiteListItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration<DefaultQueryParameters> {
}
/// <summary>
/// Get a browserSiteList that contains browserSite and browserSharedCookie resources. This API is available in the following national cloud deployments.
/// Get a browserSiteList that contains browserSite and browserSharedCookie resources.
/// </summary>
public class BrowserSiteListItemRequestBuilderGetQueryParameters {
/// <summary>Expand related entities</summary>
Expand Down
Loading